FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
AVCodecContext Struct Reference

main external API structure. More...

#include <avcodec.h>

Data Fields

const AVClassav_class
 information on struct for av_log
 
int log_level_offset
 
enum AVMediaType codec_type
 
struct AVCodeccodec
 
attribute_deprecated char codec_name [32]
 
enum AVCodecID codec_id
 
unsigned int codec_tag
 fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
 
unsigned int stream_codec_tag
 fourcc from the AVI stream header (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
 
voidpriv_data
 
struct AVCodecInternalinternal
 Private context used for internal data.
 
voidopaque
 Private data of the user, can be used to carry app specific stuff.
 
int bit_rate
 the average bitrate
 
int bit_rate_tolerance
 number of bits the bitstream is allowed to diverge from the reference.
 
int global_quality
 Global quality for codecs which cannot change it per frame.
 
int compression_level
 
int flags
 CODEC_FLAG_*.
 
int flags2
 CODEC_FLAG2_*.
 
uint8_textradata
 some codecs need / can use extradata like Huffman tables.
 
int extradata_size
 
AVRational time_base
 This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
 
int ticks_per_frame
 For some codecs, the time base is closer to the field rate than the frame rate.
 
int delay
 Codec delay.
 
int width
 picture width / height.
 
int height
 
int coded_width
 Bitstream width / height, may be different from width/height e.g.
 
int coded_height
 
int gop_size
 the number of pictures in a group of pictures, or 0 for intra_only
 
enum AVPixelFormat pix_fmt
 Pixel format, see AV_PIX_FMT_xxx.
 
int me_method
 Motion estimation algorithm used for video coding.
 
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.
 
enum AVPixelFormat(* get_format )(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
 callback to negotiate the pixelFormat
 
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.
 
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).
 
int rc_strategy
 obsolete FIXME remove
 
int b_frame_strategy
 
float b_quant_offset
 qscale offset between IP and B-frames
 
int has_b_frames
 Size of the frame reordering buffer in the decoder.
 
int mpeg_quant
 0-> h263 quant 1-> mpeg quant
 
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).
 
float i_quant_offset
 qscale offset between P and I-frames
 
float lumi_masking
 luminance masking (0-> disabled)
 
float temporal_cplx_masking
 temporary complexity masking (0-> disabled)
 
float spatial_cplx_masking
 spatial complexity masking (0-> disabled)
 
float p_masking
 p block masking (0-> disabled)
 
float dark_masking
 darkness masking (0-> disabled)
 
int slice_count
 slice count
 
int prediction_method
 prediction method (needed for huffyuv)
 
int * slice_offset
 slice offsets in the frame in bytes
 
AVRational sample_aspect_ratio
 sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel.
 
int me_cmp
 motion estimation comparison function
 
int me_sub_cmp
 subpixel motion estimation comparison function
 
int mb_cmp
 macroblock comparison function (not supported yet)
 
int ildct_cmp
 interlaced DCT comparison function
 
int dia_size
 ME diamond size & shape.
 
int last_predictor_count
 amount of previous MV predictors (2a+1 x 2a+1 square)
 
int pre_me
 prepass for motion estimation
 
int me_pre_cmp
 motion estimation prepass comparison function
 
int pre_dia_size
 ME prepass diamond size & shape.
 
int me_subpel_quality
 subpel ME quality
 
int dtg_active_format
 DTG active format information (additional aspect ratio information only used in DVB MPEG-2 transport streams) 0 if not set.
 
int me_range
 maximum motion estimation search range in subpel units If 0 then no limit.
 
int intra_quant_bias
 intra quantizer bias
 
int inter_quant_bias
 inter quantizer bias
 
int slice_flags
 slice flags
 
int mb_decision
 macroblock decision mode
 
uint16_t * intra_matrix
 custom intra quantization matrix
 
uint16_t * inter_matrix
 custom inter quantization matrix
 
int scenechange_threshold
 scene change detection threshold 0 is default, larger means fewer detected scene changes.
 
int noise_reduction
 noise reduction strength
 
int me_threshold
 Motion estimation threshold below which no motion estimation is performed, but instead the user specified motion vectors are used.
 
int mb_threshold
 Macroblock threshold below which the user specified macroblock types will be used.
 
int intra_dc_precision
 precision of the intra DC coefficient - 8
 
int skip_top
 Number of macroblock rows at the top which are skipped.
 
int skip_bottom
 Number of macroblock rows at the bottom which are skipped.
 
float border_masking
 Border processing masking, raises the quantizer for mbs on the borders of the picture.
 
int mb_lmin
 minimum MB lagrange multipler
 
int mb_lmax
 maximum MB lagrange multipler
 
int me_penalty_compensation
 
int bidir_refine
 
int brd_scale
 
int keyint_min
 minimum GOP size
 
int refs
 number of reference frames
 
int chromaoffset
 chroma qp offset from luma
 
int scenechange_factor
 Multiplied by qscale for each frame and added to scene_change_score.
 
int mv0_threshold
 Note: Value depends upon the compare function used for fullpel ME.
 
int b_sensitivity
 Adjust sensitivity of b_frame_strategy 1.
 
enum AVColorPrimaries color_primaries
 Chromaticity coordinates of the source primaries.
 
enum AVColorTransferCharacteristic color_trc
 Color Transfer Characteristic.
 
enum AVColorSpace colorspace
 YUV colorspace type.
 
enum AVColorRange color_range
 MPEG vs JPEG YUV range.
 
enum AVChromaLocation chroma_sample_location
 This defines the location of chroma samples.
 
int slices
 Number of slices.
 
enum AVFieldOrder field_order
 Field order.
 
int sample_rate
 samples per second
 
int channels
 number of audio channels
 
enum AVSampleFormat sample_fmt
 audio sample format
 
int frame_size
 Number of samples per channel in an audio frame.
 
int frame_number
 Frame counter, set by libavcodec.
 
int block_align
 number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs.
 
int cutoff
 Audio cutoff bandwidth (0 means "automatic")
 
attribute_deprecated int request_channels
 Decoder should decode to this many channels if it can (0 for default)
 
uint64_t channel_layout
 Audio channel layout.
 
uint64_t request_channel_layout
 Request decoder to use this channel layout if it can (0 for default)
 
enum AVAudioServiceType audio_service_type
 Type of service that the audio stream conveys.
 
enum AVSampleFormat request_sample_fmt
 desired sample format
 
attribute_deprecated int(* get_buffer )(struct AVCodecContext *c, AVFrame *pic)
 Called at the beginning of each frame to get a buffer for it.
 
attribute_deprecated void(* release_buffer )(struct AVCodecContext *c, AVFrame *pic)
 Called to release buffers which were allocated with get_buffer.
 
attribute_deprecated int(* reget_buffer )(struct AVCodecContext *c, AVFrame *pic)
 Called at the beginning of a frame to get cr buffer for it.
 
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.
 
int refcounted_frames
 If non-zero, the decoded audio and video frames returned from avcodec_decode_video2() and avcodec_decode_audio4() are reference-counted and are valid indefinitely.
 
float qcompress
 amount of qscale change between easy & hard scenes (0.0-1.0)
 
float qblur
 amount of qscale smoothing over time (0.0-1.0)
 
int qmin
 minimum quantizer
 
int qmax
 maximum quantizer
 
int max_qdiff
 maximum quantizer difference between frames
 
float rc_qsquish
 ratecontrol qmin qmax limiting method 0-> clipping, 1-> use a nice continuous function to limit qscale within qmin/qmax.
 
float rc_qmod_amp
 
int rc_qmod_freq
 
int rc_buffer_size
 decoder bitstream buffer size
 
int rc_override_count
 ratecontrol override, see RcOverride
 
RcOverriderc_override
 
const char * rc_eq
 rate control equation
 
int rc_max_rate
 maximum bitrate
 
int rc_min_rate
 minimum bitrate
 
float rc_buffer_aggressivity
 
float rc_initial_cplx
 initial complexity for pass1 ratecontrol
 
float rc_max_available_vbv_use
 Ratecontrol attempt to use, at maximum, of what can be used without an underflow.
 
float rc_min_vbv_overflow_use
 Ratecontrol attempt to use, at least, times the amount needed to prevent a vbv overflow.
 
int rc_initial_buffer_occupancy
 Number of bits which should be loaded into the rc buffer before decoding starts.
 
int coder_type
 coder type
 
int context_model
 context model
 
int lmin
 minimum Lagrange multiplier
 
int lmax
 maximum Lagrange multiplier
 
int frame_skip_threshold
 frame skip threshold
 
int frame_skip_factor
 frame skip factor
 
int frame_skip_exp
 frame skip exponent
 
int frame_skip_cmp
 frame skip comparison function
 
int trellis
 trellis RD quantization
 
int min_prediction_order
 
int max_prediction_order
 
int64_t timecode_frame_start
 GOP timecode frame start number.
 
void(* rtp_callback )(struct AVCodecContext *avctx, void *data, int size, int mb_nb)
 
int rtp_payload_size
 
int mv_bits
 
int header_bits
 
int i_tex_bits
 
int p_tex_bits
 
int i_count
 
int p_count
 
int skip_count
 
int misc_bits
 
int frame_bits
 number of bits used for the previously encoded frame
 
char * stats_out
 pass1 encoding statistics output buffer
 
char * stats_in
 pass2 encoding statistics input buffer Concatenated stuff from stats_out of pass1 should be placed here.
 
int workaround_bugs
 Work around bugs in encoders which sometimes cannot be detected automatically.
 
int strict_std_compliance
 strictly follow the standard (MPEG4, ...).
 
int error_concealment
 error concealment flags
 
int debug
 debug
 
int debug_mv
 debug Code outside libavcodec should access this field using AVOptions
 
int err_recognition
 Error recognition; may misdetect some more or less valid parts as errors.
 
int64_t reordered_opaque
 opaque 64bit number (generally a PTS) that will be reordered and output in AVFrame.reordered_opaque
 
struct AVHWAccelhwaccel
 Hardware accelerator in use.
 
voidhwaccel_context
 Hardware accelerator context.
 
uint64_t error [AV_NUM_DATA_POINTERS]
 error
 
int dct_algo
 DCT algorithm, see FF_DCT_* below.
 
int idct_algo
 IDCT algorithm, see FF_IDCT_* below.
 
int bits_per_coded_sample
 bits per sample/pixel from the demuxer (needed for huffyuv).
 
int bits_per_raw_sample
 Bits per sample/pixel of internal libavcodec pixel/sample format.
 
int lowres
 low resolution decoding, 1-> 1/2 size, 2->1/4 size
 
AVFramecoded_frame
 the picture in the bitstream
 
int thread_count
 thread count is used to decide how many independent tasks should be passed to execute()
 
int thread_type
 Which multithreading methods to use.
 
int active_thread_type
 Which multithreading methods are in use by the codec.
 
int thread_safe_callbacks
 Set by the client if its custom get_buffer() callback can be called synchronously from another thread, which allows faster multithreaded decoding.
 
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.
 
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.
 
attribute_deprecated voidthread_opaque
 
int nsse_weight
 noise vs.
 
int profile
 profile
 
int level
 level
 
enum AVDiscard skip_loop_filter
 Skip loop filtering for selected frames.
 
enum AVDiscard skip_idct
 Skip IDCT/dequantization for selected frames.
 
enum AVDiscard skip_frame
 Skip decoding for selected frames.
 
uint8_tsubtitle_header
 Header containing style information for text subtitles.
 
int subtitle_header_size
 
attribute_deprecated int error_rate
 
attribute_deprecated AVPacketpkt
 
uint64_t vbv_delay
 VBV delay coded in the last frame (in periods of a 27 MHz clock).
 
int side_data_only_packets
 Encoding only.
 
AVRational pkt_timebase
 Timebase in which pkt_dts/pts and AVPacket.dts/pts are.
 
const AVCodecDescriptorcodec_descriptor
 AVCodecDescriptor Code outside libavcodec should access this field using: av_codec_{get,set}_codec_descriptor(avctx)
 
int64_t pts_correction_num_faulty_pts
 Current statistics for PTS correction.
 
int64_t pts_correction_num_faulty_dts
 Number of incorrect PTS values so far.
 
int64_t pts_correction_last_pts
 Number of incorrect DTS values so far.
 
int64_t pts_correction_last_dts
 PTS of the last frame.
 
char * sub_charenc
 DTS of the last frame.
 
int sub_charenc_mode
 Subtitles character encoding mode.
 
int skip_alpha
 Skip processing alpha if supported by codec.
 
int seek_preroll
 Number of samples to skip after a discontinuity.
 
uint16_t * chroma_intra_matrix
 custom intra quantization matrix Code outside libavcodec should access this field using av_codec_g/set_chroma_intra_matrix()
 

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. Please use AVOptions (av_opt* / av_set/get*()) to access these fields from user applications. sizeof(AVCodecContext) must not be used outside libav*.

Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_audio.c, filtering_video.c, muxing.c, transcode_aac.c, and transcoding.c.

Definition at line 1213 of file avcodec.h.

Field Documentation

const AVClass* AVCodecContext::av_class

information on struct for av_log

  • set by avcodec_alloc_context3

Definition at line 1218 of file avcodec.h.

Referenced by avcodec_get_context_defaults3().

int AVCodecContext::log_level_offset

Definition at line 1219 of file avcodec.h.

enum AVMediaType AVCodecContext::codec_type
Examples:
transcoding.c.

Definition at line 1221 of file avcodec.h.

