diff options
Diffstat (limited to 'libavcodec/threadframe.h')
-rw-r--r-- | libavcodec/threadframe.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libavcodec/threadframe.h b/libavcodec/threadframe.h index be63e62435..dea4dadc6d 100644 --- a/libavcodec/threadframe.h +++ b/libavcodec/threadframe.h @@ -21,8 +21,16 @@ #ifndef AVCODEC_THREADFRAME_H #define AVCODEC_THREADFRAME_H +#include "libavutil/frame.h" #include "avcodec.h" -#include "thread.h" + +typedef struct ThreadFrame { + AVFrame *f; + AVCodecContext *owner[2]; + // progress->data is an array of 2 ints holding progress for top/bottom + // fields + AVBufferRef *progress; +} ThreadFrame; /** * Notify later decoding threads when part of their reference picture is ready. @@ -74,4 +82,6 @@ int ff_thread_get_ext_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags); */ void ff_thread_release_ext_buffer(AVCodecContext *avctx, ThreadFrame *f); +int ff_thread_ref_frame(ThreadFrame *dst, const ThreadFrame *src); + #endif |