diff options
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index bccd9222d4..700807cd75 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -68,6 +68,11 @@ * Codec initializes slice-based threading with a main function */ #define FF_CODEC_CAP_SLICE_THREAD_HAS_MF (1 << 5) +/* + * The codec supports frame threading and has inter-frame dependencies, so it + * uses ff_thread_report/await_progress(). + */ +#define FF_CODEC_CAP_ALLOCATE_PROGRESS (1 << 6) /** * AVCodec.codec_tags termination value @@ -142,21 +147,6 @@ typedef struct AVCodecInternal { int is_copy; /** - * Whether to allocate progress for frame threading. - * - * The codec must set it to 1 if it uses ff_thread_await/report_progress(), - * then progress will be allocated in ff_thread_get_buffer(). The frames - * then MUST be freed with ff_thread_release_buffer(). - * - * If the codec does not need to call the progress functions (there are no - * dependencies between the frames), it should leave this at 0. Then it can - * decode straight to the user-provided frames (which the user will then - * free with av_frame_unref()), there is no need to call - * ff_thread_release_buffer(). - */ - int allocate_progress; - - /** * An audio frame with less than required samples has been submitted and * padded with silence. Reject all subsequent frames. */ |