FFmpeg
Data Fields
AVCodecContext Struct Reference

main external API structure. More...

#include <avcodec.h>

Data Fields

const AVClassav_class
 information on struct for av_log More...
 
int log_level_offset
 
enum AVMediaType codec_type
 
const struct AVCodeccodec
 
enum AVCodecID codec_id
 
unsigned int codec_tag
 fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A'). More...
 
void * priv_data
 
struct AVCodecInternalinternal
 Private context used for internal data. More...
 
void * opaque
 Private data of the user, can be used to carry app specific stuff. More...
 
int64_t bit_rate
 the average bitrate More...
 
int flags
 AV_CODEC_FLAG_*. More...
 
int flags2
 AV_CODEC_FLAG2_*. More...
 
uint8_t * extradata
 some codecs need / can use extradata like Huffman tables. More...
 
int extradata_size
 
AVRational time_base
 This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented. More...
 
AVRational pkt_timebase
 Timebase in which pkt_dts/pts and AVPacket.dts/pts are expressed. More...
 
AVRational framerate
 
attribute_deprecated int ticks_per_frame
 For some codecs, the time base is closer to the field rate than the frame rate. More...
 
int delay
 Codec delay. More...
 
int width
 picture width / height. More...
 
int height
 
int coded_width
 Bitstream width / height, may be different from width/height e.g. More...
 
int coded_height
 
AVRational sample_aspect_ratio
 sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel. More...
 
enum AVPixelFormat pix_fmt
 Pixel format, see AV_PIX_FMT_xxx. More...
 
enum AVPixelFormat sw_pix_fmt
 Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx. More...
 
enum AVColorPrimaries color_primaries
 Chromaticity coordinates of the source primaries. More...
 
enum AVColorTransferCharacteristic color_trc
 Color Transfer Characteristic. More...
 
enum AVColorSpace colorspace
 YUV colorspace type. More...
 
enum AVColorRange color_range
 MPEG vs JPEG YUV range. More...
 
enum AVChromaLocation chroma_sample_location
 This defines the location of chroma samples. More...
 
enum AVFieldOrder field_order
 Field order. More...
 
int refs
 number of reference frames More...
 
int has_b_frames
 Size of the frame reordering buffer in the decoder. More...
 
int slice_flags
 slice flags More...
 
void(* draw_horiz_band )(struct AVCodecContext *s, const AVFrame *src, int offset[AV_NUM_DATA_POINTERS], int y, int type, int height)
 If non NULL, 'draw_horiz_band' is called by the libavcodec decoder to draw a horizontal band. More...
 
enum AVPixelFormat(* get_format )(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
 Callback to negotiate the pixel format. More...
 
int max_b_frames
 maximum number of B-frames between non-B-frames Note: The output will be delayed by max_b_frames+1 relative to the input. More...
 
float b_quant_factor
 qscale factor between IP and B-frames If > 0 then the last P-frame quantizer will be used (q= lastp_q*factor+offset). More...
 
float b_quant_offset
 qscale offset between IP and B-frames More...
 
float i_quant_factor
 qscale factor between P- and I-frames If > 0 then the last P-frame quantizer will be used (q = lastp_q * factor + offset). More...
 
float i_quant_offset
 qscale offset between P and I-frames More...
 
float lumi_masking
 luminance masking (0-> disabled) More...
 
float temporal_cplx_masking
 temporary complexity masking (0-> disabled) More...
 
float spatial_cplx_masking
 spatial complexity masking (0-> disabled) More...
 
float p_masking
 p block masking (0-> disabled) More...
 
float dark_masking
 darkness masking (0-> disabled) More...
 
int nsse_weight
 noise vs. More...
 
int me_cmp
 motion estimation comparison function More...
 
int me_sub_cmp
 subpixel motion estimation comparison function More...
 
int mb_cmp
 macroblock comparison function (not supported yet) More...
 
int ildct_cmp
 interlaced DCT comparison function More...
 
int dia_size
 ME diamond size & shape. More...
 
int last_predictor_count
 amount of previous MV predictors (2a+1 x 2a+1 square) More...
 
int me_pre_cmp
 motion estimation prepass comparison function More...
 
int pre_dia_size
 ME prepass diamond size & shape. More...
 
int me_subpel_quality
 subpel ME quality More...
 
int me_range
 maximum motion estimation search range in subpel units If 0 then no limit. More...
 
int mb_decision
 macroblock decision mode More...
 
uint16_t * intra_matrix
 custom intra quantization matrix Must be allocated with the av_malloc() family of functions, and will be freed in avcodec_free_context(). More...
 
uint16_t * inter_matrix
 custom inter quantization matrix Must be allocated with the av_malloc() family of functions, and will be freed in avcodec_free_context(). More...
 
uint16_t * chroma_intra_matrix
 custom intra quantization matrix More...
 
int intra_dc_precision
 precision of the intra DC coefficient - 8 More...
 
int mb_lmin
 minimum MB Lagrange multiplier More...
 
int mb_lmax
 maximum MB Lagrange multiplier More...
 
int bidir_refine
 
int keyint_min
 minimum GOP size More...
 
int gop_size
 the number of pictures in a group of pictures, or 0 for intra_only More...
 
int mv0_threshold
 Note: Value depends upon the compare function used for fullpel ME. More...
 
int slices
 Number of slices. More...
 
int sample_rate
 samples per second More...
 
enum AVSampleFormat sample_fmt
 audio sample format More...
 
AVChannelLayout ch_layout
 Audio channel layout. More...
 
int frame_size
 Number of samples per channel in an audio frame. More...
 
int block_align
 number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs. More...
 
int cutoff
 Audio cutoff bandwidth (0 means "automatic") More...
 
enum AVAudioServiceType audio_service_type
 Type of service that the audio stream conveys. More...
 
enum AVSampleFormat request_sample_fmt
 desired sample format More...
 
int initial_padding
 Audio only. More...
 
int trailing_padding
 Audio only. More...
 
int seek_preroll
 Number of samples to skip after a discontinuity. More...
 
int(* get_buffer2 )(struct AVCodecContext *s, AVFrame *frame, int flags)
 This callback is called at the beginning of each frame to get data buffer(s) for it. More...
 
int bit_rate_tolerance
 number of bits the bitstream is allowed to diverge from the reference. More...
 
int global_quality
 Global quality for codecs which cannot change it per frame. More...
 
int compression_level
 
float qcompress
 amount of qscale change between easy & hard scenes (0.0-1.0) More...
 
float qblur
 amount of qscale smoothing over time (0.0-1.0) More...
 
int qmin
 minimum quantizer More...
 
int qmax
 maximum quantizer More...
 
int max_qdiff
 maximum quantizer difference between frames More...
 
int rc_buffer_size
 decoder bitstream buffer size More...
 
int rc_override_count
 ratecontrol override, see RcOverride More...
 
RcOverriderc_override
 
int64_t rc_max_rate
 maximum bitrate More...
 
int64_t rc_min_rate
 minimum bitrate More...
 
float rc_max_available_vbv_use
 Ratecontrol attempt to use, at maximum, of what can be used without an underflow. More...
 
float rc_min_vbv_overflow_use
 Ratecontrol attempt to use, at least, times the amount needed to prevent a vbv overflow. More...
 
int rc_initial_buffer_occupancy
 Number of bits which should be loaded into the rc buffer before decoding starts. More...
 
int trellis
 trellis RD quantization More...
 
char * stats_out
 pass1 encoding statistics output buffer More...
 
char * stats_in
 pass2 encoding statistics input buffer Concatenated stuff from stats_out of pass1 should be placed here. More...
 
int workaround_bugs
 Work around bugs in encoders which sometimes cannot be detected automatically. More...
 
int strict_std_compliance
 strictly follow the standard (MPEG-4, ...). More...
 
int error_concealment
 error concealment flags More...
 
int debug
 debug More...
 
int err_recognition
 Error recognition; may misdetect some more or less valid parts as errors. More...
 
const struct AVHWAccelhwaccel
 Hardware accelerator in use. More...
 
void * hwaccel_context
 Legacy hardware accelerator context. More...
 
AVBufferRefhw_frames_ctx
 A reference to the AVHWFramesContext describing the input (for encoding) or output (decoding) frames. More...
 
AVBufferRefhw_device_ctx
 A reference to the AVHWDeviceContext describing the device which will be used by a hardware encoder/decoder. More...
 
int hwaccel_flags
 Bit set of AV_HWACCEL_FLAG_* flags, which affect hardware accelerated decoding (if active). More...
 
int extra_hw_frames
 Video decoding only. More...
 
uint64_t error [AV_NUM_DATA_POINTERS]
 error More...
 
int dct_algo
 DCT algorithm, see FF_DCT_* below. More...
 
int idct_algo
 IDCT algorithm, see FF_IDCT_* below. More...
 
int bits_per_coded_sample
 bits per sample/pixel from the demuxer (needed for huffyuv). More...
 
int bits_per_raw_sample
 Bits per sample/pixel of internal libavcodec pixel/sample format. More...
 
int thread_count
 thread count is used to decide how many independent tasks should be passed to execute() More...
 
int thread_type
 Which multithreading methods to use. More...
 
int active_thread_type
 Which multithreading methods are in use by the codec. More...
 
int(* execute )(struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg), void *arg2, int *ret, int count, int size)
 The codec may call this to execute several independent things. More...
 
int(* execute2 )(struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg, int jobnr, int threadnr), void *arg2, int *ret, int count)
 The codec may call this to execute several independent things. More...
 
int profile
 profile More...
 
int level
 Encoding level descriptor. More...
 
unsigned properties
 Properties of the stream that gets decoded. More...
 
enum AVDiscard skip_loop_filter
 Skip loop filtering for selected frames. More...
 
enum AVDiscard skip_idct
 Skip IDCT/dequantization for selected frames. More...
 
enum AVDiscard skip_frame
 Skip decoding for selected frames. More...
 
int skip_alpha
 Skip processing alpha if supported by codec. More...
 
int skip_top
 Number of macroblock rows at the top which are skipped. More...
 
int skip_bottom
 Number of macroblock rows at the bottom which are skipped. More...
 
int lowres
 low resolution decoding, 1-> 1/2 size, 2->1/4 size More...
 
const struct AVCodecDescriptorcodec_descriptor
 AVCodecDescriptor. More...
 
char * sub_charenc
 Character encoding of the input subtitles file. More...
 
int sub_charenc_mode
 Subtitles character encoding mode. More...
 
int subtitle_header_size
 Header containing style information for text subtitles. More...
 
uint8_t * subtitle_header
 
uint8_t * dump_separator
 dump format separator. More...
 
char * codec_whitelist
 ',' separated list of allowed decoders. More...
 
AVPacketSideDatacoded_side_data
 Additional data associated with the entire coded stream. More...
 
int nb_coded_side_data
 
int export_side_data
 Bit set of AV_CODEC_EXPORT_DATA_* flags, which affects the kind of metadata exported in frame, packet, or coded stream side data by decoders and encoders. More...
 
int64_t max_pixels
 The number of pixels per image to maximally accept. More...
 
int apply_cropping
 Video decoding only. More...
 
int discard_damaged_percentage
 The percentage of damaged samples to discard a frame. More...
 
int64_t max_samples
 The number of samples per frame to maximally accept. More...
 
int(* get_encode_buffer )(struct AVCodecContext *s, AVPacket *pkt, int flags)
 This callback is called at the beginning of each packet to get a data buffer for it. More...
 
int64_t frame_num
 Frame counter, set by libavcodec. More...
 
int * side_data_prefer_packet
 Decoding only. More...
 
unsigned nb_side_data_prefer_packet
 Number of entries in side_data_prefer_packet. More...
 
AVFrameSideData ** decoded_side_data
 Array containing static side data, such as HDR10 CLL / MDCV structures. More...
 
int nb_decoded_side_data
 

Detailed Description

main external API structure.

New fields can be added to the end with minor version bumps. Removal, reordering and changes to existing fields require a major version bump. You can use AVOptions (av_opt* / av_set/get*()) to access these fields from user applications. The name string for AVOptions options matches the associated command line parameter name and can be found in libavcodec/options_table.h The AVOption/command line parameter names differ in some cases from the C structure field names for historic reasons or brevity. sizeof(AVCodecContext) must not be used outside libav*.

Examples
decode_audio.c, decode_filter_audio.c, decode_filter_video.c, decode_video.c, demux_decode.c, encode_audio.c, encode_video.c, extract_mvs.c, hw_decode.c, mux.c, qsv_decode.c, qsv_transcode.c, transcode.c, transcode_aac.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 451 of file avcodec.h.

Field Documentation

◆ av_class

const AVClass* AVCodecContext::av_class

information on struct for av_log

  • set by avcodec_alloc_context3

Definition at line 456 of file avcodec.h.

◆ log_level_offset

int AVCodecContext::log_level_offset

Definition at line 457 of file avcodec.h.

◆ codec_type

enum AVMediaType AVCodecContext::codec_type

◆ codec

const struct AVCodec* AVCodecContext::codec
Examples
demux_decode.c, and transcode.c.

Definition at line 460 of file avcodec.h.

