|
|
|
@ -102,12 +102,24 @@ void ff_progress_frame_report(ProgressFrame *f, int progress); |
|
|
|
|
void ff_progress_frame_await(const ProgressFrame *f, int progress); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This function sets up the ProgressFrame, i.e. gets ProgressFrame.f |
|
|
|
|
* and also calls ff_thread_get_buffer() on the frame. |
|
|
|
|
* This function allocates ProgressFrame.f |
|
|
|
|
* May be called before ff_progress_frame_get_buffer() in the cases where the |
|
|
|
|
* AVFrame needs to be accessed before the ff_thread_get_buffer() call in |
|
|
|
|
* ff_progress_frame_alloc(). |
|
|
|
|
* |
|
|
|
|
* @note: This must only be called by codecs with the |
|
|
|
|
* FF_CODEC_CAP_USES_PROGRESSFRAMES internal cap. |
|
|
|
|
*/ |
|
|
|
|
int ff_progress_frame_alloc(struct AVCodecContext *avctx, ProgressFrame *f); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This function sets up the ProgressFrame, i.e. allocates ProgressFrame.f |
|
|
|
|
* if needed, and also calls ff_thread_get_buffer() on the frame. |
|
|
|
|
* |
|
|
|
|
* @note: This must only be called by codecs with the |
|
|
|
|
* FF_CODEC_CAP_USES_PROGRESSFRAMES internal cap. |
|
|
|
|
* @see ff_progress_frame_alloc |
|
|
|
|
*/ |
|
|
|
|
int ff_progress_frame_get_buffer(struct AVCodecContext *avctx, |
|
|
|
|
ProgressFrame *f, int flags); |
|
|
|
|
|
|
|
|
|