FFmpeg
Public Attributes | List of all members
AVCodecInternal Struct Reference

Public Attributes

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...
 
AVFrameto_free
 
FramePoolpool
 
void * thread_ctx
 
DecodeSimpleContext ds
 
DecodeFilterContext filter
 
AVPacketlast_pkt_props
 Properties (timestamps+side data) extracted from the last packet passed for decoding.
 
uint8_t * byte_buffer
 temporary buffer used for encoders to store their bitstream
 
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.
 
void * hwaccel_priv_data
 hwaccel-specific private data
 
int draining
 checks API usage: after codec draining, flush is required to resume operation
 
AVPacketbuffer_pkt
 buffers for using new encode/decode API through legacy API
 
int buffer_pkt_valid
 
AVFramebuffer_frame
 
int draining_done
 
int compat_decode
 
int compat_decode_warned
 
size_t compat_decode_consumed
 
size_t compat_decode_partial_size
 
AVFramecompat_decode_frame
 
int showed_multi_packet_warning
 
int skip_samples_multiplier
 
int nb_draining_errors
 

Member Data Documentation

§ allocate_progress

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().

§ is_copy

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.

§ last_audio_frame

int AVCodecInternal::last_audio_frame

An audio frame with less than required samples has been submitted and padded with silence.

Reject all subsequent frames.


The documentation for this struct was generated from the following file: