FFmpeg
Data Fields
AVCodecInternal Struct Reference

#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 last_audio_frame
 An audio frame with less than required samples has been submitted and padded with silence. More...
 
AVFrameto_free
 
AVBufferRefpool
 
void * thread_ctx
 
DecodeSimpleContext ds
 
AVBSFContextbsf
 
AVPacketlast_pkt_props
 Properties (timestamps+side data) extracted from the last packet passed for decoding. More...
 
AVFifoBufferpkt_props
 
uint8_tbyte_buffer
 temporary buffer used for encoders to store their bitstream More...
 
unsigned int byte_buffer_size
 
void * frame_thread_encoder
 
EncodeSimpleContext es
 
int skip_samples
 Number of audio samples to skip at the start of the next decoded frame. More...
 
void * hwaccel_priv_data
 hwaccel-specific private data More...
 
int draining
 checks API usage: after codec draining, flush is required to resume operation More...
 
AVPacketbuffer_pkt
 buffers for using new encode/decode API through legacy API More...
 
AVFramebuffer_frame
 
int draining_done
 
int compat_decode_warned
 
size_t compat_decode_consumed
 
size_t compat_decode_partial_size
 
AVFramecompat_decode_frame
 
AVPacketcompat_encode_packet
 
int showed_multi_packet_warning
 
int skip_samples_multiplier
 
int nb_draining_errors
 
int changed_frames_dropped
 
int initial_format
 
int initial_width
 
int initial_height
 
int initial_sample_rate
 
int initial_channels
 
uint64_t initial_channel_layout
 

Detailed Description

Definition at line 129 of file internal.h.

Field Documentation

◆ 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.

Definition at line 136 of file internal.h.

Referenced by cfhd_decode(), ff_frame_thread_free(), h264_decode_init(), and hevc_decode_init().

◆ 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.

Definition at line 142 of file internal.h.

Referenced by encode_send_frame_internal().

◆ to_free

AVFrame* AVCodecInternal::to_free

Definition at line 145 of file internal.h.

Referenced by avcodec_close(), avcodec_flush_buffers(), avcodec_open2(), and unrefcount_frame().

◆ pool

AVBufferRef* AVCodecInternal::pool

◆ thread_ctx

void* AVCodecInternal::thread_ctx

◆ ds

DecodeSimpleContext AVCodecInternal::ds

◆ bsf

AVBSFContext* AVCodecInternal::bsf

◆ last_pkt_props

AVPacket* AVCodecInternal::last_pkt_props

Properties (timestamps+side data) extracted from the last packet passed for decoding.

Definition at line 159 of file internal.h.

Referenced by avcodec_close(), avcodec_flush_buffers(), avcodec_open2(), decode_receive_frame_internal(), decode_simple_internal(), extract_packet_props(), and ff_decode_frame_props().

◆ pkt_props

AVFifoBuffer* AVCodecInternal::pkt_props

◆ byte_buffer

uint8_t* AVCodecInternal::byte_buffer

temporary buffer used for encoders to store their bitstream

Definition at line 165 of file internal.h.

Referenced by avcodec_close(), ff_alloc_packet2(), and ff_mpv_encode_picture().

◆ byte_buffer_size

unsigned int AVCodecInternal::byte_buffer_size

Definition at line 166 of file internal.h.

Referenced by avcodec_close(), ff_alloc_packet2(), and ff_mpv_encode_picture().

◆ frame_thread_encoder

void* AVCodecInternal::frame_thread_encoder

◆ es

EncodeSimpleContext AVCodecInternal::es

◆ skip_samples

int AVCodecInternal::skip_samples

Number of audio samples to skip at the start of the next decoded frame.

Definition at line 175 of file internal.h.

Referenced by cng_decode_frame(), decode_fill(), decode_simple_internal(), ff_opus_parse_extradata(), libopus_decode_init(), and libopus_flush().

◆ hwaccel_priv_data

void* AVCodecInternal::hwaccel_priv_data

◆ draining

int AVCodecInternal::draining

◆ buffer_pkt

AVPacket* AVCodecInternal::buffer_pkt

buffers for using new encode/decode API through legacy API

Definition at line 190 of file internal.h.

Referenced by avcodec_close(), avcodec_decode_subtitle2(), avcodec_flush_buffers(), avcodec_open2(), avcodec_receive_packet(), avcodec_send_frame(), and avcodec_send_packet().

◆ buffer_frame

AVFrame* AVCodecInternal::buffer_frame

◆ draining_done

int AVCodecInternal::draining_done

◆ compat_decode_warned

int AVCodecInternal::compat_decode_warned

Definition at line 195 of file internal.h.

Referenced by compat_decode(), and compat_encode().

◆ compat_decode_consumed

size_t AVCodecInternal::compat_decode_consumed

Definition at line 198 of file internal.h.

Referenced by compat_decode(), decode_simple_internal(), and ff_decode_get_packet().

◆ compat_decode_partial_size

size_t AVCodecInternal::compat_decode_partial_size

Definition at line 201 of file internal.h.

Referenced by compat_decode().

◆ compat_decode_frame

AVFrame* AVCodecInternal::compat_decode_frame

Definition at line 202 of file internal.h.

Referenced by avcodec_close(), avcodec_flush_buffers(), avcodec_open2(), and compat_decode().

◆ compat_encode_packet

AVPacket* AVCodecInternal::compat_encode_packet

Definition at line 203 of file internal.h.

Referenced by avcodec_close(), avcodec_flush_buffers(), avcodec_open2(), and compat_encode().

◆ showed_multi_packet_warning

int AVCodecInternal::showed_multi_packet_warning

Definition at line 206 of file internal.h.

Referenced by decode_simple_internal().

◆ skip_samples_multiplier

int AVCodecInternal::skip_samples_multiplier

Definition at line 208 of file internal.h.

Referenced by aac_decode_frame_int(), avcodec_open2(), and decode_simple_internal().

◆ nb_draining_errors

int AVCodecInternal::nb_draining_errors

Definition at line 211 of file internal.h.

Referenced by avcodec_flush_buffers(), and decode_simple_internal().

◆ changed_frames_dropped

int AVCodecInternal::changed_frames_dropped

Definition at line 214 of file internal.h.

Referenced by avcodec_receive_frame().

◆ initial_format

int AVCodecInternal::initial_format

Definition at line 215 of file internal.h.

Referenced by avcodec_receive_frame().

◆ initial_width

int AVCodecInternal::initial_width

Definition at line 216 of file internal.h.

Referenced by avcodec_receive_frame().

◆ initial_height

int AVCodecInternal::initial_height

Definition at line 216 of file internal.h.

Referenced by avcodec_receive_frame().

◆ initial_sample_rate

int AVCodecInternal::initial_sample_rate

Definition at line 217 of file internal.h.

Referenced by avcodec_receive_frame().

◆ initial_channels

int AVCodecInternal::initial_channels

Definition at line 218 of file internal.h.

Referenced by avcodec_receive_frame().

◆ initial_channel_layout

uint64_t AVCodecInternal::initial_channel_layout

Definition at line 219 of file internal.h.

Referenced by avcodec_receive_frame().


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