Files
ffmpeg/libavcodec
Andreas Rheinhardt 02220b88fc avcodec/thread: Don't use ThreadFrame when unnecessary
The majority of frame-threaded decoders (mainly the intra-only)
need exactly one part of ThreadFrame: The AVFrame. They don't
need the owners nor the progress, yet they had to use it because
ff_thread_(get|release)_buffer() requires it.

This commit changes this and makes these functions work with ordinary
AVFrames; the decoders that need the extra fields for progress
use ff_thread_(get|release)_ext_buffer() which work exactly
as ff_thread_(get|release)_buffer() used to do.

This also avoids some unnecessary allocations of progress AVBuffers,
namely for H.264 and HEVC film grain frames: These frames are not
used for synchronization and therefore don't need a ThreadFrame.

Also move the ThreadFrame structure as well as ff_thread_ref_frame()
to threadframe.h, the header for frame-threaded decoders with
inter-frame dependencies.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-02-09 17:22:35 +01:00
..
2022-02-07 00:31:23 +01:00
2022-02-07 00:31:23 +01:00
2021-10-03 11:42:15 +02:00
2022-02-07 00:31:23 +01:00
2021-10-08 20:37:36 +11:00
2021-10-08 20:37:36 +11:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-02-07 00:31:23 +01:00
2022-01-13 08:28:56 +01:00
2022-01-26 15:30:28 +01:00
2021-10-09 11:42:16 +02:00
2021-12-03 16:09:14 +01:00
2021-12-03 16:09:14 +01:00
2022-02-07 00:31:23 +01:00
2022-02-07 00:31:23 +01:00
2021-10-02 18:49:40 +02:00
2022-02-07 00:31:23 +01:00
2021-10-10 17:44:41 +02:00
2022-01-26 15:30:28 +01:00