Referenced by add_av_stream(), add_codec(), add_dstream(), add_input_streams(), add_metadata_from_renditions(), adp_read_header(), adts_aac_read_header(), adx_read_header(), aea_read_header(), afc_read_header(), aiff_write_header(), aiff_write_packet(), amr_read_header(), apc_read_header(), ape_read_header(), ape_tag_read_field(), aqt_read_header(), asf_parse_packet(), asf_read_header(), asf_read_picture(), asf_read_stream_properties(), asf_write_header1(), asf_write_packet(), ass_read_header(), ast_read_header(), audio_read_header(), audio_write_header(), av_find_best_stream(), av_find_default_stream_index(), avcodec_default_get_buffer2(), avcodec_default_release_buffer(), avcodec_get_context_defaults3(), avcodec_open2(), avcodec_string(), avf_read_header(), avformat_find_stream_info(), avformat_match_stream_specifier(), avi_read_header(), avi_read_seek(), avi_sync(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avisynth_create_stream_audio(), avisynth_create_stream_video(), avisynth_read_packet(), avisynth_read_seek(), avpriv_dv_init_demux(), avr_read_header(), avs_read_packet(), bfi_read_header(), bmv_read_header(), build_feed_streams(), build_frame_code(), caca_write_header(), cdata_read_header(), cdxl_read_packet(), celt_header(), check_packet(), choose_decoder(), choose_encoder(), cin_read_header(), cine_read_header(), compute_bandwidth(), compute_pkt_fields(), compute_pkt_fields2(), compute_status(), configure_input_audio_filter(), configure_input_video_filter(), configure_output_audio_filter(), create_audio_stream(), create_new_audio_stream(), create_stream(), daud_header(), dc1394_read_common(), decode_stream_header(), dfa_read_header(), dirac_header(), do_streamcopy(), do_video_stats(), dsf_read_header(), dshow_add_device(), dtshd_read_header(), dump_stream_format(), dv_assemble_frame(), dv_extract_audio_info(), dv_init_mux(), dxa_read_header(), ea_read_header(), enable_tracks(), encode_write_frame(), epaf_read_header(), estimate_timings_from_pts(), fbdev_read_header(), fbdev_write_header(), ff_audio_interleave_close(), ff_audio_interleave_init(), ff_audio_rechunk_interleave(), ff_compute_frame_duration(), ff_decklink_write_header(), ff_decklink_write_packet(), ff_flac_parse_picture(), ff_get_wav_header(), ff_id3v2_parse_apic(), ff_img_read_header(), ff_interleave_add_packet(), ff_interleave_packet_per_dts(), ff_mov_init_hinting(), ff_mov_read_stsd_entries(), ff_parse_mpeg2_descriptor(), ff_parse_specific_params(), ff_pixblockdsp_init(), ff_raw_audio_read_header(), ff_raw_data_read_header(), ff_raw_video_read_header(), ff_rfps_calculate(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ff_rtp_get_codec_info(), ff_rtp_get_payload_type(), ff_spdif_read_packet(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), film_read_header(), filter_codec_opts(), find_decoder(), find_stream(), flac_header(), flac_read_header(), flush_encoders(), flv_data_packet(), flv_read_metabody(), flv_read_packet(), flv_write_header(), flv_write_packet(), flv_write_trailer(), force_codec_ids(), frm_read_header(), g722_read_header(), g723_1_init(), g729_read_header(), gdigrab_read_header(), get_aiff_header(), get_attachment(), get_bit_rate(), get_buffer_internal(), get_ost_filters(), get_sindex(), gif_read_header(), gif_write_header(), grab_read_header(), gsm_read_header(), gxf_compare_field_nb(), gxf_interleave_packet(), gxf_write_header(), gxf_write_media_preamble(), gxf_write_packet(), handle_file(), has_codec_parameters(), hds_write_header(), hds_write_packet(), hls_write_header(), hls_write_packet(), hnm_read_header(), http_prepare_data(), idcin_read_header(), iff_read_header(), iff_read_packet(), ilbc_read_header(), init_filter(), init_filters(), init_input_filter(), init_muxer(), init_pts(), init_stream(), interleave_compare_dts(), ipmovie_read_header(), ipod_get_codec_tag(), ircam_read_header(), is_intra_only(), ism_write_header(), ism_write_packet(), iss_read_header(), ivf_write_header(), jacosub_read_header(), lavfi_read_header(), lmlm4_read_header(), loas_read_header(), log_slave(), lrc_read_header(), lrc_write_header(), lvf_read_header(), lxf_read_header(), m4sl_cb(), main(), matroska_parse_tracks(), matroska_read_header(), microdvd_read_header(), mkv_write_attachments(), mkv_write_codecprivate(), mkv_write_cues(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_track(), mmf_read_header(), modplug_read_header(), mov_build_index(), mov_codec_id(), mov_create_chapter_track(), mov_create_timecode_track(), mov_finalize_stsd_codec(), mov_get_codec_tag(), mov_read_covr(), mov_read_hdlr(), mov_read_header(), mov_read_stss(), mov_read_trak(), mov_read_trun(), mov_write_audio_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_hdlr_tag(), mov_write_header(), mov_write_iods_tag(), mov_write_isml_manifest(), mov_write_minf_tag(), mov_write_single_packet(), mov_write_stbl_tag(), mov_write_stsd_tag(), mov_write_stts_tag(), mov_write_tfhd_tag(), mov_write_tkhd_tag(), mov_write_trak_tag(), movie_common_init(), movie_config_output_props(), movie_push_frame(), movie_query_formats(), mp3_read_header(), mp4_get_codec_tag(), mpc8_read_header(), mpc_read_header(), mpeg_mux_init(), mpeg_mux_write_packet(), mpeg_parse_packet(), mpegps_read_packet(), mpegts_find_stream_type(), mpegts_push_data(), mpegts_read_header(), mpegts_set_stream_info(), mpegts_write_header(), mpegts_write_packet_internal(), mpegts_write_pes(), mpegts_write_pmt(), mpl2_read_header(), mpsub_read_header(), msnwc_tcp_read_header(), mtv_read_header(), mv_read_header(), mxf_handle_small_eubc(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_parse_structural_metadata(), mxf_read_packet(), mxf_read_packet_old(), mxf_read_seek(), mxf_write_common_fields(), mxf_write_header(), mxf_write_packet(), mxg_read_header(), nc_read_header(), new_audio_stream(), new_output_stream(), new_stream(), new_subtitle_stream(), nist_read_header(), nsv_parse_NSVs_header(), nut_read_header(), nut_write_header(), nuv_header(), ogg_read_seek(), ogg_write_header(), ogm_dshow_header(), ogm_header(), old_dirac_header(), old_flac_header(), oma_read_header(), open_input_file(), open_input_stream(), open_output_file(), opengl_write_header(), opt_map_channel(), opt_target(), opus_header(), output_packet(), parse_ffconfig(), parse_packet(), parse_strk(), parse_vtrk(), pcm_read_header(), pjs_read_header(), pmp_header(), pmt_cb(), print_final_stats(), print_report(), process_frame(), process_input(), pulse_read_header(), pulse_write_header(), put_frame(), pva_read_header(), pvf_read_header(), qcp_read_header(), qt_rtp_parse_packet(), qtkit_read_header(), r3d_read_red1(), rawvideo_read_header(), read_desc_chunk(), read_ffserver_streams(), read_frame(), read_header(), read_header_gme(), read_index(), read_packet(), realtext_read_header(), redspark_read_header(), reget_buffer_internal(), release_delayed_buffers(), report_new_stream(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_header(), rm_write_header(), rm_write_packet(), roq_read_packet(), rpl_read_header(), rpl_read_packet(), rsd_read_header(), rso_read_header(), rtp_write_header(), rv10_write_header(), sami_read_header(), sbg_read_header(), sdl_write_header(), sdr2_read_header(), seg_write_header(), select_reference_stream(), seq_read_header(), set_codec_from_probe_data(), show_frame(), show_packet(), show_stream(), siff_parse_vbv1(), skeleton_header(), smacker_read_header(), smjpeg_read_header(), smjpeg_write_header(), smjpeg_write_packet(), smush_read_header(), sol_read_header(), sox_read_header(), speex_header(), srt_read_header(), srt_write_header(), str_read_packet(), stream_component_close(), stream_component_open(), stream_cycle_channel(), sub2video_prepare(), subviewer1_read_header(), subviewer_read_header(), swf_read_packet(), swf_write_header(), swf_write_packet(), swf_write_trailer(), tak_read_header(), tedcaptions_read_header(), theora_header(), thp_read_header(), tmcd_is_referenced(), tmv_read_header(), transcode_init(), try_decode_frame(), tta_read_header(), txd_read_header(), update_frame_pool(), update_stream_timings(), v4l2_read_header(), vc1t_read_header(), vfw_read_header(), vid_read_packet(), vivo_read_header(), vmd_read_header(), voc_read_header(), voc_write_header(), vorbis_header(), vp8_header(), vplayer_read_header(), vqf_read_header(), wc3_read_header(), webvtt_read_header(), write_adaptation_set(), write_frame(), write_header(), write_manifest(), write_stream_codec(), write_stream_codec_info(), write_stream_data(), write_streamheader(), write_streaminfo(), write_timestamp(), wsaud_read_header(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_header(), x11grab_read_header(), xa_read_header(), xmv_read_header(), xv_write_header(), yop_read_header(), and yuv4_read_header().

struct AVCodec* AVCodecContext::codec
Examples:
muxing.c, remuxing.c, transcode_aac.c, and transcoding.c.

Definition at line 1222 of file avcodec.h.

Referenced by a64_write_header(), a64multi_encode_init(), adpcm_compress_trellis(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), alloc_frame_buffer(), apply_param_change(), ass_encode_frame(), avcodec_close(), avcodec_copy_context(), avcodec_decode_audio4(), avcodec_decode_subtitle2(), avcodec_decode_video2(), avcodec_encode_audio2(), avcodec_encode_subtitle(), avcodec_encode_video2(), avcodec_flush_buffers(), avcodec_open2(), avcodec_string(), avformat_find_stream_info(), close_connection(), codec_child_next(), config(), context_to_name(), copy_frame(), decode_end(), decode_frame(), decode_init(), decode_nal_units(), do_video_out(), dpcm_decode_frame(), dpcm_decode_init(), eightsvx_decode_init(), encode_init(), er_supported(), ff_frame_thread_encoder_init(), ff_frame_thread_free(), ff_frame_thread_init(), ff_get_format(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h264_execute_decode_slices(), ff_h264_field_end(), ff_h264_set_parameter_from_sps(), ff_init_buffer_info(), ff_jpeg2000_init_component(), ff_mjpeg_decode_init(), ff_mjpeg_encode_picture_header(), ff_mjpeg_init_hvsample(), ff_MPV_encode_init(), ff_MPV_frame_start(), ff_print_debug_info2(), ff_thread_can_start_frame(), ff_thread_flush(), ff_vc1_parse_frame_header(), ff_vp56_init_context(), ff_wma_init(), find_decoder(), flush_encoder(), flush_encoders(), frame_size_alloc(), frame_worker_thread(), get_category(), get_nb_samples(), get_pixel_format(), h261_decode_init(), h264_frame_start(), init(), main(), movie_common_init(), mpeg_decode_init(), open_audio(), open_input_file(), pcm_decode_frame(), pcm_decode_init(), pcm_encode_frame(), pcm_encode_init(), process_frame(), reap_filters(), receive_frame(), show_stream(), srt_decode_frame(), srt_encode_frame(), srt_end_cb(), srt_move_cb(), submit_packet(), thread_get_buffer_internal(), try_decode_frame(), update_context_from_thread(), vaapi_mpeg4_start_frame(), validate_thread_parameters(), vc1_decode_frame(), vc1_decode_init(), vdadec_init(), vdpau_mpeg4_start_frame(), vp6_decode_init(), vp78_decode_frame(), vp78_decode_init(), wma_decode_init(), and write_frame().

attribute_deprecated char AVCodecContext::codec_name[32]
Deprecated:
this field is not used for anything in libavcodec

Definition at line 1228 of file avcodec.h.

Referenced by ico_check_attributes().

enum AVCodecID AVCodecContext::codec_id
Examples:
demuxing_decoding.c, muxing.c, and transcoding.c.

Definition at line 1230 of file avcodec.h.

Referenced by add_av_stream(), add_input_streams(), add_stream(), adp_read_header(), adts_aac_read_header(), adx_read_header(), aea_read_header(), afc_read_header(), aiff_read_header(), aiff_read_packet(), aiff_write_header(), amf_parse_object(), amr_decode_fix_avctx(), amr_handle_packet(), amr_read_header(), amr_read_packet(), apc_read_header(), ape_read_header(), ape_tag_read_field(), aqt_read_header(), asf_parse_packet(), asf_read_picture(), asf_read_stream_properties(), asf_write_header1(), ass_read_header(), ast_read_header(), ast_write_header(), audio_read_header(), audio_write_header(), av_find_best_stream(), av_get_audio_frame_duration(), av_vdpau_get_profile(), avcodec_align_dimensions2(), avcodec_encode_audio(), avcodec_get_context_defaults3(), avcodec_open2(), avcodec_string(), avf_read_header(), avformat_find_stream_info(), avi_read_header(), avi_write_header(), avi_write_packet(), avi_write_trailer(), avisynth_create_stream_audio(), avisynth_create_stream_video(), avpriv_dv_init_demux(), avpriv_mpa_decode_header(), avr_read_header(), avs_read_packet(), bfi_read_header(), bitstream_switching(), bmv_read_header(), caca_write_header(), caf_write_header(), caf_write_trailer(), cdata_read_header(), cdxl_read_packet(), celt_header(), choose_decoder(), choose_encoder(), choose_pix_fmts(), choose_pixel_fmt(), cin_read_header(), cine_read_header(), clone_tables(), close_input_file(), commit_bitstream_and_slice_buffer(), compute_pkt_fields(), compute_status(), copy_stream_props(), create_audio_stream(), create_new_audio_stream(), cyuv_decode_frame(), daud_header(), dc1394_read_common(), decode_end(), decode_frame(), decode_init(), decode_mb(), decode_slice(), decode_stream_header(), decode_video(), detect_stream_specific(), determinable_frame_size(), dfa_read_header(), dirac_header(), do_subtitle_out(), dsf_read_header(), dshow_add_device(), dtshd_read_header(), dv_extract_audio_info(), dv_init_mux(), dxa_read_header(), dxva2_create_decoder(), dxva2_get_decoder_configuration(), dxva2_init(), dxva2_vc1_decode_slice(), ea_read_header(), encode_frame(), encode_init(), encode_mb(), epaf_read_header(), estimate_best_b_count(), extract_mpeg4_header(), fbdev_read_header(), ff_aac_ac3_parse(), ff_ac3_encode_init(), ff_audio_interleave_init(), ff_draw_horiz_band(), ff_dsputil_init_pix_mmx(), ff_er_frame_end(), ff_flac_parse_picture(), ff_frame_thread_encoder_init(), ff_get_audio_frame_size(), ff_get_format(), ff_get_wav_header(), ff_h263_decode_frame(), ff_h264_decode_init(), ff_h264_set_parameter_from_sps(), ff_id3v2_parse_apic(), ff_id3v2_write_apic(), ff_img_read_header(), ff_img_read_packet(), ff_init_me(), ff_load_image(), ff_mjpeg_decode_sof(), ff_mjpeg_encode_picture_header(), ff_mjpeg_find_marker(), ff_mov_read_stsd_entries(), ff_mov_write_packet(), ff_mp4_read_dec_config_descr(), ff_MPV_encode_init(), ff_parse_mpeg2_descriptor(), ff_pcm_read_seek(), ff_pnm_decode_header(), ff_print_debug_info2(), ff_psy_init(), ff_psy_preprocess_init(), ff_put_wav_header(), ff_raw_audio_read_header(), ff_raw_data_read_header(), ff_raw_video_read_header(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ff_rtp_get_codec_info(), ff_rtp_get_payload_type(), ff_rtp_parse_open(), ff_rv34_decode_init(), ff_spdif_read_packet(), ff_thread_decode_frame(), ff_vc1_decode_init_alloc_tables(), ff_vc1_parse_frame_header(), ff_voc_get_packet(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), ffserver_opt_preset(), fill_slice(), film_read_header(), filter_packet(), find_compressor(), find_expected_header(), find_stream_in_feed(), flac_header(), flac_read_header(), flac_read_timestamp(), flac_write_header(), flv_data_packet(), flv_read_packet(), flv_same_audio_codec(), flv_same_video_codec(), flv_set_audio_codec(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), flv_write_trailer(), force_codec_ids(), frame_worker_thread(), frm_read_header(), g722_read_header(), g723_1_init(), g729_read_header(), gdigrab_read_header(), get_aiff_header(), get_attachment(), get_audio_flags(), get_bit_rate(), get_codec_data(), get_packet_header(), get_private_data(), get_sindex(), get_video_private_data(), gif_read_header(), gif_write_header(), grab_read_header(), gsm_decode_frame(), gsm_init(), gsm_parse(), gsm_read_header(), guess_mv(), gxf_packet(), gxf_write_header(), gxf_write_media_preamble(), gxf_write_packet(), gxf_write_umf_media_description(), gxf_write_umf_media_mpeg(), handle_file(), handle_rstn(), has_codec_parameters(), has_decode_delay_been_guessed(), hnm_read_header(), ico_check_attributes(), ico_write_packet(), ico_write_trailer(), idcin_read_header(), iff_read_header(), ilbc_read_header(), ilbc_write_header(), imc_decode_block(), imc_decode_init(), imx_dump_header(), init_input_stream(), init_muxer(), ipmovie_read_header(), ipod_get_codec_tag(), ircam_read_header(), ircam_write_header(), is_intra_more_likely(), is_intra_only(), ism_write_header(), iss_read_header(), ivf_write_header(), ivi_decode_blocks(), jacosub_read_header(), jpeg_table_header(), latm_write_header(), latm_write_packet(), lavfi_read_header(), libgsm_decode_init(), libgsm_encode_frame(), libgsm_encode_init(), libgsm_flush(), lmlm4_read_header(), loas_read_header(), log_slave(), lrc_read_header(), lrc_write_header(), lvf_read_header(), lxf_read_header(), m4sl_cb(), mace_decode_frame(), matroska_parse_block(), matroska_parse_frame(), matroska_parse_rm_audio(), matroska_parse_tracks(), matroska_read_header(), microdvd_read_header(), microdvd_write_header(), mjpega_dump_header(), mkv_write_attachments(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_header(), mkv_write_native_codecprivate(), mkv_write_packet_internal(), mkv_write_track(), mmf_read_header(), modplug_read_header(), mov_codec_id(), mov_finalize_stsd_codec(), mov_find_codec_tag(), mov_get_codec_tag(), mov_parse_stsd_audio(), mov_parse_stsd_video(), mov_read_ares(), mov_read_covr(), mov_read_enda(), mov_read_extradata(), mov_read_hdlr(), mov_read_header(), mov_read_trak(), mov_read_wave(), mov_write_audio_tag(), mov_write_chan_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_header(), mov_write_isml_manifest(), mov_write_packet(), mov_write_subtitle_tag(), mov_write_trailer(), mov_write_uuidprof_tag(), mov_write_video_tag(), mov_write_wave_tag(), mp3_read_header(), mp4_get_codec_tag(), mpc8_read_header(), mpc_read_header(), mpeg1_decode_sequence(), mpeg_decode_postinit(), mpeg_decode_sequence_extension(), mpeg_get_pixelformat(), mpeg_mux_init(), mpegaudio_parse(), mpegps_read_packet(), mpegts_find_stream_type(), mpegts_push_data(), mpegts_read_header(), mpegts_set_stream_info(), mpegts_write_header(), mpegts_write_packet_internal(), mpegts_write_pes(), mpegts_write_pmt(), mpegvideo_extract_headers(), mpl2_read_header(), mpsub_read_header(), msnwc_tcp_read_header(), mtv_read_header(), mv_read_header(), mvc_decode_frame(), mvc_decode_init(), mxf_handle_small_eubc(), mxf_parse_structural_metadata(), mxf_set_audio_pts(), mxf_write_cdci_common(), mxf_write_d10_audio_packet(), mxf_write_generic_sound_common(), mxf_write_header(), mxf_write_packet(), mxg_read_header(), nc_read_header(), nist_read_header(), nsv_parse_NSVs_header(), nsv_read_chunk(), nut_read_header(), nuv_header(), ogg_buffer_data(), ogg_validate_keyframe(), ogg_write_header(), ogg_write_packet_internal(), ogg_write_trailer(), ogm_dshow_header(), ogm_header(), old_dirac_header(), old_flac_header(), oma_read_header(), open_codec_context(), open_input_file(), open_output_file(), open_stream(), opengl_write_header(), opus_header(), parse(), parse_dsd_prop(), parse_ffconfig(), parse_fmtp(), parse_media_type(), parse_mpeg1waveformatex(), parse_strk(), parse_video_var(), parse_vtrk(), parse_waveformatex(), pcm_decode_frame(), pcm_decode_init(), pcm_read_header(), pjs_read_header(), pmp_header(), probe_codec(), pulse_read_header(), pulse_write_header(), put_xiph_codecpriv(), pva_read_header(), pvf_read_header(), qcp_read_header(), qdm2_parse_packet(), qtkit_read_header(), r3d_read_red1(), rawvideo_read_header(), rdt_parse_packet(), read_access_unit(), read_desc_chunk(), read_ffserver_streams(), read_frame(), read_frame_internal(), read_header(), read_header_gme(), read_kuki_chunk(), read_major_sync(), read_matrix_params(), read_packet(), read_restart_header(), realtext_read_header(), redspark_read_header(), remove_extradata(), rl2_read_header(), rm_ac3_swap_bytes(), rm_read_audio_stream_info(), rm_write_audio(), roq_read_packet(), rpl_read_header(), rsd_read_header(), rsd_read_packet(), rso_read_header(), rso_write_header(), rtp_write_header(), rtp_write_packet(), rv10_decode_init(), rv10_write_header(), rv34_parse(), sami_read_header(), sbg_read_header(), sdl_write_header(), sdp_parse_fmtp_config_h264(), sdr2_read_header(), seek_frame_generic(), segment_mux_init(), select_from_pts_buffer(), seq_read_header(), set_codec_from_probe_data(), set_mv_strides(), setup_find_stream_info_opts(), show_stream(), siff_parse_vbv1(), smacker_read_header(), smjpeg_read_header(), smjpeg_write_header(), smush_read_header(), sol_read_header(), sox_read_header(), sox_write_header(), sox_write_trailer(), sp5x_decode_frame(), spdif_write_header(), speex_header(), srt_read_header(), srt_write_header(), srt_write_packet(), str_read_packet(), stream_component_open(), subviewer1_read_header(), subviewer_read_header(), svq3_parse_packet(), swf_read_packet(), swf_write_header(), swf_write_video(), tak_read_header(), tb_unreliable(), tedcaptions_read_header(), theora_header(), thp_read_header(), tmv_read_header(), transcode_init(), try_decode_frame(), tta_read_header(), txd_read_header(), v408_decode_frame(), v408_encode_frame(), v4l2_read_header(), vaapi_vc1_decode_slice(), validate_codec_tag(), vc1_decode_frame(), vc1_decode_init(), vc1t_read_header(), vc1test_write_header(), vcr2_init_sequence(), vfw_read_header(), vid_read_packet(), vivo_read_header(), vmd_read_header(), voc_write_header(), vorbis_header(), vp3_decode_init(), vp8_header(), vplayer_read_header(), vpx_init(), vqf_read_header(), wc3_read_header(), webvtt_read_header(), write_adaptation_set(), write_header(), write_packet(), write_stream_codec_info(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_header(), wv_write_header(), x11grab_read_header(), xa_read_header(), xmv_read_header(), xv_write_header(), xvid_encode_init(), xwma_read_header(), yop_read_header(), yuv4_read_header(), and yuv4_write_header().

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.
Examples:
remuxing.c.

Definition at line 1245 of file avcodec.h.

Referenced by a64multi_encode_init(), aasc_decode_frame(), add_input_streams(), aiff_write_header(), amr_read_header(), ape_read_header(), asf_read_stream_properties(), asf_write_header1(), av_get_audio_frame_duration(), avcodec_string(), avformat_find_stream_info(), avi_read_header(), avi_read_idx1(), avi_write_header(), avi_write_packet(), avpriv_dv_frame_profile2(), cdata_read_header(), cdxl_read_packet(), cin_read_header(), cine_read_header(), daud_header(), decode_frame(), decode_init(), decode_stream_header(), dpcm_decode_frame(), dpcm_decode_init(), dshow_add_device(), ea_read_header(), encode_init(), export_orphan_timecode(), ff_get_wav_header(), ff_h264_decode_seq_parameter_set(), ff_mjpeg_decode_init(), ff_mjpeg_decode_sos(), ff_mov_init_hinting(), ff_mov_read_stsd_entries(), ff_MPV_common_init(), ff_parse_mpeg2_descriptor(), ff_put_bmp_header(), ff_put_wav_header(), ff_rm_read_mdpr_codecdata(), ff_update_duplicate_context(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), film_read_header(), flv_same_audio_codec(), flv_same_video_codec(), flv_set_audio_codec(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), frm_read_header(), get_aiff_header(), get_audio_flags(), get_codec_data(), handle_file(), hnm_read_header(), idcin_read_header(), iff_read_header(), iff_read_packet(), init_duplicate_context(), init_muxer(), init_stream(), ipmovie_read_header(), ipod_get_codec_tag(), ivf_write_header(), libspeex_decode_init(), lvf_read_header(), lxf_read_header(), main(), matroska_parse_tracks(), mjpeg_decode_com(), mkv_write_codecprivate(), mkv_write_native_codecprivate(), mov_codec_id(), mov_create_timecode_track(), mov_finalize_stsd_codec(), mov_get_codec_tag(), mov_get_mpeg2_xdcam_codec_tag(), mov_get_rawvideo_codec_tag(), mov_parse_stsd_audio(), mov_parse_stsd_data(), mov_parse_stsd_subtitle(), mov_parse_stsd_video(), mov_read_ares(), mov_read_header(), mov_read_trak(), mov_write_gmhd_tag(), mov_write_hdlr_tag(), mov_write_header(), mov_write_ms_tag(), mov_write_stbl_tag(), mov_write_stsd_tag(), mp4_get_codec_tag(), mpeg_decode_frame(), mpegts_set_stream_info(), msnwc_tcp_read_header(), new_output_stream(), nsv_parse_NSVs_header(), nut_read_header(), ogm_header(), oma_read_header(), oma_write_header(), on2avc_decode_init(), parse_ffconfig(), parse_strk(), parse_videoinfoheader2(), parse_waveformatex(), pmt_cb(), prores_encode_init(), raw_encode(), raw_encode_init(), raw_init_decoder(), read_desc_chunk(), read_header(), rl2_read_header(), rm_read_audio_stream_info(), roq_read_packet(), rpl_read_header(), rpl_read_packet(), rsd_read_header(), rso_read_header(), rso_write_header(), rv10_write_header(), scan_file(), segment_mux_init(), seq_read_header(), show_stream(), siff_parse_vbv1(), smacker_read_header(), smjpeg_read_header(), smush_read_header(), sol_read_header(), str_read_packet(), tb_unreliable(), thp_read_header(), transcode_init(), utvideo_decode_init(), utvideo_encode_init(), v4l2_read_header(), validate_codec_tag(), vivo_read_header(), vmd_read_header(), voc_write_header(), voc_write_packet(), vp3_decode_init(), wc3_read_header(), write_streamheader(), wsvqa_read_header(), xmv_read_header(), xsub_encoder_init(), xvid_encode_init(), xwma_read_header(), zero12v_decode_frame(), and zero12v_decode_init().

unsigned int AVCodecContext::stream_codec_tag

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

This is used to work around some encoder bugs.

  • encoding: unused
  • decoding: Set by user, will be converted to uppercase by libavcodec during init.

Definition at line 1253 of file avcodec.h.

Referenced by avi_read_header(), ff_h263_decode_init(), and ff_MPV_common_init().

void* AVCodecContext::priv_data
Examples:
decoding_encoding.c.

Definition at line 1255 of file avcodec.h.

Referenced by a64multi_close_encoder(), a64multi_encode_frame(), a64multi_encode_init(), aac_decode_close(), aac_decode_er_frame(), aac_decode_frame(), aac_decode_frame_int(), aac_decode_init(), aac_encode_close(), aac_encode_end(), aac_encode_frame(), aac_encode_init(), aacPlus_encode_close(), aacPlus_encode_frame(), aacPlus_encode_init(), aasc_decode_end(), aasc_decode_frame(), aasc_decode_init(), ac3_decode_end(), ac3_decode_frame(), ac3_decode_init(), ac3_fixed_encode_init(), adpcm_compress_trellis(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_close(), adpcm_encode_init(), 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(), alac_decode_close(), alac_decode_frame(), alac_decode_init(), alac_encode_close(), alac_encode_frame(), alac_encode_init(), allocate_buffers(), allocate_tables(), amr_wb_encode_close(), amr_wb_encode_frame(), amr_wb_encode_init(), amrnb_decode_frame(), amrnb_decode_init(), amrwb_decode_frame(), amrwb_decode_init(), amv_encode_picture(), ape_decode_close(), ape_decode_frame(), ape_decode_init(), ape_flush(), append_to_cached_buf(), apply_window_and_mdct(), ass_decode_close(), ass_decode_init(), ass_encode_frame(), 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(), avcodec_close(), avcodec_copy_context(), avcodec_get_context_defaults3(), avcodec_open2(), avpriv_h264_has_num_reorder_frames(), avs_decode_end(), avs_decode_frame(), avs_decode_init(), bethsoftvid_decode_end(), bethsoftvid_decode_frame(), bethsoftvid_decode_init(), bfi_decode_close(), bfi_decode_frame(), bfi_decode_init(), build_color_map(), cavs_decode_frame(), cavs_flush(), cdg_decode_end(), cdg_decode_frame(), cdg_decode_init(), cdxl_decode_end(), cdxl_decode_frame(), cdxl_decode_init(), 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(), cllc_decode_close(), cllc_decode_frame(), cllc_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_child_next(), codec_reinit(), codecctl_int(), commit_bitstream_and_slice_buffer(), cook_decode_close(), cook_decode_frame(), cook_decode_init(), copy_frame(), copy_processed_frame(), count_colors(), cpia_decode_end(), cpia_decode_frame(), cpia_decode_init(), CustomSource::CustomSource(), cyuv_decode_frame(), cyuv_decode_init(), dca_decode_end(), dca_decode_frame(), dca_decode_init(), decode(), decode_ac_coeffs(), decode_b(), decode_block(), decode_chunks(), decode_close(), decode_coeffs(), decode_element(), decode_end(), decode_flush(), decode_frame(), decode_frame_header(), decode_init(), decode_init_thread_copy(), decode_interframe_v4(), decode_interframe_v4a(), decode_lowdelay_slice(), decode_mb_row_no_filter(), decode_mode(), decode_packet(), decode_picture(), decode_picture_header(), decode_sb(), decode_sb_mem(), decode_slice(), decode_slice_chroma(), decode_slice_luma(), decode_slice_thread(), decode_subband_arith(), decode_subband_golomb(), decode_tag(), decode_thread(), decode_wmv9(), decoder_init(), 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(), dnxhd_calc_bits_thread(), dnxhd_decode_close(), dnxhd_decode_frame(), dnxhd_decode_init(), dnxhd_encode_end(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_encode_thread(), dnxhd_mb_var_thread(), dnxhd_write_header(), dpcm_decode_frame(), dpcm_decode_init(), draw_char(), 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_close(), dvdsub_decode(), dvdsub_init(), dvdsub_parse_extradata(), dvvideo_decode_frame(), dvvideo_decode_init(), dvvideo_encode_frame(), dvvideo_encode_init(), dxva2_h264_decode_slice(), dxva2_h264_end_frame(), dxva2_h264_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(), eightsvx_decode_close(), eightsvx_decode_frame(), eightsvx_decode_init(), encode_callback(), encode_close(), encode_dvd_subtitles(), encode_end(), encode_frame(), encode_gbrp10(), encode_gbrp12(), encode_init(), encode_nals(), encode_plane(), encode_rgb48_10bit(), encode_slice(), encode_slice_data(), encode_slice_plane(), encode_superframe(), end(), 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(), extract_header(), Faac_encode_close(), Faac_encode_frame(), Faac_encode_init(), fdk_aac_decode_close(), fdk_aac_decode_flush(), fdk_aac_decode_frame(), fdk_aac_decode_init(), ff_ac3_encode_close(), ff_ac3_encode_init(), ff_ac3_float_encode_init(), ff_asv_common_init(), ff_cavs_end(), ff_cavs_init(), ff_dvvideo_init(), ff_frame_thread_encoder_init(), ff_frame_thread_free(), ff_frame_thread_init(), ff_h263_decode_end(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h263_resync(), ff_h264_decode_init(), ff_h264_update_thread_context(), ff_huffyuv_common_init(), ff_ivi_decode_close(), ff_ivi_decode_frame(), ff_mjpeg_decode_end(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_init(), ff_mjpeg_encode_picture_header(), ff_mpeg4_frame_end(), ff_mpeg4_workaround_bugs(), ff_mpeg_flush(), ff_mpeg_update_thread_context(), ff_MPV_encode_end(), ff_MPV_encode_init(), ff_MPV_encode_picture(), ff_msmpeg4_decode_init(), ff_rv34_decode_end(), ff_rv34_decode_frame(), ff_rv34_decode_init(), ff_rv34_decode_init_thread_copy(), ff_rv34_decode_update_thread_context(), ff_snow_common_init_after_header(), ff_snow_release_buffer(), ff_twinvq_decode_close(), ff_twinvq_decode_frame(), ff_twinvq_decode_init(), ff_vaapi_mpeg_end_frame(), ff_vc1_decode_end(), ff_vp56_decode_frame(), ff_vp56_decode_mbs(), ff_vp56_free(), ff_vp56_init(), ff_vp8_decode_free(), ff_wma_end(), ff_wma_init(), ff_xvmc_field_end(), ff_xvmc_field_start(), ffv1_close(), ffv1_common_init(), fic_decode_close(), fic_decode_frame(), fic_decode_init(), fic_decode_slice(), fic_draw_cursor(), fill_slice(), fill_slice_long(), filter_mb_row(), find_quant_thread(), find_slice_quant(), finish_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_8BPP(), flic_decode_init(), flush(), flush_cache(), flush_dpb(), frame_configure_elements(), free_tables(), 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(), get_buffer(), get_nb_samples(), get_stats(), get_stream_info(), 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_end(), h261_decode_frame(), h261_decode_init(), h264_decode_end(), h264_decode_frame(), hevc_decode_flush(), hevc_decode_frame(), hevc_decode_free(), hevc_decode_init(), hevc_init_context(), hevc_init_thread_copy(), hevc_update_thread_context(), hls_decode_entry(), hls_decode_entry_wpp(), hnm_decode_end(), hnm_decode_frame(), hnm_decode_init(), hnm_update_palette(), hscroll(), 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(), init(), init_frames(), init_ref(), init_thread_copy(), inter_recon(), intra_recon(), ipvideo_decode_end(), ipvideo_decode_frame(), ipvideo_decode_init(), ir2_decode_end(), ir2_decode_frame(), ir2_decode_init(), j2kenc_destroy(), j2kenc_init(), jpeg2000_decode_frame(), lag_decode_end(), lag_decode_frame(), lag_decode_init(), latm_decode_frame(), latm_decode_init(), libcelt_dec_close(), libcelt_dec_decode(), libcelt_dec_init(), libgsm_decode_close(), libgsm_decode_frame(), libgsm_decode_init(), libgsm_encode_close(), libgsm_encode_frame(), libgsm_encode_init(), libgsm_flush(), libopenjpeg_decode_frame(), libopenjpeg_decode_init(), libopenjpeg_encode_close(), libopenjpeg_encode_frame(), libopenjpeg_encode_init(), libopus_decode(), libopus_decode_close(), libopus_decode_init(), libopus_encode(), libopus_encode_close(), libopus_encode_init(), libopus_flush(), libschroedinger_decode_close(), libschroedinger_decode_frame(), libschroedinger_decode_init(), libschroedinger_encode_close(), libschroedinger_encode_frame(), libschroedinger_encode_init(), libschroedinger_flush(), libschroedinger_frame_from_data(), libschroedinger_handle_first_access_unit(), libshine_encode_close(), libshine_encode_frame(), libshine_encode_init(), libspeex_decode_close(), libspeex_decode_flush(), libspeex_decode_frame(), libspeex_decode_init(), libvorbis_encode_close(), libvorbis_encode_frame(), libvorbis_encode_init(), libvorbis_setup(), libwebp_encode_frame(), libwebp_encode_init(), libx265_encode_close(), libx265_encode_frame(), libx265_encode_init(), ljpeg_encode_bgr(), ljpeg_encode_close(), ljpeg_encode_frame(), ljpeg_encode_init(), ljpeg_encode_yuv(), log_encoder_error(), loopfilter_sb(), mace_decode_frame(), metasound_decode_init(), mimic_decode_end(), mimic_decode_frame(), mimic_decode_init(), mimic_decode_update_thread_context(), mimic_init_thread_copy(), mjpegb_decode_frame(), mlp_decode_init(), mm_decode_end(), mm_decode_frame(), mm_decode_init(), mov_text_encode_close(), mov_text_encode_frame(), mov_text_encode_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(), mpeg4_update_thread_context(), mpeg_decode_a53_cc(), mpeg_decode_end(), mpeg_decode_frame(), mpeg_decode_gop(), mpeg_decode_init(), mpeg_decode_postinit(), mpeg_decode_update_thread_context(), mpeg_decode_user_data(), mpeg_get_pixelformat(), msrle_decode_end(), msrle_decode_frame(), msrle_decode_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_end(), mvc_decode_frame(), mvc_decode_init(), mxpeg_decode_end(), mxpeg_decode_frame(), mxpeg_decode_init(), oggvorbis_decode_close(), oggvorbis_decode_frame(), oggvorbis_decode_init(), on2avc_decode_close(), on2avc_decode_frame(), on2avc_decode_init(), opus_decode_close(), opus_decode_flush(), opus_decode_init(), opus_decode_packet(), paf_video_close(), paf_video_decode(), paf_video_init(), parse_object_segment(), parse_palette_segment(), parse_presentation_segment(), pcm_decode_frame(), pcm_decode_init(), pcm_dvd_decode_frame(), pcm_dvd_decode_init(), pcm_dvd_decode_samples(), pcm_dvd_decode_uninit(), pcm_dvd_parse_header(), png_dec_end(), png_dec_init(), png_enc_init(), pnm_decode_frame(), postprocess_current_frame(), prores_encode_close(), prores_encode_init(), put_audio_specific_config(), qcelp_decode_frame(), qcelp_decode_init(), qdm2_decode_close(), qdm2_decode_frame(), qdm2_decode_init(), qtrle_decode_end(), 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_encode_init(), raw_init_decoder(), read_access_unit(), read_huffman_tree(), receive_frame(), render_charset(), restore_context(), rl2_decode_end(), rl2_decode_frame(), rl2_decode_init(), 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(), rv10_decode_end(), rv10_decode_frame(), rv10_decode_init(), rv10_decode_packet(), rv30_decode_init(), rv40_decode_init(), s302m_encode2_frame(), s302m_encode_init(), sami_close(), sami_decode_frame(), sami_init(), sami_paragraph_to_ass(), save_subtitle_set(), select_palette(), seqvideo_decode_end(), seqvideo_decode_frame(), seqvideo_decode_init(), set_chroma_format(), set_context(), set_sample_rate_params(), setup_hwaccel_for_pixfmt(), sgi_decode_init(), sgirle_decode_end(), sgirle_decode_frame(), sgirle_decode_init(), shorten_decode_close(), shorten_decode_frame(), shorten_decode_init(), show_stream(), sipr_decode_frame(), sipr_decoder_init(), slice_end(), smc_decode_end(), smc_decode_frame(), smc_decode_init(), smvjpeg_decode_end(), smvjpeg_decode_frame(), smvjpeg_decode_init(), srt_encode_close(), srt_encode_frame(), srt_encode_init(), Stagefright_close(), Stagefright_decode_frame(), Stagefright_init(), submit_stats(), sunrast_encode_frame(), sunrast_encode_init(), sunrast_image_write_header(), sunrast_image_write_image(), 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(), synth_frame(), synth_superframe(), tak_decode_close(), tak_decode_frame(), tak_decode_init(), teletext_close_decoder(), teletext_decode_frame(), teletext_init_decoder(), text_decode_frame(), 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(), truemotion1_decode_end(), truemotion1_decode_frame(), truemotion1_decode_init(), 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(), twinvq_decode_init(), twolame_encode_close(), twolame_encode_frame(), twolame_encode_init(), ulti_decode_end(), ulti_decode_frame(), ulti_decode_init(), uninit(), unpack_intraframe(), unsupported(), update_block_buffers(), update_frames(), update_size(), update_thread_context(), utvideo_decode_close(), utvideo_decode_frame(), utvideo_decode_init(), utvideo_encode_close(), utvideo_encode_frame(), utvideo_encode_init(), vaapi_h264_decode_slice(), vaapi_h264_end_frame(), vaapi_h264_start_frame(), vaapi_mpeg2_decode_slice(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_decode_slice(), vaapi_mpeg4_start_frame(), vaapi_vc1_decode_slice(), vaapi_vc1_start_frame(), vble_decode_close(), vble_decode_frame(), vble_decode_init(), vc1_decode_frame(), vc1_decode_init(), vcr1_decode_frame(), vcr2_init_sequence(), vda_h264_end_frame(), vda_old_h264_end_frame(), vdadec_close(), vdadec_decode(), vdadec_init(), vdpau_h264_decode_slice(), vdpau_h264_end_frame(), vdpau_h264_set_reference_frames(), vdpau_h264_start_frame(), vdpau_mpeg4_start_frame(), vdpau_mpeg_decode_slice(), vdpau_mpeg_start_frame(), vdpau_vc1_decode_slice(), vdpau_vc1_start_frame(), video_encode_example(), 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(), vp3_init_thread_copy(), vp3_update_thread_context(), 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(), vp8_decode_flush_impl(), vp8_encode(), vp8_free(), vp8_lossless_decode_frame(), vp8_lossy_decode_alpha(), vp8_lossy_decode_frame(), vp9_alloc_frame(), vp9_decode_flush(), vp9_decode_frame(), vp9_decode_free(), vp9_decode_init(), vp9_decode_update_thread_context(), vpx_init(), vqa_decode_end(), vqa_decode_frame(), vqa_decode_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(), webvtt_encode_close(), webvtt_encode_frame(), webvtt_encode_init(), wma_decode_init(), wma_decode_superframe(), wmavoice_decode_end(), wmavoice_decode_init(), wmavoice_decode_packet(), wmavoice_flush(), wmv2_decode_end(), wmv2_decode_init(), wmv2_encode_init(), wmv9_init(), X264_close(), X264_frame(), X264_init(), xan_decode_chroma(), xan_decode_end(), xan_decode_frame(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_decode_init(), XAVS_close(), XAVS_frame(), XAVS_init(), xface_decode_frame(), xface_encode_frame(), xvid_encode_close(), xvid_encode_frame(), xvid_encode_init(), yop_decode_close(), yop_decode_frame(), yop_decode_init(), zerocodec_decode_close(), zerocodec_decode_frame(), and zerocodec_decode_init().

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 1263 of file avcodec.h.

Referenced by add_metadata_from_side_data(), audio_get_buffer(), avcodec_close(), avcodec_copy_context(), avcodec_decode_audio4(), avcodec_decode_subtitle2(), avcodec_decode_video2(), avcodec_encode_audio(), avcodec_encode_audio2(), avcodec_encode_video2(), avcodec_flush_buffers(), avcodec_is_open(), avcodec_open2(), decode(), decode_fill(), decode_init(), decode_init_thread_copy(), ff_alloc_entries(), ff_alloc_packet2(), ff_frame_thread_encoder_free(), ff_frame_thread_encoder_init(), ff_frame_thread_free(), ff_frame_thread_init(), ff_get_format(), ff_h264_decode_init(), ff_init_buffer_info(), ff_reset_entries(), ff_rv34_decode_init(), ff_rv34_decode_init_thread_copy(), ff_slice_thread_free(), ff_slice_thread_init(), ff_thread_await_progress(), ff_thread_await_progress2(), ff_thread_can_start_frame(), ff_thread_decode_frame(), ff_thread_finish_setup(), ff_thread_flush(), ff_thread_get_format(), ff_thread_release_buffer(), ff_thread_report_progress(), ff_thread_report_progress2(), ff_thread_video_encode_frame(), ff_vda_output_callback(), frame_worker_thread(), hevc_decode_init(), libopus_decode_init(), libopus_flush(), mimic_decode_end(), mimic_decode_init(), png_dec_init(), thread_execute(), thread_execute2(), thread_get_buffer_internal(), update_context_from_thread(), update_frame_pool(), vda_h264_decode_slice(), vda_h264_end_frame(), vda_h264_start_frame(), vda_h264_uninit(), vda_old_h264_decode_slice(), vda_old_h264_end_frame(), vda_old_h264_start_frame(), video_get_buffer(), vp3_decode_end(), vp3_decode_init(), vp78_decode_init(), vp9_decode_init(), and worker().

void* AVCodecContext::opaque
int AVCodecContext::bit_rate

the average bitrate

  • encoding: Set by user; unused for constant quantizer encoding.
  • decoding: Set by libavcodec. 0 or some bitrate if this info is available in the stream.
Examples:
decoding_encoding.c, and muxing.c.

Definition at line 1277 of file avcodec.h.

Referenced by aac_encode_frame(), aac_encode_init(), aacPlus_encode_init(), ac3_decode_frame(), add_av_stream(), add_codec(), add_stream(), aea_read_header(), aiff_read_header(), amf_parse_object(), amr_read_packet(), amr_wb_encode_frame(), amr_wb_encode_init(), apc_read_header(), asf_read_header(), asf_write_header1(), audio_encode_example(), av_find_best_stream(), avcodec_open2(), avformat_new_stream(), avi_write_header(), avpriv_dv_init_demux(), avpriv_dv_produce_packet(), bfi_read_header(), calculate_bitrate(), check_stream_max_drift(), cin_read_header(), compute_bandwidth(), compute_status(), daud_header(), dc1394_read_common(), dca_decode_frame(), decode_frame(), decode_ppc(), dv_extract_audio_info(), dv_extract_video_info(), ea_read_header(), encode_init(), estimate_timings_from_bit_rate(), Faac_encode_init(), fbdev_read_header(), ff_aac_ac3_parse(), ff_adx_decode_header(), ff_dnxhd_find_cid(), ff_dv_offset_reset(), ff_get_audio_frame_size(), ff_get_wav_header(), ff_MPV_encode_init(), ff_parse_specific_params(), ff_pcm_read_seek(), ff_put_wav_header(), ff_voc_get_packet(), ff_wma_init(), ff_xvid_rate_control_init(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), film_read_header(), find_stream_in_feed(), flv_write_header(), gdigrab_read_header(), get_aiff_header(), get_bit_rate(), get_mode(), get_sindex(), grab_read_header(), gsm_read_header(), gxf_write_header(), gxf_write_mpeg_auxiliary(), handle_file(), hds_write_header(), idcin_read_header(), iff_read_header(), ilbc_read_header(), init_bitstream_params(), ipmovie_read_header(), ism_write_header(), iss_read_header(), lame_window_init(), libgsm_encode_init(), libopus_configure_encoder(), libopus_encode_init(), libschroedinger_encode_init(), libshine_encode_init(), libspeex_decode_frame(), libvorbis_setup(), libx265_encode_init(), lxf_read_header(), matroska_parse_tracks(), metasound_decode_init(), mlp_parse(), mmf_read_header(), modify_current_stream(), mov_build_index(), mov_read_header(), mov_write_esds_tag(), mov_write_isml_manifest(), mov_write_uuidprof_tag(), mp3_write_xing(), mp3lame_encode_init(), MPA_encode_init(), mpeg_decode_postinit(), mpeg_mux_init(), mpegaudio_parse(), mpegts_read_header(), mpegvideo_extract_headers(), mtv_read_header(), mxf_write_header(), ogm_dshow_header(), ogm_header(), oma_read_header(), optimum_dist(), optimum_use15_7(), parse_ffconfig(), parse_mpeg1waveformatex(), parse_strk(), pcm_bluray_parse_header(), pcm_dvd_parse_header(), pcm_encode_init(), print_enc_params(), psy_3gpp_init(), psy_3gpp_window(), qcp_read_header(), qdm2_decode_init(), ra144_encode_init(), rawvideo_read_header(), read_desc_chunk(), read_header(), real_parse_asm_rule(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_header(), rm_write_header(), roq_dpcm_encode_init(), roq_read_packet(), rv10_write_header(), s302m_encode_init(), s302m_parse_frame_header(), search_for_quantizers_twoloop(), seq_read_header(), show_stream(), sipr_decoder_init(), sox_read_header(), tmv_read_header(), transcode_init(), twinvq_decode_init(), twolame_encode_init(), v4l2_read_header(), validate_options(), vid_read_packet(), video_encode_example(), vivo_read_header(), vmd_read_header(), vorbis_encode_init(), vorbis_header(), vpx_init(), vqf_read_header(), vqf_read_seek(), wc3_read_header(), write_manifest(), wsaud_read_header(), x11grab_read_header(), X264_frame(), X264_init(), xa_read_header(), XAVS_init(), xmv_read_header(), xvid_encode_init(), xwma_read_header(), and yop_read_header().

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 1285 of file avcodec.h.

Referenced by add_codec(), ff_MPV_encode_init(), ff_rate_estimate_qscale(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), parse_ffconfig(), and XAVS_init().

int AVCodecContext::global_quality
int AVCodecContext::compression_level
int AVCodecContext::flags

CODEC_FLAG_*.

  • encoding: Set by user.
  • decoding: Set by user.
Examples:
decoding_encoding.c, muxing.c, remuxing.c, and transcoding.c.

Definition at line 1307 of file avcodec.h.

Referenced by aac_decode_init(), aac_encode_frame(), aac_encode_init(), aacPlus_encode_init(), ac3_decode_init(), add_input_streams(), add_stream(), amv_encode_picture(), atrac1_decode_init(), atrac3_decode_init(), atrac3p_decode_init(), av_parser_change(), avcodec_encode_video2(), avcodec_string(), comp_block(), config(), config_props(), configure_input_video_filter(), dca_decode_init(), dct_get(), decode_init(), decode_nal_units(), decode_slice_thread(), dnxhd_decode_macroblock(), dnxhd_encode_init(), do_video_out(), do_video_stats(), dsp_init(), dv_guess_dct_mode(), encode_frame(), encode_init(), encode_q_branch(), encode_slice_data(), estimate_best_b_count(), Faac_encode_init(), ff_ac3_encode_init(), ff_ac3_float_encode_init(), ff_celt_init(), ff_dct_common_init(), ff_dnxhd_find_cid(), ff_dsputil_init_pix_mmx(), ff_fmt_convert_init_arm(), ff_fmt_convert_init_ppc(), ff_fmt_convert_init_x86(), ff_frame_thread_encoder_init(), ff_h263_decode_frame(), ff_h264_decode_init(), ff_h264_decode_seq_parameter_set(), ff_hevc_decode_nal_sps(), ff_huffyuv_common_init(), ff_mjpeg_decode_init(), ff_mpegvideoencdsp_init_x86(), ff_MPV_common_init(), ff_MPV_encode_init(), ff_snow_frame_start(), ff_thread_video_encode_frame(), ff_twinvq_decode_init(), ff_vp56_init_context(), ff_wma_init(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), ffv1_common_init(), get_cox(), get_flags(), h261_decode_frame(), h264_decode_frame(), idct_put(), imc_decode_init(), init_muxer(), ipvideo_decode_init(), jpeg_put_comments(), lame_window_init(), libschroedinger_encode_init(), libvorbis_encode_init(), libvorbis_setup(), libx265_encode_init(), main(), mimic_decode_init(), mp3lame_encode_init(), mpeg_decode_init(), new_output_stream(), new_video_stream(), on2avc_decode_init(), open_output_file(), parse_ffconfig(), print_report(), ra288_decode_init(), remove_extradata(), render_slice(), rv10_decode_frame(), smvjpeg_decode_init(), stream_component_open(), svq1_decode_frame(), svq1_decode_init(), svq1_encode_init(), svq1_encode_plane(), svq3_decode_init(), tgq_idct_put_mb(), tgq_idct_put_mb_dconly(), tqi_idct_put(), twolame_encode_init(), unpack_dct_coeffs(), update_context_from_user(), validate_thread_parameters(), vble_decode_frame(), vc1_decode_init(), video_decode_example(), vorbis_decode_init(), vorbis_encode_init(), vp3_decode_init(), vp8_encode(), vpx_init(), wmv2_decode_init(), X264_init(), XAVS_init(), and xvid_encode_init().

int AVCodecContext::flags2
uint8_t* AVCodecContext::extradata

some codecs need / can use extradata like Huffman tables.

mjpeg: Huffman tables rv10: additional flags mpeg4: global headers (they can be in the bitstream or here) The allocated memory should be FF_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.

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

Definition at line 1327 of file avcodec.h.

Referenced by a64_write_header(), a64multi_encode_frame(), a64multi_encode_init(), aac_adtstoasc_filter(), aac_decode_frame(), aac_decode_init(), aac_encode_close(), aac_encode_init(), aacPlus_encode_close(), aacPlus_encode_init(), aasc_decode_init(), add_av_stream1(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), adts_write_header(), adx_decode_init(), adx_read_header(), afc_read_header(), aiff_read_header(), aiff_write_header(), alac_encode_close(), alac_encode_init(), alac_set_info(), alloc_buffers(), ape_decode_init(), ape_read_header(), asf_read_stream_properties(), asfrtp_parse_sdp_line(), ass_decode_init(), ass_encode_init(), atrac3_decode_init(), av_parser_change(), avcodec_close(), avcodec_copy_context(), avcodec_free_context(), avformat_find_stream_info(), avi_extract_stream_metadata(), avi_read_header(), avpriv_bprint_to_extradata(), avpriv_flac_is_extradata_valid(), avpriv_vorbis_parse_extradata(), avui_decode_frame(), avui_encode_init(), bfi_decode_frame(), bfi_read_header(), bitstream_switching(), caf_write_header(), celt_header(), cine_read_header(), cmap_read_palette(), concatenate_packet(), cook_decode_init(), cook_parse(), copy_stream_props(), decode_chunks(), decode_ext_header(), decode_flush(), decode_header_trees(), decode_init(), decode_init_thread_copy(), detect_stream_specific(), dfa_decode_frame(), dfa_read_header(), dshow_add_device(), dump_attachment(), dump_extradata(), dvbsub_init_decoder(), dvdsub_parse_extradata(), encode_close(), encode_end(), encode_ext_header(), encode_init(), encode_intervals(), extract_header(), extract_mpeg4_header(), Faac_encode_close(), Faac_encode_init(), fdk_aac_decode_init(), ff_alloc_extradata(), ff_free_stream(), ff_generate_avci_extradata(), ff_get_extradata(), ff_get_wav_header(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h264_decode_init(), ff_mjpeg_decode_init(), ff_mov_write_packet(), ff_mp4_read_dec_config_descr(), ff_MPV_encode_end(), ff_mss12_decode_init(), ff_opus_parse_extradata(), ff_parse_mpeg2_descriptor(), ff_put_bmp_header(), ff_put_wav_header(), ff_rm_read_mdpr_codecdata(), ff_vda_default_init(), ffm_write_header(), flac_decode_init(), flac_encode_close(), flac_encode_frame(), flac_encode_init(), flac_header(), flac_read_header(), flac_write_header(), flac_write_trailer(), flic_decode_init(), flv_get_extradata(), flv_read_packet(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), framecrc_write_header(), get_aac_sample_rates(), get_codec_data(), get_nb_samples(), get_private_data(), get_video_private_data(), h264_extradata_to_annexb(), h264_mp4toannexb_filter(), h264_parse(), hevc_decode_extradata(), hevc_decode_init(), hnm_decode_init(), hnm_read_header(), idcin_decode_init(), iff_read_header(), init(), jacosub_write_header(), latm_decode_audio_specific_config(), latm_decode_frame(), latm_write_frame_header(), latm_write_header(), latm_write_packet(), libcelt_dec_init(), libopus_decode_init(), libopus_encode_close(), libopus_encode_init(), libopus_write_header(), libspeex_decode_init(), libvorbis_encode_close(), libvorbis_encode_init(), libx265_encode_init(), matroska_parse_tracks(), matroska_parse_wavpack(), matroska_read_header(), metasound_decode_init(), microdvd_init(), microdvd_read_header(), microdvd_write_header(), mkv_write_attachments(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_native_codecprivate(), mov_create_chapter_track(), mov_create_dvd_sub_decoder_specific_info(), mov_finalize_stsd_codec(), mov_free(), mov_parse_stsd_data(), mov_read_dvc1(), mov_read_extradata(), mov_read_glbl(), mov_read_strf(), mov_read_targa_y216(), mov_read_wave(), mov_rewrite_dvd_sub_extradata(), mov_text_encode_init(), mov_write_extradata_tag(), mov_write_header(), mov_write_isml_manifest(), mov_write_subtitle_tag(), mov_write_tmcd_tag(), mp3_header_decompress(), mp_decode_frame(), mpc7_decode_init(), mpc8_decode_init(), mpc8_read_header(), mpc_read_header(), mpeg4_decode_header(), mpeg_decode_frame(), mpegts_write_pmt(), msrle_decode_init(), msvideo1_decode_init(), mtv_read_header(), mvc_decode_init(), mxf_parse_structural_metadata(), new_stream(), nut_read_header(), ogg_build_opus_headers(), ogg_build_speex_headers(), ogg_write_header(), oggvorbis_decode_init(), ogm_header(), oma_read_header(), oma_write_header(), open_output_file(), opus_header(), opus_parse(), parse_fmtp_config(), parse_media_type(), parse_mpeg1waveformatex(), parse_packed_headers(), parse_video_var(), parse_vtrk(), put_audio_specific_config(), put_flac_codecpriv(), put_wv_codecpriv(), put_xiph_codecpriv(), qdm2_decode_init(), qdm2_parse_config(), raw_init_decoder(), read_audio_mux_element(), read_extra_header(), read_gab2_sub(), read_header(), read_kuki_chunk(), read_specific_config(), realtext_read_header(), redspark_read_header(), rl2_decode_init(), rsd_read_header(), rv10_decode_init(), rv20_decode_picture_header(), rv30_decode_init(), rv30_parse_slice_header(), sdp_parse_fmtp_config_h264(), show_stream(), smacker_read_header(), smush_read_header(), smvjpeg_decode_init(), speex_header(), Stagefright_close(), Stagefright_init(), subviewer_read_header(), svq3_decode_init(), svq3_parse_packet(), tak_read_header(), theora_header(), transcode_init(), tta_decode_init(), tta_read_header(), twinvq_decode_init(), uninit(), utvideo_decode_init(), utvideo_encode_close(), utvideo_encode_init(), vc1_decode_init(), vc1test_write_header(), vdadec_init(), vfw_read_header(), vmdvideo_decode_init(), vorbis_decode_init(), vorbis_encode_close(), vorbis_encode_init(), vorbis_header(), vqa_decode_init(), vqf_read_header(), wavesynth_parse_extradata(), wma_decode_init(), wmavoice_decode_init(), wmv2_encode_init(), write_extradata(), write_header(), write_streamheader(), write_trailer(), wsvqa_read_header(), wsvqa_read_packet(), X264_close(), X264_init(), XAVS_close(), XAVS_init(), xmv_process_packet_header(), xvid_encode_close(), xvid_encode_init(), xvid_strip_vol_header(), xwma_read_header(), yop_decode_init(), and yop_read_header().

int AVCodecContext::extradata_size

Definition at line 1328 of file avcodec.h.

Referenced by a64_write_header(), a64multi_encode_init(), aac_adtstoasc_filter(), aac_decode_frame(), aac_decode_init(), aac_encode_init(), aacPlus_encode_init(), aasc_decode_init(), add_av_stream1(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), adts_write_header(), adx_decode_init(), adx_read_header(), aiff_write_header(), alac_decode_init(), alac_encode_close(), alac_encode_init(), alac_set_info(), ape_decode_init(), asf_read_stream_properties(), asf_write_header1(), asfrtp_parse_sdp_line(), ass_decode_init(), ass_encode_init(), atrac3_decode_init(), av_parser_change(), avcodec_copy_context(), avcodec_open2(), avformat_find_stream_info(), avi_extract_stream_metadata(), avi_read_header(), avpriv_bprint_to_extradata(), avpriv_flac_is_extradata_valid(), avpriv_vorbis_parse_extradata(), avui_decode_frame(), avui_encode_init(), bfi_decode_frame(), bfi_read_header(), bitstream_switching(), caf_write_header(), cine_read_header(), cmap_read_palette(), concatenate_packet(), cook_decode_init(), cook_parse(), copy_stream_props(), decode_ext_header(), decode_flush(), decode_header_trees(), decode_init(), decode_init_thread_copy(), decode_stream_header(), detect_stream_specific(), dfa_decode_frame(), dshow_add_device(), dump_attachment(), dump_extradata(), dvbsub_init_decoder(), dvdsub_parse_extradata(), encode_close(), encode_ext_header(), encode_init(), extract_header(), extract_mpeg4_header(), Faac_encode_init(), fdk_aac_decode_init(), ff_alloc_extradata(), ff_get_extradata(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h264_decode_init(), ff_mjpeg_decode_init(), ff_mov_write_packet(), ff_mp4_read_dec_config_descr(), ff_mss12_decode_init(), ff_opus_parse_extradata(), ff_parse_mpeg2_descriptor(), ff_put_bmp_header(), ff_put_wav_header(), ff_rtp_send_aac(), ff_rtp_send_latm(), ff_vda_default_init(), ffm_write_header(), flac_encode_close(), flac_encode_frame(), flac_encode_init(), flac_header(), flac_read_header(), flac_write_header(), flic_decode_init(), flv_read_packet(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), framecrc_write_header(), get_aac_sample_rates(), get_codec_data(), get_private_data(), get_video_private_data(), h264_extradata_to_annexb(), h264_mp4toannexb_filter(), h264_parse(), hevc_decode_extradata(), hevc_decode_init(), hnm_decode_init(), hnm_read_header(), idcin_decode_init(), iff_read_header(), init(), jacosub_write_header(), latm_decode_audio_specific_config(), latm_decode_frame(), latm_decode_init(), latm_write_frame_header(), latm_write_header(), libcelt_dec_init(), libopus_decode_init(), libopus_encode_init(), libspeex_decode_init(), libvorbis_encode_init(), libx265_encode_init(), m4sl_cb(), matroska_parse_tracks(), metasound_decode_init(), microdvd_read_header(), microdvd_write_header(), mkv_write_attachments(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_native_codecprivate(), mov_create_chapter_track(), mov_finalize_stsd_codec(), mov_read_extradata(), mov_read_targa_y216(), mov_read_trak(), mov_rewrite_dvd_sub_extradata(), mov_text_encode_init(), mov_write_extradata_tag(), mov_write_header(), mov_write_isml_manifest(), mov_write_subtitle_tag(), mov_write_tmcd_tag(), mp3_header_decompress(), mp_decode_init(), mpc7_decode_init(), mpc8_decode_init(), mpeg4_decode_header(), mpeg_decode_frame(), mpegts_write_header(), mpegts_write_pmt(), msrle_decode_init(), msvideo1_decode_init(), mtv_read_header(), mvc_decode_init(), new_stream(), nut_read_header(), ogg_build_opus_headers(), ogg_build_speex_headers(), ogg_write_header(), oggvorbis_decode_init(), ogm_header(), oma_write_header(), open_output_file(), parse_fmtp_config(), parse_media_type(), parse_packed_headers(), parse_video_var(), parse_vtrk(), print_final_stats(), put_audio_specific_config(), put_flac_codecpriv(), put_wv_codecpriv(), put_xiph_codecpriv(), qdm2_decode_init(), raw_init_decoder(), read_extra_header(), read_header(), read_specific_config(), realtext_read_header(), rl2_decode_init(), rl2_read_header(), rm_read_audio_stream_info(), rv10_decode_init(), rv20_decode_picture_header(), rv30_decode_init(), rv30_parse_slice_header(), sdp_parse_fmtp_config_h264(), show_stream(), smacker_read_header(), smvjpeg_decode_init(), speex_header(), Stagefright_close(), Stagefright_decode_frame(), Stagefright_init(), svq3_decode_init(), svq3_parse_packet(), tak_read_header(), theora_header(), transcode_init(), tta_decode_init(), tta_read_header(), twinvq_decode_init(), uninit(), utvideo_decode_init(), utvideo_encode_init(), vc1_decode_init(), vdadec_init(), vfw_read_header(), vmdvideo_decode_init(), vorbis_decode_init(), vorbis_encode_init(), vorbis_header(), vqa_decode_init(), wavesynth_parse_extradata(), wma_decode_init(), wmavoice_decode_init(), wmv2_encode_init(), write_extradata(), write_header(), write_streamheader(), write_trailer(), X264_init(), XAVS_init(), xmv_process_packet_header(), xvid_encode_init(), xvid_strip_vol_header(), xwma_read_header(), and yop_decode_init().

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.

  • encoding: MUST be set by user.
  • decoding: Set by libavcodec.
Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_video.c, muxing.c, and transcoding.c.

Definition at line 1338 of file avcodec.h.

Referenced by add_av_stream(), add_codec(), add_stream(), audio_decode_frame(), av_guess_frame_rate(), avcodec_encode_audio(), avcodec_get_context_defaults3(), avcodec_open2(), avcodec_string(), avformat_find_stream_info(), caca_write_header(), check_recording_time(), close_output_stream(), cmv_process_header(), compute_pkt_fields2(), compute_status(), config(), config_props(), cpia_decode_init(), dc1394_read_common(), decklink_setup_video(), decode_audio(), decode_frame(), decode_packet(), decode_seq_header(), decode_sequence_header_adv(), decode_vol_header(), decode_vop_header(), dirac_header(), do_audio_out(), do_subtitle_out(), do_video_out(), do_video_stats(), dshow_add_device(), dump_stream_format(), dvd_nav_parse(), dvvideo_decode_frame(), encode_ext_header(), encode_init(), encode_write_frame(), estimate_best_b_count(), fbdev_read_header(), ff_af_queue_add(), ff_compute_frame_duration(), ff_flv_encode_picture_header(), ff_h261_encode_picture_header(), ff_h263_decode_picture_header(), ff_h263_encode_picture_header(), ff_h263_show_pict_info(), ff_h264_decode_init(), ff_mpeg4_encode_picture_header(), ff_MPV_encode_init(), ff_MPV_encode_picture(), ff_msmpeg4_encode_ext_header(), ff_raw_video_read_header(), ff_samples_to_time_base(), ff_set_mpeg4_time(), ff_xvid_rate_control_init(), ff_xvid_rate_estimate_qscale(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), find_fps(), find_frame_rate_index(), flush_encoders(), gdigrab_read_header(), get_audio_frame(), get_fps(), get_video_format_idx(), get_video_frame(), grab_read_header(), h261_decode_picture_header(), h264_slice_header_init(), init_filter(), init_filters(), init_muxer(), init_pts(), lavfi_read_header(), libschroedinger_encode_init(), libschroedinger_handle_first_access_unit(), libx265_encode_init(), main(), microdvd_decode_frame(), microdvd_write_header(), mov_create_timecode_track(), mov_parse_stsd_data(), mov_text_decode_frame(), mov_write_tmcd_tag(), mpeg4_decode_header(), mpeg4_encode_gop_header(), mpeg4_encode_vol_header(), mpeg_decode_postinit(), mpegvideo_extract_headers(), mpegvideo_parse(), mpl2_decode_frame(), oggvorbis_decode_init(), open_output_file(), opt_target(), optimum_dist(), optimum_use15_7(), output_packet(), parse_ffconfig(), parse_forced_key_frames(), parse_source_parameters(), parse_timecode_in_framenum_format(), reap_filters(), roq_write_header(), sami_decode_frame(), set_frame_distances(), set_sps(), show_stream(), srt_decode_frame(), tb_unreliable(), text_decode_frame(), tgq_decode_init(), tgv_decode_init(), tqi_decode_init(), transcode_init(), update_context_from_thread(), vaapi_mpeg4_start_frame(), vdpau_mpeg4_start_frame(), vfw_read_header(), video_encode_example(), vpx_init(), webvtt_decode_frame(), write_audio_frame(), write_streaminfo(), write_video_frame(), x11grab_read_header(), X264_init(), XAVS_init(), xvid_correct_framerate(), and xvid_encode_init().

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.

Definition at line 1347 of file avcodec.h.

Referenced by av_guess_frame_rate(), avformat_find_stream_info(), compute_pkt_fields2(), decode_sequence_header_adv(), ff_compute_frame_duration(), ff_h264_decode_init(), ff_msmpeg4_encode_ext_header(), get_fps(), libx265_encode_init(), mpeg_decode_postinit(), optimum_dist(), optimum_use15_7(), output_packet(), transcode_init(), update_context_from_thread(), vc1_extract_header(), vp8_encode(), and X264_init().

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 is the number of "priming" samples added by the encoder to the beginning of the stream. The decoded output will be delayed by this many samples relative to the input to the encoder (or more, if the decoder adds its own padding). 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 -delay.

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 1380 of file avcodec.h.

Referenced by aac_encode_init(), amr_wb_encode_frame(), amr_wb_encode_init(), encode_frame(), encode_init(), encode_superframe(), Faac_encode_init(), ff_ac3_encode_init(), ff_af_queue_init(), ff_MPV_encode_init(), ff_opus_parse_extradata(), g722_encode_init(), libopus_decode_init(), libopus_encode_init(), libopus_write_header(), libvorbis_encode_frame(), matroska_parse_tracks(), mkv_write_track(), mp3_write_xing(), mp3lame_encode_init(), MPA_encode_frame(), MPA_encode_init(), ogg_write_packet_internal(), opus_header(), ra144_encode_init(), transcode_init(), twolame_encode_frame(), twolame_encode_init(), and update_context_from_thread().

int AVCodecContext::width

picture width / height.

  • 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.
Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_video.c, muxing.c, and transcoding.c.

Definition at line 1392 of file avcodec.h.

Referenced by a64multi_encode_frame(), aasc_decode_frame(), add_av_stream(), add_codec(), add_input_streams(), add_stream(), aic_decode_header(), aic_decode_init(), alloc_frame_buffer(), alloc_picture(), amf_parse_object(), apply_param_change(), asf_read_stream_properties(), asf_write_header1(), aura_decode_frame(), aura_decode_init(), avcodec_decode_video2(), avcodec_encode_video2(), avcodec_open2(), avcodec_string(), avf_read_header(), avi_read_header(), avi_write_header(), avisynth_create_stream_video(), avpriv_dv_codec_profile(), avs_read_packet(), avui_decode_frame(), avui_encode_frame(), avui_encode_init(), bethsoftvid_decode_frame(), bfi_decode_frame(), bfi_decode_init(), bfi_read_header(), bink_decode_plane(), binkb_decode_plane(), bitline2chunky(), bitplanar2chunky(), bmp_decode_frame(), bmp_encode_frame(), bmv_read_header(), caca_write_header(), cdg_decode_init(), cdxl_decode_frame(), cdxl_decode_ham6(), cdxl_decode_ham8(), cdxl_read_packet(), cin_read_header(), cine_read_header(), cinepak_decode_init(), cinepak_encode_init(), cinvideo_decode_frame(), cinvideo_decode_init(), cmv_decode_inter(), cmv_decode_intra(), cmv_process_header(), codec_reinit(), compute_display_area(), compute_overlay_rect(), compute_status(), config(), config_props(), configure_output_video_filter(), CustomSource::CustomSource(), cyuv_decode_init(), dc1394_read_common(), decklink_setup_video(), decode_13(), decode_block(), decode_frame(), decode_frame_header(), decode_i2_frame(), decode_i_frame(), decode_init(), decode_p_frame(), decode_packet(), decode_picture_header(), decode_seq_header(), decode_sequence_header_adv(), decode_stream_header(), decode_thread(), decode_write_frame(), dfa_decode_frame(), dfa_decode_init(), dfa_read_header(), dnxhd_decode_frame(), dnxhd_encode_init(), dnxhd_mb_var_thread(), dnxhd_write_header(), do_video_stats(), draw_char(), dshow_add_device(), dump_stream_format(), dv_frame_offset(), dv_init_mux(), dv_write_pack(), dvbsub_parse_display_definition_segment(), dvdsub_init(), dvvideo_encode_init(), dxa_read_header(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxtory_decode_v2_410(), dxtory_decode_v2_420(), dxtory_decode_v2_444(), dxtory_decode_v2_565(), dxtory_decode_v2_rgb(), ea_read_header(), encode_frame(), encode_gbrp10(), encode_gbrp12(), encode_init(), encode_picture_ls(), encode_rgb48_10bit(), encode_slice(), erase_screen(), escape124_decode_frame(), escape124_decode_init(), escape130_decode_frame(), escape130_decode_init(), estimate_best_b_count(), event_thread(), execute_code(), fbdev_read_header(), fbdev_write_packet(), ff_asv_common_init(), ff_ccitt_unpack(), ff_create_schro_frame(), ff_dnxhd_find_cid(), ff_flac_parse_picture(), ff_generate_avci_extradata(), ff_get_bmp_header(), ff_h264_update_thread_context(), ff_huffyuv_common_init(), ff_img_read_header(), ff_img_read_packet(), ff_mjpeg_encode_picture_header(), ff_mpeg_update_thread_context(), ff_MPV_encode_init(), ff_MPV_frame_start(), ff_msmpeg4_decode_init(), ff_mss12_decode_init(), ff_pnm_decode_header(), ff_print_debug_info2(), ff_put_bmp_header(), ff_rm_read_mdpr_codecdata(), ff_rtp_send_jpeg(), ff_rv34_decode_init(), ff_sauce_read(), ff_set_dimensions(), ff_set_sar(), ff_snow_alloc_blocks(), ff_snow_common_init_after_header(), ff_snow_frame_start(), ff_snow_get_buffer(), ff_thread_video_encode_frame(), ff_vda_default_init(), ff_vp56_decode_frame(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), ffv1_common_init(), ffv1_init_slice_contexts(), fic_decode_frame(), fic_decode_init(), fic_draw_cursor(), fill_picture_parameters(), film_read_header(), find_compressor(), find_slice_quant(), find_stream_in_feed(), flashsv2_encode_init(), flashsv_decode_frame(), flashsv_encode_init(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), flv_write_packet(), frm_read_header(), frm_read_packet(), g2m_decode_frame(), get_buffer_internal(), get_buffer_with_edge(), get_siz(), get_video_format_idx(), gif_encode_frame(), gif_encode_init(), gif_image_write_image(), gif_read_header(), gif_write_header(), grab_read_header(), halfpel_interpol(), handle_file(), has_codec_parameters(), hnm_decode_init(), hnm_read_header(), hscroll(), ico_check_attributes(), ico_write_packet(), idcin_decode_vlcs(), idcin_read_header(), idct_put(), iff_read_header(), init(), init_bundles(), init_dimensions(), init_filter(), init_filters(), init_image(), init_muxer(), init_stream(), ipmovie_read_header(), ipvideo_decode_frame(), ipvideo_decode_opcodes(), ir2_decode_frame(), ivf_write_header(), j2kenc_init(), jpeg_table_header(), lag_decode_arith_plane(), lag_decode_frame(), lavfi_read_header(), libopenjpeg_copy_packed12(), libopenjpeg_copy_packed16(), libopenjpeg_copy_packed8(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), libschroedinger_encode_init(), libschroedinger_frame_from_data(), libschroedinger_handle_first_access_unit(), libwebp_encode_frame(), libx265_encode_init(), ljpeg_encode_frame(), ljpeg_encode_init(), ljpeg_encode_yuv(), lvf_read_header(), main(), matroska_parse_tracks(), mca(), mimic_decode_frame(), mj2_create_image(), mm_decode_inter(), mm_decode_intra(), modplug_read_header(), motion_compensation(), mov_create_dvd_sub_decoder_specific_info(), mov_get_dv_codec_tag(), mov_get_mpeg2_xdcam_codec_tag(), mov_parse_stsd_subtitle(), mov_parse_stsd_video(), mov_read_ares(), mov_read_header(), mov_read_targa_y216(), mov_read_trak(), mov_rewrite_dvd_sub_extradata(), mov_write_avid_tag(), mov_write_header(), mov_write_isml_manifest(), mov_write_tapt_tag(), mov_write_tkhd_tag(), mov_write_uuidprof_tag(), mov_write_video_tag(), movie_config_output_props(), mp_decode_frame(), mp_decode_frame_helper(), mp_decode_init(), mp_decode_line(), mp_read_changes_map(), mpeg4_decode_header(), mpegvideo_extract_headers(), msrle_decode_frame(), msrle_decode_pal4(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss3_decode_init(), mss4_decode_frame(), mss4_decode_init(), msvideo1_decode_16bit(), msvideo1_decode_8bit(), mtv_read_header(), mvc_decode_frame(), mvc_decode_init(), mxf_parse_mpeg2_frame(), mxf_parse_structural_metadata(), mxf_write_cdci_common(), new_subtitle_stream(), new_video_stream(), nsv_parse_NSVs_header(), nut_read_header(), nuv_header(), ogm_dshow_header(), ogm_header(), open_output_file(), open_video(), opengl_compute_display_area(), opengl_write_header(), paf_video_init(), pam_encode_frame(), parse_ffconfig(), parse_h264_sdp_line(), parse_object_segment(), parse_presentation_segment(), parse_video_var(), parse_vtrk(), pcx_encode_frame(), pmp_header(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), print_report(), prores_encode_frame(), prores_encode_init(), prores_encode_picture(), put_videoinfoheader2(), qtkit_read_header(), qtrle_encode_frame(), qtrle_encode_init(), r3d_read_red1(), raw_encode(), raw_init_decoder(), rawvideo_read_header(), rawvideo_read_packet(), read_argb_line(), read_frame(), read_header(), read_packet(), read_rgb24_component_line(), read_seek(), read_thread(), read_yuv_component_line(), receive_frame(), reget_buffer_internal(), rl2_decode_init(), rl2_read_header(), rl2_rle_decode(), roq_decode_frame(), roq_decode_init(), roq_encode_init(), roq_read_packet(), rpl_read_header(), rpza_decode_stream(), rv10_write_header(), scan_file(), sdl_write_packet(), sdr2_read_header(), seq_read_header(), set_sps(), sgirle_decode_frame(), show_stream(), siff_parse_vbv1(), smacker_read_header(), smc_decode_stream(), smjpeg_write_header(), smush_read_header(), smvjpeg_decode_frame(), sp5x_decode_frame(), Stagefright_init(), str_read_packet(), sub2video_prepare(), sunrast_encode_init(), sunrast_image_write_header(), sunrast_image_write_image(), svq1_decode_init(), svq1_encode_end(), svq1_encode_init(), svq3_decode_init(), swf_read_packet(), swf_write_header(), swf_write_video(), targa_encode_frame(), teletext_init_decoder(), tgq_decode_frame(), tgv_decode_frame(), tgv_decode_inter(), theora_header(), thp_read_header(), tm2_decode_blocks(), tm2_motion_block(), tmv_decode_frame(), tmv_read_header(), to_meta_with_crop(), tqi_decode_frame(), transcode_init(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), truemotion1_decode_header(), truemotion1_decode_init(), tscc2_decode_init(), ulti_decode_init(), update_context_from_thread(), update_dimensions(), update_size(), utvideo_decode_frame(), utvideo_decode_init(), utvideo_encode_frame(), utvideo_encode_init(), 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_encode_frame(), v410_encode_init(), v4l2_read_header(), vb_decode_framedata(), vble_decode_frame(), vble_decode_init(), vc1_decode_frame(), vc1_decode_init(), vc1t_read_header(), vc1test_write_header(), vcr1_decode_frame(), vcr1_decode_init(), vda_h264_alloc_frame(), vdadec_init(), vfw_read_header(), video_encode_example(), vivo_read_header(), vmd_decode(), vp3_decode_init(), vp7_decode_frame_header(), vp8_decode(), vp8_decode_frame_header(), vp8_header(), vpx_init(), wc3_read_header(), write_adaptation_set(), write_header(), write_manifest(), write_packet(), write_streamheader(), write_trailer(), wsvqa_read_header(), x11grab_read_header(), X264_init(), xan_decode_chroma(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_decode_init(), xan_wc3_copy_pixel_run(), xan_wc3_decode_frame(), xan_wc3_output_pixel_run(), XAVS_init(), xbm_decode_frame(), xbm_encode_frame(), xface_decode_init(), xface_encode_frame(), xiph_parse_fmtp_pair(), xmv_read_header(), xv_write_header(), xv_write_packet(), 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(), yop_read_header(), yuv4_decode_frame(), yuv4_encode_frame(), yuv4_generate_header(), yuv4_read_header(), yuv4_read_packet(), yuv4_write_packet(), zero12v_decode_frame(), zerocodec_decode_frame(), and zmbv_me().

int AVCodecContext::height
Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_video.c, muxing.c, and transcoding.c.

Definition at line 1392 of file avcodec.h.

Referenced by a64multi_encode_frame(), aasc_decode_frame(), add_av_stream(), add_codec(), add_input_streams(), add_stream(), aic_decode_header(), aic_decode_init(), alloc_frame_buffer(), alloc_picture(), amf_parse_object(), amv_encode_picture(), apply_param_change(), asf_read_stream_properties(), asf_write_header1(), aura_decode_frame(), avcodec_decode_video2(), avcodec_encode_video2(), avcodec_open2(), avcodec_string(), avf_read_header(), avi_read_header(), avi_write_header(), avisynth_create_stream_video(), avpriv_dv_codec_profile(), avs_read_packet(), avui_decode_frame(), avui_encode_frame(), avui_encode_init(), bethsoftvid_decode_frame(), bfi_decode_frame(), bfi_decode_init(), bfi_read_header(), bink_decode_plane(), binkb_decode_plane(), bitline2chunky(), bitplanar2chunky(), bmp_decode_frame(), bmp_encode_frame(), bmv_read_header(), caca_write_header(), cdg_decode_frame(), cdg_decode_init(), cdxl_decode_frame(), cdxl_decode_ham6(), cdxl_decode_ham8(), cdxl_read_packet(), cin_read_header(), cine_read_header(), cinepak_decode_init(), cinepak_decode_vectors(), cinepak_encode_init(), cinvideo_decode_frame(), cinvideo_decode_init(), cmv_decode_inter(), cmv_decode_intra(), cmv_process_header(), codec_reinit(), comp_block(), compute_display_area(), compute_overlay_rect(), compute_status(), config(), config_props(), configure_output_video_filter(), CustomSource::CustomSource(), cyuv_decode_init(), dc1394_read_common(), decklink_setup_video(), decode_13(), decode_argb_frame(), decode_frame(), decode_frame_header(), decode_header(), decode_i2_frame(), decode_i_frame(), decode_init(), decode_p_block(), decode_p_frame(), decode_packet(), decode_picture_header(), decode_rgb24_frame(), decode_seq_header(), decode_sequence_header_adv(), decode_stream_header(), decode_thread(), decode_write_frame(), decode_yuv_frame(), dfa_decode_frame(), dfa_decode_init(), dfa_read_header(), dnxhd_decode_frame(), dnxhd_encode_init(), dnxhd_get_blocks(), dnxhd_mb_var_thread(), dnxhd_write_header(), do_video_stats(), draw_char(), dshow_add_device(), dump_stream_format(), dv_frame_offset(), dv_init_mux(), dv_write_pack(), dvbsub_parse_display_definition_segment(), dvdsub_init(), dvvideo_encode_init(), dxa_read_header(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxtory_decode_v2_410(), dxtory_decode_v2_420(), dxtory_decode_v2_444(), dxtory_decode_v2_565(), dxtory_decode_v2_rgb(), dxva2_h264_end_frame(), dxva2_mpeg2_end_frame(), dxva2_vc1_end_frame(), ea_read_header(), encode_frame(), encode_gbrp10(), encode_gbrp12(), encode_init(), encode_picture_ls(), encode_rgb48_10bit(), encode_slice(), erase_screen(), escape124_decode_init(), escape130_decode_frame(), escape130_decode_init(), estimate_best_b_count(), event_thread(), execute_code(), fbdev_read_header(), fbdev_write_packet(), ff_asv_common_init(), ff_create_schro_frame(), ff_dnxhd_find_cid(), ff_draw_horiz_band(), ff_er_frame_end(), ff_flac_parse_picture(), ff_get_bmp_header(), ff_h264_draw_horiz_band(), ff_h264_update_thread_context(), ff_huffyuv_common_init(), ff_img_read_header(), ff_img_read_packet(), ff_mjpeg_decode_sof(), ff_mjpeg_encode_picture_header(), ff_mpeg_update_thread_context(), ff_MPV_encode_init(), ff_MPV_frame_start(), ff_msmpeg4_decode_init(), ff_mss12_decode_init(), ff_pnm_decode_header(), ff_print_debug_info2(), ff_put_bmp_header(), ff_rm_read_mdpr_codecdata(), ff_rtp_send_jpeg(), ff_rv34_decode_init(), ff_sauce_read(), ff_set_dimensions(), ff_set_sar(), ff_slice_thread_init(), ff_snow_alloc_blocks(), ff_snow_common_init_after_header(), ff_snow_frame_start(), ff_snow_get_buffer(), ff_thread_video_encode_frame(), ff_vaapi_mpeg_end_frame(), ff_vda_default_init(), ff_vp56_decode_frame(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), ffv1_common_init(), ffv1_init_slice_contexts(), fic_decode_frame(), fic_decode_init(), fic_draw_cursor(), fill_picture_parameters(), film_read_header(), find_compressor(), find_slice_quant(), find_stream_in_feed(), flashsv2_encode_init(), flashsv_decode_frame(), flashsv_encode_init(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), flip(), flv_write_packet(), frm_read_header(), frm_read_packet(), g2m_decode_frame(), get_buffer_internal(), get_buffer_with_edge(), get_siz(), get_video_format_idx(), gif_encode_frame(), gif_encode_init(), gif_image_write_image(), gif_read_header(), gif_write_header(), grab_read_header(), gxf_find_lines_index(), gxf_write_header(), gxf_write_mpeg_auxiliary(), halfpel_interpol(), handle_file(), hnm_decode_init(), hnm_read_header(), hscroll(), ico_check_attributes(), ico_write_packet(), idcin_decode_vlcs(), idcin_read_header(), iff_read_header(), import_format(), init(), init_bundles(), init_dimensions(), init_filter(), init_filters(), init_image(), init_muxer(), init_stream(), ipmovie_read_header(), ipvideo_decode_frame(), ipvideo_decode_opcodes(), ir2_decode_frame(), ivf_write_header(), j2kenc_init(), lag_decode_frame(), lavfi_read_header(), libopenjpeg_copy_packed12(), libopenjpeg_copy_packed16(), libopenjpeg_copy_packed8(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), libschroedinger_encode_init(), libschroedinger_frame_from_data(), libschroedinger_handle_first_access_unit(), libwebp_encode_frame(), libx265_encode_init(), ljpeg_encode_frame(), ljpeg_encode_yuv(), lvf_read_header(), main(), matroska_parse_tracks(), mca(), mimic_decode_frame(), mj2_create_image(), mm_decode_inter(), mm_decode_intra(), modplug_read_header(), motion_compensation(), mov_create_dvd_sub_decoder_specific_info(), mov_get_dv_codec_tag(), mov_get_mpeg2_xdcam_codec_tag(), mov_parse_stsd_subtitle(), mov_parse_stsd_video(), mov_read_header(), mov_read_targa_y216(), mov_read_trak(), mov_rewrite_dvd_sub_extradata(), mov_write_avid_tag(), mov_write_header(), mov_write_isml_manifest(), mov_write_tapt_tag(), mov_write_tkhd_tag(), mov_write_uuidprof_tag(), movie_config_output_props(), mp_decode_frame(), mp_decode_frame_helper(), mp_decode_init(), mp_read_changes_map(), mpeg4_decode_header(), mpegvideo_extract_headers(), msrle_decode_8_16_24_32(), msrle_decode_frame(), msrle_decode_pal4(), mss1_decode_frame(), mss2_decode_frame(), mss2_decode_init(), mss3_decode_frame(), mss3_decode_init(), mss4_decode_frame(), msvideo1_decode_16bit(), msvideo1_decode_8bit(), mtv_read_header(), mvc_decode_frame(), mvc_decode_init(), mxf_parse_mpeg2_frame(), mxf_parse_structural_metadata(), mxf_write_cdci_common(), new_subtitle_stream(), new_video_stream(), nsv_parse_NSVs_header(), nut_read_header(), nuv_header(), ogm_dshow_header(), ogm_header(), open_output_file(), open_video(), opengl_compute_display_area(), opengl_write_header(), paf_video_init(), pam_encode_frame(), parse_ffconfig(), parse_h264_sdp_line(), parse_object_segment(), parse_presentation_segment(), parse_video_var(), parse_vtrk(), pcx_encode_frame(), pmp_header(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), prepare_avpic(), print_report(), prores_encode_frame(), prores_encode_init(), prores_encode_picture(), put_videoinfoheader2(), qtkit_read_header(), qtrle_decode_16bpp(), qtrle_decode_1bpp(), qtrle_decode_24bpp(), qtrle_decode_2n4bpp(), qtrle_decode_32bpp(), qtrle_decode_8bpp(), qtrle_decode_frame(), qtrle_encode_frame(), qtrle_encode_init(), r3d_read_red1(), raw_encode(), raw_init_decoder(), rawvideo_read_header(), rawvideo_read_packet(), read_frame(), read_header(), read_packet(), read_seek(), read_thread(), receive_frame(), reget_buffer_internal(), rl2_decode_init(), rl2_read_header(), rl2_rle_decode(), roq_decode_frame(), roq_decode_init(), roq_encode_init(), roq_read_packet(), rpl_read_header(), rpza_decode_stream(), rv10_write_header(), scan_file(), sdl_write_packet(), sdr2_read_header(), seq_read_header(), set_sps(), sgirle_decode_frame(), show_stream(), siff_parse_vbv1(), smacker_read_header(), smc_decode_stream(), smjpeg_write_header(), smush_read_header(), smvjpeg_decode_frame(), sp5x_decode_frame(), Stagefright_init(), str_read_packet(), sub2video_prepare(), sunrast_encode_init(), sunrast_image_write_header(), sunrast_image_write_image(), svq1_decode_init(), svq1_encode_end(), svq1_encode_init(), svq3_decode_frame(), svq3_decode_init(), swf_write_header(), swf_write_video(), targa_encode_frame(), teletext_init_decoder(), tgq_decode_frame(), tgv_decode_frame(), tgv_decode_inter(), theora_header(), thp_read_header(), tm2_decode_blocks(), tm2_motion_block(), tmv_decode_frame(), tmv_read_header(), to_meta_with_crop(), tqi_decode_frame(), transcode_init(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), truemotion1_decode_header(), tscc2_decode_init(), ulti_decode_init(), update_context_from_thread(), update_dimensions(), update_size(), utvideo_decode_frame(), utvideo_decode_init(), utvideo_encode_frame(), utvideo_encode_init(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), v4l2_read_header(), vaapi_h264_end_frame(), vb_decode_framedata(), vble_decode_frame(), vble_decode_init(), vc1_decode_frame(), vc1_decode_init(), vc1t_read_header(), vc1test_write_header(), vcr1_decode_frame(), vcr1_decode_init(), vda_h264_alloc_frame(), vdadec_init(), vdpau_h264_end_frame(), vfw_read_header(), video_encode_example(), vivo_read_header(), vmd_decode(), vp3_decode_init(), vp3_draw_horiz_band(), vp7_decode_frame_header(), vp8_decode(), vp8_decode_frame_header(), vp8_header(), vpx_init(), wc3_read_header(), write_adaptation_set(), write_header(), write_manifest(), write_packet(), write_streamheader(), write_trailer(), wsvqa_read_header(), x11grab_read_header(), X264_init(), xan_decode_chroma(), xan_decode_frame(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_decode_init(), xan_wc3_copy_pixel_run(), xan_wc3_decode_frame(), XAVS_init(), xbm_decode_frame(), xbm_encode_frame(), xface_decode_init(), xface_encode_frame(), xiph_parse_fmtp_pair(), xmv_read_header(), xv_write_header(), xv_write_packet(), 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(), yop_read_header(), yuv4_decode_frame(), yuv4_encode_frame(), yuv4_generate_header(), yuv4_read_header(), yuv4_read_packet(), yuv4_write_packet(), zero12v_decode_frame(), zerocodec_decode_frame(), and zmbv_me().

int AVCodecContext::coded_width
int AVCodecContext::coded_height
int AVCodecContext::gop_size
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.

  • encoding: Set by user.
  • decoding: Set by user if known, overridden by libavcodec if known
Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_video.c, muxing.c, and transcoding.c.

Definition at line 1422 of file avcodec.h.

Referenced by aasc_decode_frame(), aasc_decode_init(), add_input_streams(), add_stream(), aic_decode_init(), alloc_frame_buffer(), amv_encode_picture(), aura_decode_init(), avcodec_align_dimensions(), avcodec_align_dimensions2(), avcodec_decode_video2(), avcodec_get_context_defaults3(), avcodec_open2(), avcodec_string(), avf_read_header(), avformat_find_stream_info(), avi_write_header(), avisynth_create_stream_video(), avpriv_dv_codec_profile(), avs_decode_init(), avui_decode_init(), bethsoftvid_decode_init(), bfi_decode_init(), bfi_read_header(), bmp_decode_frame(), bmp_encode_frame(), bmp_encode_init(), bmv_read_header(), caca_write_header(), cdg_decode_init(), cdxl_decode_frame(), choose_pix_fmts(), cine_read_header(), cinepak_decode_init(), cinepak_encode_end(), cinepak_encode_init(), cinvideo_decode_init(), cllc_decode_frame(), cmv_decode_init(), config(), config_props(), copy_frame(), cpia_decode_init(), cyuv_decode_frame(), dc1394_read_common(), decklink_setup_video(), decode_frame(), decode_frame_header(), decode_header(), decode_init(), decode_packet(), decode_plane(), decode_slice(), decode_slice_thread(), decode_thread(), decode_wmv9(), dfa_decode_init(), dirac_decode_data_unit(), dnxhd_decode_header(), dnxhd_encode_init(), dshow_add_device(), dv_frame_offset(), dv_init_mux(), dvvideo_decode_frame(), dvvideo_encode_frame(), dvvideo_encode_init(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxtory_decode_v2_410(), dxtory_decode_v2_420(), dxtory_decode_v2_444(), dxtory_decode_v2_565(), dxtory_decode_v2_rgb(), encode_frame(), encode_init(), encode_init_ls(), encode_picture_ls(), encode_slice(), escape124_decode_init(), escape130_decode_init(), estimate_best_b_count(), event_thread(), extract_header(), fbdev_read_header(), fbdev_write_packet(), ff_cavs_init(), ff_create_schro_frame(), ff_draw_horiz_band(), ff_h263_decode_init(), ff_h264_decode_slice_header(), ff_h264_draw_horiz_band(), ff_img_read_header(), ff_init_buffer_info(), ff_jpegls_decode_lse(), ff_llviddsp_init_x86(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sof(), ff_mjpeg_decode_sos(), ff_mjpeg_encode_picture_header(), ff_mjpeg_init_hvsample(), ff_MPV_common_init(), ff_MPV_encode_init(), ff_MPV_frame_start(), ff_pnm_decode_header(), ff_print_debug_info2(), ff_rtp_send_jpeg(), ff_rv34_decode_init(), ff_snow_common_init_after_header(), ff_thread_video_encode_frame(), ff_vp56_decode_frame(), ff_vp56_init_context(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), fic_decode_init(), film_read_header(), find_compressor(), flashsv_decode_init(), flic_decode_frame(), flic_decode_init(), frame_end(), frm_read_header(), frm_read_packet(), g2m_decode_init(), get_buffer_internal(), get_buffer_with_edge(), get_pixel_format(), get_siz(), gif_decode_init(), gif_encode_frame(), gif_encode_init(), gif_write_header(), grab_read_header(), gxf_write_dv_auxiliary(), gxf_write_header(), gxf_write_mpeg_auxiliary(), gxf_write_umf_media_dv(), gxf_write_umf_media_mpeg(), h261_decode_init(), h264_slice_header_init(), has_codec_parameters(), hnm_decode_init(), ico_check_attributes(), ico_write_trailer(), idcin_decode_init(), iff_read_header(), init(), init_decoder(), init_filter(), init_filters(), init_image(), ipvideo_decode_init(), ir2_decode_init(), j2kenc_init(), jpeg2000_decode_frame(), jpeg2000_decode_tile(), jpeg_put_comments(), lag_decode_arith_plane(), lag_decode_frame(), lag_pred_line(), lavfi_read_header(), libopenjpeg_decode_frame(), libopenjpeg_encode_frame(), libschroedinger_encode_init(), libschroedinger_frame_from_data(), libschroedinger_handle_first_access_unit(), libwebp_encode_frame(), libx265_encode_frame(), libx265_encode_init(), ljpeg_encode_bgr(), ljpeg_encode_frame(), ljpeg_encode_init(), load_input_picture(), main(), mimic_decode_frame(), mj2_create_image(), mm_decode_init(), mov_get_dv_codec_tag(), mov_get_mpeg2_xdcam_codec_tag(), mov_get_rawvideo_codec_tag(), movie_query_formats(), mp_decode_init(), msrle_decode_frame(), msrle_decode_init(), mss1_decode_init(), mss2_decode_frame(), mss2_decode_init(), mss3_decode_init(), mss4_decode_init(), msvideo1_decode_8bit(), msvideo1_decode_init(), mtv_read_header(), mvc_decode_init(), mxf_parse_structural_metadata(), new_video_stream(), open_output_file(), open_video(), opengl_draw(), opengl_write_header(), paf_video_init(), pam_encode_frame(), parse_ffconfig(), parse_source_parameters(), parse_video_var(), pcx_decode_frame(), pcx_encode_frame(), pix_decode_frame(), png_enc_init(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), prores_encode_init(), ptx_decode_frame(), put_cod(), qtkit_read_header(), qtrle_decode_init(), qtrle_encode_frame(), qtrle_encode_init(), qtrle_encode_line(), raw_encode(), raw_encode_init(), raw_init_decoder(), rawvideo_read_header(), rawvideo_read_packet(), read_ffserver_streams(), read_header(), reget_buffer_internal(), rl2_decode_init(), roq_decode_frame(), roq_decode_init(), rpza_decode_init(), rv10_decode_init(), scan_file(), sdl_write_header(), sdl_write_packet(), seqvideo_decode_init(), set_chroma_format(), set_sps(), setup_hwaccel_for_pixfmt(), sgirle_decode_init(), show_stream(), siff_parse_vbv1(), smacker_read_header(), smc_decode_init(), smvjpeg_decode_frame(), Stagefright_init(), sub2video_prepare(), sunrast_decode_frame(), sunrast_encode_init(), svq1_decode_init(), svq1_encode_frame(), svq3_decode_init(), targa_encode_frame(), tgq_decode_init(), tgv_decode_init(), tiff_unpack_fax(), tiff_unpack_strip(), tmv_decode_init(), tmv_read_header(), tqi_decode_init(), transcode_init(), truemotion1_decode_header(), tscc2_decode_init(), txd_decode_frame(), ulti_decode_init(), update_context_from_thread(), update_frame_pool(), uses_vdpau(), utvideo_decode_frame(), utvideo_decode_init(), utvideo_encode_frame(), utvideo_encode_init(), v308_decode_init(), v408_decode_init(), v410_decode_init(), v4l2_read_header(), vble_decode_init(), vc1_decode_frame(), vc1_decode_init(), vcr1_decode_init(), vcr2_init_sequence(), vda_h264_alloc_frame(), vdadec_decode(), vdadec_init(), vfw_read_header(), video_encode_example(), video_get_buffer(), vmdvideo_decode_init(), vp3_decode_init(), vp78_decode_init(), vp8_decode(), vp8_lossless_decode_frame(), vp8_lossy_decode_frame(), vp9_decode_init(), vpx_init(), vqa_decode_init(), write_header(), write_packet(), x11grab_read_header(), X264_frame(), X264_init(), xan_decode_init(), xbm_decode_frame(), xface_decode_init(), xiph_parse_fmtp_pair(), xv_write_header(), xv_write_packet(), xvid_encode_frame(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_init(), y41p_decode_init(), yop_decode_init(), yuv4_decode_init(), yuv4_generate_header(), yuv4_read_header(), yuv4_read_packet(), yuv4_write_header(), yuv4_write_packet(), zero12v_decode_init(), and zerocodec_decode_init().

int AVCodecContext::me_method

Motion estimation algorithm used for video coding.

1 (zero), 2 (full), 3 (log), 4 (phods), 5 (epzs), 6 (x1), 7 (hex), 8 (umh), 9 (iter), 10 (tesa) [7, 8, 10 are x264 specific, 9 is snow specific]

  • encoding: MUST be set by user.
  • decoding: unused

Definition at line 1431 of file avcodec.h.

Referenced by add_codec(), config_props(), encode_blocks(), encode_frame(), encode_init(), ff_MPV_encode_init(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), svq1_encode_plane(), X264_init(), XAVS_init(), and xvid_encode_init().

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 1456 of file avcodec.h.

Referenced by draw_slice(), ff_draw_horiz_band(), ff_h264_draw_horiz_band(), ff_init_block_index(), MPV_decode_mb_internal(), update_context_from_user(), and vp3_draw_horiz_band().

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

callback to negotiate the pixelFormat

Parameters
fmtis the list of formats which are supported by the codec, it is terminated by -1 as 0 is a valid format, the formats are ordered by quality. The first is always the native one.
Returns
the chosen format
  • encoding: unused
  • decoding: Set by user, if not set the native format will be chosen.

Definition at line 1469 of file avcodec.h.

Referenced by avcodec_get_context_defaults3(), ff_get_format(), ff_thread_get_format(), init_input_stream(), restore_context(), set_context(), submit_packet(), and vdadec_init().

int AVCodecContext::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.

  • encoding: Set by user.
  • decoding: unused
Examples:
decoding_encoding.c, and muxing.c.

Definition at line 1477 of file avcodec.h.

Referenced by add_stream(), compute_pkt_fields2(), config(), config_props(), decode_sequence_header_adv(), estimate_best_b_count(), ff_MPV_encode_init(), ff_vc1_decode_sequence_header(), ff_vc1_parse_frame_header(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), vaapi_vc1_start_frame(), vc1_decode_init(), video_encode_example(), wmv9_init(), X264_init(), XAVS_frame(), XAVS_init(), and xvid_encode_init().

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 1486 of file avcodec.h.

Referenced by add_codec(), ff_xvid_rate_estimate_qscale(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), get_diff_limited_q(), get_qminmax(), get_qscale(), X264_init(), XAVS_init(), and xvid_encode_init().

int AVCodecContext::rc_strategy

obsolete FIXME remove

Definition at line 1489 of file avcodec.h.

Referenced by ff_rate_control_init(), ff_rate_control_uninit(), and ff_rate_estimate_qscale().

int AVCodecContext::b_frame_strategy
float AVCodecContext::b_quant_offset

qscale offset between IP and B-frames

  • encoding: Set by user.
  • decoding: unused

Definition at line 1499 of file avcodec.h.

Referenced by add_codec(), ff_xvid_rate_estimate_qscale(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), get_diff_limited_q(), get_qminmax(), get_qscale(), and xvid_encode_init().

int AVCodecContext::has_b_frames
int AVCodecContext::mpeg_quant

0-> h263 quant 1-> mpeg quant

  • encoding: Set by user.
  • decoding: unused

Definition at line 1514 of file avcodec.h.

Referenced by ff_MPV_encode_init(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), and xvid_encode_init().

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 1523 of file avcodec.h.

Referenced by add_codec(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), get_diff_limited_q(), get_qminmax(), get_qscale(), X264_init(), and XAVS_init().

float AVCodecContext::i_quant_offset

qscale offset between P and I-frames

  • encoding: Set by user.
  • decoding: unused

Definition at line 1530 of file avcodec.h.

Referenced by ffm2_read_header(), ffm_read_header(), ffm_write_header(), get_diff_limited_q(), get_qminmax(), and get_qscale().

float AVCodecContext::lumi_masking

luminance masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 1537 of file avcodec.h.

Referenced by adaptive_quantization(), ff_MPV_encode_init(), parse_ffconfig(), and xvid_encode_init().

float AVCodecContext::temporal_cplx_masking

temporary complexity masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 1544 of file avcodec.h.

Referenced by adaptive_quantization(), and ff_MPV_encode_init().

float AVCodecContext::spatial_cplx_masking

spatial complexity masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 1551 of file avcodec.h.

Referenced by adaptive_quantization(), and ff_MPV_encode_init().

float AVCodecContext::p_masking

p block masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 1558 of file avcodec.h.

Referenced by adaptive_quantization(), and ff_MPV_encode_init().

float AVCodecContext::dark_masking

darkness masking (0-> disabled)

  • encoding: Set by user.
  • decoding: unused

Definition at line 1565 of file avcodec.h.

Referenced by adaptive_quantization(), ff_MPV_encode_init(), and parse_ffconfig().

int AVCodecContext::slice_count

slice count

  • encoding: Set by libavcodec.
  • decoding: Set by user (or 0).

Definition at line 1572 of file avcodec.h.

Referenced by ff_rv34_decode_frame(), get_slice_offset(), rv10_decode_frame(), and update_context_from_user().

int AVCodecContext::prediction_method

prediction method (needed for huffyuv)

  • encoding: Set by user.
  • decoding: unused

Definition at line 1578 of file avcodec.h.

Referenced by encode_init(), encode_picture_ls(), ff_mjpeg_encode_picture_header(), j2kenc_init(), ljpeg_encode_bgr(), ljpeg_encode_yuv(), png_enc_init(), and utvideo_encode_init().

int* AVCodecContext::slice_offset

slice offsets in the frame in bytes

  • encoding: Set/allocated by libavcodec.
  • decoding: Set/allocated by user (or NULL).

Definition at line 1588 of file avcodec.h.

Referenced by avcodec_copy_context(), ff_frame_thread_free(), get_slice_offset(), and update_context_from_user().

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:
filtering_video.c, and transcoding.c.

Definition at line 1597 of file avcodec.h.

Referenced by add_av_stream1(), asf_write_header1(), av_guess_sample_aspect_ratio(), avcodec_decode_video2(), avcodec_get_context_defaults3(), avcodec_open2(), avcodec_string(), avpriv_dirac_parse_sequence_header(), configure_input_video_filter(), decode_frame(), decode_sequence_header_adv(), decode_vol_header(), dump_stream_format(), dv_write_pack(), encode_frame(), encode_init(), ff_flv_decode_picture_header(), ff_h263_decode_frame(), ff_h263_decode_picture_header(), ff_h263_encode_picture_header(), ff_h264_decode_slice_header(), ff_init_buffer_info(), ff_intel_h263_decode_picture_header(), ff_MPV_encode_init(), ff_rv34_decode_frame(), ff_set_sar(), gif_image_write_header(), gif_read_header1(), has_codec_parameters(), init_filter(), init_filters(), init_muxer(), jpeg_put_comments(), lavfi_read_header(), libx265_encode_init(), mjpeg_decode_app(), mov_write_pasp_tag(), mov_write_tapt_tag(), mov_write_video_tag(), mpeg1_encode_sequence_header(), mpeg4_encode_vol_header(), mpeg_decode_postinit(), new_video_stream(), open_output_file(), parse_source_parameters(), pcx_decode_frame(), pcx_encode_frame(), reap_filters(), receive_frame(), rv20_decode_picture_header(), set_sar(), transcode_init(), truemotion1_decode_header(), update_context_from_thread(), X264_frame(), X264_init(), XAVS_init(), xv_write_header(), and xvid_encode_frame().

int AVCodecContext::me_cmp
int AVCodecContext::me_sub_cmp

subpixel motion estimation comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 1610 of file avcodec.h.

Referenced by config_props(), direct_search(), encode_init(), encode_q_branch(), estimate_best_b_count(), estimate_motion_b(), ff_estimate_p_frame_motion(), ff_init_me(), hpel_motion_search(), and qpel_motion_search().

int AVCodecContext::mb_cmp

macroblock comparison function (not supported yet)

  • encoding: Set by user.
  • decoding: unused

Definition at line 1616 of file avcodec.h.

Referenced by check_bidir_mv(), config_props(), direct_search(), encode_q_branch(), estimate_best_b_count(), estimate_motion_b(), ff_estimate_p_frame_motion(), ff_init_me(), h263_mv4_search(), interlaced_search(), and sse_mb().

int AVCodecContext::ildct_cmp

interlaced DCT comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 1622 of file avcodec.h.

Referenced by dvvideo_encode_init(), encode_mb_internal(), and ff_MPV_encode_init().

int AVCodecContext::dia_size

ME diamond size & shape.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1645 of file avcodec.h.

Referenced by config_props(), estimate_motion_thread(), ff_init_me(), iterative_me(), and svq1_encode_plane().

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 1652 of file avcodec.h.

Referenced by epzs_motion_search_internal().

int AVCodecContext::pre_me

prepass for motion estimation

  • encoding: Set by user.
  • decoding: unused

Definition at line 1659 of file avcodec.h.

Referenced by encode_picture().

int AVCodecContext::me_pre_cmp

motion estimation prepass comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 1666 of file avcodec.h.

Referenced by ff_init_me(), and ff_pre_estimate_p_frame_motion().

int AVCodecContext::pre_dia_size

ME prepass diamond size & shape.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1673 of file avcodec.h.

Referenced by ff_init_me(), and pre_estimate_motion_thread().

int AVCodecContext::me_subpel_quality

subpel ME quality

  • encoding: Set by user.
  • decoding: unused

Definition at line 1680 of file avcodec.h.

Referenced by ffm2_read_header(), ffm_read_header(), ffm_write_header(), qpel_motion_search(), X264_init(), and XAVS_init().

int AVCodecContext::dtg_active_format

DTG active format information (additional aspect ratio information only used in DVB MPEG-2 transport streams) 0 if not set.

  • encoding: unused
  • decoding: Set by decoder.

Definition at line 1690 of file avcodec.h.

Referenced by decode_user_data_itu_t_t35(), mpeg_decode_user_data(), and update_context_from_thread().

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 1706 of file avcodec.h.

Referenced by encode_init(), ff_fix_long_mvs(), ff_fix_long_p_mvs(), ff_get_best_fcode(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), get_limits(), mpeg1_encode_sequence_header(), X264_init(), and XAVS_init().

int AVCodecContext::intra_quant_bias

intra quantizer bias

  • encoding: Set by user.
  • decoding: unused

Definition at line 1713 of file avcodec.h.

Referenced by dnxhd_encode_init(), and ff_MPV_encode_init().

int AVCodecContext::inter_quant_bias

inter quantizer bias

  • encoding: Set by user.
  • decoding: unused

Definition at line 1721 of file avcodec.h.

Referenced by ff_MPV_encode_init().

int AVCodecContext::slice_flags

slice flags

  • encoding: unused
  • decoding: Set by user.

Definition at line 1728 of file avcodec.h.

Referenced by ff_draw_horiz_band(), ff_h264_draw_horiz_band(), mpeg_field_start(), and update_context_from_user().

int AVCodecContext::mb_decision
uint16_t* AVCodecContext::intra_matrix

custom intra quantization matrix

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

Definition at line 1758 of file avcodec.h.

Referenced by avcodec_copy_context(), encode_picture(), ff_MPV_encode_init(), mpeg1_encode_sequence_header(), mpeg4_encode_vol_header(), new_video_stream(), and xvid_encode_init().

uint16_t* AVCodecContext::inter_matrix

custom inter quantization matrix

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

Definition at line 1765 of file avcodec.h.

Referenced by avcodec_copy_context(), ff_MPV_encode_init(), mpeg1_encode_sequence_header(), mpeg4_encode_vol_header(), new_video_stream(), and xvid_encode_init().

int AVCodecContext::scenechange_threshold

scene change detection threshold 0 is default, larger means fewer detected scene changes.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1773 of file avcodec.h.

Referenced by encode_frame(), encode_picture(), ff_MPV_encode_init(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), X264_init(), and XAVS_init().

int AVCodecContext::noise_reduction

noise reduction strength

  • encoding: Set by user.
  • decoding: unused

Definition at line 1780 of file avcodec.h.

Referenced by ff_MPV_encode_init(), frame_start(), init_duplicate_context(), merge_context_after_encode(), update_noise_reduction(), vpx_init(), X264_init(), and XAVS_init().

int AVCodecContext::me_threshold

Motion estimation threshold below which no motion estimation is performed, but instead the user specified motion vectors are used.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1789 of file avcodec.h.

Referenced by do_video_out().

int AVCodecContext::mb_threshold

Macroblock threshold below which the user specified macroblock types will be used.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1796 of file avcodec.h.

Referenced by ff_MPV_encode_init(), and vpx_init().

int AVCodecContext::intra_dc_precision

precision of the intra DC coefficient - 8

  • encoding: Set by user.
  • decoding: unused

Definition at line 1803 of file avcodec.h.

Referenced by ff_MPV_encode_init(), ffm2_read_header(), ffm_read_header(), and ffm_write_header().

int AVCodecContext::skip_top

Number of macroblock rows at the top which are skipped.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1810 of file avcodec.h.

Referenced by ff_er_add_slice(), and ff_er_frame_end().

int AVCodecContext::skip_bottom

Number of macroblock rows at the bottom which are skipped.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1817 of file avcodec.h.

Referenced by decode_chunks(), and ff_er_frame_end().

float AVCodecContext::border_masking

Border processing masking, raises the quantizer for mbs on the borders of the picture.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1825 of file avcodec.h.

Referenced by adaptive_quantization(), and ff_MPV_encode_init().

int AVCodecContext::mb_lmin

minimum MB lagrange multipler

  • encoding: Set by user.
  • decoding: unused

Definition at line 1832 of file avcodec.h.

Referenced by adaptive_quantization().

int AVCodecContext::mb_lmax

maximum MB lagrange multipler

  • encoding: Set by user.
  • decoding: unused

Definition at line 1839 of file avcodec.h.

Referenced by adaptive_quantization().

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

Definition at line 1846 of file avcodec.h.

Referenced by encode_picture().

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

Definition at line 1853 of file avcodec.h.

Referenced by bidir_refine().

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

Definition at line 1860 of file avcodec.h.

Referenced by estimate_best_b_count(), and ff_MPV_encode_init().

int AVCodecContext::keyint_min

minimum GOP size

  • encoding: Set by user.
  • decoding: unused

Definition at line 1867 of file avcodec.h.

Referenced by cinepak_encode_init(), encode_frame(), encode_init(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), flashsv2_encode_frame(), vpx_init(), X264_init(), and XAVS_init().

int AVCodecContext::refs

number of reference frames

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

Definition at line 1874 of file avcodec.h.

Referenced by config_props(), encode_init(), ff_h264_decode_slice_header(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), X264_init(), and XAVS_init().

int AVCodecContext::chromaoffset

chroma qp offset from luma

  • encoding: Set by user.
  • decoding: unused

Definition at line 1881 of file avcodec.h.

Referenced by X264_init(), and XAVS_init().

int AVCodecContext::scenechange_factor

Multiplied by qscale for each frame and added to scene_change_score.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1888 of file avcodec.h.

int AVCodecContext::mv0_threshold

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

  • encoding: Set by user.
  • decoding: unused

Definition at line 1896 of file avcodec.h.

Referenced by epzs_motion_search_internal().

int AVCodecContext::b_sensitivity

Adjust sensitivity of b_frame_strategy 1.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1903 of file avcodec.h.

Referenced by select_input_picture().

enum AVColorPrimaries AVCodecContext::color_primaries
enum AVColorTransferCharacteristic AVCodecContext::color_trc
enum AVColorSpace AVCodecContext::colorspace
enum AVColorRange AVCodecContext::color_range
enum AVChromaLocation AVCodecContext::chroma_sample_location
int AVCodecContext::slices

Number of slices.

Indicates number of picture subdivisions. Used for parallelized decoding.

  • encoding: Set by user
  • decoding: unused

Definition at line 1947 of file avcodec.h.

Referenced by encode_init(), ff_MPV_common_init(), ff_MPV_encode_init(), utvideo_encode_init(), vpx_init(), and X264_init().

enum AVFieldOrder AVCodecContext::field_order
int AVCodecContext::sample_rate

samples per second

Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_audio.c, muxing.c, transcode_aac.c, and transcoding.c.

Definition at line 1956 of file avcodec.h.

Referenced by aac_decode_er_frame(), aac_decode_frame_int(), aac_decode_init(), aac_encode_frame(), aac_encode_init(), aacPlus_encode_init(), ac3_decode_frame(), add_av_stream(), add_codec(), add_input_streams(), add_stream(), adp_read_header(), adpcm_encode_init(), adx_encode_header(), adx_encode_init(), adx_read_header(), aea_read_header(), afc_read_header(), aiff_read_header(), aiff_write_header(), alac_encode_init(), amf_parse_object(), amr_decode_fix_avctx(), amr_read_header(), amr_wb_encode_init(), amrnb_decode_init(), amrwb_decode_init(), apc_read_header(), ape_read_header(), apply_param_change(), ast_read_header(), ast_write_header(), audio_encode_example(), audio_read_header(), audio_write_header(), av_get_audio_frame_duration(), avcodec_decode_audio4(), avcodec_encode_audio(), avcodec_open2(), avcodec_string(), avisynth_create_stream_audio(), avpriv_flac_parse_streaminfo(), avr_read_header(), bfi_read_header(), bmv_read_header(), caf_write_header(), cdata_read_header(), cdxl_read_packet(), celt_header(), cin_read_header(), cng_decode_init(), compute_status(), configure_input_audio_filter(), create_audio_stream(), create_new_audio_stream(), create_vorbis_context(), daud_header(), daud_write_header(), dca_decode_frame(), dca_parse(), decklink_setup_audio(), decode_audio(), decode_frame(), decode_init(), decode_ppc(), decode_stream_header(), decode_tag(), decode_wave_header(), do_streamcopy(), dsf_read_header(), dshow_add_device(), dv_extract_audio_info(), dv_init_mux(), dxa_read_header(), ea_read_header(), encode_init(), epaf_read_header(), Faac_encode_init(), ff_aac_ac3_parse(), ff_adx_decode_header(), ff_af_queue_add(), ff_compute_frame_duration(), ff_get_audio_frame_size(), ff_get_wav_header(), ff_init_buffer_info(), ff_mp4_read_dec_config_descr(), ff_parse_specific_params(), ff_pcm_read_seek(), ff_psy_preprocess_init(), ff_put_wav_header(), ff_rtp_get_codec_info(), ff_rtp_get_payload_type(), ff_rtp_parse_open(), ff_samples_to_time_base(), ff_spdif_read_packet(), ff_voc_get_packet(), ff_wma_init(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), film_read_header(), find_expected_header(), find_stream_in_feed(), flac_encode_init(), flac_header(), flac_parse(), flv_read_packet(), flv_same_audio_codec(), flv_set_audio_codec(), flv_write_header(), g722_read_header(), g723_1_init(), g729_read_header(), get_aiff_header(), get_audio_flags(), get_best_header(), get_bit_rate(), get_codec_data(), get_sindex(), get_stream_info(), gsm_init(), gsm_read_header(), gxf_write_header(), handle_file(), has_codec_parameters(), idcin_read_header(), iff_read_header(), ilbc_decode_init(), ilbc_encode_init(), ilbc_read_header(), imc_decode_init(), init_bitstream_params(), init_filter(), init_filters(), init_muxer(), init_output_frame(), init_pts(), init_resampler(), ipmovie_read_header(), ircam_read_header(), ircam_write_header(), iss_read_header(), lavfi_read_header(), libcelt_dec_init(), libgsm_decode_init(), libgsm_encode_init(), libopus_decode_init(), libopus_encode_init(), libopus_write_header(), libshine_encode_init(), libspeex_decode_init(), libvorbis_setup(), lvf_read_header(), lxf_read_header(), main(), matroska_parse_block(), matroska_parse_frame(), matroska_parse_tracks(), metasound_decode_init(), mkv_write_block(), mkv_write_track(), mlp_parse(), mmf_read_header(), modplug_read_header(), mov_finalize_stsd_codec(), mov_parse_stsd_audio(), mov_write_audio_tag(), mov_write_esds_tag(), mov_write_header(), mov_write_isml_manifest(), mov_write_uuidprof_tag(), movie_query_formats(), mp3_header_decompress(), mp3_write_xing(), mp3lame_encode_init(), MPA_encode_init(), mpc8_read_header(), mpc_read_header(), mpeg_mux_init(), mpegaudio_parse(), mpegps_read_packet(), mpegts_write_header(), mv_read_header(), mxf_parse_structural_metadata(), mxf_write_generic_sound_common(), mxf_write_header(), mxf_write_wav_common(), mxg_read_header(), new_audio_stream(), nist_read_header(), nsv_read_chunk(), nut_read_header(), nut_write_header(), ogg_write_header(), ogg_write_packet_internal(), oggvorbis_decode_init(), ogm_dshow_header(), ogm_header(), old_flac_header(), oma_read_header(), oma_write_header(), on2avc_decode_init(), open_audio(), open_output_file(), opus_decode_init(), opus_header(), output_packet(), parse_audio_var(), parse_dsd_prop(), parse_ffconfig(), parse_packet(), parse_strk(), pcm_bluray_parse_header(), pcm_dvd_parse_header(), pcm_encode_init(), pcm_read_header(), pmp_header(), psy_3gpp_init(), pulse_read_header(), pulse_write_header(), pulse_write_packet(), pvf_read_header(), qcp_read_header(), qdm2_decode_init(), r3d_read_reda(), read_desc_chunk(), read_header(), read_header_gme(), read_major_sync(), read_packet(), read_specific_config(), redspark_read_header(), rl2_read_header(), rm_read_audio_stream_info(), rm_write_header(), roq_dpcm_encode_init(), roq_read_packet(), rsd_read_header(), rso_read_header(), rso_write_header(), rtp_write_header(), rv10_write_header(), s302m_parse_frame_header(), sbg_read_header(), sdr2_read_header(), search_for_quantizers_twoloop(), seq_read_header(), set_sample_rate_params(), set_samplerate(), show_stream(), smacker_read_header(), smjpeg_read_header(), smjpeg_write_header(), smush_read_header(), sol_read_header(), sox_read_header(), sox_write_header(), speex_header(), str_read_packet(), stream_component_open(), stream_cycle_channel(), swf_write_header(), tak_decode_frame(), tak_read_header(), thp_read_header(), tmv_read_header(), transcode_init(), tta_decode_init(), tta_encode_init(), tta_read_header(), twinvq_decode_init(), twolame_encode_init(), update_context_from_thread(), validate_options(), vid_read_packet(), vivo_read_header(), vmd_read_header(), vmdaudio_decode_init(), voc_write_packet(), vorbis_decode_frame(), vorbis_decode_init(), vorbis_header(), vqf_read_header(), wavesynth_parse_extradata(), wavpack_decode_block(), wavpack_encode_block(), wavpack_encode_init(), wc3_read_header(), wmavoice_decode_init(), write_adaptation_set(), write_audio_frame(), write_manifest(), write_streamheader(), wsaud_read_header(), wsvqa_read_packet(), wv_read_header(), xa_read_header(), xmv_read_header(), xwma_read_header(), and yop_read_header().

int AVCodecContext::channels

number of audio channels

Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_audio.c, muxing.c, transcode_aac.c, and transcoding.c.

Definition at line 1957 of file avcodec.h.

Referenced by aac_decode_init(), aac_encode_frame(), aac_encode_init(), aacPlus_encode_init(), ac3_decode_frame(), ac3_decode_init(), add_av_stream(), add_codec(), add_input_streams(), add_stream(), adp_read_header(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), adpcm_swf_decode(), adx_decode_frame(), adx_decode_init(), adx_encode_frame(), adx_encode_header(), adx_encode_init(), adx_read_packet(), aea_read_header(), afc_read_header(), aiff_write_header(), alac_decode_init(), alac_encode_frame(), alac_encode_init(), allocate_buffers(), amf_parse_object(), amr_decode_fix_avctx(), amr_handle_packet(), amr_read_header(), amr_wb_encode_init(), amrnb_decode_init(), amrwb_decode_init(), apc_read_header(), ape_decode_init(), ape_read_header(), apply_param_change(), apply_window_and_mdct(), ast_read_header(), ast_read_packet(), ast_write_header(), ast_write_packet(), atrac1_decode_frame(), atrac1_decode_init(), atrac3_decode_init(), audio_decode_example(), audio_encode_example(), audio_read_header(), audio_write_header(), av_find_best_stream(), av_get_audio_frame_duration(), avcodec_decode_audio3(), avcodec_decode_audio4(), avcodec_encode_audio(), avcodec_encode_audio2(), avcodec_open2(), avcodec_string(), avisynth_create_stream_audio(), avpriv_flac_parse_streaminfo(), avr_read_header(), bfi_read_header(), bmv_aud_decode_init(), bmv_read_header(), caf_write_header(), caf_write_trailer(), cdata_read_header(), cdxl_read_packet(), celt_header(), cin_read_header(), cinaudio_decode_init(), cng_decode_init(), cng_encode_init(), compute_status(), configure_input_audio_filter(), configure_output_audio_filter(), construct_perm_table(), cook_decode_init(), cook_parse(), create_audio_stream(), create_new_audio_stream(), create_vorbis_context(), daud_header(), daud_write_header(), dca_decode_frame(), dca_decode_init(), dec_bark_env(), dec_gain(), decklink_setup_audio(), decode_audio(), decode_block(), decode_channel_transform(), decode_decorrelation_matrix(), decode_extension_payload(), decode_frame(), decode_init(), decode_ppc(), decode_stream_header(), decode_subframe(), decode_tilehdr(), decoder_init(), dpcm_decode_frame(), dpcm_decode_init(), dsf_read_header(), dshow_add_device(), dump_context(), dv_extract_audio_info(), dv_init_mux(), ea_read_header(), eightsvx_decode_frame(), eightsvx_decode_init(), encode_block(), encode_frame(), encode_init(), epaf_read_header(), evrc_decode_init(), Faac_encode_frame(), Faac_encode_init(), fdk_aac_decode_frame(), ff_aac_ac3_parse(), ff_ac3_validate_metadata(), ff_adx_decode_header(), ff_audio_interleave_init(), ff_flac_set_channel_layout(), ff_get_wav_header(), ff_init_buffer_info(), ff_mp4_read_dec_config_descr(), ff_opus_parse_extradata(), ff_pcm_read_seek(), ff_psy_init(), ff_psy_preprocess_end(), ff_psy_preprocess_init(), ff_put_wav_header(), ff_rtp_get_codec_info(), ff_rtp_get_payload_type(), ff_voc_get_packet(), ff_wma_init(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), film_read_header(), flac_encode_init(), flush(), flv_read_packet(), flv_write_header(), frame_configure_elements(), g722_decode_init(), g722_encode_init(), g722_read_header(), g723_1_decode_init(), g723_1_init(), g729_read_header(), get_aiff_header(), get_audio_flags(), get_best_header(), get_bit_rate(), get_buffer_internal(), get_codec_data(), get_nb_samples(), get_sindex(), get_stream_info(), gsm_init(), gsm_read_header(), guess_channel_layout(), guess_input_channel_layout(), gxf_write_header(), handle_file(), has_codec_parameters(), idcin_read_header(), iff_read_header(), ilbc_decode_init(), ilbc_encode_init(), ilbc_read_header(), imc_decode_block(), imc_decode_frame(), imc_decode_init(), imdct_output(), init_bitstream_params(), init_converted_samples(), init_filter(), init_filters(), init_mdct_win(), init_muxer(), init_resampler(), inverse_channel_transform(), ipmovie_read_header(), ircam_read_header(), ircam_write_header(), iss_read_header(), iss_read_packet(), lame_window_init(), lavfi_read_header(), libcelt_dec_decode(), libcelt_dec_init(), libgsm_decode_init(), libgsm_encode_init(), libopus_decode(), libopus_decode_init(), libopus_encode(), libopus_encode_init(), libopus_write_header(), libshine_encode_init(), libspeex_decode_frame(), libspeex_decode_init(), libvorbis_setup(), lvf_read_header(), lxf_read_header(), mace_decode_frame(), mace_decode_init(), main(), matroska_parse_tracks(), metasound_decode_init(), metasound_read_bitstream(), mlp_parse(), mmf_read_header(), modplug_read_header(), mov_finalize_stsd_codec(), mov_parse_stsd_audio(), mov_read_dac3(), mov_read_dec3(), mov_write_audio_tag(), mov_write_header(), mov_write_isml_manifest(), mov_write_uuidprof_tag(), mp3_header_decompress(), mp3_write_xing(), mp3lame_encode_frame(), mp3lame_encode_init(), MPA_encode_init(), mpc7_decode_init(), mpc8_decode_frame(), mpc8_decode_init(), mpc8_read_header(), mpc_read_header(), mpeg_mux_init(), mpegaudio_parse(), mpegps_read_packet(), mv_read_header(), mxf_get_d10_aes3_packet(), mxf_parse_structural_metadata(), mxf_set_audio_pts(), mxf_write_d10_audio_packet(), mxf_write_generic_sound_common(), mxg_read_header(), new_audio_stream(), nist_read_header(), nsv_read_chunk(), nut_read_header(), oggvorbis_decode_init(), ogm_dshow_header(), ogm_header(), oma_read_header(), oma_write_header(), on2avc_decode_init(), on2avc_decode_subframe(), open_audio(), open_output_file(), opt_map_channel(), opus_decode_packet(), opus_header(), output_configure(), output_data(), pad_last_frame(), paf_audio_init(), parse_dsd_prop(), parse_ffconfig(), parse_mpeg1waveformatex(), parse_strk(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pcm_decode_frame(), pcm_decode_init(), pcm_dvd_decode_samples(), pcm_dvd_parse_header(), pcm_encode_frame(), pcm_encode_init(), pcm_read_header(), pmp_header(), pop_output_configuration(), print_enc_params(), psy_3gpp_init(), psy_3gpp_window(), pulse_read_header(), pulse_write_header(), pulse_write_packet(), pvf_read_header(), qcelp_decode_init(), qcp_read_header(), qdm2_decode_init(), r3d_read_red1(), ra144_decode_init(), ra144_encode_init(), ra288_decode_init(), read_and_decode_spectrum(), read_channel_data(), read_desc_chunk(), read_frame_data(), read_header(), read_header_gme(), read_index(), read_major_sync(), read_packet(), read_restart_header(), read_specific_config(), reap_filters(), redspark_read_header(), redspark_read_packet(), revert_channel_correlation(), rl2_read_header(), rm_read_audio_stream_info(), roq_dpcm_encode_frame(), roq_dpcm_encode_init(), roq_read_packet(), rsd_read_header(), rso_read_header(), rso_write_header(), rtp_write_packet(), rv10_write_header(), s302m_decode_frame(), s302m_encode2_frame(), s302m_encode_init(), s302m_parse_frame_header(), sbg_read_header(), sdr2_read_header(), search_for_quantizers_twoloop(), seq_read_header(), set_channel_params(), set_channels(), show_stream(), sipr_decoder_init(), smacker_read_header(), smjpeg_read_header(), smjpeg_write_header(), smka_decode_frame(), smka_decode_init(), smush_read_header(), sol_read_header(), sox_read_header(), sox_write_header(), speex_header(), str_read_packet(), stream_component_open(), stream_cycle_channel(), swf_write_header(), tak_decode_frame(), tak_read_header(), thp_read_header(), tmv_read_header(), transcode_init(), truespeech_decode_init(), tta_decode_init(), tta_encode_frame(), tta_encode_init(), tta_read_header(), twinvq_decode_init(), twinvq_read_bitstream(), twolame_encode_init(), update_context_from_thread(), validate_options(), vid_read_packet(), vivo_read_header(), vmd_read_header(), vmdaudio_decode_frame(), vmdaudio_decode_init(), voc_write_packet(), vorbis_decode_frame(), vorbis_decode_init(), vorbis_encode_init(), vorbis_header(), vqf_read_header(), wavesynth_decode(), wavesynth_init(), wavpack_decode_block(), wavpack_decode_frame(), wavpack_encode_block(), wavpack_encode_frame(), wavpack_encode_init(), wc3_read_header(), wma_decode_block(), wma_decode_frame(), wmavoice_decode_init(), write_frame(), write_manifest(), write_streamheader(), ws_snd_decode_init(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_packet(), wv_read_header(), xa_read_header(), xa_read_packet(), xmv_read_header(), xwma_read_header(), and yop_read_header().

enum AVSampleFormat AVCodecContext::sample_fmt

audio sample format

  • encoding: Set by user.
  • decoding: Set by libavcodec.sample format
Examples:
decoding_encoding.c, demuxing_decoding.c, filtering_audio.c, muxing.c, transcode_aac.c, and transcoding.c.

Definition at line 1964 of file avcodec.h.

Referenced by aac_decode_init(), aacPlus_encode_init(), ac3_decode_init(), add_input_streams(), add_stream(), adpcm_decode_init(), adx_decode_init(), alac_decode_init(), alac_encode_init(), allocate_buffers(), amr_decode_fix_avctx(), amrnb_decode_init(), amrwb_decode_init(), ape_decode_init(), atrac1_decode_init(), atrac3_decode_init(), atrac3p_decode_init(), audio_decode_example(), audio_encode_example(), audio_write_frame(), avcodec_decode_audio3(), avcodec_decode_audio4(), avcodec_encode_audio(), avcodec_encode_audio2(), avcodec_get_context_defaults3(), avcodec_open2(), avcodec_string(), bmv_aud_decode_init(), choose_sample_fmt(), cinaudio_decode_init(), cng_decode_init(), configure_input_audio_filter(), cook_decode_init(), copy_samples(), dca_decode_frame(), dca_decode_init(), decode_element(), decode_frame(), decode_init(), decoder_init(), dpcm_decode_init(), dprint_options(), dshow_add_device(), eightsvx_decode_init(), evrc_decode_init(), fdk_aac_decode_frame(), fdk_aac_decode_init(), ff_init_buffer_info(), ff_twinvq_decode_init(), fill_buffer(), flac_decode_init(), flac_encode_init(), flac_set_bps(), g722_decode_init(), g723_1_decode_init(), gsm_init(), has_codec_parameters(), ilbc_decode_init(), imc_decode_init(), init_converted_samples(), init_filter(), init_filters(), init_offset(), init_output_frame(), init_resampler(), init_sample_buffers(), lavfi_read_header(), libcelt_dec_init(), libgsm_decode_init(), libopus_decode(), libopus_decode_init(), libopus_encode(), libopus_encode_init(), libspeex_decode_frame(), mace_decode_init(), main(), mkv_write_track(), mlp_parse(), movie_query_formats(), mp3lame_encode_frame(), mp3lame_encode_init(), mp_decode_frame(), mpc7_decode_init(), mpc8_decode_init(), new_audio_stream(), oggvorbis_decode_init(), on2avc_decode_init(), open_audio(), open_output_file(), opus_decode_init(), output_data(), pad_last_frame(), paf_audio_init(), parse_streaminfo(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pcm_decode_init(), pcm_dvd_parse_header(), pulse_write_frame(), pulse_write_header(), pulse_write_packet(), qcelp_decode_init(), qdm2_decode_init(), ra144_decode_init(), ra288_decode_init(), read_decoding_params(), read_major_sync(), read_restart_header(), s302m_encode_init(), s302m_parse_frame_header(), set_bps_params(), show_stream(), sipr_decoder_init(), smka_decode_frame(), smka_decode_init(), stream_component_open(), tak_decode_frame(), truespeech_decode_init(), tta_decode_init(), tta_encode_frame(), tta_encode_init(), twolame_encode_frame(), update_context_from_thread(), vmdaudio_decode_init(), vorbis_decode_init(), wavesynth_init(), wavpack_decode_block(), wavpack_decode_frame(), wavpack_encode_frame(), wma_decode_init(), wmavoice_decode_init(), write_element(), and ws_snd_decode_init().

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 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:
decoding_encoding.c, muxing.c, and transcode_aac.c.

Definition at line 1976 of file avcodec.h.

Referenced by aac_decode_frame_int(), aac_encode_frame(), aac_encode_init(), aacPlus_encode_init(), adpcm_encode_init(), adx_encode_init(), alac_encode_init(), amr_wb_encode_init(), audio_encode_example(), avcodec_encode_audio(), avcodec_encode_audio2(), caf_write_header(), cng_decode_frame(), cng_decode_init(), cng_encode_init(), decode_audio(), decode_frame(), decoder_init(), do_streamcopy(), dprint_compression_options(), encode_frame(), encode_init(), Faac_encode_frame(), Faac_encode_init(), fdk_aac_decode_frame(), ff_ac3_encode_init(), ff_get_audio_frame_size(), ff_mov_write_packet(), ff_parse_specific_params(), ff_psy_preprocess(), ff_put_wav_header(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), flac_encode_init(), flush_encoders(), g722_encode_init(), get_stream_info(), gsm_decode_frame(), gsm_init(), has_codec_parameters(), ilbc_encode_init(), libcelt_dec_decode(), libcelt_dec_init(), libgsm_decode_frame(), libgsm_decode_init(), libgsm_encode_init(), libopus_encode_init(), libshine_encode_frame(), libshine_encode_init(), libvorbis_encode_init(), load_encode_and_write(), matroska_parse_block(), mov_write_audio_tag(), mov_write_header(), mp3lame_encode_frame(), mp3lame_encode_init(), mp_decode_frame(), MPA_encode_init(), mpegts_write_header(), open_audio(), output_packet(), pad_last_frame(), pcm_encode_init(), print_enc_params(), ra144_encode_frame(), ra144_encode_init(), read_header(), read_major_sync(), rm_write_header(), roq_dpcm_encode_frame(), roq_dpcm_encode_init(), rtp_write_header(), rv10_write_header(), s302m_encode_init(), sbg_read_header(), sbg_read_packet(), swf_write_audio(), swf_write_header(), transcode_init(), tta_encode_init(), twolame_encode_init(), vorbis_encode_frame(), vorbis_encode_init(), wavpack_encode_frame(), and wavpack_encode_init().

int AVCodecContext::frame_number
int AVCodecContext::block_align

number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs.

Definition at line 1993 of file avcodec.h.

Referenced by adpcm_decode_frame(), adpcm_encode_init(), aea_read_header(), aea_read_packet(), aiff_read_header(), aiff_read_packet(), aiff_write_header(), aiff_write_trailer(), apc_read_header(), asf_write_header1(), ast_write_trailer(), atrac1_decode_frame(), atrac1_decode_init(), atrac3_decode_frame(), atrac3_decode_init(), atrac3p_decode_frame(), atrac3p_decode_init(), av_get_audio_frame_duration(), avi_read_header(), avi_write_packet(), avr_read_header(), caf_write_header(), caf_write_packet(), caf_write_trailer(), cook_decode_frame(), cook_decode_init(), daud_header(), decode_frame(), decode_init(), decode_packet(), dsf_read_header(), dsf_read_packet(), dxa_read_header(), ea_read_header(), encode_frame(), encode_init(), encode_superframe(), epaf_read_header(), ff_get_audio_frame_size(), ff_get_wav_header(), ff_parse_specific_params(), ff_pcm_read_packet(), ff_pcm_read_seek(), ff_put_wav_header(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_twinvq_decode_frame(), ff_twinvq_decode_init(), ff_wma_init(), film_read_header(), g729_read_header(), g729_read_packet(), get_aiff_header(), get_mode(), get_nb_samples(), get_sindex(), gsm_decode_frame(), gsm_init(), gsm_parse(), handle_file(), idcin_read_header(), iff_read_header(), iff_read_packet(), ilbc_encode_init(), ilbc_parse_fmtp(), ilbc_parse_sdp_line(), ilbc_read_header(), ilbc_read_packet(), ilbc_write_header(), init_muxer(), ipmovie_read_header(), ircam_read_header(), ism_write_header(), iss_read_header(), libgsm_decode_frame(), libgsm_decode_init(), libgsm_encode_frame(), libgsm_encode_init(), matroska_parse_block(), matroska_parse_rm_audio(), matroska_parse_tracks(), mov_finalize_stsd_codec(), mov_write_header(), mov_write_isml_manifest(), mxf_write_d10_audio_packet(), mxf_write_wav_common(), mxg_read_header(), nist_read_header(), oma_read_header(), oma_read_packet(), oma_write_header(), parse_strk(), pcm_encode_init(), pcm_read_header(), pvf_read_header(), ra288_decode_frame(), ra288_decode_init(), read_desc_chunk(), read_header(), read_packet(), rl2_read_header(), rm_read_audio_stream_info(), roq_read_packet(), rsd_read_header(), rsd_read_packet(), rso_read_header(), rtp_send_ilbc(), seq_read_header(), sipr_decoder_init(), sox_read_header(), str_read_packet(), transcode_init(), tta_decode_init(), twinvq_decode_init(), vivo_read_header(), vmd_read_header(), vmdaudio_decode_frame(), vmdaudio_decode_init(), wc3_read_header(), wma_decode_init(), wma_decode_superframe(), wmavoice_decode_init(), wmavoice_decode_packet(), xmv_read_header(), xwma_read_header(), and xwma_read_packet().

int AVCodecContext::cutoff

Audio cutoff bandwidth (0 means "automatic")

  • encoding: Set by user.
  • decoding: unused

Definition at line 2000 of file avcodec.h.

Referenced by aac_encode_init(), aacPlus_encode_init(), Faac_encode_init(), ff_psy_preprocess_init(), libopus_configure_encoder(), libopus_encode_init(), libvorbis_setup(), psy_3gpp_init(), and validate_options().

attribute_deprecated int AVCodecContext::request_channels

Decoder should decode to this many channels if it can (0 for default)

  • encoding: unused
  • decoding: Set by user.
    Deprecated:
    Deprecated in favor of request_channel_layout.

Definition at line 2009 of file avcodec.h.

Referenced by ac3_decode_init(), dca_decode_frame(), dca_decode_init(), ff_aac_ac3_parse(), mlp_parse(), and read_restart_header().

uint64_t AVCodecContext::channel_layout

Audio channel layout.

  • encoding: set by user.
  • decoding: set by user, may be overwritten by libavcodec.
Examples:
decoding_encoding.c, filtering_audio.c, muxing.c, transcode_aac.c, and transcoding.c.

Definition at line 2017 of file avcodec.h.

Referenced by aac_encode_init(), ac3_decode_frame(), add_input_streams(), add_stream(), adp_read_header(), aea_read_header(), afc_read_header(), aiff_write_header(), alac_decode_init(), amf_parse_object(), amr_decode_fix_avctx(), amr_handle_packet(), amr_read_header(), amrnb_decode_init(), amrwb_decode_init(), apc_read_header(), ape_decode_init(), apply_param_change(), ast_read_header(), atrac3p_decode_init(), audio_encode_example(), avcodec_decode_audio4(), avcodec_open2(), avcodec_string(), avpriv_flac_parse_streaminfo(), bfi_read_header(), bmv_aud_decode_init(), bmv_read_header(), caf_write_header(), cdata_read_header(), cdxl_read_packet(), cin_read_header(), cinaudio_decode_init(), configure_input_audio_filter(), configure_output_audio_filter(), cook_decode_init(), create_audio_stream(), create_new_audio_stream(), daud_header(), dca_decode_frame(), decode_audio(), decode_frame(), decode_init(), dprint_options(), dsf_read_header(), dv_extract_audio_info(), encode_init(), evrc_decode_init(), ff_aac_ac3_parse(), ff_alsa_open(), ff_flac_set_channel_layout(), ff_init_buffer_info(), ff_mov_read_chan(), ff_opus_parse_extradata(), ff_put_wav_header(), flac_encode_init(), flac_read_header(), flac_write_header(), flv_read_packet(), g722_decode_init(), g723_1_decode_init(), g723_1_init(), get_best_header(), get_codec_data(), get_sindex(), get_stream_info(), gsm_init(), gsm_read_header(), guess_channel_layout(), guess_input_channel_layout(), idcin_read_header(), iff_read_header(), ilbc_decode_init(), imc_decode_init(), init_filter(), init_filters(), init_output_frame(), ipmovie_read_header(), iss_read_header(), lavfi_read_header(), libgsm_decode_init(), libopus_decode_init(), libspeex_decode_init(), libvorbis_setup(), matroska_parse_flac(), metasound_decode_init(), mlp_parse(), mmf_read_header(), mov_read_dac3(), mov_read_dec3(), mov_write_chan_tag(), mov_write_header(), movie_common_init(), movie_query_formats(), mpc7_decode_init(), mpc8_decode_init(), mpc_read_header(), mpegps_read_packet(), mxg_read_header(), oma_read_header(), on2avc_decode_init(), open_audio(), open_output_file(), output_configure(), paf_audio_init(), parse_dsd_prop(), parse_mpeg1waveformatex(), parse_waveformatex(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pop_output_configuration(), pulse_write_header(), put_flac_codecpriv(), qcelp_decode_init(), qcp_read_header(), qdm2_decode_init(), ra144_decode_init(), ra288_decode_init(), read_header(), read_major_sync(), read_restart_header(), rm_read_audio_stream_info(), roq_read_packet(), rso_read_header(), s302m_parse_frame_header(), sbg_read_header(), seq_read_header(), set_channel_params(), set_channels(), show_stream(), sipr_decoder_init(), smacker_read_header(), smka_decode_init(), sol_read_header(), speex_header(), str_read_packet(), stream_component_open(), tak_decode_frame(), tak_read_header(), tmv_read_header(), transcode_init(), truespeech_decode_init(), tta_decode_init(), twinvq_decode_init(), update_context_from_thread(), validate_options(), vid_read_packet(), vmd_read_header(), vmdaudio_decode_init(), vorbis_decode_frame(), vorbis_decode_init(), wavpack_decode_block(), wavpack_encode_block(), wavpack_encode_init(), wc3_read_header(), wmavoice_decode_init(), ws_snd_decode_init(), wsaud_read_header(), wv_read_header(), and yop_read_header().

uint64_t AVCodecContext::request_channel_layout

Request decoder to use this channel layout if it can (0 for default)

  • encoding: unused
  • decoding: Set by user.

Definition at line 2024 of file avcodec.h.

Referenced by ac3_decode_frame(), ac3_decode_init(), dca_decode_frame(), dca_decode_init(), dca_filter_channels(), ff_aac_ac3_parse(), mlp_parse(), output_configure(), and read_restart_header().

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 2031 of file avcodec.h.

Referenced by ac3_decode_frame(), avformat_find_stream_info(), ff_aac_ac3_parse(), ff_ac3_encode_init(), ff_ac3_validate_metadata(), mov_read_dac3(), mov_read_dec3(), and transcode_init().

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 2039 of file avcodec.h.

Referenced by alac_decode_init(), decode_init(), flac_set_bps(), and libopus_decode_init().

attribute_deprecated int(* AVCodecContext::get_buffer)(struct AVCodecContext *c, AVFrame *pic)

Called at the beginning of each frame to get a buffer for it.

The function will set AVFrame.data[], AVFrame.linesize[]. AVFrame.extended_data[] must also be set, but it should be the same as AVFrame.data[] except for planar audio with more channels than can fit in AVFrame.data[]. In that case, AVFrame.data[] shall still contain as many data pointers as it can hold.

if CODEC_CAP_DR1 is not set then get_buffer() must call avcodec_default_get_buffer() instead of providing buffers allocated by some other means.

AVFrame.data[] should be 32- or 16-byte-aligned unless the CPU doesn't need it. avcodec_default_get_buffer() aligns the output buffer properly, but if get_buffer() is overridden then alignment considerations should be taken into account.

See Also
avcodec_default_get_buffer()

Video:

If pic.reference is set then the frame will be read 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.

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

See Also
release_buffer(), reget_buffer()
avcodec_align_dimensions2()

Audio:

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

Decoders cannot use the buffer after returning from avcodec_decode_audio4(), so they will not call release_buffer(), as it is assumed to be released immediately upon return. In some rare cases, a decoder may need to call get_buffer() more than once in a single call to avcodec_decode_audio4(). In that case, when get_buffer() is called again after it has already been called once, the previously acquired buffer is assumed to be released at that time and may not be reused by the decoder.

As a convenience, av_samples_get_buffer_size() and av_samples_fill_arrays() in libavutil may be used by custom get_buffer() 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.
Deprecated:
use get_buffer2()

Definition at line 2105 of file avcodec.h.

Referenced by avcodec_decode_audio3(), ff_thread_release_buffer(), get_buffer_internal(), restore_context(), set_context(), submit_packet(), thread_get_buffer_internal(), and update_context_from_user().

attribute_deprecated void(* AVCodecContext::release_buffer)(struct AVCodecContext *c, AVFrame *pic)

Called to release buffers which were allocated with get_buffer.

A released buffer can be reused in get_buffer(). pic.data[*] must be set to NULL. May be called from a different thread if frame multithreading is used, but not by more than one thread at once, so does not need to be reentrant.

  • encoding: unused
  • decoding: Set by libavcodec, user can override.
Deprecated:
custom freeing callbacks should be set from get_buffer2()

Definition at line 2119 of file avcodec.h.

Referenced by avcodec_decode_audio3(), compat_free_buffer(), get_buffer_internal(), and update_context_from_user().

attribute_deprecated int(* AVCodecContext::reget_buffer)(struct AVCodecContext *c, AVFrame *pic)

Called at the beginning of a frame to get cr buffer for it.

Buffer type (size, hints) must be the same. libavcodec won't check it. libavcodec will pass previous buffer in pic, function should return same buffer or new buffer with old frame "painted" into it. If pic.data[0] == NULL must behave like get_buffer(). if CODEC_CAP_DR1 is not set then reget_buffer() must call avcodec_default_reget_buffer() instead of providing buffers allocated by some other means.

  • encoding: unused
  • decoding: Set by libavcodec, user can override.

Definition at line 2134 of file avcodec.h.

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

If 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 and thread_safe_callbacks is set, 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 2217 of file avcodec.h.

Referenced by avcodec_get_context_defaults3(), ff_thread_release_buffer(), get_buffer_internal(), init_input_stream(), restore_context(), set_context(), submit_packet(), thread_get_buffer_internal(), and update_context_from_user().

int AVCodecContext::refcounted_frames

If non-zero, the decoded audio and video frames returned from avcodec_decode_video2() and avcodec_decode_audio4() are reference-counted and are valid indefinitely.

The caller must free them with av_frame_unref() when they are not needed anymore. Otherwise, the decoded frames must not be freed by the caller and are only valid until the next decode call.

Definition at line 2230 of file avcodec.h.

Referenced by avcodec_decode_video2(), avcodec_flush_buffers(), open_stream(), and smvjpeg_decode_init().

float AVCodecContext::qcompress

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

Definition at line 2233 of file avcodec.h.

Referenced by add_codec(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), get_qscale(), vpx_init(), X264_init(), and XAVS_init().

float AVCodecContext::qblur

amount of qscale smoothing over time (0.0-1.0)

Definition at line 2234 of file avcodec.h.

Referenced by add_codec(), ff_rate_control_init(), ff_rate_estimate_qscale(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), init_pass2(), X264_init(), and XAVS_init().

int AVCodecContext::qmin
int AVCodecContext::qmax
int AVCodecContext::max_qdiff

maximum quantizer difference between frames

  • encoding: Set by user.
  • decoding: unused

Definition at line 2255 of file avcodec.h.

Referenced by add_codec(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), get_diff_limited_q(), parse_ffconfig(), X264_init(), and XAVS_init().

float AVCodecContext::rc_qsquish

ratecontrol qmin qmax limiting method 0-> clipping, 1-> use a nice continuous function to limit qscale within qmin/qmax.

  • encoding: Set by user.
  • decoding: unused

Definition at line 2263 of file avcodec.h.

Referenced by modify_qscale().

float AVCodecContext::rc_qmod_amp

Definition at line 2265 of file avcodec.h.

Referenced by modify_qscale().

int AVCodecContext::rc_qmod_freq

Definition at line 2266 of file avcodec.h.

Referenced by modify_qscale().

int AVCodecContext::rc_buffer_size
int AVCodecContext::rc_override_count

ratecontrol override, see RcOverride

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

Definition at line 2280 of file avcodec.h.

Referenced by avcodec_copy_context(), get_qscale(), and new_video_stream().

RcOverride* AVCodecContext::rc_override

Definition at line 2281 of file avcodec.h.

Referenced by avcodec_copy_context(), get_qscale(), and new_video_stream().

const char* AVCodecContext::rc_eq

rate control equation

  • encoding: Set by user
  • decoding: unused

Definition at line 2288 of file avcodec.h.

Referenced by add_codec(), avcodec_copy_context(), ff_rate_control_init(), ffm2_read_header(), ffm_close(), ffm_read_header(), ffm_write_header(), and get_qscale().

int AVCodecContext::rc_max_rate
int AVCodecContext::rc_min_rate

minimum bitrate

  • encoding: Set by user.
  • decoding: unused

Definition at line 2302 of file avcodec.h.

Referenced by ff_MPV_encode_init(), ff_MPV_encode_picture(), ff_vbv_update(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), libvorbis_setup(), modify_qscale(), parse_ffconfig(), and vpx_init().

float AVCodecContext::rc_buffer_aggressivity
float AVCodecContext::rc_initial_cplx

initial complexity for pass1 ratecontrol

  • encoding: Set by user.
  • decoding: unused

Definition at line 2311 of file avcodec.h.

Referenced by ff_rate_control_init().

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 2318 of file avcodec.h.

Referenced by ff_MPV_encode_picture(), ff_rate_control_init(), and modify_qscale().

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 2325 of file avcodec.h.

Referenced by modify_qscale().

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 2332 of file avcodec.h.

Referenced by avcodec_open2(), ff_rate_control_init(), ff_xvid_rate_control_init(), vpx_init(), X264_init(), and XAVS_init().

int AVCodecContext::coder_type
int AVCodecContext::context_model

context model

  • encoding: Set by user.
  • decoding: unused

Definition at line 2351 of file avcodec.h.

Referenced by encode_init(), encode_plane(), encode_rgb_frame(), encode_slice_header(), ff_frame_thread_encoder_init(), and write_header().

int AVCodecContext::lmin

minimum Lagrange multiplier

  • encoding: Set by user.
  • decoding: unused

Definition at line 2358 of file avcodec.h.

Referenced by get_qminmax().

int AVCodecContext::lmax

maximum Lagrange multiplier

  • encoding: Set by user.
  • decoding: unused

Definition at line 2365 of file avcodec.h.

Referenced by ff_MPV_encode_picture(), and get_qminmax().

int AVCodecContext::frame_skip_threshold

frame skip threshold

  • encoding: Set by user.
  • decoding: unused

Definition at line 2372 of file avcodec.h.

Referenced by MPV_decode_mb_internal(), select_input_picture(), skip_check(), and vpx_init().

int AVCodecContext::frame_skip_factor

frame skip factor

  • encoding: Set by user.
  • decoding: unused

Definition at line 2379 of file avcodec.h.

Referenced by MPV_decode_mb_internal(), select_input_picture(), and skip_check().

int AVCodecContext::frame_skip_exp

frame skip exponent

  • encoding: Set by user.
  • decoding: unused

Definition at line 2386 of file avcodec.h.

Referenced by skip_check().

int AVCodecContext::frame_skip_cmp

frame skip comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 2393 of file avcodec.h.

Referenced by add_codec(), ff_MPV_encode_init(), ffm2_read_header(), ffm_read_header(), and ffm_write_header().

int AVCodecContext::trellis

trellis RD quantization

  • encoding: Set by user.
  • decoding: unused

Definition at line 2400 of file avcodec.h.

Referenced by adpcm_compress_trellis(), adpcm_encode_init(), encode_block(), encode_end(), encode_init(), ff_dct_encode_init(), ff_MPV_encode_init(), g722_encode_init(), X264_init(), XAVS_init(), and xvid_encode_init().

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

Definition at line 2406 of file avcodec.h.

Referenced by alac_encode_init(), and flac_encode_init().

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

Definition at line 2412 of file avcodec.h.

Referenced by alac_encode_init(), and flac_encode_init().

int64_t AVCodecContext::timecode_frame_start

GOP timecode frame start number.

  • encoding: Set by user, in non drop frame format
  • decoding: Set by libavcodec (timecode in the 25 bits format, -1 if unset)

Definition at line 2419 of file avcodec.h.

Referenced by avcodec_get_context_defaults3(), encode_init(), mpeg1_encode_sequence_header(), mpeg_decode_gop(), and show_stream().

void(* AVCodecContext::rtp_callback)(struct AVCodecContext *avctx, void *data, int size, int mb_nb)

Definition at line 2427 of file avcodec.h.

Referenced by encode_thread().

int AVCodecContext::rtp_payload_size

Definition at line 2429 of file avcodec.h.

Referenced by encode_thread(), ff_MPV_encode_init(), and X264_init().

int AVCodecContext::mv_bits

Definition at line 2437 of file avcodec.h.

Referenced by encode_frame(), and ff_MPV_encode_picture().

int AVCodecContext::header_bits

Definition at line 2438 of file avcodec.h.

Referenced by ff_MPV_encode_picture().

int AVCodecContext::i_tex_bits

Definition at line 2439 of file avcodec.h.

Referenced by ff_MPV_encode_picture().

int AVCodecContext::p_tex_bits

Definition at line 2440 of file avcodec.h.

Referenced by encode_frame(), and ff_MPV_encode_picture().

int AVCodecContext::i_count

Definition at line 2441 of file avcodec.h.

Referenced by ff_MPV_encode_picture().

int AVCodecContext::p_count

Definition at line 2442 of file avcodec.h.

Referenced by ff_MPV_encode_picture().

int AVCodecContext::skip_count

Definition at line 2443 of file avcodec.h.

Referenced by ff_MPV_encode_picture().

int AVCodecContext::misc_bits

Definition at line 2444 of file avcodec.h.

Referenced by encode_frame(), and ff_MPV_encode_picture().

int AVCodecContext::frame_bits

number of bits used for the previously encoded frame

  • encoding: Set by libavcodec.
  • decoding: unused

Definition at line 2451 of file avcodec.h.

Referenced by aac_encode_frame(), encode_frame(), and ff_MPV_encode_picture().

char* AVCodecContext::stats_out
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 2466 of file avcodec.h.

Referenced by encode_init(), ff_rate_control_init(), submit_stats(), transcode(), vpx_init(), and xvid_encode_init().

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 2473 of file avcodec.h.

Referenced by ff_h263_decode_init(), ff_h264_decode_init(), ff_mpeg4_set_direct_mv(), and stream_component_open().

int AVCodecContext::strict_std_compliance

strictly follow the standard (MPEG4, ...).

  • 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)

Definition at line 2507 of file avcodec.h.

Referenced by amr_wb_encode_init(), amv_encode_picture(), avcodec_open2(), choose_pix_fmts(), choose_pixel_fmt(), config(), config_props(), decode_frame(), decode_postinit(), dvbsub_parse_clut_segment(), encode_frame(), encode_init(), ff_fix_long_p_mvs(), ff_get_best_fcode(), ff_MPV_encode_init(), ff_put_wav_header(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), find_frame_rate_index(), flv_write_header(), libgsm_encode_init(), libx265_encode_init(), ljpeg_encode_init(), mov_get_codec_tag(), parse_ffconfig(), set_default_channel_config(), validate_codec_tag(), and yuv4_write_header().

int AVCodecContext::error_concealment

error concealment flags

  • encoding: unused
  • decoding: Set by user.

Definition at line 2519 of file avcodec.h.

Referenced by ff_er_add_slice(), ff_er_frame_end(), ff_er_frame_start(), guess_mv(), and is_intra_more_likely().

int AVCodecContext::debug

debug

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

Definition at line 2529 of file avcodec.h.

Referenced by audio_get_buffer(), check_keyboard_interaction(), decode_chunks(), decode_ext_header(), decode_fill(), decode_frame(), decode_frame_packing_arrangement(), decode_init(), decode_nal_units(), decode_picture_timing(), decode_recovery_point(), decode_unregistered_user_data(), decode_vol_header(), decode_vop_header(), dvbsub_decode(), ff_dct_common_init(), ff_er_frame_end(), ff_flv_decode_picture_header(), ff_frame_thread_init(), ff_h263_show_pict_info(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_sei(), ff_h264_decode_seq_parameter_set(), ff_h264_decode_slice_header(), ff_h264_execute_ref_pic_marking(), ff_hevc_decode_nal_sps(), ff_jpegls_decode_lse(), ff_jpegls_decode_picture(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sos(), ff_mpeg4_decode_picture_header(), ff_mpeg4_workaround_bugs(), ff_MPV_frame_start(), ff_msmpeg4_decode_picture_header(), ff_print_debug_info2(), ff_rate_estimate_qscale(), ff_thread_await_progress(), ff_thread_release_buffer(), ff_thread_report_progress(), ff_vbv_update(), ff_wmv2_decode_secondary_picture_header(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), find_short(), libschroedinger_decode_init(), libschroedinger_encode_init(), mjpeg_decode_app(), mjpeg_decode_com(), mjpegb_decode_frame(), modify_qscale(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg_decode_gop(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), MPV_decode_mb_internal(), parse_avid(), parse_ffconfig(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pcm_dvd_parse_header(), predict_slice(), predict_slice_buffered(), print_long_term(), print_short_term(), read_extra_header(), remove_short(), rv10_decode_init(), rv20_decode_picture_header(), svq3_decode_frame(), truemotion1_decode_header(), update_context_from_user(), vc1_decode_frame(), and video_get_buffer().

int AVCodecContext::debug_mv

debug Code outside libavcodec should access this field using AVOptions

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

Definition at line 2563 of file avcodec.h.

Referenced by alloc_picture_tables(), ff_frame_thread_init(), ff_print_debug_info2(), and update_context_from_user().

int AVCodecContext::err_recognition
int64_t AVCodecContext::reordered_opaque

opaque 64bit number (generally a PTS) that will be reordered and output in AVFrame.reordered_opaque

Deprecated:
in favor of pkt_pts
  • encoding: unused
  • decoding: Set by user.

Definition at line 2600 of file avcodec.h.

Referenced by avcodec_get_context_defaults3(), ff_init_buffer_info(), Stagefright_decode_frame(), and update_context_from_user().

struct AVHWAccel* AVCodecContext::hwaccel
void* AVCodecContext::hwaccel_context
uint64_t AVCodecContext::error[AV_NUM_DATA_POINTERS]

error

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

Definition at line 2626 of file avcodec.h.

Referenced by encode_frame(), estimate_best_b_count(), ff_MPV_encode_picture(), print_report(), and storeframe().

int AVCodecContext::dct_algo

DCT algorithm, see FF_DCT_* below.

  • encoding: Set by user.
  • decoding: unused

Definition at line 2633 of file avcodec.h.

Referenced by ff_dct_encode_init_x86(), ff_fdctdsp_init(), ff_fdctdsp_init_ppc(), ff_fdctdsp_init_x86(), ff_MPV_common_init_ppc(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), and parse_ffconfig().

int AVCodecContext::idct_algo
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 2676 of file avcodec.h.

Referenced by aasc_decode_frame(), aasc_decode_init(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_init(), aiff_write_header(), amf_parse_object(), apc_read_header(), ape_decode_init(), ape_read_header(), asf_read_stream_properties(), av_get_audio_frame_duration(), avformat_find_stream_info(), avi_read_header(), avi_write_header(), avr_read_header(), avs_read_packet(), avui_decode_frame(), bfi_read_header(), bmp_encode_frame(), bmp_encode_init(), cin_read_header(), cine_read_header(), cinepak_decode_init(), cmap_read_palette(), create_audio_stream(), daud_header(), decode_frame(), decode_init(), decode_wave_header(), dshow_add_device(), ea_read_header(), encode_frame(), encode_init(), epaf_read_header(), fbdev_write_packet(), ff_get_bmp_header(), ff_get_wav_header(), ff_put_bmp_header(), ff_put_wav_header(), ff_voc_get_packet(), film_read_header(), flv_read_packet(), flv_same_audio_codec(), flv_set_audio_codec(), g722_read_header(), get_aiff_header(), get_audio_flags(), get_codec_data(), get_nb_samples(), get_packet_header(), get_sindex(), ico_write_packet(), idcin_read_header(), iff_read_header(), ipmovie_read_header(), ipvideo_decode_init(), ircam_read_header(), iss_read_header(), lag_decode_frame(), lvf_read_header(), matroska_parse_tracks(), mkv_write_track(), mmf_read_header(), mov_get_rawvideo_codec_tag(), mov_parse_stsd_audio(), mov_parse_stsd_video(), mov_write_video_tag(), mpc8_read_header(), mpc_read_header(), msrle_decode_frame(), msrle_decode_init(), msvideo1_decode_init(), mv_read_header(), mxf_get_d10_aes3_packet(), mxf_parse_structural_metadata(), mxg_read_header(), nist_read_header(), nsv_parse_NSVs_header(), nuv_header(), oma_read_header(), parse_audio_var(), parse_media_type(), parse_strk(), parse_waveformatex(), pcm_bluray_parse_header(), pcm_dvd_decode_samples(), pcm_dvd_parse_header(), pcm_encode_init(), pcm_read_header(), png_enc_init(), pvf_read_header(), qtrle_decode_frame(), qtrle_decode_init(), qtrle_encode_init(), raw_encode_init(), raw_init_decoder(), read_desc_chunk(), read_header(), read_packet(), rl2_read_header(), roq_read_packet(), rpl_read_header(), rtp_write_packet(), scan_file(), seq_read_header(), smacker_read_header(), smjpeg_read_header(), smjpeg_write_header(), smka_decode_init(), sox_read_header(), tak_decode_init(), tak_read_header(), targa_encode_frame(), tmv_read_header(), transcode_init(), tta_decode_init(), tta_read_header(), update_context_from_thread(), utvideo_encode_init(), vfw_read_header(), vid_read_packet(), vivo_read_header(), vmd_read_header(), vmdaudio_decode_init(), voc_write_packet(), wc3_read_header(), wsaud_read_header(), wsvqa_read_packet(), wv_read_header(), xmv_read_header(), xsub_encoder_init(), xwma_read_header(), and y41p_encode_init().

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 2683 of file avcodec.h.

Referenced by alac_decode_init(), alac_encode_frame(), alac_encode_init(), avcodec_string(), avpriv_flac_parse_streaminfo(), cllc_decode_frame(), copy_samples(), decode_channel(), decode_frame(), decode_init(), decode_plane(), decode_rgb_frame(), dnxhd_decode_header(), dnxhd_encode_init(), encode_init(), ff_blockdsp_init(), ff_dct_common_init(), ff_fdctdsp_init(), ff_h264_decode_init(), ff_h264_decode_slice_header(), ff_h264_set_parameter_from_sps(), ff_h264_update_thread_context(), ff_idctdsp_init(), ff_mjpeg_decode_sof(), ff_mpegvideoencdsp_init_x86(), ff_pixblockdsp_init(), fic_decode_init(), fill_buffer(), flac_encode_frame(), flac_encode_init(), get_siz(), init_frame(), init_sample_buffers(), libopenjpeg_decode_frame(), mlp_parse(), new_video_stream(), pcm_bluray_parse_header(), pcm_decode_init(), pcm_dvd_parse_header(), pnm_decode_frame(), prores_encode_init(), read_const_block_data(), read_extra_header(), read_header(), read_major_sync(), read_var_block_data(), s302m_decode_frame(), s302m_encode2_frame(), s302m_encode_init(), s302m_parse_frame_header(), set_bps_params(), tak_decode_frame(), tak_decode_init(), transcode_init(), tta_decode_init(), tta_encode_init(), update_context_from_thread(), update_md5_sum(), utvideo_decode_init(), v410_decode_init(), vble_decode_init(), wavpack_decode_frame(), wavpack_encode_frame(), write_element(), write_streaminfo(), y216_decode_init(), y41p_decode_init(), zero12v_decode_init(), and zerocodec_decode_init().

int AVCodecContext::lowres
AVFrame* AVCodecContext::coded_frame

the picture in the bitstream

  • encoding: Set by libavcodec.
  • decoding: unused

Definition at line 2701 of file avcodec.h.

Referenced by a64multi_close_encoder(), a64multi_encode_frame(), a64multi_encode_init(), avcodec_close(), avcodec_encode_audio(), avcodec_encode_video(), avui_encode_close(), avui_encode_frame(), avui_encode_init(), bmp_encode_close(), bmp_encode_frame(), bmp_encode_init(), dnxhd_encode_end(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_load_picture(), do_video_out(), do_video_stats(), dvvideo_encode_close(), dvvideo_encode_frame(), dvvideo_encode_init(), encode_close(), encode_end(), encode_frame(), encode_init(), encode_init_ls(), encode_slice(), ff_MPV_encode_init(), filter(), filter_frame(), find_quant_thread(), flashsv_encode_end(), flashsv_encode_frame(), flashsv_encode_init(), frame_end(), gif_encode_close(), gif_encode_init(), libopenjpeg_encode_close(), libopenjpeg_encode_init(), libschroedinger_encode_close(), libschroedinger_encode_frame(), libschroedinger_encode_init(), libx265_encode_close(), libx265_encode_init(), ljpeg_encode_close(), ljpeg_encode_init(), pam_encode_close(), pam_encode_init(), pcx_encode_close(), pcx_encode_init(), png_enc_close(), png_enc_init(), pnm_encode_close(), pnm_encode_init(), print_report(), prores_encode_close(), prores_encode_init(), qtrle_encode_end(), qtrle_encode_frame(), qtrle_encode_init(), qtrle_encode_line(), raw_encode_init(), roq_encode_video(), sunrast_encode_close(), svq1_encode_end(), svq1_encode_frame(), svq1_encode_init(), svq1_encode_plane(), targa_encode_close(), targa_encode_init(), update_context_from_thread(), utvideo_decode_close(), utvideo_decode_frame(), utvideo_decode_init(), utvideo_encode_close(), utvideo_encode_frame(), utvideo_encode_init(), v308_encode_close(), v308_encode_frame(), v308_encode_init(), v408_encode_close(), v408_encode_frame(), v408_encode_init(), v410_encode_close(), v410_encode_frame(), v410_encode_init(), v4l2_read_packet(), vp8_encode(), vp8_free(), vpx_init(), X264_close(), X264_frame(), X264_init(), XAVS_close(), XAVS_frame(), XAVS_init(), xface_encode_close(), xface_encode_init(), xvid_encode_frame(), xvid_encode_init(), y41p_encode_close(), y41p_encode_frame(), y41p_encode_init(), yuv4_encode_close(), yuv4_encode_frame(), and yuv4_encode_init().

int AVCodecContext::thread_count
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 2719 of file avcodec.h.

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

int AVCodecContext::active_thread_type
int AVCodecContext::thread_safe_callbacks

Set by the client if its custom get_buffer() callback can be called synchronously from another thread, which allows faster multithreaded decoding.

draw_horiz_band() will be called from other threads regardless of this setting. Ignored if the default get_buffer() is used.

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

Definition at line 2738 of file avcodec.h.

Referenced by ff_thread_get_format(), ff_thread_release_buffer(), init_input_stream(), submit_packet(), thread_get_buffer_internal(), and update_context_from_user().

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 2749 of file avcodec.h.

Referenced by avcodec_get_context_defaults3(), decode_chunks(), decode_component(), decode_frame(), decode_lowdelay(), decode_picture(), dvvideo_decode_frame(), dvvideo_encode_frame(), encode_frame(), encode_picture(), ff_h264_execute_decode_slices(), ff_slice_thread_init(), fic_decode_frame(), and hls_slice_data().

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. Also see avcodec_thread_init and e.g. the –enable-pthread configure option.

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 2769 of file avcodec.h.

Referenced by avcodec_get_context_defaults3(), decode_frame(), decode_picture(), dnxhd_encode_fast(), dnxhd_encode_picture(), dnxhd_encode_rdo(), dnxhd_find_qscale(), encode_frame(), ff_slice_thread_init(), ff_vp56_decode_frame(), hls_slice_data_wpp(), and vp78_decode_frame().

attribute_deprecated void* AVCodecContext::thread_opaque
Deprecated:
this field should not be used from outside of lavc

Definition at line 2776 of file avcodec.h.

int AVCodecContext::nsse_weight

noise vs.

sse weight for the nsse comparison function

  • encoding: Set by user.
  • decoding: unused

Definition at line 2784 of file avcodec.h.

Referenced by add_codec(), ffm2_read_header(), ffm_read_header(), ffm_write_header(), hadamard_func(), nsse16_c(), and nsse8_c().

int AVCodecContext::profile
int AVCodecContext::level
enum AVDiscard AVCodecContext::skip_loop_filter

Skip loop filtering for selected frames.

  • encoding: unused
  • decoding: Set by user.

Definition at line 2883 of file avcodec.h.

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

enum AVDiscard AVCodecContext::skip_idct

Skip IDCT/dequantization for selected frames.

  • encoding: unused
  • decoding: Set by user.

Definition at line 2890 of file avcodec.h.

Referenced by MPV_decode_mb_internal().

enum AVDiscard AVCodecContext::skip_frame
uint8_t* AVCodecContext::subtitle_header

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 2907 of file avcodec.h.

Referenced by ass_decode_init(), ass_encode_init(), avcodec_copy_context(), avcodec_free_context(), avcodec_open2(), ff_ass_subtitle_header(), ff_free_stream(), mov_text_encode_init(), srt_encode_init(), and webvtt_encode_init().

int AVCodecContext::subtitle_header_size
attribute_deprecated int AVCodecContext::error_rate
Deprecated:
use the 'error_rate' private AVOption of the mpegvideo encoders

Definition at line 2916 of file avcodec.h.

Referenced by ff_MPV_encode_init().

attribute_deprecated AVPacket* AVCodecContext::pkt
Deprecated:
this field is not supposed to be accessed from outside lavc

Definition at line 2924 of file avcodec.h.

uint64_t AVCodecContext::vbv_delay

VBV delay coded in the last frame (in periods of a 27 MHz clock).

Used for compliant TS muxing.

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

Definition at line 2933 of file avcodec.h.

Referenced by ff_MPV_encode_picture().

int AVCodecContext::side_data_only_packets

Encoding only.

Allow encoders to output packets that do not contain any encoded data, only side data.

Some encoders need to output such packets, e.g. to update some stream parameters at the end of encoding.

All callers are strongly recommended to set this option to 1 and update their code to deal with such packets, since this behaviour may become always enabled in the future (then this option will be deprecated and later removed). To avoid ABI issues when this happens, the callers should use AVOptions to set this field.

Definition at line 2948 of file avcodec.h.

Referenced by flac_encode_frame().

AVRational AVCodecContext::pkt_timebase

Timebase in which pkt_dts/pts and AVPacket.dts/pts are.

Code outside libavcodec should access this field using: av_codec_{get,set}_pkt_timebase(avctx)

  • encoding unused.
  • decoding set by user.

Definition at line 2957 of file avcodec.h.

Referenced by avcodec_decode_audio4(), avcodec_decode_subtitle2(), decode_frame(), and teletext_decode_frame().

const AVCodecDescriptor* AVCodecContext::codec_descriptor

AVCodecDescriptor Code outside libavcodec should access this field using: av_codec_{get,set}_codec_descriptor(avctx)

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

Definition at line 2966 of file avcodec.h.

Referenced by avcodec_decode_subtitle2(), and avcodec_open2().

int64_t AVCodecContext::pts_correction_num_faulty_pts

Current statistics for PTS correction.

  • decoding: maintained and used by libavcodec, not intended to be used by user apps
  • encoding: unused

Definition at line 2984 of file avcodec.h.

Referenced by avcodec_open2(), guess_correct_pts(), and video_refresh().

int64_t AVCodecContext::pts_correction_num_faulty_dts

Number of incorrect PTS values so far.

Definition at line 2985 of file avcodec.h.

Referenced by avcodec_open2(), guess_correct_pts(), and video_refresh().

int64_t AVCodecContext::pts_correction_last_pts

Number of incorrect DTS values so far.

Definition at line 2986 of file avcodec.h.

Referenced by avcodec_flush_buffers(), avcodec_open2(), and guess_correct_pts().

int64_t AVCodecContext::pts_correction_last_dts

PTS of the last frame.

Definition at line 2987 of file avcodec.h.

Referenced by avcodec_flush_buffers(), avcodec_open2(), and guess_correct_pts().

char* AVCodecContext::sub_charenc

DTS of the last frame.

Character encoding of the input subtitles file.

  • decoding: set by user
  • encoding: unused

Definition at line 2994 of file avcodec.h.

Referenced by avcodec_open2(), and recode_subtitle().

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 3002 of file avcodec.h.

Referenced by avcodec_open2(), and recode_subtitle().

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). Code outside libavcodec should access this field using AVOptions

  • decoding: set by user
  • encoding: unused

Definition at line 3020 of file avcodec.h.

Referenced by decode_frame_header(), ff_vp56_init_context(), and read_header().

int AVCodecContext::seek_preroll

Number of samples to skip after a discontinuity.

  • decoding: unused
  • encoding: set by libavcodec

Definition at line 3027 of file avcodec.h.

uint16_t* AVCodecContext::chroma_intra_matrix

custom intra quantization matrix Code outside libavcodec should access this field using av_codec_g/set_chroma_intra_matrix()

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

Definition at line 3048 of file avcodec.h.

Referenced by encode_picture(), and new_video_stream().


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