Libav
|
#include <internal.h>
Data Fields | |
int | is_copy |
Whether the parent AVCodecContext is a copy of the context which had init() called on it. More... | |
int | allocate_progress |
Whether to allocate progress for frame threading. More... | |
int | last_audio_frame |
An audio frame with less than required samples has been submitted and padded with silence. More... | |
AVFrame * | to_free |
FramePool * | pool |
void * | thread_ctx |
AVPacket * | pkt |
Current packet as passed into the decoder, to avoid having to pass the packet into every function. More... | |
void * | hwaccel_priv_data |
hwaccel-specific private data More... | |
Definition at line 57 of file internal.h.
int AVCodecInternal::is_copy |
Whether the parent AVCodecContext is a copy of the context which had init() called on it.
This is used by multithreading - shared tables and picture pointers should be freed from the original context only.
Definition at line 64 of file internal.h.
Referenced by decode_init_thread_copy(), ff_frame_thread_init(), ff_rv34_decode_init_thread_copy(), mimic_decode_end(), and vp3_decode_end().
int AVCodecInternal::allocate_progress |
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().
Definition at line 79 of file internal.h.
Referenced by decode_init(), ff_h264_decode_init(), ff_rv34_decode_init(), ff_thread_get_buffer(), frame_worker_thread(), hevc_decode_init(), mimic_decode_init(), vp3_decode_init(), and vp78_decode_init().
int AVCodecInternal::last_audio_frame |
An audio frame with less than required samples has been submitted and padded with silence.
Reject all subsequent frames.
Definition at line 85 of file internal.h.
Referenced by avcodec_encode_audio2().
AVFrame* AVCodecInternal::to_free |
Definition at line 87 of file internal.h.
Referenced by avcodec_close(), avcodec_flush_buffers(), avcodec_open2(), and unrefcount_frame().
FramePool* AVCodecInternal::pool |
Definition at line 89 of file internal.h.
Referenced by audio_get_buffer(), avcodec_close(), avcodec_open2(), update_frame_pool(), and video_get_buffer().
void* AVCodecInternal::thread_ctx |
Definition at line 91 of file internal.h.
Referenced by avcodec_close(), ff_frame_thread_free(), ff_frame_thread_init(), ff_slice_thread_free(), ff_slice_thread_init(), ff_thread_await_progress(), ff_thread_decode_frame(), ff_thread_finish_setup(), ff_thread_flush(), ff_thread_get_buffer(), ff_thread_release_buffer(), ff_thread_report_progress(), thread_execute(), thread_execute2(), and worker().
AVPacket* AVCodecInternal::pkt |
Current packet as passed into the decoder, to avoid having to pass the packet into every function.
Definition at line 97 of file internal.h.
Referenced by avcodec_decode_audio4(), avcodec_decode_subtitle2(), avcodec_decode_video2(), ff_decode_frame_props(), and ff_frame_thread_init().
void* AVCodecInternal::hwaccel_priv_data |
hwaccel-specific private data
Definition at line 102 of file internal.h.
Referenced by avcodec_close(), ff_get_format(), ff_vda_output_callback(), update_context_from_thread(), vda_h264_decode_slice(), vda_h264_end_frame(), vda_h264_start_frame(), vda_h264_uninit(), vda_old_h264_decode_slice(), vda_old_h264_end_frame(), and vda_old_h264_start_frame().