diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-16 01:21:55 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-12 11:53:49 +0200 |
commit | 45cf0541cf4b3ec89cd9c8c8919c0650852f30ec (patch) | |
tree | 6312f996968e01b3bacbbb57c0a7ab96319ee233 /libavcodec/error_resilience.h | |
parent | 5475000942c812bf9c5eb01f84d84822e7e0a0c0 (diff) | |
download | ffmpeg-45cf0541cf4b3ec89cd9c8c8919c0650852f30ec.tar.gz |
avcodec/mpegpicture: Use ThreadProgress instead of ThreadFrame API
Given that MPVPictures are already directly shared between threads
in case of frame-threaded decoding, one can simply use it to
pass decoding progress information between threads. This allows
to avoid one level of indirection; it also means avoids allocations
(of the ThreadFrameProgress structure) in case of frame-threading
and indeed makes ff_thread_release_ext_buffer() decoder-only
(actually, H.264-decoder-only).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/error_resilience.h')
-rw-r--r-- | libavcodec/error_resilience.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/error_resilience.h b/libavcodec/error_resilience.h index 1346639c3c..a1b9b9ec1a 100644 --- a/libavcodec/error_resilience.h +++ b/libavcodec/error_resilience.h @@ -40,6 +40,7 @@ typedef struct ERPicture { AVFrame *f; const struct ThreadFrame *tf; + const struct ThreadProgress *progress; // it is the caller's responsibility to allocate these buffers int16_t (*motion_val[2])[2]; |