FFmpeg
Data Fields
AVCodecInternal Struct Reference

#include <internal.h>

Data Fields

int is_copy
 When using frame-threaded decoding, this field is set for the first worker thread (e.g. More...
 
int last_audio_frame
 An audio frame with less than required samples has been submitted and padded with silence. More...
 
AVBufferRefpool
 
void * thread_ctx
 
AVPacketin_pkt
 This packet is used to hold the packet given to decoders implementing the .decode API; it is unused by the generic code for decoders implementing the .receive_frame API and may be freely used (but not freed) by them with the caveat that the packet will be unreferenced generically in avcodec_flush_buffers(). More...
 
struct AVBSFContextbsf
 
AVPacketlast_pkt_props
 Properties (timestamps+side data) extracted from the last packet passed for decoding. More...
 
struct AVFifopkt_props
 
uint8_t * byte_buffer
 temporary buffer used for encoders to store their bitstream More...
 
unsigned int byte_buffer_size
 
int intra_only_flag
 This is set to AV_PKT_FLAG_KEY for encoders that encode intra-only formats (i.e. More...
 
void * frame_thread_encoder
 
AVFramein_frame
 The input frame is stored here for encoders implementing the simple encode API. More...
 
AVFramerecon_frame
 When the AV_CODEC_FLAG_RECON_FRAME flag is used. More...
 
int needs_close
 If this is set, then FFCodec->close (if existing) needs to be called for the parent AVCodecContext. More...
 
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 showed_multi_packet_warning
 
int nb_draining_errors
 
int changed_frames_dropped
 
int initial_format
 
int initial_width
 
int initial_height
 
int initial_sample_rate
 
AVChannelLayout initial_ch_layout
 

Detailed Description

Definition at line 52 of file internal.h.

Field Documentation

◆ is_copy

int AVCodecInternal::is_copy

When using frame-threaded decoding, this field is set for the first worker thread (e.g.

to decode extradata just once).

Definition at line 57 of file internal.h.

Referenced by cfhd_decode(), 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 63 of file internal.h.

Referenced by encode_send_frame_internal().

◆ pool

AVBufferRef* AVCodecInternal::pool

◆ thread_ctx

void* AVCodecInternal::thread_ctx

◆ in_pkt

AVPacket* AVCodecInternal::in_pkt

This packet is used to hold the packet given to decoders implementing the .decode API; it is unused by the generic code for decoders implementing the .receive_frame API and may be freely used (but not freed) by them with the caveat that the packet will be unreferenced generically in avcodec_flush_buffers().

Definition at line 77 of file internal.h.

Referenced by avcodec_close(), avcodec_flush_buffers(), cuvid_decode_init(), decode_init(), decode_simple_internal(), ff_decode_preinit(), ff_mjpeg_decode_init(), ffmmal_init_decoder(), and init().

◆ bsf

struct 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 84 of file internal.h.

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

◆ pkt_props

struct AVFifo* AVCodecInternal::pkt_props

◆ byte_buffer

uint8_t* AVCodecInternal::byte_buffer

temporary buffer used for encoders to store their bitstream

Definition at line 90 of file internal.h.

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

◆ byte_buffer_size

unsigned int AVCodecInternal::byte_buffer_size

Definition at line 91 of file internal.h.

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

◆ intra_only_flag

int AVCodecInternal::intra_only_flag

This is set to AV_PKT_FLAG_KEY for encoders that encode intra-only formats (i.e.

whose codec descriptor has AV_CODEC_PROP_INTRA_ONLY set). This is used to set said flag generically for said encoders.

Definition at line 98 of file internal.h.

Referenced by encode_simple_internal(), and ff_encode_preinit().

◆ frame_thread_encoder

void* AVCodecInternal::frame_thread_encoder

◆ in_frame

AVFrame* AVCodecInternal::in_frame

The input frame is stored here for encoders implementing the simple encode API.

Not allocated in other cases.

Definition at line 108 of file internal.h.

Referenced by avcodec_close(), avcodec_flush_buffers(), encode_simple_internal(), and ff_encode_preinit().

◆ recon_frame

AVFrame* AVCodecInternal::recon_frame

When the AV_CODEC_FLAG_RECON_FRAME flag is used.

the encoder should store here the reconstructed frame corresponding to the last returned packet.

Not allocated in other cases.

Definition at line 116 of file internal.h.

Referenced by aom_encode(), avcodec_close(), avcodec_flush_buffers(), ff_encode_preinit(), ff_encode_receive_frame(), and X264_frame().

◆ needs_close

int AVCodecInternal::needs_close

If this is set, then FFCodec->close (if existing) needs to be called for the parent AVCodecContext.

Definition at line 122 of file internal.h.

Referenced by avcodec_close(), and avcodec_open2().

◆ skip_samples

int AVCodecInternal::skip_samples

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

Definition at line 127 of file internal.h.

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

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

◆ showed_multi_packet_warning

int AVCodecInternal::showed_multi_packet_warning

Definition at line 146 of file internal.h.

Referenced by decode_simple_internal().

◆ nb_draining_errors

int AVCodecInternal::nb_draining_errors

Definition at line 149 of file internal.h.

Referenced by avcodec_flush_buffers(), and decode_simple_internal().

◆ changed_frames_dropped

int AVCodecInternal::changed_frames_dropped

Definition at line 152 of file internal.h.

Referenced by ff_decode_receive_frame().

◆ initial_format

int AVCodecInternal::initial_format

Definition at line 153 of file internal.h.

Referenced by ff_decode_receive_frame().

◆ initial_width

int AVCodecInternal::initial_width

Definition at line 154 of file internal.h.

Referenced by ff_decode_receive_frame().

◆ initial_height

int AVCodecInternal::initial_height

Definition at line 154 of file internal.h.

Referenced by ff_decode_receive_frame().

◆ initial_sample_rate

int AVCodecInternal::initial_sample_rate

Definition at line 155 of file internal.h.

Referenced by ff_decode_receive_frame().

◆ initial_ch_layout

AVChannelLayout AVCodecInternal::initial_ch_layout

Definition at line 160 of file internal.h.

Referenced by avcodec_close(), and ff_decode_receive_frame().


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