FFmpeg
|
#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 |
uint8_t * | byte_buffer |
temporary buffer used for encoders to store their bitstream More... | |
unsigned int | byte_buffer_size |
void * | frame_thread_encoder |
int | skip_samples |
Number of audio samples to skip at the start of the next decoded frame. More... | |
Detailed Description
Definition at line 56 of file libavcodec/internal.h.
Field Documentation
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 78 of file libavcodec/internal.h.
Referenced by decode_init(), ff_h264_decode_init(), ff_rv34_decode_init(), mimic_decode_init(), thread_get_buffer_internal(), vp3_decode_init(), and vp8_decode_init().
uint8_t* AVCodecInternal::byte_buffer |
temporary buffer used for encoders to store their bitstream
Definition at line 101 of file libavcodec/internal.h.
Referenced by avcodec_close(), avcodec_encode_audio2(), avcodec_encode_video2(), and ff_alloc_packet2().
unsigned int AVCodecInternal::byte_buffer_size |
Definition at line 102 of file libavcodec/internal.h.
Referenced by avcodec_close(), and ff_alloc_packet2().
void* AVCodecInternal::frame_thread_encoder |
Definition at line 104 of file libavcodec/internal.h.
Referenced by avcodec_close(), avcodec_encode_video2(), avcodec_open2(), ff_frame_thread_encoder_free(), ff_frame_thread_encoder_init(), ff_thread_video_encode_frame(), and worker().
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 63 of file libavcodec/internal.h.
Referenced by decode_init_thread_copy(), ff_rv34_decode_init_thread_copy(), frame_thread_free(), frame_thread_init(), mimic_decode_end(), and vp3_decode_end().
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 92 of file libavcodec/internal.h.
Referenced by avcodec_encode_audio2().
FramePool* AVCodecInternal::pool |
Definition at line 96 of file libavcodec/internal.h.
Referenced by audio_get_buffer(), avcodec_close(), avcodec_open2(), update_frame_pool(), and video_get_buffer().
int AVCodecInternal::skip_samples |
Number of audio samples to skip at the start of the next decoded frame.
Definition at line 109 of file libavcodec/internal.h.
Referenced by avcodec_decode_audio4(), decode_fill(), libopus_decode_init(), and libopus_flush().
AVFrame AVCodecInternal::to_free |
Definition at line 94 of file libavcodec/internal.h.
Referenced by avcodec_close(), avcodec_decode_audio4(), and avcodec_decode_video2().
The documentation for this struct was generated from the following file:
Generated on Mon Nov 18 2024 06:52:11 for FFmpeg by 1.8.11