aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/error_resilience.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-16 01:21:55 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-12 11:53:49 +0200
commit45cf0541cf4b3ec89cd9c8c8919c0650852f30ec (patch)
tree6312f996968e01b3bacbbb57c0a7ab96319ee233 /libavcodec/error_resilience.h
parent5475000942c812bf9c5eb01f84d84822e7e0a0c0 (diff)
downloadffmpeg-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.h1
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];