Referenced by a64multi_encode_init(), adpcm_compress_trellis(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), amf_copy_buffer(), amf_init_encoder(), apply_param_change(), avcodec_decode_subtitle2(), avcodec_default_get_format(), avcodec_encode_subtitle(), avcodec_flush_buffers(), avcodec_get_hw_frames_parameters(), avcodec_get_supported_config(), avcodec_open2(), avcodec_receive_frame(), avcodec_receive_packet(), avcodec_send_frame(), avcodec_send_packet(), avcodec_string(), avformat_find_stream_info(), binkaudio_receive_frame(), choose_pixel_fmt(), codec_close(), compute_dar(), config_input(), context_to_name(), cuvid_decode_init(), cuvid_test_capabilities(), dec_thread_set_name(), decode_bsfs_init(), decode_get_packet(), decode_init(), decode_packet(), decode_receive_frame_internal(), decode_simple_internal(), dpcm_decode_frame(), dpcm_decode_init(), dump_stream_format(), eightsvx_decode_init(), enc_open(), encode_init(), encode_preinit_audio(), encode_preinit_video(), encode_receive_packet_internal(), encode_send_frame_internal(), encode_simple_internal(), ff_amf_receive_packet(), ff_aptx_init(), ff_codec_close(), ff_decode_frame_props(), ff_decode_preinit(), ff_decode_receive_frame(), ff_decode_receive_frame_internal(), ff_encode_alloc_frame(), ff_encode_encode_cb(), ff_encode_preinit(), ff_frame_thread_encoder_init(), ff_frame_thread_free(), ff_frame_thread_init(), ff_get_buffer(), ff_get_format(), ff_h263_decode_init(), ff_hw_base_encode_set_output_property(), ff_mjpeg_decode_init(), ff_mpv_decode_init(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_slice_thread_init(), ff_thread_can_start_frame(), ff_wma_init(), fill_frame_props(), frame_encode(), frame_worker_thread(), get_buffer(), get_category(), get_nb_samples(), hw_device_setup_for_encode(), init_prec(), mf_init_encoder(), multiview_setup(), new_stream_video(), nvdec_mpeg4_start_frame(), nvenc_check_capabilities(), nvenc_codec_specific_pic_params(), nvenc_setup_codec_config(), nvenc_setup_device(), nvenc_setup_encoder(), omx_component_init(), omx_encode_init(), ost_bind_filter(), pcm_decode_frame(), pcm_decode_init(), pcm_encode_frame(), pcm_encode_init(), prepare_sei_data_array(), sbc_encode_init(), set_constqp(), set_vbr(), show_stream(), siren_init(), submit_packet(), thread_get_buffer_internal(), thread_set_name(), try_decode_frame(), vaapi_mpeg4_start_frame(), validate_thread_parameters(), vdpau_mpeg4_start_frame(), and wma_decode_init().

◆ codec_id

enum AVCodecID AVCodecContext::codec_id
Examples
qsv_decode.c, and transcode.c.

Definition at line 461 of file avcodec.h.

Referenced by adpcm_flush(), alloc_frame(), alloc_picture(), amr_parse(), atrac3_decode_init(), atrac3p_decode_frame(), av_get_audio_frame_duration(), av_parser_parse2(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), avformat_find_stream_info(), check_motion(), commit_bitstream_and_slice_buffer(), cyuv_decode_frame(), d3d12va_vc1_decode_slice(), decode_frame(), decode_frame_common(), decode_idat_chunk(), decode_init(), decode_nal_units(), decode_packet(), determinable_frame_size(), do_subtitle_out(), dsd_channel(), dump_enc_cfg(), dump_video_param(), dump_video_vp9_param(), dxva2_vc1_decode_slice(), dxva_check_codec_compatibility(), dxva_get_decoder_configuration(), enc_open(), encode_frame(), encode_init(), encode_preinit_audio(), extract_extradata_support(), ff_aac_ac3_parse(), ff_AMediaCodecProfile_getProfileFromAVCodecContext(), ff_dxva2_common_frame_params(), ff_dxva2_vc1_fill_slice(), ff_frame_thread_encoder_init(), ff_h263_decode_frame(), ff_idctdsp_init_x86(), ff_me_init(), ff_mjpeg_decode_frame_from_buf(), ff_mjpeg_decode_init(), ff_mjpeg_encode_picture_header(), ff_mjpeg_init_hvsample(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_nvdec_decode_init(), ff_nvdec_frame_params(), ff_pnm_decode_header(), ff_print_debug_info2(), ff_psy_preprocess_init(), ff_qsv_enc_close(), ff_qsv_enc_init(), ff_qsv_encode(), ff_slice_thread_init(), ff_vc1_parse_frame_header(), ff_vdpau_common_init(), ff_vk_decode_init(), ff_vulkan_encode_init(), ffat_create_decoder(), ffat_decode(), ffat_get_magic_cookie(), ffat_init_encoder(), ffat_update_ctx(), ffat_usable_extradata(), ffmmal_init_decoder(), g729_parse(), get_cm_codec_type(), get_rate(), gsm_decode_frame(), gsm_init(), gsm_parse(), h263_get_format(), has_codec_parameters(), hw_base_encode_pick_next(), imc_decode_block(), imc_decode_init(), init_profile(), init_video_param(), init_video_param_jpeg(), ivi_decode_blocks(), libgsm_decode_init(), libgsm_encode_frame(), libgsm_encode_init(), libgsm_flush(), LLVMFuzzerTestOneInput(), mace_decode_frame(), main(), mediacodec_decode_init(), mediacodec_init(), mediacodec_init_bsf(), mediacodec_receive(), mf_enca_output_type_get(), mf_encv_output_adjust(), mf_init_encoder(), mpeg_decode_postinit(), mpeg_get_pixelformat(), mpegaudio_parse(), mpegvideo_extract_headers(), mvc_decode_frame(), mvc_decode_init(), new_stream_subtitle(), open_output_file(), ost_bind_filter(), parse(), pcm_decode_frame(), pcm_decode_init(), png_write_image_data(), pnm_encode_frame(), qsv_decode(), qsv_decode_header(), qsv_decode_init(), qsv_retrieve_enc_params(), read_access_unit(), read_frame_internal(), read_major_sync(), read_matrix_params(), read_restart_header(), rkmpp_get_codingtype(), rkmpp_init_decoder(), rv34_parse(), select_rc_mode(), set_pix_fmt(), set_roi_encode_ctrl(), set_vpx_defaults(), sp5x_decode_frame(), stream_component_open(), try_decode_frame(), update_input_arguments(), update_low_delay_brc(), update_max_frame_size(), update_min_max_qp(), update_parameters(), update_pic_timing_sei(), update_qp(), update_rir(), update_stream_avctx(), v4l2_decode_init(), v4l2_encode_init(), v4l2_prepare_encoder(), vaapi_decode_make_config(), vaapi_vc1_decode_slice(), vc1_decode_frame(), vc1_decode_init(), vc1_get_format(), vp3_decode_init(), vp6_decode_init(), vpx_decode(), vpx_encode(), vpx_free(), vpx_init(), vtenc_configure_encoder(), vtenc_create_encoder(), vtenc_init(), vulkan_decode_get_profile(), vulkan_setup_profile(), X264_init(), and xma_decode_init().

◆ codec_tag

unsigned int AVCodecContext::codec_tag

fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').

This is used to work around some encoder bugs. A demuxer should set this to what is stored in the field used to identify the codec. If there are multiple such fields in a container then the demuxer should choose the one which maximizes the information about the used codec. If the codec tag field in a container is larger than 32 bits then the demuxer should remap the longer ID to 32 bits with a table or other structure. Alternatively a new extra_codec_tag + size could be added but for this a clear advantage must be demonstrated first.

  • encoding: Set by user, if not then the default based on codec_id will be used.
  • decoding: Set by user, will be converted to uppercase by libavcodec during init.

Definition at line 476 of file avcodec.h.

Referenced by a64multi_encode_init(), aasc_decode_frame(), av_get_audio_frame_duration(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), avformat_find_stream_info(), bitpacked_init_decoder(), clv_decode_frame(), decode_chunks(), decode_frame(), decode_frame_common(), decode_init(), dnxhd_encode_init(), dpcm_decode_frame(), dpcm_decode_init(), encode_init(), extract_header(), ff_dv_frame_profile(), ff_h263_decode_init(), ff_h264_decode_seq_parameter_set(), ff_mjpeg_decode_frame_from_buf(), ff_mjpeg_decode_init(), ff_mpv_decode_init(), hap_init(), hap_parse_frame_header(), libspeex_decode_init(), magy_encode_init(), mpeg_decode_init(), on2avc_decode_init(), parse_packet_header(), prores_encode_init(), raw_encode(), raw_encode_init(), raw_init_decoder(), rscc_init(), speedhq_decode_init(), speex_decode_init(), utvideo_encode_init(), vp3_decode_init(), vtenc_configure_encoder(), wavarc_decode(), wavarc_init(), xsub_encoder_init(), xvid_encode_init(), zero12v_decode_frame(), and zero12v_decode_init().

◆ priv_data

void* AVCodecContext::priv_data
Examples
qsv_transcode.c.

Definition at line 478 of file avcodec.h.

Referenced by a64multi_close_encoder(), a64multi_encode_frame(), a64multi_encode_init(), aac_decode_er_frame(), aac_decode_frame(), aac_decode_frame_int(), aac_encode_close(), aac_encode_end(), aac_encode_flush(), aac_encode_frame(), aac_encode_init(), aasc_decode_end(), aasc_decode_frame(), aasc_decode_init(), ac3_decode_end(), ac3_decode_frame(), ac3_decode_init(), ac3_downmix(), ac3_fixed_encode_init(), add_coefficients(), add_color_attr(), add_icc_profile_size(), add_pframe_coefficients(), adpcm_compress_trellis(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_close(), adpcm_encode_init(), adpcm_flush(), adpcm_swf_decode(), adx_decode_flush(), adx_decode_frame(), adx_decode_init(), adx_encode_frame(), adx_encode_header(), adx_encode_init(), aic_decode_close(), aic_decode_frame(), aic_decode_init(), al_decode_frame(), alac_decode_close(), alac_decode_frame(), alac_decode_init(), alac_encode_close(), alac_encode_frame(), alac_encode_init(), alloc_buffers(), allocate_buffers(), allocate_tables(), amf_copy_buffer(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), amf_init_context(), amf_init_encoder(), amf_load_library(), amr_wb_encode_close(), amr_wb_encode_frame(), amr_wb_encode_init(), amrnb_decode_frame(), amrnb_decode_init(), amrwb_decode_frame(), amrwb_decode_init(), aom_decode(), aom_encode(), aom_free(), aom_init(), apac_close(), apac_decode(), apac_init(), ape_decode_close(), ape_decode_frame(), ape_decode_init(), ape_flush(), apng_encode_frame(), append_to_cached_buf(), apply_window_and_mdct(), aptx_close(), aptx_decode_frame(), aptx_encode_frame(), aptx_encode_init(), aribcaption_close(), aribcaption_decode(), aribcaption_flush(), aribcaption_init(), atrac1_decode_end(), atrac1_decode_frame(), atrac1_decode_init(), atrac3_decode_close(), atrac3_decode_frame(), atrac3_decode_init(), atrac3p_decode_close(), atrac3p_decode_frame(), atrac3p_decode_init(), atrac9_decode_close(), atrac9_decode_flush(), atrac9_decode_frame(), atrac9_decode_init(), av1_decode_flush(), av1_decode_free(), av1_decode_init(), av1_frame_alloc(), av1_receive_frame(), av1_receive_frame_internal(), avcodec_open2(), avpriv_h264_has_num_reorder_frames(), avs_decode_end(), avs_decode_frame(), avs_decode_init(), base_unit_to_vk(), bethsoftvid_decode_end(), bethsoftvid_decode_frame(), bethsoftvid_decode_init(), bfi_decode_close(), bfi_decode_frame(), bfi_decode_init(), binkaudio_receive_frame(), bitpacked_decode(), bitpacked_init_decoder(), bonk_close(), bonk_decode(), bonk_init(), build_color_map(), build_huffman(), build_luma_lut(), build_vlc(), cavs_decode_frame(), cavs_flush(), cdg_decode_end(), cdg_decode_flush(), cdg_decode_frame(), cdg_decode_init(), cdtoons_decode_end(), cdtoons_decode_frame(), cdtoons_decode_init(), cdtoons_flush(), cdtoons_render_sprite(), cdxl_decode_end(), cdxl_decode_frame(), cdxl_decode_init(), cfhd_close(), cfhd_decode(), cfhd_encode_close(), cfhd_encode_frame(), cfhd_encode_init(), cfhd_init(), check_rate_control_support(), choose_tiling(), cinaudio_decode_frame(), cinaudio_decode_init(), cinepak_decode_end(), cinepak_decode_frame(), cinepak_decode_init(), cinepak_encode_end(), cinepak_encode_frame(), cinepak_encode_init(), cinvideo_decode_end(), cinvideo_decode_frame(), cinvideo_decode_init(), clear_plane(), cllc_decode_close(), cllc_decode_frame(), cllc_decode_init(), close_decoder(), clv_decode_end(), clv_decode_frame(), clv_decode_init(), cmap_read_palette(), cmv_decode_end(), cmv_decode_frame(), cmv_decode_init(), cng_decode_close(), cng_decode_flush(), cng_decode_frame(), cng_decode_init(), cng_encode_close(), cng_encode_frame(), cng_encode_init(), codec_reinit(), codecctl_imgp(), codecctl_int(), commit_bitstream_and_slice_buffer(), compress_texture(), config_enc_params(), cook_decode_close(), cook_decode_frame(), cook_decode_init(), copy_frame_to_buffer(), copy_param_sets(), copy_plane(), copy_processed_frame(), count_colors(), count_plane_slice(), cpia_decode_end(), cpia_decode_frame(), cpia_decode_init(), create_cv_pixel_buffer(), create_session_params(), cri_decode_close(), cri_decode_frame(), cri_decode_init(), cuvid_decode_end(), cuvid_decode_init(), cuvid_decode_packet(), cuvid_flush(), cuvid_handle_picture_decode(), cuvid_handle_picture_display(), cuvid_handle_video_sequence(), cuvid_is_buffer_full(), cuvid_output_frame(), cuvid_test_capabilities(), d3d12va_av1_decode_slice(), d3d12va_av1_end_frame(), d3d12va_av1_start_frame(), d3d12va_create_encoder(), d3d12va_create_encoder_heap(), d3d12va_discard_command_allocator(), d3d12va_encode_alloc_output_buffer(), d3d12va_encode_create_command_objects(), d3d12va_encode_create_metadata_buffers(), d3d12va_encode_create_recon_frames(), d3d12va_encode_free(), d3d12va_encode_free_rc_params(), d3d12va_encode_hevc_close(), d3d12va_encode_hevc_configure(), d3d12va_encode_hevc_get_encoder_caps(), d3d12va_encode_hevc_init(), d3d12va_encode_hevc_init_sequence_params(), d3d12va_encode_hevc_set_level(), d3d12va_encode_hevc_write_access_unit(), d3d12va_encode_hevc_write_sequence_header(), d3d12va_encode_init(), d3d12va_encode_init_gop_structure(), d3d12va_encode_init_rate_control(), d3d12va_encode_issue(), d3d12va_encode_output(), d3d12va_encode_prepare_output_buffers(), d3d12va_encode_set_profile(), d3d12va_encode_wait(), d3d12va_get_valid_command_allocator(), d3d12va_h264_decode_slice(), d3d12va_h264_end_frame(), d3d12va_h264_start_frame(), d3d12va_hevc_decode_slice(), d3d12va_hevc_end_frame(), d3d12va_hevc_start_frame(), d3d12va_mpeg2_decode_slice(), d3d12va_mpeg2_end_frame(), d3d12va_mpeg2_start_frame(), d3d12va_sync_with_gpu(), d3d12va_vc1_decode_slice(), d3d12va_vc1_end_frame(), d3d12va_vc1_start_frame(), d3d12va_vp9_decode_slice(), d3d12va_vp9_end_frame(), d3d12va_vp9_start_frame(), davs2_decode_frame(), davs2_dump_frames(), davs2_end(), davs2_flush(), davs2_init(), dcadec_close(), dcadec_decode_frame(), dcadec_flush(), dcadec_init(), dds_decode(), decode(), decode_ac_coeffs(), decode_aiff_header(), decode_alcd(), decode_argb(), decode_argbi(), decode_argx(), decode_argxi(), decode_avcf(), decode_aybr(), decode_aybri(), decode_block(), decode_blocks(), decode_byry(), decode_byryi(), decode_c82i(), decode_c82p(), decode_ca2i(), decode_ca2p(), decode_ca4i(), decode_ca4p(), decode_ch_samples(), decode_chunks(), decode_close(), decode_dcac(), decode_dlta(), decode_element(), decode_end(), decode_fint(), decode_flush(), decode_frame(), decode_frame_header(), decode_frame_lscr(), decode_hq_slice_row(), decode_huff(), decode_huffman2(), decode_init(), decode_inter(), decode_interframe_v4(), decode_interframe_v4a(), decode_intra(), decode_intra_block(), decode_kfrm(), decode_lowdelay_slice(), decode_macroblock(), decode_mad1(), decode_mad1_24(), decode_mb_row_no_filter(), decode_motion_vectors(), decode_mous(), decode_move(), decode_mpos(), decode_packet(), decode_pal8(), decode_palmapdata(), decode_picture(), decode_picture_header(), decode_plane(), decode_rgb(), decode_rgbi(), decode_rgbx(), decode_rgbxi(), decode_rle(), decode_samples(), decode_slice(), decode_slice_chroma(), decode_slice_interlaced(), decode_slice_luma(), decode_slice_progressive(), decode_slice_thread(), decode_slices(), decode_subband_arith(), decode_subband_golomb(), decode_tag(), decode_tiledata(), decode_tiles(), decode_wmv9(), decode_ybr(), decode_ybr10(), decode_ybr10i(), decode_ybri(), decode_ybyr(), decode_yry10(), decode_yry10i(), decode_zlib(), decoder_init(), decompress_2(), decompress_5(), decompress_68(), decompress_chunks_thread(), decompress_i(), decompress_i3(), decompress_p(), decompress_p3(), define_shared_code(), determine_bitrate(), dfa_decode_end(), dfa_decode_frame(), dfa_decode_init(), dirac_decode_data_unit(), dirac_decode_end(), dirac_decode_flush(), dirac_decode_frame(), dirac_decode_init(), display_end_segment(), dng_decode_jpeg(), dng_decode_tiles(), dnxhd_calc_bits_thread(), dnxhd_decode_close(), dnxhd_decode_frame(), dnxhd_decode_init(), dnxhd_decode_row(), dnxhd_encode_end(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_encode_thread(), dnxhd_mb_var_thread(), dnxhd_write_header(), do_decode(), dolby_e_close(), dolby_e_decode_frame(), dolby_e_flush(), dolby_e_init(), download_slices(), dpcm_decode_frame(), dpcm_decode_init(), dpcm_flush(), draw_char(), draw_cursor(), dsd_channel(), dss_sp_decode_frame(), dss_sp_decode_init(), dv_decode_video_segment(), dv_encode_video_segment(), dvbsub_close_decoder(), dvbsub_decode(), dvbsub_display_end_segment(), dvbsub_encode(), dvbsub_init_decoder(), dvbsub_parse_clut_segment(), dvbsub_parse_display_definition_segment(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvdsub_decode(), dvdsub_flush(), dvdsub_init(), dvdsub_parse_extradata(), dvvideo_decode_frame(), dvvideo_decode_init(), dvvideo_encode_init(), dxv_close(), dxv_compress_dxt1(), dxv_decode(), dxv_decompress_dxt1(), dxv_decompress_dxt5(), dxv_decompress_lzf(), dxv_decompress_raw(), dxv_decompress_ycg6(), dxv_decompress_yg10(), dxv_encode(), dxv_init(), dxva2_av1_decode_slice(), dxva2_av1_end_frame(), dxva2_av1_start_frame(), dxva2_h264_decode_slice(), dxva2_h264_end_frame(), dxva2_h264_start_frame(), dxva2_hevc_decode_slice(), dxva2_hevc_end_frame(), dxva2_hevc_start_frame(), dxva2_mpeg2_decode_slice(), dxva2_mpeg2_end_frame(), dxva2_mpeg2_start_frame(), dxva2_vc1_decode_slice(), dxva2_vc1_end_frame(), dxva2_vc1_start_frame(), dxva2_vp9_decode_slice(), dxva2_vp9_end_frame(), dxva2_vp9_start_frame(), dynamic_set_parameter(), eac3_encode_init(), eb_enc_close(), eb_enc_init(), eb_receive_packet(), eb_send_frame(), eightsvx_decode_close(), eightsvx_decode_frame(), eightsvx_decode_init(), encode(), encode_apng(), encode_close(), encode_determine_slices(), encode_dvd_subtitles(), encode_end(), encode_frame(), encode_gbrp10(), encode_gbrp12(), encode_headers(), encode_init(), encode_init_internal(), encode_jpegls_close(), encode_jpegls_init(), encode_picture_ls(), encode_plane(), encode_png(), encode_rgb48_10bit(), encode_sample_description(), encode_slice(), encode_slice_data(), encode_superframe(), encode_table(), erase_line(), erase_screen(), escape124_decode_close(), escape124_decode_frame(), escape124_decode_init(), escape130_decode_close(), escape130_decode_frame(), escape130_decode_init(), evrc_decode_frame(), evrc_decode_init(), execute_code(), export_film_grain(), export_itut_t35(), export_metadata(), extract_header(), fastaudio_close(), fastaudio_decode(), fastaudio_init(), fdk_aac_decode_close(), fdk_aac_decode_flush(), fdk_aac_decode_frame(), fdk_aac_decode_init(), ff_aac_decode_init(), ff_aac_decode_init_fixed(), ff_aac_decode_init_float(), ff_ac3_encode_close(), ff_ac3_encode_frame(), ff_ac3_encode_init(), ff_ac3_float_encode_init(), ff_amf_encode_close(), ff_amf_receive_packet(), ff_aptx_init(), ff_ass_decoder_flush(), ff_asv_common_init(), ff_cavs_end(), ff_cavs_init(), ff_codec_close(), ff_d3d12va_encode_close(), ff_d3d12va_encode_init(), ff_d3d12va_encode_receive_packet(), ff_dca_check_crc(), ff_dca_core_filter_frame(), ff_dca_core_parse_exss(), ff_dca_set_channel_layout(), ff_dca_xll_filter_frame(), ff_dxva2_av1_fill_picture_parameters(), ff_dxva2_h264_fill_picture_parameters(), ff_dxva2_h264_fill_scaling_lists(), ff_dxva2_hevc_fill_picture_parameters(), ff_dxva2_hevc_fill_scaling_lists(), ff_dxva2_mpeg2_fill_picture_parameters(), ff_dxva2_mpeg2_fill_quantization_matrices(), ff_dxva2_mpeg2_fill_slice(), ff_dxva2_vc1_fill_picture_parameters(), ff_dxva2_vc1_fill_slice(), ff_dxva2_vp9_fill_picture_parameters(), ff_ffv1_close(), ff_ffv1_common_init(), ff_ffv1_encode_buffer_size(), ff_ffv1_encode_init(), ff_ffv1_encode_setup_plane_info(), ff_ffv1_write_extradata(), ff_frame_thread_encoder_init(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_ivi_decode_close(), ff_ivi_decode_frame(), ff_libwebp_encode_init_common(), ff_mjpeg_decode_end(), ff_mjpeg_decode_frame_from_buf(), ff_mjpeg_decode_init(), ff_mpeg4_frame_end(), ff_mpeg4_workaround_bugs(), ff_mpeg_flush(), ff_mpv_decode_close(), ff_mpv_encode_end(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_msmpeg4_decode_init(), ff_nvenc_encode_close(), ff_nvenc_encode_flush(), ff_nvenc_encode_init(), ff_nvenc_receive_packet(), ff_rv34_decode_end(), ff_rv34_decode_frame(), ff_rv34_decode_init(), ff_snow_common_init(), ff_snow_common_init_after_header(), ff_snow_release_buffer(), ff_thread_sync_ref(), ff_twinvq_decode_close(), ff_twinvq_decode_frame(), ff_twinvq_decode_init(), ff_vaapi_encode_close(), ff_vaapi_encode_init(), ff_vaapi_encode_receive_packet(), ff_vaapi_parse_hevc_rext_scc_profile(), ff_vc1_decode_init(), ff_videotoolbox_av1c_extradata_create(), ff_videotoolbox_avcc_extradata_create(), ff_videotoolbox_hvcc_extradata_create(), ff_videotoolbox_vpcc_extradata_create(), ff_vp56_decode_frame(), ff_vp56_decode_mbs(), ff_vp9_loopfilter_sb(), ff_vulkan_encode_receive_packet(), ff_wma_end(), ff_wma_init(), ffat_close_decoder(), ffat_close_encoder(), ffat_copy_samples(), ffat_create_decoder(), ffat_decode(), ffat_decode_callback(), ffat_decode_flush(), ffat_encode(), ffat_encode_callback(), ffat_encode_flush(), ffat_get_magic_cookie(), ffat_init_decoder(), ffat_init_encoder(), ffat_set_extradata(), ffat_update_ctx(), ffat_usable_extradata(), ffmal_copy_frame(), ffmal_update_format(), ffmmal_add_packet(), ffmmal_close_decoder(), ffmmal_fill_input_port(), ffmmal_fill_output_port(), ffmmal_flush(), ffmmal_init_decoder(), ffmmal_read_frame(), ffmmal_receive_frame(), ffmmal_stop_decoder(), ffv1_decode_close(), fic_decode_close(), fic_decode_frame(), fic_decode_init(), fic_decode_slice(), fic_draw_cursor(), fill_slice_long(), fill_tile4(), fill_tileX(), filter_frame_fixed(), filter_mb_row(), find_quant_thread(), find_slice_quant(), finish_frame(), fits_decode_frame(), flac_decode_close(), flac_decode_frame(), flac_decode_init(), flac_encode_close(), flac_encode_frame(), flac_encode_init(), flashsv2_encode_end(), flashsv2_encode_frame(), flashsv2_encode_init(), flashsv_decode_block(), flashsv_decode_end(), flashsv_decode_frame(), flashsv_decode_init(), flashsv_encode_end(), flashsv_encode_frame(), flashsv_encode_init(), flic_decode_end(), flic_decode_frame_15_16BPP(), flic_decode_frame_1BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), flic_decode_init(), flush(), flush_cache(), flush_decoder(), frame_configure_elements(), frame_data_submit(), free_buffers(), free_tables(), ftr_close(), ftr_decode_frame(), ftr_flush(), ftr_init(), g2m_decode_end(), g2m_decode_frame(), g2m_decode_init(), g722_decode_frame(), g722_decode_init(), g722_encode_close(), g722_encode_init(), g723_1_decode_frame(), g723_1_decode_init(), g723_1_encode_frame(), g723_1_encode_init(), gdv_decode_close(), gdv_decode_frame(), gdv_decode_init(), gem_close(), gem_decode_frame(), get_buffer(), get_conf(), get_current_frame(), get_cv_pixel_info(), get_length_code_size(), get_nb_samples(), get_packet(), get_params_size(), get_pixel_format(), get_prediction(), get_profile_font_size(), get_stats(), get_stream_info(), get_supported_rgb_buffer_fmt(), get_tiles_info(), get_vt_h264_profile_level(), get_vt_hevc_profile_level(), gif_crop_opaque(), gif_crop_translucent(), gif_decode_close(), gif_decode_frame(), gif_decode_init(), gif_encode_close(), gif_encode_frame(), gif_encode_init(), gif_image_write_image(), gsm_decode_block(), gsm_flush(), h261_decode_frame(), h261_decode_init(), h263_get_format(), h264_decode_end(), h264_decode_flush(), h264_decode_frame(), h264_decode_init(), hap_close(), hap_compress_frame(), hap_decode(), hap_encode(), hap_init(), hap_parse_frame_header(), hcom_close(), hcom_decode(), hcom_init(), hdr_encode_close(), hdr_encode_frame(), hdr_encode_init(), hevc_decode_flush(), hevc_decode_free(), hevc_decode_init(), hevc_init_context(), hevc_receive_frame(), hnm_decode_end(), hnm_decode_frame(), hnm_decode_init(), hnm_update_palette(), hq_hqa_decode_frame(), hq_hqa_decode_init(), hqx_decode_close(), hqx_decode_frame(), hqx_decode_init(), hscroll(), huff_build(), idcin_decode_frame(), idcin_decode_init(), ilbc_decode_frame(), ilbc_decode_init(), ilbc_encode_frame(), ilbc_encode_init(), imc_decode_close(), imc_decode_frame(), imc_decode_init(), imm5_close(), imm5_decode_frame(), imm5_flush(), imm5_init(), imx_decode_close(), imx_decode_flush(), imx_decode_frame(), imx_decode_init(), init(), init_base_units(), init_crc_table_data(), init_decoder(), init_dsp(), init_enc_options(), init_encode_shader(), init_flush(), init_frames(), init_hca(), init_idct(), init_indirect(), init_pic_params(), init_pic_rc(), init_profile(), init_quant_table_data(), init_rct_shader(), init_reset_shader(), init_sequence_headers(), init_setup_shader(), init_state_transition_data(), init_thread(), input_callback(), ipu_decode_frame(), ipu_decode_init(), ipvideo_decode_end(), ipvideo_decode_frame(), ipvideo_decode_init(), ir2_decode_end(), ir2_decode_frame(), ir2_decode_init(), is_image_translucent(), j2kenc_destroy(), j2kenc_init(), jacosub_decode_frame(), jpeg2000_decode_frame(), jpeg2000_decode_init(), jpeg2000_decode_tile(), lag_decode_frame(), lag_decode_init(), latm_decode_frame(), latm_decode_init(), lead_decode_end(), lead_decode_frame(), lead_decode_init(), libaribb24_close(), libaribb24_decode(), libaribb24_flush(), libaribb24_generate_ass_header(), libaribb24_handle_regions(), libaribb24_init(), libcodec2_close(), libcodec2_decode(), libcodec2_encode(), libcodec2_init_common(), libcodec2_init_encoder(), libgsm_decode_close(), libgsm_decode_frame(), libgsm_decode_init(), libgsm_encode_close(), libgsm_encode_frame(), libgsm_encode_init(), libgsm_flush(), libjxl_color_encoding_event(), libjxl_decode_close(), libjxl_decode_init(), libjxl_encode_close(), libjxl_encode_frame(), libjxl_encode_init(), libjxl_get_icc(), libjxl_init_jxl_decoder(), libjxl_init_jxl_encoder(), libjxl_receive_frame(), libkvazaar_close(), libkvazaar_encode(), libkvazaar_init(), liblc3_decode(), liblc3_decode_close(), liblc3_decode_init(), liblc3_encode(), liblc3_encode_close(), liblc3_encode_init(), libopenjpeg_encode_frame(), libopenjpeg_encode_init(), libopus_decode(), libopus_decode_close(), libopus_decode_init(), libopus_encode(), libopus_encode_close(), libopus_encode_init(), libopus_flush(), librav1e_encode_close(), librav1e_encode_init(), librav1e_receive_packet(), librsvg_decode_frame(), libshine_encode_close(), libshine_encode_frame(), libshine_encode_init(), libspeex_decode_close(), libspeex_decode_flush(), libspeex_decode_frame(), libspeex_decode_init(), libuavs3d_decode_frame(), libuavs3d_end(), libuavs3d_flush(), libuavs3d_init(), libvorbis_encode_close(), libvorbis_encode_frame(), libvorbis_encode_init(), libvorbis_setup(), libwebp_anim_encode_close(), libwebp_anim_encode_frame(), libwebp_anim_encode_init(), libwebp_encode_close(), libwebp_encode_frame(), libx265_encode_close(), libx265_encode_frame(), libx265_encode_init(), libx265_param_parse_float(), libx265_param_parse_int(), libxevd_close(), libxevd_init(), libxevd_receive_frame(), libxeve_close(), libxeve_encode(), libxeve_init(), ljpeg_encode_bgr(), ljpeg_encode_close(), ljpeg_encode_frame(), ljpeg_encode_init(), ljpeg_encode_yuv(), log_encoder_error(), lscr_decode_close(), lscr_decode_flush(), lscr_decode_init(), mace_decode_frame(), magy_decode_end(), magy_decode_frame(), magy_decode_init(), magy_decode_slice(), magy_decode_slice10(), magy_encode_close(), magy_encode_frame(), magy_encode_init(), mediacodec_close(), mediacodec_decode_close(), mediacodec_decode_flush(), mediacodec_decode_init(), mediacodec_dump_format(), mediacodec_encode(), mediacodec_flush(), mediacodec_generate_extradata(), mediacodec_get_input_index(), mediacodec_get_output_index(), mediacodec_init(), mediacodec_init_async_state(), mediacodec_init_bsf(), mediacodec_output_format(), mediacodec_receive(), mediacodec_receive_dummy_pkt(), mediacodec_receive_frame(), mediacodec_send(), mediacodec_send_dummy_frame(), mediacodec_uninit_async_state(), metasound_decode_init(), mf_a_avframe_to_sample(), mf_avframe_to_sample(), mf_choose_input_type(), mf_choose_output_type(), mf_close(), mf_enca_output_score(), mf_enca_output_type_get(), mf_encv_output_adjust(), mf_encv_output_score(), mf_init_encoder(), mf_load_library(), mf_output_type_get(), mf_receive_packet(), mf_receive_sample(), mf_sample_to_avpacket(), mf_send_sample(), mf_setup_context(), mf_unlock_async(), mf_v_avframe_to_sample(), mf_wait_events(), microdvd_decode_frame(), mimic_decode_end(), mimic_decode_frame(), mimic_decode_init(), misc4_decode(), misc4_init(), mjpeg_encode_close(), mjpegb_decode_frame(), mlp_decode_flush(), mlp_decode_init(), mlp_encode_close(), mlp_encode_frame(), mlp_encode_init(), mm_decode_end(), mm_decode_frame(), mm_decode_init(), mobiclip_close(), mobiclip_decode(), mobiclip_flush(), mobiclip_init(), mov_text_decode_close(), mov_text_decode_frame(), mov_text_encode_close(), mov_text_encode_frame(), mov_text_encode_init(), mov_text_flush(), mov_text_init(), mp3lame_encode_close(), mp3lame_encode_frame(), mp3lame_encode_init(), mp_decode_end(), mp_decode_frame(), mp_decode_init(), MPA_encode_frame(), MPA_encode_init(), mpc7_decode_close(), mpc7_decode_flush(), mpc7_decode_frame(), mpc7_decode_init(), mpc8_decode_flush(), mpc8_decode_frame(), mpc8_decode_init(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg_decode_a53_cc(), mpeg_decode_end(), mpeg_decode_frame(), mpeg_decode_gop(), mpeg_decode_init(), mpeg_decode_postinit(), mpeg_decode_user_data(), mpeg_get_pixelformat(), mpeg_set_cc_format(), mpl2_decode_frame(), msrle_decode_end(), msrle_decode_flush(), msrle_decode_frame(), msrle_decode_init(), msrle_encode_close(), msrle_encode_frame(), msrle_encode_init(), mss1_decode_end(), mss1_decode_frame(), mss1_decode_init(), mss2_decode_end(), mss2_decode_frame(), mss2_decode_init(), mss3_decode_end(), mss3_decode_frame(), mss3_decode_init(), mss4_decode_end(), mss4_decode_frame(), mss4_decode_init(), msvideo1_decode_end(), msvideo1_decode_frame(), msvideo1_decode_init(), mvc_decode_frame(), mvc_decode_init(), mxpeg_decode_end(), mxpeg_decode_frame(), mxpeg_decode_init(), nb_decode(), nvdec_av1_decode_slice(), nvdec_av1_start_frame(), nvdec_h264_decode_slice(), nvdec_h264_frame_params(), nvdec_h264_start_frame(), nvdec_hevc_frame_params(), nvdec_hevc_start_frame(), nvdec_mjpeg_start_frame(), nvdec_mpeg12_start_frame(), nvdec_mpeg4_start_frame(), nvdec_vc1_start_frame(), nvdec_vp8_start_frame(), nvdec_vp9_start_frame(), nvenc_alloc_surface(), nvenc_check_cap(), nvenc_check_capabilities(), nvenc_check_codec_support(), nvenc_check_device(), nvenc_codec_specific_pic_params(), nvenc_find_free_reg_resource(), nvenc_load_libraries(), nvenc_open_session(), nvenc_override_rate_control(), nvenc_pop_context(), nvenc_print_error(), nvenc_push_context(), nvenc_recalc_surfaces(), nvenc_register_frame(), nvenc_retrieve_frame_data(), nvenc_send_frame(), nvenc_set_timestamp(), nvenc_setup_device(), nvenc_setup_encoder(), nvenc_setup_extradata(), nvenc_setup_h264_config(), nvenc_setup_hevc_config(), nvenc_setup_rate_control(), nvenc_setup_surfaces(), nvenc_store_frame_data(), nvenc_upload_frame(), oggvorbis_decode_close(), oggvorbis_decode_frame(), oggvorbis_decode_init(), omx_component_init(), omx_encode_end(), omx_encode_frame(), omx_encode_init(), on2avc_decode_close(), on2avc_decode_frame(), on2avc_decode_init(), on_error(), on_input_available(), on_output_available(), opus_decode_close(), opus_decode_init(), opus_decode_packet(), opus_encode_end(), opus_encode_frame(), opus_encode_init(), osq_channel_parameters(), osq_close(), osq_decode_block(), osq_flush(), osq_init(), osq_receive_frame(), output_callback(), output_ready(), paf_video_close(), paf_video_decode(), paf_video_init(), parse_feedback_units(), parse_object_segment(), parse_opts(), parse_packet_header(), parse_palette_segment(), parse_pixel_format(), parse_presentation_segment(), parse_speex_extradata(), pcm_bluray_encode_frame(), pcm_bluray_encode_init(), pcm_decode_frame(), pcm_decode_init(), pcm_dvd_decode_frame(), pcm_dvd_decode_init(), pcm_dvd_decode_samples(), pcm_dvd_encode_frame(), pcm_dvd_encode_init(), pcm_dvd_parse_header(), photocd_decode_close(), photocd_decode_frame(), pixlet_close(), pixlet_decode_frame(), png_dec_end(), png_dec_init(), png_enc_close(), png_enc_init(), png_write_image_data(), png_write_row(), pnm_decode_frame(), pnm_encode_frame(), populate_avctx_color_fields(), postprocess_current_frame(), postprocess_luma(), predict_intra(), predict_motion(), predict_slice(), prepare_sei_data_array(), process_block(), process_output_surface(), prores_encode_close(), prores_encode_frame(), prores_encode_init(), prores_encode_picture(), put_audio_specific_config(), put_pce(), qcelp_decode_frame(), qcelp_decode_init(), qdm2_decode_close(), qdm2_decode_frame(), qdm2_decode_init(), qdmc_decode_close(), qdmc_decode_frame(), qdmc_decode_init(), qdmc_flush(), qoa_decode_frame(), qsv_av1_set_encode_ctrl(), qsv_decode_close(), qsv_decode_flush(), qsv_decode_frame(), qsv_decode_init(), qsv_enc_close(), qsv_enc_frame(), qsv_enc_init(), qsv_h264_set_encode_ctrl(), qsv_hevc_set_encode_ctrl(), qtrle_decode_end(), qtrle_decode_flush(), qtrle_decode_frame(), qtrle_decode_init(), qtrle_encode_end(), qtrle_encode_frame(), qtrle_encode_init(), queue_frames(), ra144_decode_frame(), ra144_decode_init(), ra144_encode_close(), ra144_encode_frame(), ra144_encode_init(), ra288_decode_frame(), ra288_decode_init(), raw_close_decoder(), raw_init_decoder(), read_access_unit(), read_block_types(), read_colorspace_details(), read_high_coeffs(), read_highpass(), read_hufftable(), read_low_coeffs(), read_run_encoding(), realloc_alpha_uv(), realtext_decode_frame(), reconfig_encoder(), reconstruction(), render_charset(), rka_decode_close(), rka_decode_frame(), rka_decode_init(), rkmpp_close_decoder(), rkmpp_flush(), rkmpp_init_decoder(), rkmpp_receive_frame(), rkmpp_retrieve_frame(), rkmpp_send_packet(), rkmpp_write_data(), rl2_decode_end(), rl2_decode_frame(), rl2_decode_init(), rle_uncompress(), roq_decode_end(), roq_decode_frame(), roq_decode_init(), roq_dpcm_encode_close(), roq_dpcm_encode_frame(), roq_dpcm_encode_init(), roq_encode_end(), roq_encode_frame(), roq_encode_init(), rpza_decode_end(), rpza_decode_frame(), rpza_decode_init(), rpza_encode_end(), rpza_encode_frame(), rpza_encode_init(), rscc_close(), rscc_decode_frame(), rscc_init(), run_postproc(), run_rct(), rv10_decode_frame(), rv10_decode_init(), rv10_decode_packet(), rv30_decode_init(), rv40_decode_init(), rv60_decode_end(), rv60_decode_frame(), rv60_decode_init(), rv60_flush(), s302m_decode_frame(), s302m_encode2_frame(), s302m_encode_init(), sami_close(), sami_decode_frame(), sami_flush(), sami_init(), sami_paragraph_to_ass(), save_sei(), save_subtitle_set(), sb_decode(), sbc_decode_frame(), sbc_decode_init(), sbc_encode_frame(), sbc_encode_init(), screenpresso_close(), screenpresso_decode_frame(), screenpresso_init(), select_palette(), send_delayed_frame(), seqvideo_decode_end(), seqvideo_decode_frame(), seqvideo_decode_init(), set_channel_info(), set_constqp(), set_encoder_property_or_log(), set_extradata(), set_lossless(), set_output_frame(), set_pix_fmt(), set_sample_rate_params(), set_stats(), set_vbr(), set_vp8_defaults(), setup_qtables(), setup_refs(), setup_slices(), sga_decode_end(), sga_decode_frame(), shorten_decode_close(), shorten_decode_frame(), shorten_decode_init(), show_stream(), sipr_decode_frame(), sipr_decoder_init(), siren_close(), siren_decode(), siren_flush(), siren_init(), slice_end(), smc_decode_end(), smc_decode_frame(), smc_decode_init(), smc_encode_end(), smc_encode_frame(), smc_encode_init(), speedhq_decode_frame(), speedhq_decode_init(), speex_decode_close(), speex_decode_frame(), speex_decode_init(), srt_decode_frame(), srt_encode_close(), srt_encode_init(), storeframe(), submit_stats(), subviewer_decode_frame(), sunrast_encode_frame(), sunrast_encode_init(), sunrast_image_write_header(), sunrast_image_write_image(), svc_decode_close(), svc_decode_frame(), svc_decode_init(), svc_encode_close(), svc_encode_frame(), svc_encode_init(), svq1_decode_end(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_decode_init(), svq1_encode_end(), svq1_encode_frame(), svq1_encode_init(), svq1_flush(), svq3_decode_end(), svq3_decode_frame(), svq3_decode_init(), svq3_decode_slice_header(), tak_decode_close(), tak_decode_frame(), tak_decode_init(), targa_encode_frame(), tdsc_close(), tdsc_decode_frame(), tdsc_decode_jpeg_tile(), tdsc_decode_tiles(), tdsc_init(), tdsc_load_cursor(), tdsc_paint_cursor(), tdsc_parse_dtsm(), tdsc_parse_tdsf(), teletext_close_decoder(), teletext_decode_frame(), teletext_init_decoder(), text_decode_frame(), text_flush(), text_to_ass(), tgq_decode_close(), tgq_decode_frame(), tgq_decode_init(), tgv_decode_end(), tgv_decode_frame(), tgv_decode_init(), tiff_end(), tiff_init(), tqi_decode_end(), tqi_decode_frame(), tqi_decode_init(), tqi_idct_put(), truemotion1_decode_end(), truemotion1_decode_frame(), truemotion1_decode_init(), truemotion2rt_decode_frame(), truemotion2rt_decode_header(), truespeech_decode_frame(), truespeech_decode_init(), tscc2_decode_end(), tscc2_decode_frame(), tscc2_decode_init(), tta_decode_close(), tta_decode_frame(), tta_decode_init(), tta_encode_close(), tta_encode_frame(), tta_encode_init(), ttml_encode_close(), ttml_encode_frame(), ttml_encode_init(), ttml_write_header_content(), twinvq_decode_init(), twolame_encode_close(), twolame_encode_frame(), twolame_encode_init(), ulti_decode_end(), ulti_decode_frame(), ulti_decode_init(), unpack_intraframe(), unsupported(), update_block_buffers(), update_canvas_size(), update_frames(), update_input_arguments(), update_reference_list(), update_size(), utvideo_encode_close(), utvideo_encode_frame(), utvideo_encode_init(), v210_decode_slice(), v4l2_decode_close(), v4l2_decode_init(), v4l2_encode_close(), v4l2_encode_init(), v4l2_receive_frame(), v4l2_receive_packet(), v4l2_send_frame(), v4l2_try_start(), vaapi_av1_decode_slice(), vaapi_av1_end_frame(), vaapi_av1_get_bit_depth_idx(), vaapi_av1_start_frame(), vaapi_encode_add_global_param(), vaapi_encode_alloc_output_buffer(), vaapi_encode_av1_close(), vaapi_encode_av1_configure(), vaapi_encode_av1_get_encoder_caps(), vaapi_encode_av1_init(), vaapi_encode_av1_init_picture_params(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_av1_init_slice_params(), vaapi_encode_av1_set_tile(), vaapi_encode_av1_write_extra_header(), vaapi_encode_av1_write_obu(), vaapi_encode_av1_write_picture_header(), vaapi_encode_av1_write_sequence_header(), vaapi_encode_create_recon_frames(), vaapi_encode_free_output_buffer(), vaapi_encode_get_coded_buffer_data(), vaapi_encode_get_coded_buffer_size(), vaapi_encode_get_coded_data(), vaapi_encode_h264_close(), vaapi_encode_h264_configure(), vaapi_encode_h264_init(), vaapi_encode_h264_init_picture_params(), vaapi_encode_h264_init_sequence_params(), vaapi_encode_h264_init_slice_params(), vaapi_encode_h264_write_access_unit(), vaapi_encode_h264_write_extra_header(), vaapi_encode_h264_write_sequence_header(), vaapi_encode_h264_write_slice_header(), vaapi_encode_h265_close(), vaapi_encode_h265_configure(), vaapi_encode_h265_get_encoder_caps(), vaapi_encode_h265_init(), vaapi_encode_h265_init_picture_params(), vaapi_encode_h265_init_sequence_params(), vaapi_encode_h265_init_slice_params(), vaapi_encode_h265_write_access_unit(), vaapi_encode_h265_write_extra_header(), vaapi_encode_h265_write_sequence_header(), vaapi_encode_h265_write_slice_header(), vaapi_encode_init(), vaapi_encode_init_gop_structure(), vaapi_encode_init_max_frame_size(), vaapi_encode_init_packed_headers(), vaapi_encode_init_quality(), vaapi_encode_init_rate_control(), vaapi_encode_init_roi(), vaapi_encode_init_row_slice_structure(), vaapi_encode_init_slice_structure(), vaapi_encode_init_tile_slice_structure(), vaapi_encode_issue(), vaapi_encode_make_packed_header(), vaapi_encode_make_param_buffer(), vaapi_encode_make_row_slice(), vaapi_encode_make_tile_slice(), vaapi_encode_mjpeg_close(), vaapi_encode_mjpeg_configure(), vaapi_encode_mjpeg_get_encoder_caps(), vaapi_encode_mjpeg_init(), vaapi_encode_mjpeg_init_picture_params(), vaapi_encode_mjpeg_init_slice_params(), vaapi_encode_mjpeg_write_extra_buffer(), vaapi_encode_mjpeg_write_image_header(), vaapi_encode_mpeg2_close(), vaapi_encode_mpeg2_configure(), vaapi_encode_mpeg2_init(), vaapi_encode_mpeg2_init_picture_params(), vaapi_encode_mpeg2_init_sequence_params(), vaapi_encode_mpeg2_init_slice_params(), vaapi_encode_mpeg2_write_fragment(), vaapi_encode_mpeg2_write_picture_header(), vaapi_encode_mpeg2_write_sequence_header(), vaapi_encode_output(), vaapi_encode_profile_entrypoint(), vaapi_encode_vp8_configure(), vaapi_encode_vp8_init(), vaapi_encode_vp8_init_picture_params(), vaapi_encode_vp8_init_sequence_params(), vaapi_encode_vp8_write_quant_table(), vaapi_encode_vp9_configure(), vaapi_encode_vp9_get_encoder_caps(), vaapi_encode_vp9_init(), vaapi_encode_vp9_init_picture_params(), vaapi_encode_vp9_init_sequence_params(), vaapi_encode_wait(), vaapi_h264_decode_slice(), vaapi_h264_end_frame(), vaapi_h264_start_frame(), vaapi_hevc_decode_slice(), vaapi_hevc_end_frame(), vaapi_hevc_start_frame(), vaapi_mjpeg_decode_slice(), vaapi_mjpeg_end_frame(), vaapi_mjpeg_start_frame(), vaapi_mpeg2_decode_slice(), vaapi_mpeg2_end_frame(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_decode_slice(), vaapi_mpeg4_end_frame(), vaapi_mpeg4_start_frame(), vaapi_vc1_decode_slice(), vaapi_vc1_end_frame(), vaapi_vc1_start_frame(), vaapi_vp8_decode_slice(), vaapi_vp8_end_frame(), vaapi_vp8_start_frame(), vaapi_vp9_decode_slice(), vaapi_vp9_end_frame(), vaapi_vp9_start_frame(), vaapi_vvc_decode_slice(), vaapi_vvc_end_frame(), vaapi_vvc_start_frame(), vble_decode_close(), vble_decode_frame(), vble_decode_init(), vbn_decode_frame(), vbn_encode(), vbn_init(), vc1_decode_frame(), vc1_decode_init(), vc1_decode_reset(), vc2_encode_end(), vc2_encode_frame(), vc2_encode_init(), vcr1_decode_frame(), vcr2_init_sequence(), vdpau_av1_decode_slice(), vdpau_av1_end_frame(), vdpau_av1_start_frame(), vdpau_h264_decode_slice(), vdpau_h264_end_frame(), vdpau_h264_set_reference_frames(), vdpau_h264_start_frame(), vdpau_hevc_decode_slice(), vdpau_hevc_end_frame(), vdpau_hevc_parse_rext_profile(), vdpau_hevc_start_frame(), vdpau_mpeg4_start_frame(), vdpau_mpeg_decode_slice(), vdpau_mpeg_start_frame(), vdpau_vc1_decode_slice(), vdpau_vc1_start_frame(), vdpau_vp9_decode_slice(), vdpau_vp9_end_frame(), vdpau_vp9_start_frame(), videotoolbox_av1_end_frame(), videotoolbox_vp9_end_frame(), vk_av1_create_params(), vk_av1_decode_slice(), vk_av1_end_frame(), vk_av1_start_frame(), vk_enc_h264_update_pic_info(), vk_enc_h265_update_pic_info(), vk_h264_create_params(), vk_h264_decode_slice(), vk_h264_end_frame(), vk_h264_start_frame(), vk_hevc_create_params(), vk_hevc_decode_slice(), vk_hevc_end_frame(), vk_hevc_start_frame(), vmdaudio_decode_frame(), vmdaudio_decode_init(), vmdvideo_decode_end(), vmdvideo_decode_frame(), vmdvideo_decode_init(), vorbis_decode_close(), vorbis_decode_flush(), vorbis_decode_frame(), vorbis_decode_init(), vorbis_encode_close(), vorbis_encode_frame(), vorbis_encode_init(), vp3_decode_end(), vp3_decode_flush(), vp3_decode_frame(), vp3_decode_init(), vp56_free(), vp5_decode_init(), vp6_decode_free(), vp6_decode_init(), vp78_decode_frame(), vp78_decode_init(), vp78_decode_mb_row_sliced(), vp78_decode_mv_mb_modes(), vp8_decode_flush_impl(), vp8_encode_set_roi(), vp8_lossless_decode_frame(), vp8_lossy_decode_alpha(), vp8_lossy_decode_frame(), vp9_decode_flush(), vp9_decode_frame(), vp9_decode_free(), vp9_decode_init(), vp9_encode_set_roi(), vp9_frame_alloc(), vpx_decode(), vpx_encode(), vpx_free(), vpx_init(), vqa_decode_end(), vqa_decode_frame(), vqa_decode_init(), vqc_decode_end(), vqc_decode_frame(), vqc_decode_init(), vt_dump_encoder(), vtenc_close(), vtenc_cm_to_avpacket(), vtenc_configure_encoder(), vtenc_create_encoder(), vtenc_frame(), vtenc_init(), vtenc_output_callback(), vtenc_populate_extradata(), vulkan_encode_ffv1_close(), vulkan_encode_ffv1_init(), vulkan_encode_ffv1_receive_packet(), vulkan_encode_ffv1_submit_frame(), vulkan_encode_free(), vulkan_encode_h264_close(), vulkan_encode_h264_init(), vulkan_encode_h265_close(), vulkan_encode_h265_init(), vulkan_encode_init(), vulkan_encode_issue(), vulkan_encode_output(), vulkan_encode_wait(), vvc_decode_flush(), vvc_decode_frame(), vvc_decode_free(), vvc_decode_init(), vvenc_close(), vvenc_frame(), vvenc_init(), vvenc_parse_vvenc_params(), wavarc_close(), wavarc_decode(), wavarc_init(), wavesynth_close(), wavesynth_decode(), wavesynth_init(), wavesynth_parse_extradata(), wavpack_decode_block(), wavpack_decode_end(), wavpack_decode_flush(), wavpack_decode_frame(), wavpack_decode_init(), wavpack_encode_close(), wavpack_encode_frame(), wavpack_encode_init(), webp_decode_close(), webp_decode_frame(), webp_decode_init(), webvtt_decode_frame(), webvtt_encode_close(), webvtt_encode_frame(), webvtt_encode_init(), wma_decode_init(), wma_decode_superframe(), wmapro_decode_end(), wmapro_decode_init(), wmapro_decode_packet(), wmapro_flush(), wmv2_decode_end(), wmv2_decode_init(), wmv2_encode_init(), wmv9_init(), write_access_unit(), write_extra_headers(), write_filler(), write_sequence_headers(), X264_close(), X264_flush(), X264_init(), xan_decode_chroma(), xan_decode_end(), xan_decode_frame(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_decode_init(), xavs2_close(), xavs2_encode_frame(), xavs2_init(), XAVS_close(), XAVS_frame(), XAVS_init(), xface_decode_frame(), xface_encode_frame(), xma_decode_end(), xma_decode_init(), xma_decode_packet(), xma_flush(), xpm_decode_close(), xpm_decode_frame(), xvid_encode_close(), xvid_encode_frame(), xvid_encode_init(), yop_decode_close(), yop_decode_frame(), yop_decode_init(), zerocodec_decode_close(), zerocodec_decode_flush(), zerocodec_decode_frame(), and zerocodec_decode_init().

◆ internal

struct AVCodecInternal* AVCodecContext::internal

Private context used for internal data.

Unlike priv_data, this is not codec-specific. It is used in general libavcodec functions.

Definition at line 486 of file avcodec.h.

Referenced by aom_encode(), aptx_encode_init(), attach_post_process_data(), audio_get_buffer(), av1_decode_init(), avcodec_decode_subtitle2(), avcodec_default_get_buffer2(), avcodec_flush_buffers(), avcodec_get_hw_frames_parameters(), avcodec_open2(), avcodec_receive_packet(), avcodec_send_frame(), avcodec_send_packet(), cfhd_decode(), cng_decode_frame(), cuvid_decode_init(), decode_bsfs_init(), decode_fill(), decode_get_packet(), decode_init(), decode_receive_frame_internal(), decode_simple_internal(), discard_samples(), dxva2_av1_decode_slice(), dxva2_av1_uninit(), encode_frame(), encode_receive_packet_internal(), encode_send_frame_internal(), encode_simple_internal(), ff_alloc_packet(), ff_codec_close(), ff_decode_flush_buffers(), ff_decode_frame_props(), ff_decode_get_packet(), ff_decode_internal_uninit(), ff_decode_preinit(), ff_decode_receive_frame(), ff_decode_receive_frame_internal(), ff_encode_flush_buffers(), ff_encode_get_frame(), ff_encode_preinit(), ff_encode_receive_frame(), ff_frame_thread_encoder_free(), ff_frame_thread_encoder_init(), ff_frame_thread_free(), ff_frame_thread_init(), ff_hwaccel_uninit(), ff_mpv_encode_picture(), ff_nvdec_decode_init(), ff_nvdec_decode_uninit(), ff_nvdec_end_frame(), ff_nvdec_simple_decode_slice(), ff_nvdec_simple_end_frame(), ff_nvdec_start_frame(), ff_nvdec_start_frame_sep_ref(), ff_nvenc_receive_packet(), ff_opus_parse_extradata(), ff_progress_frame_alloc(), ff_slice_thread_execute_with_mainfunc(), ff_slice_thread_free(), ff_slice_thread_init(), ff_thread_can_start_frame(), ff_thread_finish_setup(), ff_thread_flush(), ff_thread_get_packet(), ff_thread_receive_frame(), ff_thread_sync_ref(), ff_thread_video_encode_frame(), ff_vaapi_decode_destroy_buffers(), ff_vaapi_decode_init(), ff_vaapi_decode_issue(), ff_vaapi_decode_make_param_buffer(), ff_vaapi_decode_make_slice_buffer(), ff_vaapi_decode_uninit(), ff_vdpau_common_end_frame(), ff_vdpau_common_init(), ff_vdpau_common_reinit(), ff_vdpau_common_uninit(), ff_videotoolbox_avcc_extradata_create(), ff_vk_decode_add_slice(), ff_vk_decode_flush(), ff_vk_decode_frame(), ff_vk_decode_init(), ff_vk_decode_uninit(), ff_vk_frame_params(), ff_vk_params_invalidate(), ffmmal_init_decoder(), flush(), frame_worker_thread(), h264_decode_init(), hevc_decode_init(), hevc_receive_frame(), hwaccel_init(), init_thread(), libjxl_decode_init(), liblc3_decode_init(), libopus_decode_init(), libopus_flush(), librav1e_receive_packet(), main_function(), nvdec_av1_decode_slice(), nvdec_av1_start_frame(), nvdec_h264_decode_slice(), nvdec_h264_start_frame(), nvdec_hevc_decode_init(), nvdec_hevc_decode_slice(), nvdec_hevc_start_frame(), nvdec_mjpeg_start_frame(), nvdec_mpeg12_start_frame(), nvdec_mpeg4_start_frame(), nvdec_vc1_start_frame(), nvdec_vp8_start_frame(), nvdec_vp9_start_frame(), osq_init(), side_data_pref(), submit_packet(), thread_execute(), thread_execute2(), thread_get_buffer_internal(), update_frame_pool(), update_frame_props(), vaapi_av1_decode_init(), vaapi_av1_decode_slice(), vaapi_av1_decode_uninit(), vaapi_av1_end_frame(), vaapi_av1_start_frame(), vaapi_decode_find_best_format(), videotoolbox_av1_end_frame(), videotoolbox_vp9_decode_slice(), vk_av1_create_params(), vk_av1_end_frame(), vk_av1_fill_pict(), vk_av1_start_frame(), vk_h264_create_params(), vk_h264_end_frame(), vk_h264_fill_pict(), vk_h264_start_frame(), vk_hevc_create_params(), vk_hevc_end_frame(), vk_hevc_fill_pict(), vk_hevc_start_frame(), vorbis_decode_frame(), vp3_decode_init(), vulkan_decode_bootstrap(), vulkan_decode_get_profile(), wma_decode_init(), worker(), worker_func(), and xma_decode_packet().

◆ opaque

void* AVCodecContext::opaque

Private data of the user, can be used to carry app specific stuff.

  • encoding: Set by user.
  • decoding: Set by user.

Definition at line 493 of file avcodec.h.

Referenced by dec_open(), ff_frame_thread_encoder_init(), get_buffer(), hwaccel_retrieve_data(), and open_stream().

◆ bit_rate

int64_t AVCodecContext::bit_rate

the average bitrate

  • encoding: Set by user; unused for constant quantizer encoding.
  • decoding: Set by user, may be overwritten by libavcodec if this info is available in the stream
Examples
transcode_aac.c.

Definition at line 501 of file avcodec.h.

Referenced by aac_encode_frame(), aac_encode_init(), ac3_decode_frame(), adx_decode_header(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), amr_parse(), amr_wb_encode_frame(), amr_wb_encode_init(), aom_init(), av_get_audio_frame_duration(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), config_enc_params(), d3d12va_create_decoder(), d3d12va_create_decoder_heap(), d3d12va_encode_hevc_init_sequence_params(), d3d12va_encode_init_rate_control(), decode_frame(), decode_ppc(), dvvideo_decode_frame(), enc_open(), encode_init(), estimate_timings_from_bit_rate(), ff_aac_ac3_parse(), ff_dca_core_filter_frame(), ff_dca_lbr_filter_frame(), ff_dca_xll_filter_frame(), ff_dnxhd_find_cid(), ff_encode_preinit(), ff_hw_base_encode_init_params_h265(), ff_mpv_encode_init(), ff_wma_init(), ffat_create_decoder(), ffat_init_encoder(), g723_1_encode_init(), g729_parse(), get_conf(), get_ilbc_mode(), get_mode(), ilbc_decode_init(), imm5_decode_frame(), init_bitstream_params(), init_enc_options(), init_pic_rc(), init_rc(), init_sequence_headers(), init_video_param(), lame_window_init(), libgsm_encode_init(), libkvazaar_init(), liblc3_encode_init(), libopus_configure_encoder(), libopus_encode_init(), librav1e_encode_init(), libshine_encode_init(), libspeex_decode_frame(), libvorbis_setup(), libx265_encode_init(), mark_pns(), mediacodec_init(), metasound_decode_init(), mf_enca_output_score(), mf_encv_output_adjust(), mlp_parse(), mp3lame_encode_init(), MPA_encode_init(), mpeg_decode_postinit(), mpegaudio_parse(), mpegvideo_extract_headers(), nvenc_setup_encoder(), nvenc_setup_rate_control(), omx_component_init(), open_output_file(), opus_encode_init(), pcm_bluray_parse_header(), pcm_dvd_encode_init(), pcm_dvd_parse_header(), pcm_encode_init(), print_enc_params(), qdm2_decode_init(), qdmc_decode_init(), qsv_retrieve_enc_params(), ra144_encode_init(), raw_encode_init(), read_frame_internal(), reconfig_encoder(), roq_dpcm_encode_init(), s302m_decode_frame(), s302m_encode_init(), sbc_encode_init(), search_for_pns(), search_for_quantizers_fast(), search_for_quantizers_twoloop(), select_rc_mode(), set_vp8_defaults(), set_vpx_defaults(), sipr_decoder_init(), sipr_split(), speex_decode_init(), svc_encode_init(), twinvq_decode_init(), twolame_encode_init(), update_bitrate(), v308_encode_init(), v408_encode_init(), v410_encode_init(), v4l2_prepare_encoder(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_init_rate_control(), validate_options(), vc2_encode_frame(), vorbis_encode_init(), vpx_init(), vtenc_create_encoder(), vvenc_init(), vvenc_set_rc_mode(), X264_init(), xavs2_init(), XAVS_init(), xvid_encode_init(), and y41p_encode_init().

◆ flags

int AVCodecContext::flags

AV_CODEC_FLAG_*.

  • encoding: Set by user.
  • decoding: Set by user.
Examples
transcode.c, and transcode_aac.c.

Definition at line 508 of file avcodec.h.

Referenced by aac_encode_frame(), aac_encode_init(), ac3_decode_init(), ac3_fixed_mdct_init(), amf_encode_init_h264(), amf_encode_init_hevc(), aom_encode(), aom_free(), aom_init(), apply_cropping(), atrac1_decode_init(), atrac3_decode_init(), atrac3p_decode_init(), atrac9_decode_init(), avcodec_string(), comp_block(), config_enc_params(), config_input(), config_props(), cri_decode_init(), cuvid_decode_init(), d3d12va_encode_init_rate_control(), dec_open(), decode_init(), decode_slice_thread(), dnxhd_encode_init(), dsp_init(), dvvideo_encode_init(), eb_enc_init(), enc_open(), encode_frame(), encode_init(), encode_init_internal(), encode_receive_packet_internal(), encode_send_frame_internal(), encode_slice_data(), ff_aac_decode_init_fixed(), ff_aac_decode_init_float(), ff_ac3_float_encode_init(), ff_ass_subtitle_header_full(), ff_celt_init(), ff_dca_core_filter_frame(), ff_decode_frame_props_from_pkt(), ff_decode_preinit(), ff_decode_receive_frame(), ff_dnxhd_find_cid(), ff_encode_preinit(), ff_encode_reordered_opaque(), ff_ffv1_common_init(), ff_ffv1_encode_init(), ff_frame_thread_encoder_init(), ff_hw_base_encode_set_output_property(), ff_hw_base_init_gop_structure(), ff_idctdsp_init_arm(), ff_idctdsp_init_armv6(), ff_idctdsp_init_ppc(), ff_me_init(), ff_mjpeg_decode_init(), ff_mpegvideoencdsp_init_x86(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_nvenc_encode_init(), ff_opus_psy_init(), ff_twinvq_decode_init(), ff_vaapi_encode_init(), ff_vp56_init_context(), ff_vulkan_write_global_header(), ffat_init_encoder(), filter_1phase(), frame_data_apply(), frame_data_submit(), get_packet(), h263_get_format(), h264_decode_frame(), h264_init_context(), hw_base_encode_send_frame(), idct_put(), imc_decode_init(), imm5_init(), init_rc(), init_video_param(), ipvideo_decode_init(), jpeg_put_comments(), lame_window_init(), libaribb24_generate_ass_header(), libjxl_init_jxl_encoder(), libkvazaar_init(), librav1e_encode_init(), librav1e_receive_packet(), libvorbis_encode_init(), libvorbis_setup(), libwebp_anim_encode_frame(), libx265_encode_frame(), libx265_encode_init(), main(), mark_pns(), me_cmp_init(), mediacodec_generate_extradata(), mediacodec_init_bsf(), mf_init_encoder(), mimic_decode_init(), mp3lame_encode_init(), mpeg_get_pixelformat(), new_stream_video(), nvenc_retrieve_frame_data(), nvenc_send_frame(), nvenc_setup_encoder(), nvenc_setup_h264_config(), nvenc_setup_hevc_config(), nvenc_store_frame_data(), omx_encode_frame(), omx_encode_init(), on2avc_decode_init(), open_output_file(), opus_encode_init(), pixlet_decode_frame(), png_enc_init(), prores_encode_init(), put_pce(), qsv_enc_frame(), qsv_enc_init(), ra288_decode_init(), search_for_pns(), search_for_quantizers_twoloop(), select_rc_mode(), siren_init(), storeframe(), svc_encode_frame(), svc_encode_init(), svq1_decode_frame(), svq1_decode_init(), svq1_encode_init(), svq3_decode_init(), tdsc_init(), tiff_init(), tqi_idct_put(), twolame_encode_init(), update_size(), update_video_stats(), v4l2_prepare_encoder(), vaapi_encode_init_packed_headers(), vaapi_encode_init_rate_control(), validate_thread_parameters(), vc1_get_format(), vc2_encode_frame(), vorbis_encode_init(), vp3_decode_init(), vpx_encode(), vpx_free(), vpx_init(), vtenc_cm_to_avpacket(), vtenc_configure_encoder(), vtenc_create_encoder(), vtenc_output_callback(), vulkan_decode_get_profile(), vulkan_encode_ffv1_receive_packet(), vvc_decode_init(), vvenc_init(), vvenc_init_extradata(), vvenc_set_rc_mode(), X264_init(), xavs2_init(), XAVS_init(), and xvid_encode_init().

◆ flags2

int AVCodecContext::flags2

◆ extradata

uint8_t* AVCodecContext::extradata

some codecs need / can use extradata like Huffman tables.

MJPEG: Huffman tables rv10: additional flags MPEG-4: global headers (they can be in the bitstream or here) The allocated memory should be AV_INPUT_BUFFER_PADDING_SIZE bytes larger than extradata_size to avoid problems if it is read with the bitstream reader. The bytewise contents of extradata must not depend on the architecture or CPU endianness. Must be allocated with the av_malloc() family of functions.

  • encoding: Set/allocated/freed by libavcodec.
  • decoding: Set/allocated/freed by user.
Examples
qsv_decode.c.

Definition at line 529 of file avcodec.h.

Referenced by a64multi_encode_frame(), a64multi_encode_init(), aac_encode_init(), aasc_decode_init(), adpcm_decode_frame(), adpcm_encode_init(), adpcm_flush(), adx_decode_init(), alac_encode_init(), alac_set_info(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), ape_decode_init(), ass_decode_init(), ass_encode_init(), atrac3_decode_init(), atrac9_decode_init(), av1_decode_init(), av_get_audio_frame_duration(), avcodec_free_context(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avformat_find_stream_info(), avui_decode_frame(), avui_encode_init(), bfi_decode_frame(), bonk_init(), bprint_to_extradata(), clv_decode_init(), cmap_read_palette(), concatenate_packet(), cook_decode_init(), cook_parse(), cuvid_decode_init(), decode_chunks(), decode_extradata(), decode_flush(), decode_frame(), decode_header_trees(), decode_init(), dfa_decode_frame(), dpcm_decode_init(), dvbsub_init_decoder(), dvdsub_parse_extradata(), eb_enc_init(), encode_init(), encode_sample_description(), evc_parse(), extract_extradata(), fdk_aac_decode_init(), ff_aac_decode_init(), ff_cbs_read_extradata_from_codec(), ff_codec_close(), ff_flac_is_extradata_valid(), ff_h263_decode_init(), ff_mjpeg_decode_init(), ff_mss12_decode_init(), ff_opus_parse_extradata(), ff_vaapi_encode_init(), ff_vulkan_write_global_header(), ffat_init_decoder(), ffat_init_encoder(), ffmmal_receive_frame(), flac_decode_init(), flac_encode_frame(), flac_encode_init(), flic_decode_init(), generate_fake_vps(), get_nb_samples(), h264_decode_init(), h264_parse(), hcom_init(), hevc_decode_init(), hevc_parse(), hnm_decode_init(), init(), latm_decode_audio_specific_config(), latm_decode_frame(), libcodec2_init_decoder(), libcodec2_init_encoder(), libkvazaar_init(), liblc3_decode_init(), liblc3_encode_init(), libopus_decode_init(), libopus_encode_init(), libopus_write_header(), librav1e_encode_init(), libspeex_decode_init(), libvorbis_encode_init(), libx265_encode_init(), LLVMFuzzerTestOneInput(), m101_decode_frame(), m101_decode_init(), magy_encode_init(), main(), mediacodec_generate_extradata(), metasound_decode_init(), mf_close(), mf_enca_output_type_get(), mf_encv_output_type_get(), mf_init_encoder(), microdvd_init(), mov_text_tx3g(), mp_decode_frame(), mpc7_decode_init(), mpc8_decode_init(), mpeg4_decode_header(), mpeg_decode_frame(), msrle_decode_init(), msvideo1_decode_init(), mvc_decode_init(), nvenc_setup_extradata(), oggvorbis_decode_init(), omx_encode_frame(), omx_encode_init(), opus_encode_init(), opus_find_frame_end(), opus_write_extradata(), osq_init(), process_frame(), put_audio_specific_config(), qdm2_decode_init(), qdmc_decode_init(), qsv_retrieve_enc_params(), raw_init_decoder(), read_audio_mux_element(), read_frame_internal(), read_specific_config(), rka_decode_init(), rkmpp_send_packet(), rl2_decode_init(), rscc_init(), rv10_decode_init(), rv30_decode_init(), set_extradata(), speex_decode_init(), svc_encode_init(), svq3_decode_init(), tta_decode_init(), ttml_write_header_content(), twinvq_decode_init(), utvideo_encode_init(), vc1_decode_init(), vmdvideo_decode_init(), vorbis_decode_init(), vorbis_encode_init(), vtenc_output_callback(), vtenc_populate_extradata(), vvc_decode_init(), vvenc_init_extradata(), wavarc_init(), wavesynth_parse_extradata(), wma_decode_init(), wmv2_encode_init(), write_ident(), XAVS_init(), xma_decode_init(), xvid_encode_init(), xvid_strip_vol_header(), and yop_decode_init().

◆ extradata_size

int AVCodecContext::extradata_size
Examples
qsv_decode.c.

Definition at line 530 of file avcodec.h.

Referenced by a64multi_encode_init(), aac_encode_init(), aasc_decode_init(), adpcm_decode_frame(), adpcm_encode_init(), adpcm_flush(), adx_decode_init(), alac_decode_init(), alac_encode_init(), alac_set_info(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), ape_decode_init(), ass_decode_init(), ass_encode_init(), atrac3_decode_init(), atrac9_decode_init(), av1_decode_init(), av1_parser_parse(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avui_decode_frame(), avui_encode_init(), bfi_decode_frame(), bonk_init(), bprint_to_extradata(), clv_decode_init(), cmap_read_palette(), concatenate_packet(), cook_decode_init(), cook_parse(), cuvid_decode_init(), decode_extradata(), decode_flush(), decode_frame(), decode_header_trees(), decode_init(), dfa_decode_frame(), dpcm_decode_init(), dvbsub_init_decoder(), dvdsub_parse_extradata(), eb_enc_init(), encode_close(), encode_init(), encode_sample_description(), extract_extradata(), fdk_aac_decode_init(), ff_aac_decode_init(), ff_cbs_read_extradata_from_codec(), ff_codec_close(), ff_flac_is_extradata_valid(), ff_h263_decode_init(), ff_mjpeg_decode_init(), ff_mss12_decode_init(), ff_opus_parse_extradata(), ff_vaapi_encode_init(), ff_vulkan_write_global_header(), ffat_init_decoder(), ffat_init_encoder(), ffmmal_receive_frame(), flac_encode_frame(), flac_encode_init(), flic_decode_init(), generate_fake_vps(), h264_decode_init(), h264_parse(), hcom_init(), hevc_decode_init(), hevc_parse(), hnm_decode_init(), init(), latm_decode_audio_specific_config(), latm_decode_frame(), latm_decode_init(), lead_decode_init(), libcodec2_init_decoder(), libcodec2_init_encoder(), libkvazaar_init(), liblc3_decode_init(), liblc3_encode_init(), libopus_decode_init(), libopus_encode_init(), librav1e_encode_init(), libspeex_decode_init(), libvorbis_encode_init(), libx265_encode_init(), LLVMFuzzerTestOneInput(), m101_decode_init(), magy_encode_init(), main(), mediacodec_generate_extradata(), metasound_decode_init(), mf_close(), mf_enca_output_type_get(), mf_encv_output_type_get(), mov_text_tx3g(), mp_decode_init(), mpc7_decode_init(), mpc8_decode_init(), mpeg4_decode_header(), mpeg_decode_frame(), msrle_decode_init(), msvideo1_decode_init(), mvc_decode_init(), nvenc_setup_extradata(), oggvorbis_decode_init(), omx_encode_frame(), omx_encode_init(), opus_encode_init(), osq_init(), process_frame(), put_audio_specific_config(), qdm2_decode_init(), qdmc_decode_init(), qsv_retrieve_enc_params(), raw_init_decoder(), read_specific_config(), rka_decode_init(), rkmpp_send_packet(), rl2_decode_init(), rscc_init(), rv10_decode_init(), rv30_decode_init(), rv30_parse_slice_header(), set_extradata(), speex_decode_init(), svc_encode_init(), svq1_decode_frame_header(), svq3_decode_init(), tta_decode_init(), ttml_write_header_content(), twinvq_decode_init(), utvideo_encode_init(), vc1_decode_init(), vorbis_decode_init(), vorbis_encode_init(), vtenc_populate_extradata(), vvc_decode_init(), vvc_parser_parse(), vvenc_init_extradata(), wavarc_init(), wavesynth_parse_extradata(), wma_decode_init(), wmv2_encode_init(), write_ident(), XAVS_init(), xma_decode_init(), xvid_encode_init(), xvid_strip_vol_header(), and yop_decode_init().

◆ time_base

AVRational AVCodecContext::time_base

This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.

For fixed-fps content, timebase should be 1/framerate and timestamp increments should be identically 1. This often, but not always is the inverse of the frame rate or field rate for video. 1/time_base is not the average frame rate if the frame rate is not constant.

Like containers, elementary streams also can store timestamps, 1/time_base is the unit in which these timestamps are specified. As example of such codec time base see ISO/IEC 14496-2:2001(E) vop_time_increment_resolution and fixed_vop_rate (fixed_vop_rate == 0 implies that it is different from the framerate)

  • encoding: MUST be set by user.
  • decoding: unused.
Examples
demux_decode.c, qsv_transcode.c, transcode.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 550 of file avcodec.h.

Referenced by amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), aom_encode(), aom_init(), avcodec_open2(), avcodec_string(), config_enc_params(), config_input(), config_props(), d3d12va_encode_hevc_init_sequence_params(), d3d12va_encode_init_rate_control(), dec_enc(), dvd_nav_parse(), dvvideo_encode_init(), dynamic_set_parameter(), enc_open(), encode_frame(), encode_frame_rate(), encode_init(), encode_preinit_video(), encode_write(), encode_write_frame(), ff_af_queue_add(), ff_encode_preinit(), ff_guess_coded_bitrate(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_qsv_encode(), ff_samples_to_time_base(), get_fpsQ(), init_video_param(), init_video_param_jpeg(), libaribb24_decode(), libkvazaar_init(), librav1e_encode_init(), libwebp_anim_encode_frame(), libx265_encode_init(), main(), mediacodec_init_bsf(), mediacodec_receive(), mediacodec_send(), mf_encv_output_adjust(), mf_get_tb(), nvenc_set_timestamp(), nvenc_setup_encoder(), of_stream_init(), oggvorbis_decode_init(), omx_component_init(), omx_encode_frame(), open_output_file(), output_audio_frame(), process_frame(), submit_frame(), svc_encode_init(), update_frame_rate(), update_video_stats(), vaapi_encode_init_rate_control(), vaapi_encode_mpeg2_init_sequence_params(), vc2_encode_init(), vpx_encode(), vpx_init(), vtenc_cm_to_avpacket(), vtenc_populate_extradata(), vtenc_send_frame(), vvenc_init(), vvenc_set_framerate(), X264_init(), XAVS_init(), xvid_correct_framerate(), and xvid_encode_init().

◆ pkt_timebase

AVRational AVCodecContext::pkt_timebase

◆ framerate

AVRational AVCodecContext::framerate
  • decoding: For codecs that store a framerate value in the compressed bitstream, the decoder may export it here. { 0, 1} when unknown.
  • encoding: May be used to signal the framerate of CFR content to an encoder.
Examples
qsv_transcode.c, transcode.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 566 of file avcodec.h.

Referenced by amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), aom_encode(), av1_parser_parse(), av_guess_frame_rate(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avformat_find_stream_info(), compute_frame_duration(), config_enc_params(), cri_decode_frame(), cuvid_output_frame(), d3d12va_create_decoder(), d3d12va_create_decoder_heap(), d3d12va_encode_hevc_init_sequence_params(), d3d12va_encode_init_rate_control(), davs2_dump_frames(), dec_enc(), decode_frame(), decode_sequence_header_adv(), dirac_decode_data_unit(), dvvideo_decode_frame(), dynamic_set_parameter(), enc_open(), encode_frame(), export_stream_params(), ff_guess_coded_bitrate(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ffmal_update_format(), get_conf(), get_fpsQ(), h261_decode_init(), h264_parse(), hevc_parse_slice_header(), init_pic_rc(), init_video_param(), init_video_param_jpeg(), libkvazaar_init(), librav1e_encode_init(), libuavs3d_decode_frame(), libx265_encode_init(), main(), mediacodec_init(), mf_encv_output_adjust(), mpeg_decode_postinit(), mpegvideo_extract_headers(), mpegvideo_parse(), nvenc_set_timestamp(), nvenc_setup_encoder(), of_stream_init(), omx_component_init(), open_input_file(), open_output_file(), parse_avs2_seq_header(), parse_avs3_nal_units(), parse_nal_unit(), parse_nal_units(), prepare_sei_data_array(), set_context_with_sequence(), set_parser_ctx(), svc_encode_init(), tgq_decode_init(), tgv_decode_init(), tqi_decode_init(), update_frame_rate(), v4l2_prepare_encoder(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_init_rate_control(), vaapi_encode_mpeg2_init_sequence_params(), vaapi_mpeg4_start_frame(), video_duration_estimate(), vpx_encode(), vvenc_init(), vvenc_set_framerate(), X264_init(), and xavs2_init().

◆ ticks_per_frame

attribute_deprecated int AVCodecContext::ticks_per_frame

For some codecs, the time base is closer to the field rate than the frame rate.

Most notably, H.264 and MPEG-2 specify time_base as half of frame duration if no telecine is used ...

Set to time_base ticks per frame. Default 1, e.g., H.264/MPEG-2 set it to 2.

Deprecated:

Definition at line 582 of file avcodec.h.

Referenced by amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), aom_encode(), codec_close(), config_enc_params(), decode_sequence_header_adv(), encode_preinit_video(), get_fpsQ(), h264_decode_init(), libkvazaar_init(), librav1e_encode_init(), libx265_encode_init(), mf_encv_output_adjust(), mpeg_decode_postinit(), mpegvideo_extract_headers(), nvenc_setup_encoder(), svc_encode_init(), vpx_encode(), vvenc_set_framerate(), and X264_init().

◆ delay

int AVCodecContext::delay

Codec delay.

Encoding: Number of frames delay there will be from the encoder input to the decoder output. (we assume the decoder matches the spec) Decoding: Number of frames delay in addition to what a standard decoder as specified in the spec would produce.

Video: Number of frames the decoded output will be delayed relative to the encoded input.

Audio: For encoding, this field is unused (see initial_padding).

For decoding, this is the number of samples the decoder needs to output before the decoder's output is valid. When seeking, you should start decoding this many samples prior to your desired seek point.

  • encoding: Set by libavcodec.
  • decoding: Set by libavcodec.

Definition at line 607 of file avcodec.h.

Referenced by avcodec_parameters_to_context(), ff_frame_thread_init(), ff_mpv_encode_init(), ff_opus_parse_extradata(), init_thread(), liblc3_decode_init(), and libopus_decode_init().

◆ width

int AVCodecContext::width

picture width / height.

Note
Those fields may not match the values of the last AVFrame output by avcodec_receive_frame() due frame reordering.
  • encoding: MUST be set by user.
  • decoding: May be set by the user before opening the decoder if known e.g. from the container. Some decoders will require the dimensions to be set by the caller. During decoding, the decoder may overwrite those values as required while parsing the data.
Examples
decode_filter_video.c, demux_decode.c, qsv_transcode.c, transcode.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 624 of file avcodec.h.

Referenced by a64multi_encode_frame(), aasc_decode_frame(), aic_decode_init(), alloc_picture(), amf_copy_surface(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), aom_decode(), aom_init(), apply_param_change(), aura_decode_frame(), aura_decode_init(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), avformat_find_stream_info(), avui_decode_frame(), avui_encode_frame(), avui_encode_init(), bethsoftvid_decode_frame(), bfi_decode_frame(), bfi_decode_init(), bitpacked_decode_uyvy422(), bitpacked_decode_yuv422p10(), bitpacked_init_decoder(), bmp_decode_frame(), bmp_encode_frame(), cdg_decode_flush(), cdg_decode_frame(), cdtoons_render_sprite(), cdxl_decode_frame(), cdxl_decode_ham6(), cdxl_decode_ham8(), cfhd_encode_frame(), cfhd_encode_init(), choose_tiling(), cinepak_decode_init(), cinepak_encode_init(), cinvideo_decode_frame(), cinvideo_decode_init(), clear_plane(), cllc_decode_frame(), clv_decode_init(), compress_texture(), compute_dar(), config_enc_params(), config_input(), config_props(), copy_frame_to_buffer(), count_plane_slice(), create_cv_pixel_buffer_info(), cri_decode_frame(), cuvid_handle_video_sequence(), cuvid_output_frame(), cyuv_decode_frame(), cyuv_decode_init(), d3d12va_encode_hevc_get_encoder_caps(), d3d12va_encode_hevc_init_sequence_params(), davs2_dump_frames(), dds_decode(), dec_enc(), dec_open(), decode_13(), decode_argb(), decode_argbi(), decode_argx(), decode_argxi(), decode_aybr(), decode_aybri(), decode_block(), decode_blocks(), decode_byry(), decode_byryi(), decode_c82i(), decode_c82p(), decode_ca2i(), decode_ca2p(), decode_ca4i(), decode_ca4p(), decode_dlta(), decode_fint(), decode_frame(), decode_frame_header(), decode_frame_lscr(), decode_huff(), decode_huffman2(), decode_init(), decode_inter(), decode_intra(), decode_mous(), decode_move(), decode_mvdv(), decode_picture_header(), decode_raw_intra(), decode_raw_intra_rgb(), decode_receive_frame_internal(), decode_rgb(), decode_rgbi(), decode_rgbx(), decode_rgbxi(), decode_rle(), decode_rle16(), decode_rle_bpp2(), decode_rle_bpp4(), decode_run_i(), decode_run_p(), decode_runlen(), decode_sequence_header_adv(), decode_slice(), decode_ybr(), decode_ybr10(), decode_ybr10i(), decode_ybri(), decode_ybyr(), decode_yry10(), decode_yry10i(), decompress_i(), decompress_i3(), decompress_p(), decompress_p3(), dfa_decode_frame(), dfa_decode_init(), dnxhd_decode_frame(), dnxhd_decode_init(), dnxhd_encode_init(), dnxhd_mb_var_thread(), dnxhd_write_header(), draw_char(), draw_cursor(), dump_stream_group(), dvbsub_decode(), dvbsub_encode(), dvbsub_parse_display_definition_segment(), dvdsub_init(), dvvideo_encode_init(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxtory_decode_v2(), dxv_encode(), dxv_init(), enc_open(), encode(), encode_apng(), encode_determine_slices(), encode_dvd_subtitles(), encode_frame(), encode_frame_size(), encode_gbrp10(), encode_gbrp12(), encode_headers(), encode_init(), encode_jpegls_init(), encode_picture_ls(), encode_png(), encode_preinit_video(), encode_receive_packet_internal(), encode_rgb48_10bit(), encode_slice(), encode_yuv422p10(), erase_screen(), escape124_decode_frame(), escape124_decode_init(), escape130_decode_frame(), escape130_decode_init(), execute_code(), export_stream_params(), ff_amf_receive_packet(), ff_asv_common_init(), ff_ccitt_unpack(), ff_d3d12va_common_frame_params(), ff_dnxhd_find_cid(), ff_dxva2_av1_fill_picture_parameters(), ff_dxva2_vc1_fill_picture_parameters(), ff_dxva2_vp9_fill_picture_parameters(), ff_encode_alloc_frame(), ff_ffv1_common_init(), ff_ffv1_encode_buffer_size(), ff_ffv1_encode_init(), ff_get_buffer(), ff_guess_coded_bitrate(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_libwebp_get_frame(), ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar(), ff_mediacodec_sw_buffer_copy_yuv420_planar(), ff_mediacodec_sw_buffer_copy_yuv420_semi_planar(), ff_mjpeg_encode_picture_header(), ff_mpv_encode_init(), ff_msmpeg4_decode_init(), ff_mss12_decode_init(), ff_pnm_decode_header(), ff_set_sar(), ff_snow_common_init_after_header(), ff_vaapi_encode_init(), ff_vc1_decode_init(), ff_videotoolbox_alloc_frame(), ff_vp56_decode_frame(), ff_vulkan_encode_init(), ffmal_copy_frame(), ffmal_update_format(), ffmmal_init_decoder(), fic_decode_frame(), fic_decode_init(), fic_draw_cursor(), fill_tile4(), fill_tileX(), find_slice_quant(), fits_encode_frame(), flashsv2_encode_init(), flashsv_decode_frame(), flashsv_encode_init(), g2m_decode_frame(), g2m_decode_init(), gdv_decode_frame(), gdv_decode_init(), gem_decode_frame(), get_buffer_with_edge(), get_conf(), get_cv_pixel_info(), gif_crop_opaque(), gif_crop_translucent(), gif_encode_frame(), gif_encode_init(), gif_image_write_image(), h264_init_context(), hap_init(), has_codec_parameters(), hdr_encode_frame(), hdr_encode_init(), hnm_decode_init(), hqx_decode_frame(), hscroll(), imm5_decode_frame(), imx_decode_init(), init(), init_filter(), init_filters(), init_sequence_headers(), init_video_param(), init_video_param_jpeg(), ipu_decode_frame(), ipvideo_decode_init(), ir2_decode_frame(), is_image_translucent(), j2kenc_init(), jpeg_table_header(), lag_decode_arith_plane(), lag_decode_frame(), lead_decode_frame(), libkvazaar_init(), libopenjpeg_copy_packed12(), libopenjpeg_copy_packed16(), libopenjpeg_copy_packed8(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), libopenjpeg_encode_init(), librav1e_encode_init(), librav1e_receive_packet(), librsvg_decode_frame(), libwebp_anim_encode_init(), libx265_encode_init(), libxevd_image_copy(), libxeve_init(), ljpeg_encode_frame(), ljpeg_encode_init(), ljpeg_encode_yuv(), load_buffer(), m101_decode_frame(), magy_encode_frame(), magy_encode_init(), main(), mediacodec_dec_parse_video_format(), mediacodec_decode_init(), mediacodec_init(), mediacodec_init_bsf(), mediacodec_send_dummy_frame(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_video_buffer(), mf_encv_output_adjust(), mf_v_avframe_to_sample(), mj2_create_image(), mm_decode_init(), mobiclip_decode(), mobiclip_init(), mp_decode_frame(), mp_decode_init(), mpeg4_decode_header(), mpegvideo_extract_headers(), msp2_decode_frame(), msrle_decode_frame(), msrle_decode_pal4(), msrle_encode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss3_decode_init(), mss4_decode_frame(), mss4_decode_init(), msvideo1_decode_frame(), msvideo1_decode_init(), mvc_decode_frame(), mvc_decode_init(), new_stream_subtitle(), new_stream_video(), nvenc_alloc_surface(), nvenc_check_capabilities(), nvenc_copy_frame(), nvenc_setup_encoder(), omx_component_init(), omx_encode_frame(), open_output_file(), ost_bind_filter(), paf_video_init(), pam_encode_frame(), parse_avs3_nal_units(), parse_object_segment(), parse_presentation_segment(), pcx_encode_frame(), photocd_decode_frame(), pixlet_decode_frame(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), predict_intra(), predict_motion(), predict_slice(), prepare_picture(), process_frame(), prores_encode_frame(), prores_encode_init(), prores_encode_picture(), put_lines_bits(), put_lines_bytes(), qoi_encode_frame(), qsv_decode_init_context(), qtrle_encode_init(), reget_buffer_internal(), rkmpp_retrieve_frame(), rl2_decode_init(), rle_uncompress(), roq_decode_init(), roq_encode_init(), rpza_encode_frame(), rpza_encode_init(), rscc_decode_frame(), rscc_init(), screenpresso_decode_frame(), screenpresso_init(), set_context_with_sequence(), sga_decode_frame(), sgirle_decode_frame(), smc_encode_frame(), sp5x_decode_frame(), speedhq_decode_frame(), sunrast_encode_init(), sunrast_image_write_header(), sunrast_image_write_image(), svc_decode_frame(), svc_encode_frame(), svc_encode_init(), svq1_decode_init(), svq1_encode_end(), svq1_encode_init(), svq3_decode_init(), targa_encode_frame(), targa_encode_init(), tdsc_decode_frame(), tdsc_init(), tdsc_load_cursor(), tdsc_parse_tdsf(), teletext_init_decoder(), tgq_decode_frame(), tmv_decode_frame(), to_meta_with_crop(), transcode_subtitles(), truemotion2rt_decode_frame(), tscc2_decode_init(), txd_decode_frame(), ulti_decode_init(), update_context_with_frame_header(), update_video_stats(), utvideo_encode_frame(), utvideo_encode_init(), v210_decode_slice(), v308_decode_frame(), v308_decode_init(), v308_encode_frame(), v308_encode_init(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_decode_init(), v410_decode_slice(), v410_encode_frame(), v410_encode_init(), v4l2_encode_init(), vaapi_encode_av1_get_encoder_caps(), vaapi_encode_av1_init_picture_params(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_av1_set_tile(), vaapi_encode_av1_write_picture_header(), vaapi_encode_h264_configure(), vaapi_encode_h264_init(), vaapi_encode_h265_get_encoder_caps(), vaapi_encode_init_slice_structure(), vaapi_encode_mjpeg_get_encoder_caps(), vaapi_encode_mjpeg_init_picture_params(), vaapi_encode_mpeg2_configure(), vaapi_encode_mpeg2_init(), vaapi_encode_mpeg2_init_sequence_params(), vaapi_encode_vp8_init_sequence_params(), vaapi_encode_vp9_get_encoder_caps(), vaapi_encode_vp9_init_sequence_params(), vaapi_mjpeg_start_frame(), vaapi_vp8_start_frame(), vaapi_vp9_start_frame(), vble_decode_frame(), vble_decode_init(), vbn_decode_frame(), vbn_encode(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_header(), vc2_encode_init(), vcr1_decode_frame(), vcr1_decode_init(), vdpau_av1_start_frame(), vdpau_vp9_start_frame(), vp8_lossy_decode_frame(), vpx_decode(), vpx_init(), vqc_decode_frame(), vqc_decode_init(), vtenc_create_encoder(), vulkan_encode_create_dpb(), vulkan_encode_ffv1_init(), vulkan_encode_issue(), vvenc_init(), wbmp_encode_frame(), X264_init(), xan_decode_chroma(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_decode_init(), xavs2_init(), XAVS_init(), xbm_decode_frame(), xbm_encode_frame(), xface_decode_init(), xface_encode_frame(), xpm_decode_frame(), xvid_encode_frame(), xvid_encode_init(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_frame(), y41p_decode_frame(), y41p_decode_init(), y41p_encode_frame(), y41p_encode_init(), yop_decode_frame(), yop_decode_init(), yuv4_decode_frame(), yuv4_encode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

◆ height

int AVCodecContext::height
Examples
decode_filter_video.c, demux_decode.c, qsv_transcode.c, transcode.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 624 of file avcodec.h.

Referenced by a64multi_encode_frame(), aasc_decode_frame(), aic_decode_init(), alloc_picture(), amf_copy_surface(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), aom_decode(), aom_init(), apply_param_change(), aura_decode_frame(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), avformat_find_stream_info(), avui_decode_frame(), avui_encode_frame(), avui_encode_init(), bethsoftvid_decode_frame(), bfi_decode_frame(), bfi_decode_init(), bitpacked_decode_uyvy422(), bitpacked_decode_yuv422p10(), bitpacked_init_decoder(), bmp_decode_frame(), bmp_encode_frame(), cdg_decode_flush(), cdg_decode_frame(), cdtoons_decode_frame(), cdtoons_render_sprite(), cdxl_decode_frame(), cdxl_decode_ham6(), cdxl_decode_ham8(), cfhd_decode(), cfhd_encode_frame(), cfhd_encode_init(), choose_tiling(), cinepak_decode_init(), cinepak_encode_init(), cinvideo_decode_frame(), cinvideo_decode_init(), clear_plane(), cllc_decode_frame(), clv_decode_init(), comp_block(), compress_texture(), compute_dar(), config_enc_params(), config_input(), config_props(), copy_frame_to_buffer(), copy_plane(), count_plane_slice(), cpia_decode_frame(), create_cv_pixel_buffer_info(), cri_decode_frame(), cuvid_handle_video_sequence(), cuvid_output_frame(), cyuv_decode_frame(), d3d12va_encode_hevc_get_encoder_caps(), d3d12va_encode_hevc_init_sequence_params(), d3d12va_mpeg2_end_frame(), davs2_dump_frames(), dds_decode(), dec_enc(), dec_open(), decode_13(), decode_argb(), decode_argb_frame(), decode_argbi(), decode_argx(), decode_argxi(), decode_aybr(), decode_aybri(), decode_block(), decode_blocks(), decode_byry(), decode_byryi(), decode_c82i(), decode_c82p(), decode_ca2i(), decode_ca2p(), decode_ca4i(), decode_ca4p(), decode_dlta(), decode_fint(), decode_frame(), decode_frame_header(), decode_frame_lscr(), decode_huffman2(), decode_init(), decode_inter(), decode_intra(), decode_kfrm(), decode_mous(), decode_move(), decode_mvdv(), decode_picture_header(), decode_raw_intra(), decode_raw_intra_rgb(), decode_receive_frame_internal(), decode_rgb(), decode_rgb24_frame(), decode_rgbi(), decode_rgbx(), decode_rgbxi(), decode_rle(), decode_rle16(), decode_rle_bpp2(), decode_rle_bpp4(), decode_run_i(), decode_run_p(), decode_runlen(), decode_runlen_rgb(), decode_sequence_header_adv(), decode_ybr(), decode_ybr10(), decode_ybr10i(), decode_ybri(), decode_ybyr(), decode_yry10(), decode_yry10i(), decode_yuv_frame(), decompress_i(), decompress_i3(), decompress_p(), decompress_p3(), dfa_decode_frame(), dfa_decode_init(), dnxhd_decode_frame(), dnxhd_decode_init(), dnxhd_encode_init(), dnxhd_mb_var_thread(), dnxhd_write_header(), do_vflip(), draw_char(), draw_cursor(), dump_stream_group(), dvbsub_decode(), dvbsub_encode(), dvbsub_parse_display_definition_segment(), dvdsub_init(), dvvideo_decode_frame(), dvvideo_encode_init(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxtory_decode_v2(), dxv_encode(), dxv_init(), dxva2_mpeg2_end_frame(), enc_open(), encode(), encode_apng(), encode_determine_slices(), encode_dvd_subtitles(), encode_frame(), encode_frame_size(), encode_gbrp10(), encode_gbrp12(), encode_headers(), encode_init(), encode_jpegls_init(), encode_picture_ls(), encode_png(), encode_preinit_video(), encode_receive_packet_internal(), encode_rgb48_10bit(), encode_slice(), encode_yuv422p10(), erase_screen(), escape124_decode_init(), escape130_decode_frame(), escape130_decode_init(), execute_code(), export_stream_params(), extract_header(), ff_amf_receive_packet(), ff_asv_common_init(), ff_d3d12va_common_frame_params(), ff_dnxhd_find_cid(), ff_draw_horiz_band(), ff_dxva2_av1_fill_picture_parameters(), ff_dxva2_vc1_fill_picture_parameters(), ff_dxva2_vp9_fill_picture_parameters(), ff_encode_alloc_frame(), ff_ffv1_common_init(), ff_ffv1_encode_buffer_size(), ff_ffv1_encode_init(), ff_get_buffer(), ff_guess_coded_bitrate(), ff_h264_draw_horiz_band(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_libwebp_get_frame(), ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar(), ff_mediacodec_sw_buffer_copy_yuv420_planar(), ff_mediacodec_sw_buffer_copy_yuv420_semi_planar(), ff_mjpeg_decode_frame_from_buf(), ff_mjpeg_encode_picture_header(), ff_mpv_encode_init(), ff_msmpeg4_decode_init(), ff_mss12_decode_init(), ff_pnm_decode_header(), ff_set_sar(), ff_slice_thread_init(), ff_vaapi_encode_init(), ff_vc1_decode_init(), ff_videotoolbox_alloc_frame(), ff_vp56_decode_frame(), ff_vulkan_encode_init(), ffmal_copy_frame(), ffmmal_init_decoder(), fic_decode_frame(), fic_decode_init(), fic_draw_cursor(), fill_tile4(), fill_tileX(), find_slice_quant(), fits_encode_frame(), flashsv2_encode_init(), flashsv_decode_frame(), flashsv_encode_init(), flip(), g2m_decode_frame(), g2m_decode_init(), gdv_decode_frame(), gdv_decode_init(), gem_decode_frame(), get_buffer_with_edge(), get_conf(), get_cv_pixel_info(), gif_crop_opaque(), gif_crop_translucent(), gif_encode_frame(), gif_encode_init(), gif_image_write_image(), h264_init_context(), hap_init(), hdr_encode_frame(), hnm_decode_init(), hqx_decode_frame(), hscroll(), imm5_decode_frame(), imx_decode_init(), init(), init_filter(), init_filters(), init_sequence_headers(), init_video_param(), init_video_param_jpeg(), ipu_decode_frame(), ipvideo_decode_init(), ir2_decode_frame(), is_image_translucent(), j2kenc_init(), lag_decode_frame(), lead_decode_frame(), libkvazaar_init(), libopenjpeg_copy_packed12(), libopenjpeg_copy_packed16(), libopenjpeg_copy_packed8(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), libopenjpeg_encode_init(), librav1e_encode_init(), librav1e_receive_packet(), libwebp_anim_encode_init(), libx265_encode_init(), libxevd_image_copy(), libxeve_init(), ljpeg_encode_frame(), ljpeg_encode_yuv(), load_buffer(), m101_decode_frame(), magy_encode_frame(), magy_encode_init(), main(), mediacodec_dec_parse_video_format(), mediacodec_decode_init(), mediacodec_init(), mediacodec_init_bsf(), mediacodec_send_dummy_frame(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_video_buffer(), mf_encv_output_adjust(), mf_v_avframe_to_sample(), mj2_create_image(), mm_decode_init(), mobiclip_decode(), mobiclip_init(), mp_decode_frame(), mp_decode_init(), mpeg4_decode_header(), mpegvideo_extract_headers(), msp2_decode_frame(), msrle_decode_8_16_24_32(), msrle_decode_frame(), msrle_decode_pal4(), msrle_encode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss2_decode_init(), mss3_decode_frame(), mss3_decode_init(), mss4_decode_frame(), msvideo1_decode_frame(), msvideo1_decode_init(), mvc_decode_frame(), mvc_decode_init(), new_stream_subtitle(), new_stream_video(), nvenc_alloc_surface(), nvenc_check_capabilities(), nvenc_copy_frame(), nvenc_setup_encoder(), omx_component_init(), omx_encode_frame(), open_output_file(), ost_bind_filter(), paf_video_init(), pam_encode_frame(), parse_avs3_nal_units(), parse_object_segment(), parse_palette_segment(), parse_presentation_segment(), pcx_encode_frame(), photocd_decode_frame(), pixlet_decode_frame(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), predict_intra(), predict_motion(), predict_slice(), prepare_picture(), process_frame(), prores_encode_frame(), prores_encode_init(), prores_encode_picture(), put_lines_bits(), put_lines_bytes(), qoi_encode_frame(), qsv_decode_init_context(), qtrle_encode_init(), reget_buffer_internal(), rkmpp_retrieve_frame(), rl2_decode_init(), roq_decode_init(), roq_encode_init(), rpza_encode_frame(), rpza_encode_init(), rscc_decode_frame(), rscc_init(), screenpresso_decode_frame(), screenpresso_init(), set_context_with_sequence(), sga_decode_frame(), sgirle_decode_frame(), smc_encode_frame(), sp5x_decode_frame(), speedhq_decode_frame(), sunrast_encode_init(), sunrast_image_write_header(), sunrast_image_write_image(), svc_decode_frame(), svc_encode_frame(), svc_encode_init(), svq1_decode_init(), svq1_encode_end(), svq1_encode_init(), svq3_decode_frame(), svq3_decode_init(), targa_encode_frame(), targa_encode_init(), tdsc_decode_frame(), tdsc_init(), tdsc_load_cursor(), tdsc_parse_tdsf(), teletext_init_decoder(), tgq_decode_frame(), tmv_decode_frame(), to_meta_with_crop(), transcode_subtitles(), truemotion2rt_decode_frame(), tscc2_decode_init(), txd_decode_frame(), ulti_decode_init(), update_context_with_frame_header(), update_video_stats(), utvideo_encode_frame(), utvideo_encode_init(), v210_decode_slice(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_decode_slice(), v410_encode_frame(), v4l2_encode_init(), vaapi_encode_av1_get_encoder_caps(), vaapi_encode_av1_init_picture_params(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_av1_set_tile(), vaapi_encode_av1_write_picture_header(), vaapi_encode_h264_configure(), vaapi_encode_h264_init(), vaapi_encode_h265_get_encoder_caps(), vaapi_encode_init_slice_structure(), vaapi_encode_mjpeg_get_encoder_caps(), vaapi_encode_mjpeg_init_picture_params(), vaapi_encode_mpeg2_configure(), vaapi_encode_mpeg2_init(), vaapi_encode_mpeg2_init_sequence_params(), vaapi_encode_vp8_init_sequence_params(), vaapi_encode_vp9_get_encoder_caps(), vaapi_encode_vp9_init_sequence_params(), vaapi_mjpeg_start_frame(), vaapi_vp8_start_frame(), vaapi_vp9_start_frame(), vble_decode_frame(), vble_decode_init(), vbn_decode_frame(), vbn_encode(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_header(), vc2_encode_init(), vcr1_decode_frame(), vcr1_decode_init(), vdpau_av1_start_frame(), vdpau_vp9_start_frame(), vp8_lossy_decode_frame(), vpx_decode(), vpx_init(), vqc_decode_frame(), vqc_decode_init(), vtenc_create_encoder(), vulkan_encode_create_dpb(), vulkan_encode_ffv1_init(), vulkan_encode_issue(), vvenc_init(), wbmp_encode_frame(), X264_init(), xan_decode_chroma(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_decode_init(), xavs2_init(), XAVS_init(), xbm_decode_frame(), xbm_encode_frame(), xface_decode_init(), xface_encode_frame(), xpm_decode_frame(), xvid_encode_frame(), xvid_encode_init(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yop_decode_frame(), yop_decode_init(), yuv4_decode_frame(), yuv4_encode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

◆ coded_width

int AVCodecContext::coded_width

Bitstream width / height, may be different from width/height e.g.

when the decoded frame is cropped before being output or lowres is enabled.

Note
Those field may not match the value of the last AVFrame output by avcodec_receive_frame() due frame reordering.
  • encoding: unused
  • decoding: May be set by the user before opening the decoder if known e.g. from the container. During decoding, the decoder may overwrite those values as required while parsing the data.

Definition at line 639 of file avcodec.h.

Referenced by av_vdpau_get_surface_parameters(), avcodec_default_get_buffer2(), avcodec_open2(), avcodec_string(), cfhd_decode(), copy_block(), copyadd_block(), cuvid_decode_init(), dds_decode(), decode_frame(), decode_init(), decode_inter(), decode_intra(), decode_motion_vectors(), dnxhd_decode_init(), dump_stream_format(), dump_stream_group(), dxv_decode(), dxv_init(), export_stream_params(), ff_d3d12va_get_suitable_max_bitstream_size(), ff_dv_frame_profile(), ff_dxva2_common_frame_params(), ff_encode_alloc_frame(), ff_get_buffer(), ff_h263_decode_frame(), ff_mpv_decode_init(), ff_mss12_decode_init(), ff_nvdec_decode_init(), ff_nvdec_frame_params(), ff_vaapi_decode_init(), ff_vdpau_common_init(), ff_vdpau_common_reinit(), ff_vk_decode_init(), ff_vk_frame_params(), ff_vp56_decode_frame(), ff_vulkan_encode_init(), h261_decode_frame(), hap_decode(), hap_init(), hqx_decode_frame(), imm5_decode_frame(), magy_decode_frame(), magy_decode_slice(), magy_decode_slice10(), mpeg4_decode_header(), mpeg_decode_init(), mpeg_decode_postinit(), mpegvideo_extract_headers(), qsv_decode_init_context(), qsv_decode_preinit(), qsv_get_continuous_buffer(), qsv_process_data(), rv10_decode_init(), rv30_decode_init(), show_stream(), sp5x_decode_frame(), speedhq_decode_frame(), txd_decode_frame(), v4l2_decode_init(), v4l2_try_start(), vaapi_decode_make_config(), vbn_decode_frame(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_header(), vcr2_init_sequence(), vp3_decode_init(), vp56_size_changed(), and vulkan_decode_get_profile().

◆ coded_height

int AVCodecContext::coded_height

Definition at line 639 of file avcodec.h.

Referenced by av_vdpau_get_surface_parameters(), avcodec_default_get_buffer2(), avcodec_open2(), avcodec_string(), cfhd_decode(), copy_block(), copyadd_block(), cuvid_decode_init(), dds_decode(), decode_frame(), decode_init(), decode_inter(), decode_intra(), decode_motion_vectors(), dnxhd_decode_init(), dump_stream_format(), dump_stream_group(), dxv_decode(), dxv_init(), export_stream_params(), ff_d3d12va_get_suitable_max_bitstream_size(), ff_dv_frame_profile(), ff_dxva2_common_frame_params(), ff_encode_alloc_frame(), ff_get_buffer(), ff_h263_decode_frame(), ff_mjpeg_decode_frame_from_buf(), ff_mjpeg_decode_init(), ff_mpv_decode_init(), ff_mss12_decode_init(), ff_nvdec_decode_init(), ff_nvdec_frame_params(), ff_vaapi_decode_init(), ff_vdpau_common_init(), ff_vdpau_common_reinit(), ff_vk_decode_init(), ff_vk_frame_params(), ff_vp56_decode_frame(), ff_vulkan_encode_init(), h261_decode_frame(), hap_decode(), hap_init(), hqx_decode_frame(), imm5_decode_frame(), magy_decode_frame(), magy_decode_slice(), magy_decode_slice10(), mpeg4_decode_header(), mpeg_decode_init(), mpeg_decode_postinit(), mpegvideo_extract_headers(), qsv_decode_init_context(), qsv_decode_preinit(), qsv_get_continuous_buffer(), qsv_process_data(), rv10_decode_init(), rv30_decode_init(), show_stream(), sp5x_decode_frame(), speedhq_decode_frame(), txd_decode_frame(), v4l2_decode_init(), v4l2_try_start(), vaapi_decode_make_config(), vaapi_vc1_decode_slice(), vbn_decode_frame(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_header(), vcr2_init_sequence(), vp3_decode_init(), vp56_size_changed(), and vulkan_decode_get_profile().

◆ sample_aspect_ratio

AVRational AVCodecContext::sample_aspect_ratio

sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel.

Numerator and denominator must be relatively prime and smaller than 256 for some video standards.

  • encoding: Set by user.
  • decoding: Set by libavcodec.
Examples
decode_filter_video.c, transcode.c, and vaapi_encode.c.

Definition at line 648 of file avcodec.h.

Referenced by amf_encode_init_h264(), amf_encode_init_hevc(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), compute_dar(), d3d12va_encode_hevc_init_sequence_params(), dec_open(), decode_frame(), decode_phys_chunk(), decode_sequence_header_adv(), enc_open(), encode_aspect_ratio(), encode_frame(), encode_headers(), encode_init(), ff_canopus_parse_info_tag(), ff_h263_decode_frame(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_mpv_encode_init(), ff_set_sar(), ffmal_copy_frame(), ffmal_update_format(), ffmmal_init_decoder(), fill_frame_props(), gem_decode_frame(), hdr_decode_frame(), hdr_encode_frame(), init_filter(), init_filters(), init_video_param(), init_video_param_jpeg(), jpeg2000_decode_frame(), jpeg_put_comments(), libkvazaar_init(), librav1e_encode_init(), libx265_encode_init(), main(), mediacodec_wrap_hw_buffer(), mpeg_decode_postinit(), of_stream_init(), open_output_file(), pcx_decode_frame(), pcx_encode_frame(), svc_encode_init(), update_context_with_frame_header(), vaapi_encode_mpeg2_init_sequence_params(), vtenc_create_encoder(), X264_init(), XAVS_init(), and xvid_encode_frame().

◆ pix_fmt

enum AVPixelFormat AVCodecContext::pix_fmt

Pixel format, see AV_PIX_FMT_xxx.

May be set by the demuxer if known from headers. May be overridden by the decoder if it knows better.

Note
This field may not match the value of the last AVFrame output by avcodec_receive_frame() due frame reordering.
  • encoding: Set by user.
  • decoding: Set by user if known, overridden by libavcodec while parsing the data.
Examples
decode_filter_video.c, demux_decode.c, qsv_transcode.c, transcode.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 663 of file avcodec.h.

Referenced by aasc_decode_frame(), aasc_decode_init(), aic_decode_init(), alloc_buffers(), alloc_picture(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), amf_init_encoder(), aom_decode(), aom_init(), aura_decode_init(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), avformat_find_stream_info(), avs_decode_init(), avui_decode_init(), bethsoftvid_decode_init(), bfi_decode_init(), bitpacked_decode_uyvy422(), bitpacked_init_decoder(), bmp_decode_frame(), bmp_encode_frame(), bmp_encode_init(), cdg_decode_init(), cdtoons_decode_init(), cdxl_decode_frame(), cfhd_decode(), cfhd_encode_frame(), cfhd_encode_init(), cinepak_decode_init(), cinepak_encode_end(), cinepak_encode_init(), cinvideo_decode_init(), cllc_decode_frame(), clv_decode_init(), cmv_decode_init(), commit_bitstream_and_slice_buffer(), config_enc_params(), config_input(), config_props(), copy_frame_to_buffer(), cpia_decode_init(), create_cv_pixel_buffer(), create_cv_pixel_buffer_info(), cri_decode_frame(), cuvid_decode_init(), cuvid_output_frame(), cyuv_decode_frame(), davs2_dump_frames(), dds_decode(), dec_enc(), dec_open(), decode(), decode_fctl_chunk(), decode_fint(), decode_frame(), decode_frame_header(), decode_idat_chunk(), decode_init(), decode_slice_thread(), decode_wmv9(), dfa_decode_init(), dirac_decode_data_unit(), dnxhd_decode_frame(), dnxhd_encode_init(), dnxhd_encode_thread(), dnxhd_write_header(), draw_cursor(), dvvideo_decode_frame(), dvvideo_encode_init(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxtory_decode_v2(), dxv_decode(), enc_open(), encode_frame(), encode_init(), encode_init_internal(), encode_jpegls_init(), encode_picture_ls(), encode_plane(), encode_preinit_video(), escape124_decode_init(), escape130_decode_init(), export_stream_params(), extract_header(), ff_cavs_init(), ff_draw_horiz_band(), ff_dxva2_commit_buffer(), ff_dxva2_common_end_frame(), ff_dxva2_get_report_id(), ff_dxva2_get_surface_index(), ff_dxva2_is_d3d11(), ff_encode_alloc_frame(), ff_get_buffer(), ff_guess_coded_bitrate(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h264_draw_horiz_band(), ff_libwebp_get_frame(), ff_mjpeg_decode_frame_from_buf(), ff_mjpeg_encode_check_pix_fmt(), ff_mjpeg_encode_picture_header(), ff_mjpeg_init_hvsample(), ff_mpv_encode_init(), ff_nvenc_encode_close(), ff_nvenc_encode_init(), ff_pnm_decode_header(), ff_rv34_decode_init(), ff_vc1_decode_init(), ff_videotoolbox_alloc_frame(), ff_vp56_decode_frame(), ff_vp56_init_context(), ffmal_copy_frame(), ffmal_update_format(), ffmmal_init_decoder(), fic_decode_init(), fill_frame_props(), filter_1phase(), fits_decode_frame(), fits_encode_frame(), flashsv_decode_init(), flic_decode_frame(), flic_decode_init(), g2m_decode_frame(), g2m_decode_init(), gdv_decode_init(), gem_decode_frame(), get_buffer_with_edge(), get_cm_codec_type(), get_conf(), get_cv_pixel_info(), get_pixel_format(), get_vt_hevc_profile_level(), gif_decode_init(), gif_encode_frame(), gif_encode_init(), h261_decode_init(), h263_get_format(), handle_p_frame_apng(), hap_init(), has_codec_parameters(), hdr_decode_frame(), hnm_decode_init(), hqx_decode_frame(), hw_device_setup_for_encode(), idcin_decode_init(), imm5_decode_frame(), imx_decode_init(), init(), init_decoder(), init_filter(), init_filters(), init_video_param(), init_video_param_jpeg(), ipu_decode_init(), ipvideo_decode_init(), ir2_decode_init(), j2kenc_init(), jpeg_put_comments(), lag_decode_arith_plane(), lag_decode_frame(), lag_pred_line(), lead_decode_frame(), libjxl_receive_frame(), libkvazaar_encode(), libopenjpeg_encode_frame(), librav1e_encode_init(), librav1e_receive_packet(), librsvg_decode_frame(), libuavs3d_decode_frame(), libx265_encode_frame(), libx265_encode_init(), libxevd_image_copy(), libxeve_init(), ljpeg_encode_bgr(), ljpeg_encode_frame(), lscr_decode_init(), m101_decode_frame(), m101_decode_init(), magy_decode_frame(), magy_encode_init(), main(), mediacodec_dec_parse_video_format(), mediacodec_init(), mediacodec_init_bsf(), mediacodec_send_dummy_frame(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_video_buffer(), mf_encv_input_adjust(), mf_encv_input_score(), mf_v_avframe_to_sample(), mimic_decode_frame(), mj2_create_image(), mm_decode_init(), mobiclip_init(), mp_decode_init(), mpeg_decode_postinit(), msp2_decode_frame(), msrle_decode_frame(), msrle_decode_init(), mss1_decode_init(), mss2_decode_frame(), mss2_decode_init(), mss3_decode_init(), mss4_decode_init(), msvideo1_decode_init(), mvc_decode_init(), new_stream_video(), nvenc_alloc_surface(), nvenc_setup_device(), nvenc_upload_frame(), omx_encode_frame(), open_output_file(), ost_bind_filter(), paf_video_init(), pam_encode_frame(), parse_avs3_nal_units(), parse_palette(), parse_pixel_format(), pcx_decode_frame(), pcx_encode_frame(), photocd_decode_init(), pix_decode_frame(), pixlet_init(), png_enc_init(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), process_frame(), process_output_surface(), prores_encode_frame(), prores_encode_init(), ptx_decode_frame(), qoi_decode_frame(), qoi_encode_frame(), qsv_decode(), qsv_decode_init_context(), qsv_decode_preinit(), qsv_get_continuous_buffer(), qsv_process_data(), qtrle_decode_init(), qtrle_encode_init(), raw_encode_init(), raw_init_decoder(), recon_frame_process(), reget_buffer_internal(), rkmpp_init_decoder(), rl2_decode_init(), roq_decode_init(), rpza_decode_init(), rscc_decode_frame(), rscc_init(), rv60_decode_init(), screenpresso_decode_frame(), seqvideo_decode_init(), set_context_with_sequence(), set_pix_fmt(), sga_decode_init(), sgirle_decode_init(), smc_decode_init(), speedhq_decode_init(), sunrast_decode_frame(), sunrast_encode_init(), svc_decode_frame(), svc_decode_init(), svc_encode_init(), svq1_decode_init(), svq1_encode_frame(), svq3_decode_init(), targa_encode_frame(), tdsc_init(), tgq_decode_init(), tgv_decode_init(), tmv_decode_init(), tqi_decode_init(), truemotion2rt_decode_init(), tscc2_decode_init(), txd_decode_frame(), ulti_decode_init(), update_dimensions(), update_frame_pool(), update_size(), utvideo_encode_frame(), utvideo_encode_init(), v308_decode_init(), v408_decode_init(), v410_decode_init(), v4l2_decode_init(), v4l2_encode_init(), v4l2_try_start(), vble_decode_init(), vbn_decode_frame(), vc2_encode_init(), vcr1_decode_init(), vcr2_init_sequence(), vmdvideo_decode_init(), vp3_decode_init(), vp78_decode_frame(), vp78_decode_init(), vp8_lossless_decode_frame(), vp8_lossy_decode_frame(), vpx_decode(), vpx_init(), vqa_decode_frame(), vqa_decode_init(), vqc_decode_init(), vtenc_configure_encoder(), vtenc_create_encoder(), wbmp_decode_frame(), X264_init(), xan_decode_init(), xavs2_init(), xbm_decode_frame(), xface_decode_init(), xpm_decode_frame(), xvid_encode_frame(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_init(), y41p_decode_init(), yop_decode_init(), yuv4_decode_init(), zero12v_decode_init(), and zerocodec_decode_init().

◆ sw_pix_fmt

enum AVPixelFormat AVCodecContext::sw_pix_fmt

◆ color_primaries

enum AVColorPrimaries AVCodecContext::color_primaries

◆ color_trc

enum AVColorTransferCharacteristic AVCodecContext::color_trc

◆ colorspace

enum AVColorSpace AVCodecContext::colorspace

YUV colorspace type.

  • encoding: Set by user
  • decoding: Set by libavcodec

Definition at line 691 of file avcodec.h.

Referenced by aom_init(), av1_parser_parse(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), config_enc_params(), d3d12va_encode_hevc_init_sequence_params(), dec_open(), decode_frame(), decode_frame_header(), decode_init(), dirac_decode_data_unit(), dnxhd_decode_init(), dxv_decode(), enc_open(), encode_color_spec(), export_stream_params(), ff_amf_get_color_profile(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_mjpeg_decode_init(), ff_videotoolbox_vpcc_extradata_create(), ffmal_update_format(), fill_frame_props(), imm5_decode_frame(), init_video_param(), libjxl_color_encoding_event(), libkvazaar_init(), librav1e_encode_init(), libuavs3d_decode_frame(), libx265_encode_init(), mediacodec_dec_parse_video_format(), mediacodec_init(), mediacodec_wrap_hw_buffer(), mobiclip_decode(), nvdec_vp9_start_frame(), nvenc_setup_h264_config(), nvenc_setup_hevc_config(), ost_bind_filter(), parse_pixel_format(), photocd_decode_init(), populate_avctx_color_fields(), populate_fields(), qsv_decode_header(), read_colorspace_details(), set_context_with_sequence(), set_parser_ctx(), set_pix_fmt(), speedhq_decode_init(), svc_encode_init(), utvideo_encode_init(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_mpeg2_init_sequence_params(), vc1_decode_init(), vdpau_vp9_start_frame(), vp78_decode_frame(), vtenc_configure_encoder(), vvenc_set_color_format(), and X264_init().

◆ color_range

enum AVColorRange AVCodecContext::color_range

MPEG vs JPEG YUV range.

  • encoding: Set by user to override the default output color range value, If not specified, libavcodec sets the color range depending on the output format.
  • decoding: Set by libavcodec, can be set by the user to propagate the color range to components reading from the decoder context.

Definition at line 701 of file avcodec.h.

Referenced by amf_encode_init_h264(), amf_encode_init_hevc(), av1_parser_parse(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), config_enc_params(), create_cv_pixel_buffer_info(), d3d12va_encode_hevc_init_sequence_params(), dec_open(), decode_frame(), decode_frame_header(), decode_init(), dirac_decode_data_unit(), enc_open(), encode_preinit_video(), export_stream_params(), ff_amf_get_color_profile(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_mjpeg_encode_check_pix_fmt(), ff_pnm_decode_header(), ff_videotoolbox_vpcc_extradata_create(), ff_vk_video_common_init(), fill_frame_props(), get_cv_pixel_info(), h263_get_format(), imm5_decode_frame(), init_video_param(), jpeg_put_comments(), libjxl_color_encoding_event(), libjxl_encode_frame(), libkvazaar_init(), librav1e_encode_init(), libx265_encode_init(), lscr_decode_init(), mediacodec_dec_parse_video_format(), mediacodec_init(), mediacodec_wrap_hw_buffer(), mpeg_decode_init(), nvenc_setup_h264_config(), nvenc_setup_hevc_config(), ost_bind_filter(), photocd_decode_init(), pixlet_init(), populate_avctx_color_fields(), qsv_decode_header(), read_colorspace_details(), roq_decode_init(), set_color_range(), set_context_with_sequence(), set_parser_ctx(), set_pix_fmt(), svc_encode_init(), svq3_decode_init(), vaapi_encode_av1_init_sequence_params(), vc1_get_format(), vc2_encode_init(), vp78_decode_frame(), and X264_init().

◆ chroma_sample_location

enum AVChromaLocation AVCodecContext::chroma_sample_location

◆ field_order

enum AVFieldOrder AVCodecContext::field_order

◆ refs

int AVCodecContext::refs

◆ has_b_frames

int AVCodecContext::has_b_frames

◆ slice_flags

int AVCodecContext::slice_flags

slice flags

  • encoding: unused
  • decoding: Set by user.

Definition at line 736 of file avcodec.h.

Referenced by ff_draw_horiz_band(), and ff_h264_draw_horiz_band().

◆ draw_horiz_band

void(* AVCodecContext::draw_horiz_band) (struct AVCodecContext *s, const AVFrame *src, int offset[AV_NUM_DATA_POINTERS], int y, int type, int height)

If non NULL, 'draw_horiz_band' is called by the libavcodec decoder to draw a horizontal band.

It improves cache usage. Not all codecs can do that. You must check the codec capabilities beforehand. When multithreading is used, it may be called from multiple threads at the same time; threads might draw different parts of the same AVFrame, or multiple AVFrames, and there is no guarantee that slices will be drawn in order. The function is also used by hardware acceleration APIs. It is called at least once during frame decoding to pass the data needed for hardware render. In that mode instead of pixel data, AVFrame points to a structure specific to the acceleration API. The application reads the structure and can change some fields to indicate progress or mark state.

  • encoding: unused
  • decoding: Set by user.
    Parameters
    heightthe height of the slice
    ythe y position of the slice
    type1->top field, 2->bottom field, 3->frame
    offsetoffset into the AVFrame.data from which the slice should be read

Definition at line 764 of file avcodec.h.

Referenced by draw_slice(), ff_draw_horiz_band(), and ff_h264_draw_horiz_band().

◆ get_format

enum AVPixelFormat(* AVCodecContext::get_format) (struct AVCodecContext *s, const enum AVPixelFormat *fmt)

Callback to negotiate the pixel format.

Decoding only, may be set by the caller before avcodec_open2().

Called by some decoders to select the pixel format that will be used for the output frames. This is mainly used to set up hardware acceleration, then the provided format list contains the corresponding hwaccel pixel formats alongside the "software" one. The software pixel format may also be retrieved from sw_pix_fmt.

This callback will be called when the coded frame properties (such as resolution, pixel format, etc.) change and more than one output format is supported for those new properties. If a hardware pixel format is chosen and initialization for it fails, the callback may be called again immediately.

This callback may be called from different threads if the decoder is multi-threaded, but not from more than one thread simultaneously.

Parameters
fmtlist of formats which may be used in the current configuration, terminated by AV_PIX_FMT_NONE.
Warning
Behavior is undefined if the callback returns a value other than one of the formats in fmt or AV_PIX_FMT_NONE.
Returns
the chosen format or AV_PIX_FMT_NONE
Examples
hw_decode.c, qsv_decode.c, qsv_transcode.c, and vaapi_transcode.c.

Definition at line 793 of file avcodec.h.

Referenced by dec_open(), ff_get_format(), main(), and open_input_file().

◆ max_b_frames

int AVCodecContext::max_b_frames

◆ b_quant_factor

float AVCodecContext::b_quant_factor

qscale factor between IP and B-frames If > 0 then the last P-frame quantizer will be used (q= lastp_q*factor+offset).

If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).

  • encoding: Set by user.
  • decoding: unused

Definition at line 810 of file avcodec.h.

Referenced by d3d12va_encode_hevc_configure(), init_enc_options(), init_video_param(), libx265_encode_init(), set_constqp(), set_vbr(), update_qp(), vaapi_encode_av1_configure(), vaapi_encode_h264_configure(), vaapi_encode_h265_configure(), vaapi_encode_mpeg2_configure(), vaapi_encode_vp9_configure(), X264_init(), XAVS_init(), and xvid_encode_init().

◆ b_quant_offset

float AVCodecContext::b_quant_offset

◆ i_quant_factor

float AVCodecContext::i_quant_factor

qscale factor between P- and I-frames If > 0 then the last P-frame quantizer will be used (q = lastp_q * factor + offset).

If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).

  • encoding: Set by user.
  • decoding: unused

Definition at line 826 of file avcodec.h.

Referenced by d3d12va_encode_hevc_configure(), init_enc_options(), init_video_param(), libx265_encode_init(), set_constqp(), set_vbr(), update_qp(), vaapi_encode_av1_configure(), vaapi_encode_h264_configure(), vaapi_encode_h265_configure(), vaapi_encode_mpeg2_configure(), vaapi_encode_vp8_configure(), vaapi_encode_vp9_configure(), X264_init(), and XAVS_init().

◆ i_quant_offset

float AVCodecContext::i_quant_offset

◆ lumi_masking

float AVCodecContext::lumi_masking

luminance masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 840 of file avcodec.h.

Referenced by ff_mpv_encode_init(), and xvid_encode_init().

◆ temporal_cplx_masking

float AVCodecContext::temporal_cplx_masking

temporary complexity masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 847 of file avcodec.h.

Referenced by ff_mpv_encode_init().

◆ spatial_cplx_masking

float AVCodecContext::spatial_cplx_masking

spatial complexity masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 854 of file avcodec.h.

Referenced by ff_mpv_encode_init().

◆ p_masking

float AVCodecContext::p_masking

p block masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 861 of file avcodec.h.

Referenced by ff_mpv_encode_init().

◆ dark_masking

float AVCodecContext::dark_masking

darkness masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 868 of file avcodec.h.

Referenced by ff_mpv_encode_init().

◆ nsse_weight

int AVCodecContext::nsse_weight

noise vs.

sse weight for the nsse comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 875 of file avcodec.h.

◆ me_cmp

int AVCodecContext::me_cmp

motion estimation comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 882 of file avcodec.h.

Referenced by config_props(), ff_me_init(), X264_init(), and XAVS_init().

◆ me_sub_cmp

int AVCodecContext::me_sub_cmp

subpixel motion estimation comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 888 of file avcodec.h.

Referenced by config_props(), and ff_me_init().

◆ mb_cmp

int AVCodecContext::mb_cmp

macroblock comparison function (not supported yet)

  • encoding: Set by user.
  • decoding: unused

Definition at line 894 of file avcodec.h.

Referenced by config_props(), ff_me_init(), and me_cmp_init().

◆ ildct_cmp

int AVCodecContext::ildct_cmp

interlaced DCT comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 900 of file avcodec.h.

Referenced by dvvideo_encode_init(), and me_cmp_init().

◆ dia_size

int AVCodecContext::dia_size

ME diamond size & shape.

  • encoding: Set by user.
  • decoding: unused

Definition at line 924 of file avcodec.h.

Referenced by config_props(), encode_frame(), and ff_me_init().

◆ last_predictor_count

int AVCodecContext::last_predictor_count

amount of previous MV predictors (2a+1 x 2a+1 square)

  • encoding: Set by user.
  • decoding: unused

Definition at line 931 of file avcodec.h.

◆ me_pre_cmp

int AVCodecContext::me_pre_cmp

motion estimation prepass comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 938 of file avcodec.h.

Referenced by ff_me_init().

◆ pre_dia_size

int AVCodecContext::pre_dia_size

ME prepass diamond size & shape.

  • encoding: Set by user.
  • decoding: unused

Definition at line 945 of file avcodec.h.

Referenced by ff_me_init().

◆ me_subpel_quality

int AVCodecContext::me_subpel_quality

subpel ME quality

  • encoding: Set by user.
  • decoding: unused

Definition at line 952 of file avcodec.h.

Referenced by X264_init(), and XAVS_init().

◆ me_range

int AVCodecContext::me_range

maximum motion estimation search range in subpel units If 0 then no limit.

  • encoding: Set by user.
  • decoding: unused

Definition at line 961 of file avcodec.h.

Referenced by encode_init(), X264_init(), and XAVS_init().

◆ mb_decision

int AVCodecContext::mb_decision

macroblock decision mode

  • encoding: Set by user.
  • decoding: unused

Definition at line 968 of file avcodec.h.

Referenced by dnxhd_calc_bits_thread(), dnxhd_encode_picture(), ff_mpv_encode_init(), ff_mpv_encode_picture(), and xvid_encode_init().

◆ intra_matrix

uint16_t* AVCodecContext::intra_matrix

custom intra quantization matrix Must be allocated with the av_malloc() family of functions, and will be freed in avcodec_free_context().

  • encoding: Set/allocated by user, freed by libavcodec. Can be NULL.
  • decoding: Set/allocated/freed by libavcodec.

Definition at line 980 of file avcodec.h.

Referenced by avcodec_free_context(), ff_mpv_encode_init(), new_stream_video(), and xvid_encode_init().

◆ inter_matrix

uint16_t* AVCodecContext::inter_matrix

custom inter quantization matrix Must be allocated with the av_malloc() family of functions, and will be freed in avcodec_free_context().

  • encoding: Set/allocated by user, freed by libavcodec. Can be NULL.
  • decoding: Set/allocated/freed by libavcodec.

Definition at line 989 of file avcodec.h.

Referenced by avcodec_free_context(), ff_mpv_encode_init(), new_stream_video(), and xvid_encode_init().

◆ chroma_intra_matrix

uint16_t* AVCodecContext::chroma_intra_matrix

custom intra quantization matrix

  • encoding: Set by user, can be NULL.
  • decoding: unused.

Definition at line 996 of file avcodec.h.

Referenced by avcodec_free_context(), and new_stream_video().

◆ intra_dc_precision

int AVCodecContext::intra_dc_precision

precision of the intra DC coefficient - 8

  • encoding: Set by user.
  • decoding: Set by libavcodec

Definition at line 1003 of file avcodec.h.

Referenced by ff_mpv_encode_init().

◆ mb_lmin

int AVCodecContext::mb_lmin

minimum MB Lagrange multiplier

  • encoding: Set by user.
  • decoding: unused

Definition at line 1010 of file avcodec.h.

Referenced by encode_init().

◆ mb_lmax

int AVCodecContext::mb_lmax

maximum MB Lagrange multiplier

  • encoding: Set by user.
  • decoding: unused

Definition at line 1017 of file avcodec.h.

Referenced by encode_init().

◆ bidir_refine

int AVCodecContext::bidir_refine
  • encoding: Set by user.
  • decoding: unused

Definition at line 1023 of file avcodec.h.

◆ keyint_min

int AVCodecContext::keyint_min

minimum GOP size

  • encoding: Set by user.
  • decoding: unused

Definition at line 1030 of file avcodec.h.

Referenced by aom_init(), encode_frame(), encode_init(), flashsv2_encode_frame(), librav1e_encode_init(), libx265_encode_init(), vpx_init(), X264_init(), and XAVS_init().

◆ gop_size

int AVCodecContext::gop_size

◆ mv0_threshold

int AVCodecContext::mv0_threshold

Note: Value depends upon the compare function used for fullpel ME.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1044 of file avcodec.h.

◆ slices

int AVCodecContext::slices

◆ sample_rate

int AVCodecContext::sample_rate

samples per second

Examples
decode_filter_audio.c, demux_decode.c, transcode.c, and transcode_aac.c.

Definition at line 1056 of file avcodec.h.

Referenced by aac_decode_er_frame(), aac_encode_frame(), aac_encode_init(), ac3_decode_frame(), adpcm_encode_init(), adx_decode_header(), adx_encode_header(), adx_encode_init(), alac_decode_init(), alac_encode_init(), amr_wb_encode_init(), amrnb_decode_init(), amrwb_decode_init(), apply_param_change(), atrac9_decode_init(), av_get_audio_frame_duration(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), cng_decode_init(), compute_frame_duration(), create_vorbis_context(), dca_parse(), dec_open(), decode_aiff_header(), decode_frame(), decode_frame_ga(), decode_init(), decode_ppc(), decode_wave_header(), discard_samples(), dolby_e_decode_frame(), dolby_e_parse(), dss_sp_decode_init(), enc_open(), encode_init(), encode_preinit_audio(), ff_aac_ac3_parse(), ff_aac_decode_init(), ff_aac_search_for_is(), ff_aac_usac_config_decode(), ff_aac_usac_decode_frame(), ff_dca_lbr_filter_frame(), ff_dca_xll_filter_frame(), ff_decode_receive_frame(), ff_encode_alloc_frame(), ff_flac_parse_streaminfo(), ff_psy_preprocess_init(), ff_samples_to_time_base(), ff_wma_init(), ffat_create_decoder(), ffat_decode(), ffat_init_decoder(), ffat_init_encoder(), ffat_update_ctx(), fill_frame_props(), filter_frame_fixed(), filter_frame_float(), flac_encode_init(), flac_parse(), ftr_decode_frame(), g723_1_encode_init(), get_best_header(), get_rate(), get_stream_info(), gsm_init(), has_codec_parameters(), ilbc_decode_init(), ilbc_encode_init(), imc_decode_init(), init_bitstream_params(), init_filter(), init_filters(), init_hca(), init_output_frame(), init_resampler(), libcodec2_init_decoder(), libcodec2_init_encoder(), libgsm_decode_init(), libgsm_encode_init(), liblc3_decode_init(), liblc3_encode_init(), libopus_decode_init(), libopus_encode_init(), libopus_write_header(), libshine_encode_init(), libspeex_decode_init(), libvorbis_setup(), main(), mark_pns(), mediacodec_dec_parse_audio_format(), mediacodec_decode_init(), mediacodec_wrap_sw_audio_buffer(), metasound_decode_init(), mf_enca_input_adjust(), mf_enca_input_score(), mf_enca_output_score(), misc4_init(), misc4_parse(), mlp_encode_init(), mlp_parse(), mp3lame_encode_init(), MPA_encode_init(), mpegaudio_parse(), new_stream_audio(), oggvorbis_decode_init(), old_flac_header(), on2avc_decode_init(), open_output_file(), opus_decode_init(), opus_write_extradata(), osq_init(), ost_bind_filter(), parse_packet(), pcm_bluray_encode_init(), pcm_bluray_parse_header(), pcm_dvd_encode_init(), pcm_dvd_parse_header(), pcm_encode_init(), qdm2_decode_init(), qdmc_decode_init(), qoa_decode_frame(), read_frame_internal(), read_major_sync(), read_specific_config(), rka_decode_frame(), roq_dpcm_encode_init(), run_test(), s302m_decode_frame(), sbc_encode_init(), sbc_parse_header(), search_for_pns(), search_for_quantizers_fast(), search_for_quantizers_twoloop(), set_sample_rate_params(), siren_decode(), speex_decode_init(), stream_component_open(), tak_decode_frame(), tta_decode_init(), tta_encode_init(), twinvq_decode_init(), twolame_encode_init(), validate_options(), vmdaudio_decode_init(), vorbis_decode_frame(), vorbis_decode_init(), wavarc_init(), wavesynth_parse_extradata(), wavpack_decode_block(), and wavpack_encode_init().

◆ sample_fmt

enum AVSampleFormat AVCodecContext::sample_fmt

audio sample format

  • encoding: Set by user.
  • decoding: Set by libavcodec. sample format
Examples
decode_audio.c, decode_filter_audio.c, demux_decode.c, transcode.c, and transcode_aac.c.

Definition at line 1063 of file avcodec.h.

Referenced by ac3_decode_init(), adpcm_decode_init(), adx_decode_init(), alac_decode_init(), alac_encode_init(), amrnb_decode_init(), amrwb_decode_init(), apac_decode(), apac_init(), ape_decode_init(), atrac1_decode_init(), atrac3_decode_init(), atrac3p_decode_init(), atrac9_decode_init(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), avformat_find_stream_info(), bmv_aud_decode_init(), bonk_init(), cinaudio_decode_init(), cng_decode_init(), cook_decode_init(), dec_open(), decode(), decode_0cpy(), decode_1dif(), decode_2slp(), decode_5elp(), decode_frame(), decode_init(), decoder_init(), dolby_e_decode_frame(), dolby_e_parse(), dpcm_decode_init(), dprint_options(), dss_sp_decode_init(), eightsvx_decode_init(), enc_open(), encode_preinit_audio(), evrc_decode_init(), fastaudio_init(), fdk_aac_decode_frame(), fdk_aac_decode_init(), ff_aac_decode_init_fixed(), ff_aac_decode_init_float(), ff_dca_lbr_filter_frame(), ff_dca_xll_filter_frame(), ff_encode_alloc_frame(), ff_twinvq_decode_init(), ffat_copy_samples(), ffat_create_decoder(), ffat_decode(), ffat_encode_callback(), ffat_init_encoder(), fill_frame_props(), filter_frame_fixed(), filter_frame_float(), flac_decode_init(), flac_encode_init(), ftr_decode_frame(), ftr_init(), g722_decode_init(), g723_1_decode_init(), gsm_init(), has_codec_parameters(), hcom_init(), ilbc_decode_init(), imc_decode_init(), init_converted_samples(), init_fifo(), init_filter(), init_filters(), init_output_frame(), init_resampler(), libcodec2_init_decoder(), libcodec2_init_encoder(), libgsm_decode_init(), liblc3_decode_init(), libopus_decode(), libopus_decode_init(), libopus_encode(), libopus_encode_init(), libspeex_decode_frame(), mace_decode_init(), main(), mediacodec_dec_parse_audio_format(), mediacodec_wrap_sw_audio_buffer(), mf_a_avframe_to_sample(), mf_enca_input_adjust(), mf_enca_input_score(), misc4_init(), mlp_encode_init(), mlp_parse(), mp3lame_encode_frame(), mp3lame_encode_init(), mpc7_decode_init(), mpc8_decode_init(), new_stream_audio(), oggvorbis_decode_init(), on2avc_decode_init(), open_output_file(), opus_decode_init(), osq_decode_block(), osq_init(), ost_bind_filter(), output_data(), paf_audio_init(), pcm_bluray_decode_frame(), pcm_bluray_encode_frame(), pcm_bluray_encode_init(), pcm_bluray_parse_header(), pcm_decode_init(), pcm_dvd_encode_frame(), pcm_dvd_encode_init(), pcm_dvd_parse_header(), qcelp_decode_init(), qdm2_decode_init(), qdmc_decode_init(), qoa_decode_init(), ra144_decode_init(), ra288_decode_init(), read_decoding_params(), read_major_sync(), read_restart_header(), rka_decode_frame(), rka_decode_init(), run_test(), s302m_encode_init(), s302m_parse_frame_header(), sbc_decode_init(), set_bps_params(), sipr_decoder_init(), siren_init(), smka_decode_frame(), smka_decode_init(), spawn_empty_frame(), speex_decode_init(), stream_component_open(), tak_decode_frame(), truespeech_decode_init(), tta_decode_init(), tta_encode_frame(), tta_encode_init(), twolame_encode_frame(), vmdaudio_decode_init(), vorbis_decode_init(), wavarc_decode(), wavarc_init(), wavesynth_init(), wavpack_decode_block(), wma_decode_init(), ws_snd_decode_init(), and xma_decode_init().

◆ ch_layout

AVChannelLayout AVCodecContext::ch_layout

Audio channel layout.

  • encoding: must be set by the caller, to one of AVCodec.ch_layouts.
  • decoding: may be set by the caller if known e.g. from the container. The decoder can then override during decoding as needed.
Examples
decode_audio.c, decode_filter_audio.c, demux_decode.c, transcode.c, and transcode_aac.c.

Definition at line 1071 of file avcodec.h.

Referenced by aac_encode_frame(), aac_encode_init(), ac3_decode_frame(), ac3_downmix(), ac3_validate_metadata(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), adpcm_swf_decode(), adx_decode_frame(), adx_decode_header(), adx_decode_init(), adx_encode_frame(), adx_encode_header(), adx_encode_init(), adx_parse(), al_decode_frame(), alac_decode_init(), alac_encode_frame(), alac_encode_init(), allocate_buffers(), amr_parse(), amr_wb_encode_init(), amrnb_decode_frame(), amrnb_decode_init(), amrwb_decode_frame(), amrwb_decode_init(), apac_decode(), apac_init(), ape_decode_init(), apply_window_and_mdct(), atrac1_decode_frame(), atrac1_decode_init(), atrac3_decode_init(), atrac9_decode_init(), av_get_audio_frame_duration(), avcodec_free_context(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), binkaudio_receive_frame(), bmv_aud_decode_init(), bonk_decode(), bonk_init(), cinaudio_decode_init(), cng_decode_init(), construct_perm_table(), cook_decode_init(), cook_parse(), create_vorbis_context(), dcadec_init(), dec_bark_env(), dec_gain(), dec_open(), decode(), decode_0cpy(), decode_1dif(), decode_2slp(), decode_5elp(), decode_block(), decode_end(), decode_extension_payload(), decode_frame(), decode_frame_ga(), decode_init(), decode_ppc(), decoder_init(), discard_samples(), do_decode(), dolby_e_decode_frame(), dolby_e_parse(), dpcm_decode_frame(), dpcm_decode_init(), dprint_options(), dsd_channel(), dss_sp_decode_init(), eightsvx_decode_frame(), eightsvx_decode_init(), enc_open(), encode_frame(), encode_init(), encode_preinit_audio(), evrc_decode_init(), fastaudio_decode(), fastaudio_init(), fdk_aac_decode_frame(), ff_aac_ac3_parse(), ff_aac_decode_init(), ff_aac_output_configure(), ff_aac_usac_config_decode(), ff_aptx_init(), ff_dca_lbr_filter_frame(), ff_dca_set_channel_layout(), ff_dca_xll_filter_frame(), ff_encode_alloc_frame(), ff_flac_set_channel_layout(), ff_get_buffer(), ff_opus_parse_extradata(), ff_psy_init(), ff_psy_preprocess_init(), ff_wma_init(), ffat_create_decoder(), ffat_decode(), ffat_encode(), ffat_encode_callback(), ffat_init_decoder(), ffat_init_encoder(), ffat_update_ctx(), fill_frame_props(), filter_frame_fixed(), filter_frame_float(), flac_encode_init(), frame_configure_elements(), frame_encode(), ftr_decode_frame(), ftr_init(), ftr_parse(), g722_decode_init(), g723_1_decode_frame(), g723_1_decode_init(), g723_1_parse(), g729_parse(), get_nb_samples(), get_stream_info(), gsm_init(), has_codec_parameters(), hcom_init(), ilbc_decode_init(), ilbc_encode_init(), imc_decode_frame(), imc_decode_init(), imdct_output(), init_bitstream_params(), init_converted_samples(), init_fifo(), init_filter(), init_filters(), init_hca(), init_mdct_win(), init_output_frame(), init_resampler(), lame_window_init(), libcodec2_init_decoder(), libgsm_decode_init(), liblc3_decode(), liblc3_decode_init(), liblc3_encode(), liblc3_encode_init(), libopus_check_max_channels(), libopus_check_vorbis_layout(), libopus_decode(), libopus_decode_init(), libopus_encode(), libopus_encode_init(), libopus_validate_layout_and_get_channel_map(), libopus_write_header(), libshine_encode_init(), libspeex_decode_frame(), libspeex_decode_init(), libvorbis_setup(), mace_decode_frame(), mace_decode_init(), main(), mark_pns(), mediacodec_dec_parse_audio_format(), mediacodec_decode_init(), mediacodec_wrap_sw_audio_buffer(), metasound_decode_init(), metasound_read_bitstream(), mf_a_avframe_to_sample(), mf_enca_input_adjust(), mf_enca_input_score(), mf_enca_output_score(), misc4_decode(), mlp_decode_init(), mlp_encode_frame(), mlp_encode_init(), mlp_parse(), mp3lame_encode_frame(), mp3lame_encode_init(), MPA_encode_init(), mpc7_decode_init(), mpc8_decode_frame(), mpc8_decode_init(), mpegaudio_parse(), new_stream_audio(), oggvorbis_decode_init(), on2avc_decode_init(), open_output_file(), opus_decode_packet(), opus_encode_init(), opus_write_extradata(), osq_decode_block(), osq_init(), ost_bind_filter(), output_data(), paf_audio_init(), pcm_bluray_decode_frame(), pcm_bluray_encode_frame(), pcm_bluray_encode_init(), pcm_bluray_parse_header(), pcm_decode_frame(), pcm_dvd_decode_samples(), pcm_dvd_encode_frame(), pcm_dvd_encode_init(), pcm_dvd_parse_header(), pcm_encode_frame(), pcm_encode_init(), pop_output_configuration(), print_enc_params(), qcelp_decode_init(), qdm2_decode_init(), qdmc_decode_init(), qoa_decode_frame(), ra144_decode_init(), ra288_decode_init(), read_access_unit(), read_and_decode_spectrum(), read_diff_float_data(), read_frame_data(), read_frame_internal(), read_major_sync(), read_restart_header(), read_specific_config(), rka_decode_init(), roq_dpcm_encode_frame(), roq_dpcm_encode_init(), run_test(), s302m_decode_frame(), s302m_encode2_frame(), s302m_encode_init(), s302m_parse_frame_header(), sbc_decode_frame(), sbc_encode_init(), sbc_parse_header(), search_for_pns(), search_for_quantizers_fast(), search_for_quantizers_twoloop(), set_channel_info(), set_channel_params(), sipr_decoder_init(), siren_init(), smka_decode_frame(), smka_decode_init(), speex_decode_frame(), speex_decode_init(), stream_component_open(), tak_decode_frame(), truespeech_decode_init(), tta_decode_init(), tta_encode_frame(), tta_encode_init(), twinvq_decode_init(), twinvq_read_bitstream(), twolame_encode_init(), vmdaudio_decode_frame(), vmdaudio_decode_init(), vorbis_decode_frame(), vorbis_decode_init(), vorbis_encode_init(), wavarc_decode(), wavarc_init(), wavesynth_decode(), wavesynth_init(), wavpack_decode_block(), wavpack_decode_frame(), wavpack_encode_frame(), wavpack_encode_init(), ws_snd_decode_init(), and xma_decode_init().

◆ frame_size

int AVCodecContext::frame_size

Number of samples per channel in an audio frame.

  • encoding: set by libavcodec in avcodec_open2(). Each submitted frame except the last must contain exactly frame_size samples per channel. May be 0 when the codec has AV_CODEC_CAP_VARIABLE_FRAME_SIZE set, then the frame size is not restricted.
  • decoding: may be set by some decoders to indicate constant frame size
Examples
transcode.c, and transcode_aac.c.

Definition at line 1083 of file avcodec.h.

Referenced by aac_encode_frame(), aac_encode_init(), adpcm_encode_init(), adx_encode_init(), alac_encode_init(), amr_wb_encode_init(), aptx_encode_init(), av_get_audio_frame_duration(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), cng_decode_frame(), cng_decode_init(), cng_encode_init(), decode_frame(), decode_frame_ga(), decoder_init(), dprint_compression_options(), enc_open(), encode_frame(), encode_init(), encode_send_frame_internal(), fdk_aac_decode_frame(), ff_aac_usac_decode_frame(), ff_ac3_encode_init(), ffat_create_decoder(), ffat_decode(), ffat_encode(), ffat_init_encoder(), ffat_update_ctx(), flac_encode_init(), g722_encode_init(), g723_1_encode_init(), g729_parse(), get_stream_info(), gsm_decode_frame(), gsm_init(), has_codec_parameters(), ilbc_encode_init(), init_filter(), libcodec2_decode(), libcodec2_init_common(), libgsm_decode_frame(), libgsm_decode_init(), libgsm_encode_init(), liblc3_encode(), liblc3_encode_init(), libopus_encode_init(), libshine_encode_frame(), libshine_encode_init(), libvorbis_encode_init(), load_encode_and_write(), mlp_encode_frame(), mlp_encode_init(), mlp_parse(), mp3lame_encode_frame(), mp3lame_encode_init(), MPA_encode_init(), opus_encode_init(), pcm_bluray_encode_init(), pcm_dvd_encode_init(), pcm_encode_init(), print_enc_params(), ra144_encode_frame(), ra144_encode_init(), read_major_sync(), roq_dpcm_encode_frame(), roq_dpcm_encode_init(), run_test(), s302m_encode_init(), sbc_encode_init(), sbc_parse_header(), spawn_empty_frame(), tta_encode_init(), twolame_encode_init(), vorbis_encode_frame(), vorbis_encode_init(), and wavpack_encode_init().

◆ block_align

int AVCodecContext::block_align

◆ cutoff

int AVCodecContext::cutoff

Audio cutoff bandwidth (0 means "automatic")

  • encoding: Set by user.
  • decoding: unused

Definition at line 1096 of file avcodec.h.

Referenced by aac_encode_init(), ff_psy_init(), ff_psy_preprocess_init(), libopus_configure_encoder(), libopus_encode_init(), libvorbis_setup(), mark_pns(), mp3lame_encode_init(), search_for_pns(), search_for_quantizers_twoloop(), and validate_options().

◆ audio_service_type

enum AVAudioServiceType AVCodecContext::audio_service_type

Type of service that the audio stream conveys.

  • encoding: Set by user.
  • decoding: Set by libavcodec.

Definition at line 1103 of file avcodec.h.

Referenced by ac3_decode_frame(), ac3_validate_metadata(), avformat_find_stream_info(), encode_send_frame_internal(), ff_aac_ac3_parse(), and ff_ac3_encode_init().

◆ request_sample_fmt

enum AVSampleFormat AVCodecContext::request_sample_fmt

desired sample format

  • encoding: Not used.
  • decoding: Set by user. Decoder will decode to this format if it can.

Definition at line 1111 of file avcodec.h.

Referenced by decode_init(), and libopus_decode_init().

◆ initial_padding

int AVCodecContext::initial_padding

Audio only.

The number of "priming" samples (padding) inserted by the encoder at the beginning of the audio. I.e. this number of leading decoded samples must be discarded by the caller to get the original audio without leading padding.

  • decoding: unused
  • encoding: Set by libavcodec. The timestamps on the output packets are adjusted by the encoder so that they always refer to the first sample of the data actually contained in the packet, including any added padding. E.g. if the timebase is 1/samplerate and the timestamp of the first input sample is 0, the timestamp of the first output packet will be -initial_padding.

Definition at line 1128 of file avcodec.h.

Referenced by aac_encode_frame(), aac_encode_init(), amr_wb_encode_frame(), amr_wb_encode_init(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), encode_init(), encode_superframe(), ff_ac3_encode_frame(), ff_ac3_encode_init(), ff_af_queue_init(), ffat_update_ctx(), g722_encode_init(), libopus_encode_init(), libopus_write_header(), libvorbis_encode_frame(), mp3lame_encode_frame(), mp3lame_encode_init(), MPA_encode_frame(), MPA_encode_init(), opus_encode_init(), opus_write_extradata(), ra144_encode_init(), twolame_encode_frame(), twolame_encode_init(), and vorbis_encode_init().

◆ trailing_padding

int AVCodecContext::trailing_padding

Audio only.

The amount of padding (in samples) appended by the encoder to the end of the audio. I.e. this number of decoded samples must be discarded by the caller from the end of the stream to get the original audio without any trailing padding.

  • decoding: unused
  • encoding: unused

Definition at line 1139 of file avcodec.h.

Referenced by avcodec_parameters_from_context(), avcodec_parameters_to_context(), and avcodec_string().

◆ seek_preroll

int AVCodecContext::seek_preroll

Number of samples to skip after a discontinuity.

  • decoding: unused
  • encoding: set by libavcodec

Definition at line 1146 of file avcodec.h.

Referenced by avcodec_parameters_from_context(), and avcodec_parameters_to_context().

◆ get_buffer2

int(* AVCodecContext::get_buffer2) (struct AVCodecContext *s, AVFrame *frame, int flags)

This callback is called at the beginning of each frame to get data buffer(s) for it.

There may be one contiguous buffer for all the data or there may be a buffer per each data plane or anything in between. What this means is, you may set however many entries in buf[] you feel necessary. Each buffer must be reference-counted using the AVBuffer API (see description of buf[] below).

The following fields will be set in the frame before this callback is called:

  • format
  • width, height (video only)
  • sample_rate, channel_layout, nb_samples (audio only) Their values may differ from the corresponding values in AVCodecContext. This callback must use the frame values, not the codec context values, to calculate the required buffer size.

This callback must fill the following fields in the frame:

  • data[]
  • linesize[]
  • extended_data:
    • if the data is planar audio with more than 8 channels, then this callback must allocate and fill extended_data to contain all pointers to all data planes. data[] must hold as many pointers as it can. extended_data must be allocated with av_malloc() and will be freed in av_frame_unref().
    • otherwise extended_data must point to data
  • buf[] must contain one or more pointers to AVBufferRef structures. Each of the frame's data and extended_data pointers must be contained in these. That is, one AVBufferRef for each allocated chunk of memory, not necessarily one AVBufferRef per data[] entry. See: av_buffer_create(), av_buffer_alloc(), and av_buffer_ref().
  • extended_buf and nb_extended_buf must be allocated with av_malloc() by this callback and filled with the extra buffers if there are more buffers than buf[] can hold. extended_buf will be freed in av_frame_unref(). Decoders will generally initialize the whole buffer before it is output but it can in rare error conditions happen that uninitialized data is passed through. \important The buffers returned by get_buffer* should thus not contain sensitive data.

If AV_CODEC_CAP_DR1 is not set then get_buffer2() must call avcodec_default_get_buffer2() instead of providing buffers allocated by some other means.

Each data plane must be aligned to the maximum required by the target CPU.

See also
avcodec_default_get_buffer2()

Video:

If AV_GET_BUFFER_FLAG_REF is set in flags then the frame may be reused (read and/or written to if it is writable) later by libavcodec.

avcodec_align_dimensions2() should be used to find the required width and height, as they normally need to be rounded up to the next multiple of 16.

Some decoders do not support linesizes changing between frames.

If frame multithreading is used, this callback may be called from a different thread, but not from more than one at once. Does not need to be reentrant.

See also
avcodec_align_dimensions2()

Audio:

Decoders request a buffer of a particular size by setting AVFrame.nb_samples prior to calling get_buffer2(). The decoder may, however, utilize only part of the buffer by setting AVFrame.nb_samples to a smaller value in the output frame.

As a convenience, av_samples_get_buffer_size() and av_samples_fill_arrays() in libavutil may be used by custom get_buffer2() functions to find the required data size and to fill data pointers and linesize. In AVFrame.linesize, only linesize[0] may be set for audio since all planes must be the same size.

See also
av_samples_get_buffer_size(), av_samples_fill_arrays()
  • encoding: unused
  • decoding: Set by libavcodec, user can override.

Definition at line 1232 of file avcodec.h.

Referenced by dec_open(), ff_get_buffer(), and open_stream().

◆ bit_rate_tolerance

int AVCodecContext::bit_rate_tolerance

number of bits the bitstream is allowed to diverge from the reference.

the reference can be CBR (for CBR pass1) or VBR (for pass2)

  • encoding: Set by user; unused for constant quantizer encoding.
  • decoding: unused

Definition at line 1241 of file avcodec.h.

Referenced by aac_encode_frame(), ff_mpv_encode_init(), and XAVS_init().

◆ global_quality

int AVCodecContext::global_quality

◆ compression_level

int AVCodecContext::compression_level

◆ qcompress

float AVCodecContext::qcompress

amount of qscale change between easy & hard scenes (0.0-1.0)

Definition at line 1258 of file avcodec.h.

Referenced by aom_init(), libx265_encode_init(), vpx_init(), X264_init(), and XAVS_init().

◆ qblur

float AVCodecContext::qblur

amount of qscale smoothing over time (0.0-1.0)

Definition at line 1259 of file avcodec.h.

Referenced by libx265_encode_init(), X264_init(), and XAVS_init().

◆ qmin

int AVCodecContext::qmin

◆ qmax

int AVCodecContext::qmax

◆ max_qdiff

int AVCodecContext::max_qdiff

maximum quantizer difference between frames

  • encoding: Set by user.
  • decoding: unused

Definition at line 1280 of file avcodec.h.

Referenced by libx265_encode_init(), X264_init(), and XAVS_init().

◆ rc_buffer_size

int AVCodecContext::rc_buffer_size

◆ rc_override_count

int AVCodecContext::rc_override_count

ratecontrol override, see RcOverride

  • encoding: Allocated/set/freed by user.
  • decoding: unused

Definition at line 1294 of file avcodec.h.

Referenced by new_stream_video().

◆ rc_override

RcOverride* AVCodecContext::rc_override

Definition at line 1295 of file avcodec.h.

Referenced by avcodec_free_context(), and new_stream_video().

◆ rc_max_rate

int64_t AVCodecContext::rc_max_rate

◆ rc_min_rate

int64_t AVCodecContext::rc_min_rate

minimum bitrate

  • encoding: Set by user.
  • decoding: unused

Definition at line 1309 of file avcodec.h.

Referenced by aom_init(), avformat_find_stream_info(), ff_mpv_encode_init(), ff_mpv_encode_picture(), libvorbis_setup(), qsv_retrieve_enc_params(), and vpx_init().

◆ rc_max_available_vbv_use

float AVCodecContext::rc_max_available_vbv_use

Ratecontrol attempt to use, at maximum, of what can be used without an underflow.

  • encoding: Set by user.
  • decoding: unused.

Definition at line 1316 of file avcodec.h.

Referenced by ff_mpv_encode_picture().

◆ rc_min_vbv_overflow_use

float AVCodecContext::rc_min_vbv_overflow_use

Ratecontrol attempt to use, at least, times the amount needed to prevent a vbv overflow.

  • encoding: Set by user.
  • decoding: unused.

Definition at line 1323 of file avcodec.h.

◆ rc_initial_buffer_occupancy

int AVCodecContext::rc_initial_buffer_occupancy

Number of bits which should be loaded into the rc buffer before decoding starts.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1330 of file avcodec.h.

Referenced by amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), aom_init(), d3d12va_encode_init_rate_control(), ff_encode_preinit(), init_enc_options(), init_video_param(), libx265_encode_init(), update_bitrate(), vaapi_encode_init_rate_control(), vpx_init(), X264_init(), and XAVS_init().

◆ trellis

int AVCodecContext::trellis

trellis RD quantization

  • encoding: Set by user.
  • decoding: unused

Definition at line 1337 of file avcodec.h.

Referenced by adpcm_compress_trellis(), adpcm_encode_init(), ff_mpv_encode_init(), ff_mpv_encode_picture(), g722_encode_init(), init_video_param(), X264_init(), XAVS_init(), and xvid_encode_init().

◆ stats_out

char* AVCodecContext::stats_out

◆ stats_in

char* AVCodecContext::stats_in

pass2 encoding statistics input buffer Concatenated stuff from stats_out of pass1 should be placed here.

  • encoding: Allocated/set/freed by user.
  • decoding: unused

Definition at line 1352 of file avcodec.h.

Referenced by aom_init(), enc_free(), encode_init(), ff_ffv1_encode_init(), ff_frame_thread_encoder_init(), librav1e_encode_init(), new_stream_video(), submit_stats(), vpx_init(), and xvid_encode_init().

◆ workaround_bugs

int AVCodecContext::workaround_bugs

Work around bugs in encoders which sometimes cannot be detected automatically.

  • encoding: Set by user
  • decoding: Set by user

Definition at line 1359 of file avcodec.h.

Referenced by ff_mpv_decode_init(), and h264_init_context().

◆ strict_std_compliance

int AVCodecContext::strict_std_compliance

strictly follow the standard (MPEG-4, ...).

  • encoding: Set by user.
  • decoding: Set by user. Setting this to STRICT or higher means the encoder and decoder will generally do stupid things, whereas setting it to unofficial or lower will mean the encoder might produce output that is not supported by all spec-compliant decoders. Decoders don't differentiate between normal, unofficial and experimental (that is, they always try to decode things when they can) unless they are explicitly asked to behave stupidly (=strictly conform to the specs) This may only be set to one of the FF_COMPLIANCE_* values in defs.h.

Definition at line 1389 of file avcodec.h.

Referenced by aac_encode_init(), amr_wb_encode_init(), avcodec_open2(), config_input(), config_props(), decode_frame_common(), dvbsub_parse_clut_segment(), dvvideo_encode_init(), encode_frame(), encode_init(), ff_aac_set_default_channel_config(), ff_dnxhd_find_cid(), ff_dovi_configure(), ff_ffv1_encode_init(), ff_h264_decode_seq_parameter_set(), ff_mjpeg_encode_check_pix_fmt(), ff_mpv_encode_init(), flac_encode_init(), h2645_sei_to_side_data(), hwaccel_init(), init_video_param(), libgsm_encode_init(), mediacodec_init(), vc2_encode_init(), and vulkan_encode_ffv1_init().

◆ error_concealment

int AVCodecContext::error_concealment

error concealment flags

  • encoding: unused
  • decoding: Set by user.

Definition at line 1396 of file avcodec.h.

Referenced by dv_decode_video_segment(), and ff_vp56_decode_mbs().

◆ debug

int AVCodecContext::debug

◆ err_recognition

int AVCodecContext::err_recognition

◆ hwaccel

const struct AVHWAccel* AVCodecContext::hwaccel

◆ hwaccel_context

void* AVCodecContext::hwaccel_context

Legacy hardware accelerator context.

For some hardware acceleration methods, the caller may use this field to signal hwaccel-specific data to the codec. The struct pointed to by this pointer is hwaccel-dependent and defined in the respective header. Please refer to the FFmpeg HW accelerator documentation to know how to fill this.

In most cases this field is optional - the necessary information may also be provided to libavcodec through hw_frames_ctx or hw_device_ctx (see avcodec_get_hw_config()). However, in some cases it may be the only method of signalling some (optional) information.

The struct and its contents are owned by the caller.

Definition at line 1461 of file avcodec.h.

Referenced by av_vdpau_bind_context(), ff_dxva2_decode_init(), ff_frame_thread_free(), ff_qsv_enc_init(), ff_thread_finish_setup(), ff_vdpau_common_end_frame(), ff_vdpau_common_init(), ff_vdpau_common_reinit(), frame_worker_thread(), mediacodec_dec_get_video_codec(), mediacodec_init(), qsv_decode_preinit(), qsv_init_opaque_alloc(), qsvenc_init_session(), submit_packet(), and update_parameters().

◆ hw_frames_ctx

AVBufferRef* AVCodecContext::hw_frames_ctx

A reference to the AVHWFramesContext describing the input (for encoding) or output (decoding) frames.

The reference is set by the caller and afterwards owned (and freed) by libavcodec - it should never be read by the caller after being set.

Examples
qsv_transcode.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 1485 of file avcodec.h.

Referenced by amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), amf_init_context(), avcodec_default_get_buffer2(), cuvid_decode_init(), dec_enc(), encode_preinit_video(), ff_codec_close(), ff_decode_get_hw_frames_ctx(), ff_dxva2_decode_init(), ff_get_format(), ff_hw_base_encode_init(), ff_hwaccel_frame_priv_alloc(), ff_hwaccel_uninit(), ff_nvdec_decode_init(), ff_nvenc_encode_init(), ff_qsv_enc_init(), ff_vaapi_decode_init(), ff_vdpau_common_init(), ff_vk_decode_init(), ff_vulkan_encode_init(), hw_device_setup_for_encode(), init_video_param(), init_video_param_jpeg(), main(), nvenc_setup_device(), qsv_decode_init_context(), qsv_decode_preinit(), qsvenc_init_session(), and vulkan_encode_ffv1_init().

◆ hw_device_ctx

AVBufferRef* AVCodecContext::hw_device_ctx

A reference to the AVHWDeviceContext describing the device which will be used by a hardware encoder/decoder.

The reference is set by the caller and afterwards owned (and freed) by libavcodec.

This should be used if either the codec device does not require hardware frames or any that are used are to be allocated internally by libavcodec. If the user wishes to supply any of the frames used as encoder input or decoder output then hw_frames_ctx should be used instead. When hw_frames_ctx is set in get_format() for a decoder, this field will be ignored while decoding the associated stream segment, but may again be used on a following one after another get_format() call.

For both encoders and decoders this field should be set before avcodec_open2() is called and must not be written to thereafter.

Note that some decoders may require this field to be set initially in order to support hw_frames_ctx at all - in that case, all frames contexts used must be created on the same device.

Examples
qsv_decode.c, qsv_transcode.c, and vaapi_transcode.c.

Definition at line 1507 of file avcodec.h.

Referenced by amf_init_context(), avcodec_default_get_format(), cuvid_decode_init(), dec_open(), ff_codec_close(), ff_decode_get_hw_frames_ctx(), ff_get_format(), hw_device_setup_for_decode(), hw_device_setup_for_encode(), main(), mediacodec_dec_get_video_codec(), mediacodec_init(), nvdec_init_hwframes(), nvenc_setup_device(), open_input_file(), qsv_decode_preinit(), qsvenc_init_session(), and stream_component_open().

◆ hwaccel_flags

int AVCodecContext::hwaccel_flags

Bit set of AV_HWACCEL_FLAG_* flags, which affect hardware accelerated decoding (if active).

Definition at line 1516 of file avcodec.h.

Referenced by d3d12va_hevc_decode_init(), dxva_check_codec_compatibility(), ff_nvdec_decode_init(), ff_vaapi_parse_hevc_rext_scc_profile(), ff_vdpau_common_init(), vaapi_decode_make_config(), vdpau_hevc_parse_rext_profile(), and vulkan_decode_get_profile().

◆ extra_hw_frames

int AVCodecContext::extra_hw_frames

Video decoding only.

Sets the number of extra hardware frames which the decoder will allocate for use by the caller. This must be set before avcodec_open2() is called.

Some hardware decoders require all frames that they will use for output to be defined in advance before decoding starts. For such decoders, the hardware frame pool must therefore be of a fixed size. The extra frames set here are on top of any number that the decoder needs internally in order to operate normally (for example, frames used as reference pictures).

Definition at line 1530 of file avcodec.h.

Referenced by avcodec_default_get_buffer2(), avcodec_get_hw_frames_parameters(), dec_open(), and qsv_decode_preinit().

◆ error

uint64_t AVCodecContext::error[AV_NUM_DATA_POINTERS]

error

  • encoding: Set by libavcodec if flags & AV_CODEC_FLAG_PSNR.
  • decoding: unused

Definition at line 1537 of file avcodec.h.

Referenced by ff_mpv_encode_picture(), and storeframe().

◆ dct_algo

int AVCodecContext::dct_algo

DCT algorithm, see FF_DCT_* below.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1544 of file avcodec.h.

Referenced by avcodec_dct_init(), ff_fdctdsp_init(), ff_fdctdsp_init_aarch64(), ff_fdctdsp_init_ppc(), and ff_fdctdsp_init_x86().

◆ idct_algo

int AVCodecContext::idct_algo

◆ bits_per_coded_sample

int AVCodecContext::bits_per_coded_sample

bits per sample/pixel from the demuxer (needed for huffyuv).

  • encoding: Set by libavcodec.
  • decoding: Set by user.

Definition at line 1578 of file avcodec.h.

Referenced by aasc_decode_frame(), aasc_decode_init(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), apac_decode(), apac_init(), ape_decode_init(), av_get_audio_frame_duration(), avcodec_open2(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avformat_find_stream_info(), avui_decode_frame(), bitpacked_init_decoder(), bmp_encode_frame(), bmp_encode_init(), cinepak_decode_init(), cmap_read_palette(), decode_aiff_header(), decode_frame(), decode_init(), decode_run_i(), decode_run_p(), decode_wave_header(), encode_frame(), encode_init(), encode_yuv422p10(), ff_guess_coded_bitrate(), get_cm_codec_type(), get_nb_samples(), hap_init(), ipvideo_decode_init(), lag_decode_frame(), msrle_decode_frame(), msrle_decode_init(), msrle_encode_init(), pcm_bluray_encode_init(), pcm_bluray_parse_header(), pcm_decode_init(), pcm_dvd_decode_samples(), pcm_dvd_encode_init(), pcm_dvd_parse_header(), pcm_encode_init(), png_enc_init(), prores_encode_init(), qtrle_decode_frame(), qtrle_decode_init(), qtrle_encode_init(), raw_encode_init(), raw_init_decoder(), rle_uncompress(), rscc_init(), smc_encode_init(), smka_decode_init(), tak_decode_init(), targa_encode_frame(), tta_decode_init(), utvideo_encode_init(), v308_encode_init(), v408_encode_init(), v410_encode_init(), vmdaudio_decode_init(), xsub_encoder_init(), and y41p_encode_init().

◆ bits_per_raw_sample

int AVCodecContext::bits_per_raw_sample

Bits per sample/pixel of internal libavcodec pixel/sample format.

  • encoding: set by user.
  • decoding: set by libavcodec.

Definition at line 1585 of file avcodec.h.

Referenced by alac_decode_init(), alac_encode_frame(), alac_encode_init(), ape_decode_init(), avcodec_dct_init(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), cfhd_decode(), check_fdct(), checkasm_check_mpegvideoencdsp(), checkasm_check_pixblockdsp(), cllc_decode_frame(), cri_decode_frame(), decode_channel(), decode_frame(), decode_frame_header(), decode_init(), decode_slice_thread(), dnxhd_encode_init(), enc_open(), encode_headers(), encode_init(), encode_preinit_audio(), encode_preinit_video(), ff_dca_lbr_filter_frame(), ff_dca_xll_filter_frame(), ff_fdctdsp_init(), ff_ffv1_encode_setup_plane_info(), ff_flac_parse_streaminfo(), ff_idctdsp_init(), ff_idctdsp_init_loongarch(), ff_idctdsp_init_mips(), ff_idctdsp_init_x86(), ff_mpegvideoencdsp_init_x86(), ff_mpv_encode_init(), ff_pixblockdsp_init(), ff_pixblockdsp_init_mips(), ff_xvid_idct_init(), ffat_create_decoder(), ffat_init_encoder(), fic_decode_init(), filter_frame_fixed(), filter_frame_float(), flac_encode_frame(), flac_encode_init(), h263_get_format(), hqx_decode_frame(), libjxl_encode_frame(), libjxl_get_pix_fmt(), mlp_encode_init(), mlp_parse(), osq_init(), packet_decode(), pcm_bluray_parse_header(), pcm_decode_init(), pcm_dvd_parse_header(), pnm_decode_frame(), populate_avctx_color_fields(), prores_encode_init(), read_const_block_data(), read_major_sync(), read_var_block_data(), rka_decode_frame(), rka_decode_init(), s302m_decode_frame(), s302m_encode2_frame(), s302m_encode_init(), s302m_parse_frame_header(), set_bps_params(), show_stream(), svq3_decode_init(), tak_decode_frame(), tak_decode_init(), tta_decode_init(), tta_encode_init(), v410_decode_init(), vble_decode_init(), wavpack_decode_block(), y216_decode_init(), y41p_decode_init(), zero12v_decode_init(), and zerocodec_decode_init().

◆ thread_count

int AVCodecContext::thread_count

◆ thread_type

int AVCodecContext::thread_type

Which multithreading methods to use.

Use of FF_THREAD_FRAME will increase decoding delay by one frame per thread, so clients which cannot provide future frames should not use it.

  • encoding: Set by user, otherwise the default is used.
  • decoding: Set by user, otherwise the default is used.

Definition at line 1603 of file avcodec.h.

Referenced by ff_frame_thread_encoder_init(), process_frame(), validate_thread_parameters(), and X264_init().

◆ active_thread_type

int AVCodecContext::active_thread_type

◆ execute

int(* AVCodecContext::execute) (struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg), void *arg2, int *ret, int count, int size)

The codec may call this to execute several independent things.

It will return only after finishing all tasks. The user may replace this with some multithreaded implementation, the default implementation will execute the parts serially.

Parameters
countthe number of things to execute
  • encoding: Set by libavcodec, user can override.
  • decoding: Set by libavcodec, user can override.

Definition at line 1623 of file avcodec.h.

Referenced by decode_chunks(), decode_component(), decode_frame(), decode_lowdelay(), dvvideo_decode_frame(), encode_frame(), ff_frame_thread_encoder_init(), ff_h264_execute_decode_slices(), ff_slice_thread_init(), and fic_decode_frame().

◆ execute2

int(* AVCodecContext::execute2) (struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg, int jobnr, int threadnr), void *arg2, int *ret, int count)

The codec may call this to execute several independent things.

It will return only after finishing all tasks. The user may replace this with some multithreaded implementation, the default implementation will execute the parts serially.

Parameters
ccontext passed also to func
countthe number of things to execute
arg2argument passed unchanged to func
retreturn values of executed functions, must have space for "count" values. May be NULL.
funcfunction that will be called count times, with jobnr from 0 to count-1. threadnr will be in the range 0 to c->thread_count-1 < MAX_THREADS and so that no two instances of func executing at the same time will have the same threadnr.
Returns
always 0 currently, but code should handle a future improvement where when any call to func returns < 0 no further calls to func may be done and < 0 is returned.
  • encoding: Set by libavcodec, user can override.
  • decoding: Set by libavcodec, user can override.

Definition at line 1642 of file avcodec.h.

Referenced by decode_frame(), decode_lowdelay(), decode_picture(), dnxhd_decode_frame(), dnxhd_encode_fast(), dnxhd_encode_picture(), dnxhd_encode_rdo(), encode_frame(), ff_frame_thread_encoder_init(), ff_slice_thread_init(), ff_vp56_decode_frame(), hap_decode(), hqx_decode_frame(), jpeg2000_decode_frame(), magy_decode_frame(), magy_encode_frame(), speedhq_decode_frame(), TEXTUREDSP_FUNC_NAME(), v410_decode_frame(), vp78_decode_frame(), and wavpack_decode_frame().

◆ profile

int AVCodecContext::profile

profile

  • encoding: Set by user.
  • decoding: Set by libavcodec. See the AV_PROFILE_* defines in defs.h.

Definition at line 1650 of file avcodec.h.

Referenced by aac_decode_er_frame(), aac_decode_frame_int(), aac_encode_init(), ac3_decode_frame(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), aom_init(), aribcaption_init(), av1_parser_parse(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), avcodec_string(), config_enc_params(), d3d12va_av1_decode_init(), d3d12va_encode_hevc_init(), d3d12va_encode_hevc_init_sequence_params(), d3d12va_encode_set_profile(), d3d12va_hevc_decode_init(), d3d12va_vp9_decode_init(), dca_parse(), decode_extension_payload(), decode_frame_header(), decode_init(), dirac_decode_data_unit(), dnxhd_encode_init(), dnxhd_find_hr_cid(), dxva_check_codec_compatibility(), encode_init(), encode_slice(), export_stream_params(), ff_aac_ac3_parse(), ff_aac_usac_config_decode(), ff_aac_usac_decode_frame(), ff_AMediaCodecProfile_getProfileFromAVCodecContext(), ff_dca_core_filter_frame(), ff_dca_lbr_filter_frame(), ff_dca_xll_filter_frame(), ff_dnxhd_find_cid(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_mjpeg_decode_frame_from_buf(), ff_vulkan_encode_init(), ffat_create_decoder(), ffat_init_encoder(), fill_pred_weight_table(), get_profile_font_size(), get_stream_info(), hevc_parse_slice_header(), init_profile(), libaribb24_generate_ass_header(), libaribb24_init(), mf_encv_output_adjust(), mpeg_decode_slice(), nvdec_hevc_decode_init(), nvenc_setup_h264_config(), nvenc_setup_hevc_config(), omx_component_init(), parse(), parse_nal_unit(), parse_nal_units(), prores_encode_frame(), prores_encode_init(), prores_encode_picture(), put_pce(), qsv_decode_init_context(), read_colorspace_details(), read_major_sync(), read_sbr_extension(), sbc_encode_init(), set_context_with_sequence(), set_parser_ctx(), set_pix_fmt(), svc_decode_frame(), svc_encode_init(), v4l2_prepare_encoder(), vaapi_decode_make_config(), vaapi_encode_av1_init(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_h264_init(), vaapi_encode_h265_init(), vaapi_encode_mpeg2_init(), vaapi_encode_mpeg2_init_sequence_params(), vaapi_encode_profile_entrypoint(), vaapi_hevc_decode_slice(), vaapi_hevc_end_frame(), vaapi_hevc_start_frame(), vc1_decode_init(), vdpau_av1_init(), vdpau_h264_init(), vdpau_hevc_init(), vdpau_mpeg4_init(), vdpau_vc1_init(), vdpau_vp9_init(), vpx_init(), vtenc_init(), vulkan_decode_get_profile(), vulkan_encode_h264_init(), vulkan_encode_h265_init(), and X264_init().

◆ level

int AVCodecContext::level

◆ properties

unsigned AVCodecContext::properties

◆ skip_loop_filter

enum AVDiscard AVCodecContext::skip_loop_filter

Skip loop filtering for selected frames.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1816 of file avcodec.h.

Referenced by decode_wmv9(), ff_vc1_decode_entry_point(), ff_vc1_decode_sequence_header(), and vp78_decode_frame().

◆ skip_idct

enum AVDiscard AVCodecContext::skip_idct

Skip IDCT/dequantization for selected frames.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1823 of file avcodec.h.

◆ skip_frame

enum AVDiscard AVCodecContext::skip_frame

◆ skip_alpha

int AVCodecContext::skip_alpha

Skip processing alpha if supported by codec.

Note that if the format uses pre-multiplied alpha (common with VP6, and recommended due to better video quality/compression) the image will look as if alpha-blended onto a black background. However for formats that do not use pre-multiplied alpha there might be serious artefacts (though e.g. libswscale currently assumes pre-multiplied alpha anyway).

  • decoding: set by user
  • encoding: unused

Definition at line 1844 of file avcodec.h.

Referenced by decode_frame_header(), and ff_vp56_init_context().

◆ skip_top

int AVCodecContext::skip_top

Number of macroblock rows at the top which are skipped.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1851 of file avcodec.h.

◆ skip_bottom

int AVCodecContext::skip_bottom

Number of macroblock rows at the bottom which are skipped.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1858 of file avcodec.h.

Referenced by decode_chunks().

◆ lowres

int AVCodecContext::lowres

◆ codec_descriptor

const struct AVCodecDescriptor* AVCodecContext::codec_descriptor

◆ sub_charenc

char* AVCodecContext::sub_charenc

Character encoding of the input subtitles file.

  • decoding: set by user
  • encoding: unused

Definition at line 1879 of file avcodec.h.

Referenced by ff_decode_preinit(), and recode_subtitle().

◆ sub_charenc_mode

int AVCodecContext::sub_charenc_mode

Subtitles character encoding mode.

Formats or codecs might be adjusting this setting (if they are doing the conversion themselves for instance).

  • decoding: set by libavcodec
  • encoding: unused

Definition at line 1887 of file avcodec.h.

Referenced by avcodec_decode_subtitle2(), ff_decode_preinit(), and recode_subtitle().

◆ subtitle_header_size

int AVCodecContext::subtitle_header_size

Header containing style information for text subtitles.

For SUBTITLE_ASS subtitle type, it should contain the whole ASS [Script Info] and [V4+ Styles] section, plus the [Events] line and the Format line following. It shouldn't include any Dialogue line.

Definition at line 1901 of file avcodec.h.

Referenced by ass_decode_init(), ass_encode_init(), dec_open(), enc_open(), ff_ass_subtitle_header_full(), libaribb24_generate_ass_header(), my_ass_subtitle_header(), and set_ass_header().

◆ subtitle_header

uint8_t* AVCodecContext::subtitle_header

◆ dump_separator

uint8_t* AVCodecContext::dump_separator

dump format separator.

can be ", " or "\n " or anything else

  • encoding: Set by user.
  • decoding: Set by user.

Definition at line 1910 of file avcodec.h.

Referenced by avcodec_string().

◆ codec_whitelist

char* AVCodecContext::codec_whitelist

',' separated list of allowed decoders.

If NULL then all are allowed

  • encoding: unused
  • decoding: set by user

Definition at line 1918 of file avcodec.h.

Referenced by avcodec_open2().

◆ coded_side_data

AVPacketSideData* AVCodecContext::coded_side_data

Additional data associated with the entire coded stream.

Definition at line 1926 of file avcodec.h.

Referenced by amf_encode_init_av1(), avcodec_parameters_from_context(), avcodec_parameters_to_context(), ff_codec_close(), ff_decode_frame_props(), ff_encode_add_cpb_side_data(), ff_encode_preinit(), and ff_get_coded_side_data().

◆ nb_coded_side_data

int AVCodecContext::nb_coded_side_data

◆ export_side_data

int AVCodecContext::export_side_data

Bit set of AV_CODEC_EXPORT_DATA_* flags, which affects the kind of metadata exported in frame, packet, or coded stream side data by decoders and encoders.

  • decoding: set by user
  • encoding: set by user

Definition at line 1937 of file avcodec.h.

Referenced by ff_decode_preinit(), ff_dxva2_av1_fill_picture_parameters(), ff_print_debug_info2(), hevc_receive_frame(), nvdec_av1_start_frame(), qsv_decode(), qsv_decode_header(), set_output_frame(), update_block_buffers(), vaapi_av1_end_frame(), vaapi_av1_start_frame(), vk_av1_start_frame(), vp9_decode_frame(), and vulkan_setup_profile().

◆ max_pixels

int64_t AVCodecContext::max_pixels

◆ apply_cropping

int AVCodecContext::apply_cropping

Video decoding only.

Certain video codecs support cropping, meaning that only a sub-rectangle of the decoded frame is intended for display. This option controls how cropping is handled by libavcodec.

When set to 1 (the default), libavcodec will apply cropping internally. I.e. it will modify the output frame width/height fields and offset the data pointers (only by as much as possible while preserving alignment, or by the full amount if the AV_CODEC_FLAG_UNALIGNED flag is set) so that the frames output by the decoder refer only to the cropped area. The crop_* fields of the output frames will be zero.

When set to 0, the width/height fields of the output frames will be set to the coded dimensions and the crop_* fields will describe the cropping rectangle. Applying the cropping is left to the caller.

Warning
When hardware acceleration with opaque output frames is used, libavcodec is unable to apply cropping from the top/left border.
Note
when this option is set to zero, the width/height fields of the AVCodecContext and output AVFrames have different meanings. The codec context fields store display dimensions (with the coded dimensions in coded_width/height), while the frame fields store the coded dimensions (with the display dimensions being determined by the crop_* fields).

Definition at line 1972 of file avcodec.h.

Referenced by apply_cropping(), and dec_open().

◆ discard_damaged_percentage

int AVCodecContext::discard_damaged_percentage

The percentage of damaged samples to discard a frame.

  • decoding: set by user
  • encoding: unused

Definition at line 1980 of file avcodec.h.

Referenced by cinvideo_decode_frame(), decode_frame(), decode_frame_common(), dxtory_decode_v2(), hqx_decode_frame(), paf_video_decode(), qtrle_decode_frame(), and rscc_decode_frame().

◆ max_samples

int64_t AVCodecContext::max_samples

The number of samples per frame to maximally accept.

  • decoding: set by user
  • encoding: set by user

Definition at line 1988 of file avcodec.h.

Referenced by decode_simple_receive_frame(), and ff_get_buffer().

◆ get_encode_buffer

int(* AVCodecContext::get_encode_buffer) (struct AVCodecContext *s, AVPacket *pkt, int flags)

This callback is called at the beginning of each packet to get a data buffer for it.

The following field will be set in the packet before this callback is called:

  • size This callback must use the above value to calculate the required buffer size, which must padded by at least AV_INPUT_BUFFER_PADDING_SIZE bytes.

In some specific cases, the encoder may not use the entire buffer allocated by this callback. This will be reflected in the size value in the packet once returned by avcodec_receive_packet().

This callback must fill the following fields in the packet:

If AV_CODEC_CAP_DR1 is not set then get_encode_buffer() must call avcodec_default_get_encode_buffer() instead of providing a buffer allocated by some other means.

The flags field may contain a combination of AV_GET_ENCODE_BUFFER_FLAG_ flags. They may be used for example to hint what use the buffer may get after being created. Implementations of this callback may ignore flags they don't understand. If AV_GET_ENCODE_BUFFER_FLAG_REF is set in flags then the packet may be reused (read and/or written to if it is writable) later by libavcodec.

This callback must be thread-safe, as when frame threading is used, it may be called from multiple threads simultaneously.

See also
avcodec_default_get_encode_buffer()
  • encoding: Set by libavcodec, user can override.
  • decoding: unused

Definition at line 2030 of file avcodec.h.

Referenced by ff_frame_thread_encoder_init(), and ff_get_encode_buffer().

◆ frame_num

int64_t AVCodecContext::frame_num

◆ side_data_prefer_packet

int* AVCodecContext::side_data_prefer_packet

Decoding only.

May be set by the caller before avcodec_open2() to an av_malloc()'ed array (or via AVOptions). Owned and freed by the decoder afterwards.

Side data attached to decoded frames may come from several sources:

  1. coded_side_data, which the decoder will for certain types translate from packet-type to frame-type and attach to frames;
  2. side data attached to an AVPacket sent for decoding (same considerations as above);
  3. extracted from the coded bytestream. The first two cases are supplied by the caller and typically come from a container.

This array configures decoder behaviour in cases when side data of the same type is present both in the coded bytestream and in the user-supplied side data (items 1. and 2. above). In all cases, at most one instance of each side data type will be attached to output frames. By default it will be the bytestream side data. Adding an AVPacketSideDataType value to this array will flip the preference for this type, thus making the decoder prefer user-supplied side data over bytestream. In case side data of the same type is present both in coded_data and attacked to a packet, the packet instance always has priority.

The array may also contain a single -1, in which case the preference is switched for all side data types.

Definition at line 2071 of file avcodec.h.

Referenced by ff_decode_preinit().

◆ nb_side_data_prefer_packet

unsigned AVCodecContext::nb_side_data_prefer_packet

Number of entries in side_data_prefer_packet.

Definition at line 2075 of file avcodec.h.

Referenced by ff_decode_preinit().

◆ decoded_side_data

AVFrameSideData** AVCodecContext::decoded_side_data

Array containing static side data, such as HDR10 CLL / MDCV structures.

Side data entries should be allocated by usage of helpers defined in libavutil/frame.h.

  • encoding: may be set by user before calling avcodec_open2() for encoder configuration. Afterwards owned and freed by the encoder.
  • decoding: may be set by libavcodec in avcodec_open2().

Definition at line 2087 of file avcodec.h.

Referenced by enc_open(), ff_codec_close(), ff_dovi_configure(), ff_encode_preinit(), ff_h2645_sei_to_context(), handle_side_data(), and init_thread().

◆ nb_decoded_side_data

int AVCodecContext::nb_decoded_side_data

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