AVCodecContext Struct Reference

main external API structure. More...

#include <avcodec.h>


Data Fields

const AVClassav_class
 information on struct for av_log
  • set by avcodec_alloc_context

int bit_rate
 the average bitrate
  • encoding: Set by user; unused for constant quantizer encoding.

int bit_rate_tolerance
 number of bits the bitstream is allowed to diverge from the reference.
int flags
 CODEC_FLAG_*.
int sub_id
 Some codecs need additional format info.
int me_method
 Motion estimation algorithm used for video coding.
uint8_t * extradata
 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 width
 picture width / height.
int height
int gop_size
 the number of pictures in a group of pictures, or 0 for intra_only
  • encoding: Set by user.

enum PixelFormat pix_fmt
 Pixel format, see PIX_FMT_xxx.
int rate_emu
 Frame rate emulation.
void(* draw_horiz_band )(struct AVCodecContext *s, const AVFrame *src, int offset[4], int y, int type, int height)
 If non NULL, 'draw_horiz_band' is called by the libavcodec decoder to draw a horizontal band.
int sample_rate
 samples per second
int channels
 number of audio channels
enum SampleFormat sample_fmt
 audio sample format
  • encoding: Set by user.

int frame_size
 Samples per packet, initialized when calling 'init'.
int frame_number
 audio or video frame number
int real_pict_num
 Returns the real picture number of previous encoded frame.
int delay
 Number of frames the decoded output will be delayed relative to the encoded input.
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
  • encoding: Set by user.

int qmax
 maximum quantizer
  • encoding: Set by user.

int max_qdiff
 maximum quantizer difference between frames
  • encoding: Set by user.

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
int hurry_up
 hurry up amount
  • encoding: unused
  • decoding: Set by user.

struct AVCodeccodec
void * priv_data
int rtp_payload_size
void(* rtp_callback )(struct AVCodecContext *avctx, void *data, int size, int mb_nb)
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
  • encoding: Set by libavcodec.

void * opaque
 Private data of the user, can be used to carry app specific stuff.
char codec_name [32]
enum AVMediaType codec_type
enum CodecID codec_id
unsigned int codec_tag
 fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
int workaround_bugs
 Work around bugs in encoders which sometimes cannot be detected automatically.
int luma_elim_threshold
 luma single coefficient elimination threshold
  • encoding: Set by user.

int chroma_elim_threshold
 chroma single coeff elimination threshold
  • encoding: Set by user.

int strict_std_compliance
 strictly follow the standard (MPEG4, .
float b_quant_offset
 qscale offset between IP and B-frames
  • encoding: Set by user.

int error_recognition
 Error recognization; higher values will detect more errors but may misdetect some more or less valid parts as errors.
int(* get_buffer )(struct AVCodecContext *c, AVFrame *pic)
 Called at the beginning of each frame to get a buffer for it.
void(* release_buffer )(struct AVCodecContext *c, AVFrame *pic)
 Called to release buffers which were allocated with get_buffer.
int has_b_frames
 Size of the frame reordering buffer in the decoder.
int block_align
 number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs.
int parse_only
int mpeg_quant
 0-> h263 quant 1-> mpeg quant
  • encoding: Set by user.

char * stats_out
 pass1 encoding statistics output buffer
  • encoding: Set by libavcodec.

char * stats_in
 pass2 encoding statistics input buffer Concatenated stuff from stats_out of pass1 should be placed here.
float rc_qsquish
 ratecontrol qmin qmax limiting method 0-> clipping, 1-> use a nice continous function to limit qscale wthin qmin/qmax.
float rc_qmod_amp
int rc_qmod_freq
RcOverriderc_override
 ratecontrol override, see RcOverride
  • encoding: Allocated/set/freed by user.

int rc_override_count
const char * rc_eq
 rate control equation
  • encoding: Set by user
  • decoding: unused

int rc_max_rate
 maximum bitrate
  • encoding: Set by user.

int rc_min_rate
 minimum bitrate
  • encoding: Set by user.

int rc_buffer_size
 decoder bitstream buffer size
  • encoding: Set by user.

float rc_buffer_aggressivity
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
  • encoding: Set by user.

float rc_initial_cplx
 initial complexity for pass1 ratecontrol
  • encoding: Set by user.

int dct_algo
 DCT algorithm, see FF_DCT_* below
  • encoding: Set by user.

float lumi_masking
 luminance masking (0-> disabled)
  • encoding: Set by user.

float temporal_cplx_masking
 temporary complexity masking (0-> disabled)
  • encoding: Set by user.

float spatial_cplx_masking
 spatial complexity masking (0-> disabled)
  • encoding: Set by user.

float p_masking
 p block masking (0-> disabled)
  • encoding: Set by user.

float dark_masking
 darkness masking (0-> disabled)
  • encoding: Set by user.

int idct_algo
 IDCT algorithm, see FF_IDCT_* below.
int slice_count
 slice count
  • encoding: Set by libavcodec.

int * slice_offset
 slice offsets in the frame in bytes
  • encoding: Set/allocated by libavcodec.

int error_concealment
 error concealment flags
  • encoding: unused
  • decoding: Set by user.

unsigned dsp_mask
 dsp_mask could be add used to disable unwanted CPU features CPU features (i.e.
int bits_per_coded_sample
 bits per sample/pixel from the demuxer (needed for huffyuv).
int prediction_method
 prediction method (needed for huffyuv)
  • encoding: Set by user.

AVRational sample_aspect_ratio
 sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel.
AVFramecoded_frame
 the picture in the bitstream
  • encoding: Set by libavcodec.

int debug
 debug
  • encoding: Set by user.

int debug_mv
 debug
  • encoding: Set by user.

uint64_t error [4]
 error
  • encoding: Set by libavcodec if flags&CODEC_FLAG_PSNR.

int mb_qmin
 minimum MB quantizer
  • encoding: unused
  • decoding: unused

int mb_qmax
 maximum MB quantizer
  • encoding: unused
  • decoding: unused

int me_cmp
 motion estimation comparison function
  • encoding: Set by user.

int me_sub_cmp
 subpixel motion estimation comparison function
  • encoding: Set by user.

int mb_cmp
 macroblock comparison function (not supported yet)
  • encoding: Set by user.

int ildct_cmp
 interlaced DCT comparison function
  • encoding: Set by user.

int dia_size
 ME diamond size & shape
  • encoding: Set by user.

int last_predictor_count
 amount of previous MV predictors (2a+1 x 2a+1 square)
  • encoding: Set by user.

int pre_me
 prepass for motion estimation
  • encoding: Set by user.

int me_pre_cmp
 motion estimation prepass comparison function
  • encoding: Set by user.

int pre_dia_size
 ME prepass diamond size & shape
  • encoding: Set by user.

int me_subpel_quality
 subpel ME quality
  • encoding: Set by user.

enum PixelFormat(* get_format )(struct AVCodecContext *s, const enum PixelFormat *fmt)
 callback to negotiate the pixelFormat
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
  • encoding: Set by user.

int inter_quant_bias
 inter quantizer bias
  • encoding: Set by user.

int color_table_id
 color table ID
  • encoding: unused
  • decoding: Which clrtable should be used for 8bit RGB images.

int internal_buffer_count
 internal_buffer count Don't touch, used by libavcodec default_get_buffer().
void * internal_buffer
 internal_buffers Don't touch, used by libavcodec default_get_buffer().
int global_quality
 Global quality for codecs which cannot change it per frame.
int coder_type
 coder type
  • encoding: Set by user.

int context_model
 context model
  • encoding: Set by user.

int slice_flags
 slice flags
  • encoding: unused
  • decoding: Set by user.

int xvmc_acceleration
 XVideo Motion Acceleration
  • encoding: forbidden
  • decoding: set by decoder.

int mb_decision
 macroblock decision mode
  • encoding: Set by user.

uint16_t * intra_matrix
 custom intra quantization matrix
  • encoding: Set by user, can be NULL.

uint16_t * inter_matrix
 custom inter quantization matrix
  • encoding: Set by user, can be NULL.

unsigned int stream_codec_tag
 fourcc from the AVI stream header (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
int scenechange_threshold
 scene change detection threshold 0 is default, larger means fewer detected scene changes.
int lmin
 minimum Lagrange multipler
  • encoding: Set by user.

int lmax
 maximum Lagrange multipler
  • encoding: Set by user.

struct AVPaletteControlpalctrl
 palette control structure
  • encoding: ??? (no palette-enabled encoder yet)
  • decoding: Set by user.

int noise_reduction
 noise reduction strength
  • encoding: Set by user.

int(* reget_buffer )(struct AVCodecContext *c, AVFrame *pic)
 Called at the beginning of a frame to get cr buffer for it.
int rc_initial_buffer_occupancy
 Number of bits which should be loaded into the rc buffer before decoding starts.
int inter_threshold
 
  • encoding: Set by user.

int flags2
 CODEC_FLAG2_*
  • encoding: Set by user.

int error_rate
 Simulates errors in the bitstream to test error concealment.
int antialias_algo
 MP3 antialias algorithm, see FF_AA_* below.
int quantizer_noise_shaping
 quantizer noise shaping
  • encoding: Set by user.

int thread_count
 thread count is used to decide how many independent tasks should be passed to execute()
  • encoding: Set by user.

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.
void * thread_opaque
 thread opaque Can be used by execute() to store some per AVCodecContext stuff.
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
  • encoding: Set by user.

int nsse_weight
 noise vs.
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.
int profile
 profile
  • encoding: Set by user.

int level
 level
  • encoding: Set by user.

int lowres
 low resolution decoding, 1-> 1/2 size, 2->1/4 size
  • encoding: unused
  • decoding: Set by user.

int coded_width
 Bitstream width / height, may be different from width/height if lowres or other things are used.
int coded_height
int frame_skip_threshold
 frame skip threshold
  • encoding: Set by user.

int frame_skip_factor
 frame skip factor
  • encoding: Set by user.

int frame_skip_exp
 frame skip exponent
  • encoding: Set by user.

int frame_skip_cmp
 frame skip comparison function
  • encoding: Set by user.

float border_masking
 Border processing masking, raises the quantizer for mbs on the borders of the picture.
int mb_lmin
 minimum MB lagrange multipler
  • encoding: Set by user.

int mb_lmax
 maximum MB lagrange multipler
  • encoding: Set by user.

int me_penalty_compensation
 
  • encoding: Set by user.

enum AVDiscard skip_loop_filter
 
  • encoding: unused
    • decoding: Set by user.

enum AVDiscard skip_idct
 
  • encoding: unused
    • decoding: Set by user.

enum AVDiscard skip_frame
 
  • encoding: unused
    • decoding: Set by user.

int bidir_refine
 
  • encoding: Set by user.

int brd_scale
 
  • encoding: Set by user.

float crf
 constant rate factor - quality-based VBR - values ~correspond to qps
  • encoding: Set by user.

int cqp
 constant quantization parameter rate control method
  • encoding: Set by user.

int keyint_min
 minimum GOP size
  • encoding: Set by user.

int refs
 number of reference frames
  • encoding: Set by user.

int chromaoffset
 chroma qp offset from luma
  • encoding: Set by user.

int bframebias
 Influences how often B-frames are used.
int trellis
 trellis RD quantization
  • encoding: Set by user.

float complexityblur
 Reduce fluctuations in qp (before curve compression).
int deblockalpha
 in-loop deblocking filter alphac0 parameter alpha is in the range -6.
int deblockbeta
 in-loop deblocking filter beta parameter beta is in the range -6.
int partitions
 macroblock subpartition sizes to consider - p8x8, p4x4, b8x8, i8x8, i4x4
  • encoding: Set by user.

int directpred
 direct MV prediction mode - 0 (none), 1 (spatial), 2 (temporal), 3 (auto)
  • encoding: Set by user.

int cutoff
 Audio cutoff bandwidth (0 means "automatic")
  • encoding: Set by user.

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
 Adjusts sensitivity of b_frame_strategy 1.
int compression_level
 
  • encoding: Set by user.

int use_lpc
 Sets whether to use LPC mode - used by FLAC encoder.
int lpc_coeff_precision
 LPC coefficient precision - used by FLAC encoder
  • encoding: Set by user.

int min_prediction_order
 
  • encoding: Set by user.

int max_prediction_order
 
  • encoding: Set by user.

int prediction_order_method
 search method for selecting prediction order
  • encoding: Set by user.

int min_partition_order
 
  • encoding: Set by user.

int max_partition_order
 
  • encoding: Set by user.

int64_t timecode_frame_start
 GOP timecode frame start number, in non drop frame format
  • encoding: Set by user.

int request_channels
 Decoder should decode to this many channels if it can (0 for default)
  • encoding: unused
  • decoding: Set by user.

float drc_scale
 Percentage of dynamic range compression to be applied by the decoder.
int64_t reordered_opaque
 opaque 64bit number (generally a PTS) that will be reordered and output in AVFrame.reordered_opaque
  • encoding: unused
  • decoding: Set by user.

int bits_per_raw_sample
 Bits per sample/pixel of internal libavcodec pixel/sample format.
int64_t channel_layout
 Audio channel layout.
int64_t request_channel_layout
 Request decoder to use this channel layout if it can (0 for default)
  • encoding: unused
  • decoding: Set by user.

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.

struct AVHWAccelhwaccel
 Hardware accelerator in use
  • encoding: unused.

int ticks_per_frame
 For some codecs, the time base is closer to the field rate than the frame rate.
void * hwaccel_context
 Hardware accelerator context.
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(* 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.
int weighted_p_pred
 explicit P-frame weighted prediction analysis method 0: off 1: fast blind weighting (one reference duplicate with -1 offset) 2: smart weighting (full fade detection analysis)
  • encoding: Set by user.

int aq_mode
 AQ mode 0: Disabled 1: Variance AQ (complexity mask) 2: Auto-variance AQ (experimental)
  • encoding: Set by user
  • decoding: unused.

float aq_strength
 AQ strength Reduces blocking and blurring in flat and textured areas.
float psy_rd
 PSY RD Strength of psychovisual optimization
  • encoding: Set by user
  • decoding: unused.

float psy_trellis
 PSY trellis Strength of psychovisual optimization
  • encoding: Set by user
  • decoding: unused.

int rc_lookahead
 RC lookahead Number of frames for frametype and ratecontrol lookahead
  • encoding: Set by user
  • decoding: unused.


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. sizeof(AVCodecContext) must not be used outside libav*.

Definition at line 891 of file avcodec.h.


Field Documentation

MP3 antialias algorithm, see FF_AA_* below.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1921 of file avcodec.h.

Referenced by decode_init().

AQ mode 0: Disabled 1: Variance AQ (complexity mask) 2: Auto-variance AQ (experimental)

  • encoding: Set by user
  • decoding: unused.

Definition at line 2483 of file avcodec.h.

Referenced by X264_init().

AQ strength Reduces blocking and blurring in flat and textured areas.

  • encoding: Set by user
  • decoding: unused

Definition at line 2491 of file avcodec.h.

Referenced by X264_init().

information on struct for av_log

  • set by avcodec_alloc_context

Definition at line 896 of file avcodec.h.

Referenced by avcodec_get_context_defaults2().

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

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

qscale offset between IP and B-frames

  • encoding: Set by user.

  • decoding: unused

Definition at line 1229 of file avcodec.h.

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

Adjusts sensitivity of b_frame_strategy 1.

  • encoding: Set by user.
  • decoding: unused

Definition at line 2259 of file avcodec.h.

Referenced by select_input_picture().

Influences how often B-frames are used.

  • encoding: Set by user.
  • decoding: unused

Definition at line 2181 of file avcodec.h.

Referenced by X264_init().

  • encoding: Set by user.

  • decoding: unused

Definition at line 2132 of file avcodec.h.

Referenced by bidir_refine().

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.

Definition at line 902 of file avcodec.h.

Referenced by aac_encode_frame(), aac_encode_init(), ac3_decode_frame(), AC3_encode_init(), add_audio_stream(), add_av_stream(), add_codec(), add_video_stream(), adx_decode_header(), aea_read_header(), amf_parse_object(), apc_read_header(), asf_read_header(), asf_write_header1(), atrac3_decode_init(), audio_encode_example(), av_estimate_timings_from_bit_rate(), av_new_stream(), av_transcode(), avi_write_header(), avisynth_read_header(), bfi_read_header(), cin_read_header(), compute_bandwidth(), compute_status(), cook_decode_init(), daud_header(), dc1394_read_common(), dca_decode_frame(), decode_frame(), decode_ppc(), decode_wave_header(), dv_extract_audio_info(), dv_extract_video_info(), dv_init_demux(), dv_offset_reset(), dv_produce_packet(), ea_read_header(), encode_init(), Faac_encode_init(), ff_aac_ac3_parse(), ff_dnxhd_find_cid(), ff_parse_specific_params(), ff_wma_init(), ff_xvid_rate_control_init(), ffm_read_header(), ffm_write_header(), film_read_header(), find_stream_in_feed(), flic_read_header(), flv_write_header(), fourxm_read_header(), g726_init(), get_aiff_header(), get_audio_frame_size(), get_bit_rate(), get_sindex(), grab_read_header(), gxf_write_header(), gxf_write_mpeg_auxiliary(), idcin_read_header(), iff_read_header(), init_bitstream_params(), ipmovie_read_header(), iss_read_header(), libdirac_encode_init(), libgsm_init(), libschroedinger_encode_init(), matroska_read_header(), mlp_parse(), mmf_read_header(), modify_current_stream(), mov_build_index(), mov_write_esds_tag(), mov_write_uuidprof_tag(), MP3lame_encode_init(), MPA_encode_init(), mpeg_decode_postinit(), mpeg_mux_init(), mpegaudio_parse(), mpegps_read_packet(), mpegts_read_header(), mpegvideo_extract_headers(), MPV_encode_init(), mtv_read_header(), mxf_write_d10_video_packet(), mxf_write_header(), mxf_write_mpegvideo_desc(), oggvorbis_init_encoder(), ogm_dshow_header(), ogm_header(), oma_read_header(), parse_ffconfig(), pcm_bluray_parse_header(), psy_3gpp_window(), qcp_read_header(), qdm2_decode_init(), read_desc_chunk(), read_header(), real_parse_asm_rule(), rl2_read_header(), rm_read_header(), rm_write_header(), roq_read_packet(), rv10_write_header(), search_for_quantizers_twoloop(), seq_read_header(), sipr_decoder_init(), sox_read_header(), tmv_read_header(), twin_decode_frame(), twin_decode_init(), v4l2_read_header(), vid_read_header(), vid_read_packet(), video_encode_example(), vmd_read_header(), voc_get_packet(), vorbis_header(), vp8_init(), vqf_read_header(), vqf_read_seek(), wc3_read_header(), wsaud_read_header(), wsvqa_read_header(), x11grab_read_header(), X264_init(), xa_read_header(), and xvid_encode_init().

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

Referenced by add_codec(), ff_rate_estimate_qscale(), ffm_read_header(), ffm_write_header(), MPV_encode_init(), parse_ffconfig(), and X264_init().

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

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

Definition at line 1511 of file avcodec.h.

Referenced by aiff_write_header(), alac_encode_init(), apc_read_header(), ape_decode_init(), ape_read_header(), asf_read_header(), av_find_stream_info(), avi_read_header(), avisynth_read_header(), avs_read_packet(), bfi_read_header(), cin_read_header(), cinepak_decode_init(), create_audio_stream(), daud_header(), decode_frame_byterun1(), decode_frame_ilbm(), decode_init(), decode_wave_header(), ea_read_header(), encode_init(), faac_decode_init(), ff_cmap_read_palette(), film_read_header(), flic_read_header(), flv_read_packet(), flv_set_audio_codec(), fourxm_read_header(), get_aiff_header(), get_audio_flags(), get_codec_data(), get_sindex(), idcin_read_header(), iff_read_header(), ipmovie_read_header(), ipvideo_decode_init(), iss_read_header(), mmf_read_header(), mov_get_rawvideo_codec_tag(), mov_read_stsd(), mov_write_video_tag(), mpc8_read_header(), mpc_read_header(), mpegps_read_packet(), msrle_decode_frame(), msrle_decode_init(), mxf_get_d10_aes3_packet(), mxf_parse_structural_metadata(), nsv_parse_NSVs_header(), nuv_header(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pcm_decode_frame(), pcm_encode_init(), qtrle_decode_frame(), qtrle_decode_init(), qtrle_encode_init(), raw_decode(), raw_init_decoder(), raw_init_encoder(), read_desc_chunk(), read_header(), rl2_read_header(), roq_read_packet(), rpl_read_header(), seq_read_header(), smacker_read_header(), smka_decode_init(), sox_read_header(), tmv_read_header(), tta_decode_init(), tta_read_header(), vfw_read_header(), vid_read_header(), vid_read_packet(), vmd_read_header(), vmdaudio_decode_init(), voc_get_packet(), voc_write_packet(), vqf_read_header(), wavpack_decode_init(), wc3_read_header(), wsaud_read_header(), wsvqa_read_header(), wv_read_header(), and xa_read_header().

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

This field is applicable only when sample_fmt is SAMPLE_FMT_S32.

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

Definition at line 2352 of file avcodec.h.

Referenced by av_transcode(), decode_frame(), decode_init(), decode_plane(), encode_init(), ff_flac_parse_streaminfo(), mlp_parse(), read_const_block_data(), read_header(), read_major_sync(), and read_var_block_data().

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

Definition at line 1277 of file avcodec.h.

Referenced by adpcm_decode_frame(), aea_read_header(), aea_read_packet(), aiff_read_header(), aiff_read_packet(), aiff_write_header(), aiff_write_trailer(), apc_read_header(), asf_write_header1(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3_decode_init(), av_transcode(), av_write_header(), avi_read_header(), avi_write_packet(), avisynth_read_header(), cin_read_header(), cook_decode_frame(), cook_decode_init(), daud_header(), decode_init(), decode_packet(), decode_wave_header(), dxa_read_header(), ea_read_header(), encode_init(), ff_parse_specific_params(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ff_wma_init(), film_read_header(), flic_read_header(), fourxm_read_header(), get_aiff_header(), get_sindex(), idcin_read_header(), iff_read_header(), ipmovie_read_header(), iss_read_header(), libgsm_decode_frame(), libgsm_encode_frame(), libgsm_init(), matroska_parse_block(), matroska_read_header(), mov_read_stsd(), mxf_write_d10_audio_packet(), mxf_write_wav_common(), oma_read_header(), oma_read_packet(), pcm_encode_init(), ra288_decode_frame(), read_desc_chunk(), rl2_read_header(), rm_read_audio_stream_info(), roq_read_packet(), seq_read_header(), sox_read_header(), sox_read_packet(), str_read_packet(), tta_decode_init(), vmd_read_header(), vmdaudio_decode_init(), wc3_read_header(), wmavoice_decode_init(), wmavoice_decode_packet(), wsaud_read_header(), wsvqa_read_header(), and xa_read_header().

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

  • encoding: Set by user.
  • decoding: unused

Definition at line 2083 of file avcodec.h.

Referenced by adaptive_quantization(), and MPV_encode_init().

  • encoding: Set by user.

  • decoding: unused

Definition at line 2139 of file avcodec.h.

Referenced by estimate_best_b_count().

number of audio channels

Definition at line 1021 of file avcodec.h.

Referenced by aac_decode_frame(), aac_encode_frame(), aac_encode_init(), ac3_decode_frame(), ac3_decode_init(), AC3_encode_init(), add_audio_stream(), add_av_stream(), add_codec(), adpcm_decode_frame(), adpcm_decode_init(), adx_decode_frame(), adx_decode_header(), adx_encode_frame(), adx_encode_header(), adx_encode_init(), aea_read_header(), aiff_write_header(), alac_decode_init(), alac_encode_frame(), alac_encode_init(), amr_decode_fix_avctx(), amr_handle_packet(), amr_read_header(), apc_read_header(), ape_decode_frame(), ape_decode_init(), ape_read_header(), apply_window_and_mdct(), atrac1_decode_init(), atrac3_decode_init(), au_read_header(), au_read_packet(), audio_decode_frame(), audio_encode_example(), audio_read_header(), audio_write_header(), av_find_stream_info(), av_transcode(), av_write_header(), avcodec_open(), avcodec_string(), avisynth_read_header(), bfi_read_header(), cdata_read_header(), channel_setup(), cin_read_header(), compute_status(), construct_perm_table(), cook_decode_init(), create_audio_stream(), create_vorbis_context(), daud_header(), daud_write_header(), dca_decode_frame(), dca_decode_init(), dec_gain(), decode_extension_payload(), decode_frame(), decode_init(), decode_ppc(), decode_stream_header(), decode_wave_header(), decoder_init(), do_audio_out(), dpcm_decode_init(), dv_extract_audio_info(), dv_init_mux(), ea_read_header(), encode_init(), faac_decode_frame(), faac_decode_init(), Faac_encode_frame(), Faac_encode_init(), faac_init_mp4(), ff_aac_ac3_parse(), ff_audio_interleave_init(), ff_flac_parse_streaminfo(), ff_mov_read_esds(), ff_psy_init(), ff_psy_preprocess(), ff_psy_preprocess_end(), ff_psy_preprocess_init(), ff_rtp_get_codec_info(), ff_rtp_get_payload_type(), ff_wma_init(), ffm_read_header(), ffm_write_header(), film_read_header(), flac_encode_init(), flic_read_header(), flv_read_packet(), flv_write_header(), fourxm_read_header(), g726_init(), get_aiff_header(), get_audio_clock(), get_audio_flags(), get_audio_frame_size(), get_bit_rate(), get_codec_data(), get_sindex(), gxf_write_header(), has_codec_parameters(), idcin_read_header(), iff_read_header(), iff_read_packet(), imc_decode_init(), imdct_output(), init_bitstream_params(), init_mdct_win(), init_sample_buffers(), ipmovie_read_header(), iss_read_header(), iss_read_packet(), libgsm_init(), libspeex_decode_frame(), libspeex_decode_init(), mace_decode_frame(), mace_decode_init(), matroska_read_header(), mkv_write_tracks(), mlp_parse(), mmf_read_header(), mov_read_stsd(), mov_write_audio_tag(), mov_write_header(), mov_write_uuidprof_tag(), mp3_header_compress(), mp3_header_decompress(), MP3lame_encode_init(), MPA_encode_init(), mpc7_decode_init(), mpc8_decode_init(), mpc8_read_header(), mpc_read_header(), mpeg_mux_init(), mpegaudio_parse(), mpegps_read_packet(), mxf_get_d10_aes3_packet(), mxf_parse_structural_metadata(), mxf_write_d10_audio_packet(), mxf_write_generic_sound_common(), new_audio_stream(), nsv_read_chunk(), nut_read_header(), oggvorbis_init_encoder(), ogm_dshow_header(), ogm_header(), oma_read_header(), open_audio(), opt_input_file(), output_configure(), output_packet(), parse_ffconfig(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pcm_decode_frame(), pcm_encode_init(), psy_3gpp_init(), psy_3gpp_window(), put_audio_specific_config(), qcp_read_header(), qdm2_decode_init(), r3d_read_red1(), read_and_decode_spectrum(), read_channel_data(), read_desc_chunk(), read_frame_data(), read_header(), read_packet(), read_restart_header(), read_specific_config(), revert_channel_correlation(), rl2_read_header(), rm_read_audio_stream_info(), roq_dpcm_encode_frame(), roq_dpcm_encode_init(), roq_read_packet(), rtp_write_packet(), rv10_write_header(), sdp_parse_rtpmap(), search_for_quantizers_twoloop(), seq_read_header(), show_stream(), smacker_read_header(), smka_decode_init(), sol_read_header(), sox_read_header(), sox_write_header(), speex_header(), str_read_packet(), stream_component_open(), stream_cycle_channel(), swf_write_header(), synchronize_audio(), thp_read_header(), tmv_read_header(), tta_decode_init(), tta_read_header(), twin_decode_frame(), twin_decode_init(), update_sample_display(), vid_read_header(), vid_read_packet(), video_audio_display(), vmd_read_header(), vmdaudio_decode_init(), voc_get_packet(), voc_write_packet(), vorbis_decode_init(), vorbis_encode_init(), vorbis_header(), vorbis_parse_setup_hdr_residues(), vqf_read_header(), wavpack_decode_frame(), wavpack_decode_init(), wc3_read_header(), write_audio_frame(), write_compressed_frame(), write_frame_header(), write_streamheader(), wsaud_read_header(), wsvqa_read_header(), wv_read_header(), xa_read_header(), xa_read_packet(), and yop_read_header().

chroma single coeff elimination threshold

  • encoding: Set by user.

  • decoding: unused

Definition at line 1203 of file avcodec.h.

Referenced by ffm_read_header(), ffm_write_header(), MPV_encode_init(), and parse_ffconfig().

This defines the location of chroma samples.

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

Definition at line 2443 of file avcodec.h.

Referenced by av_transcode(), decode_init(), decode_vui_parameters(), dvvideo_init(), ff_h263_decode_init(), ff_h264_decode_init(), ff_mjpeg_decode_init(), mpeg_decode_init(), vp3_decode_init(), and yuv4_read_header().

chroma qp offset from luma

  • encoding: Set by user.

  • decoding: unused

Definition at line 2174 of file avcodec.h.

Referenced by X264_init().

Definition at line 1150 of file avcodec.h.

Referenced by add_audio_stream(), add_av_stream(), add_video_stream(), aea_read_header(), aiff_write_header(), amr_decode_fix_avctx(), amr_handle_packet(), amr_read_header(), amr_read_packet(), apc_read_header(), ape_read_header(), asf_read_header(), asf_write_header1(), au_read_header(), au_read_packet(), audio_read_header(), audio_write_header(), av_find_stream_info(), av_read_frame_internal(), av_read_packet(), av_transcode(), av_write_header(), avcodec_align_dimensions2(), avcodec_open(), avcodec_string(), avi_read_header(), avi_write_header(), avi_write_trailer(), avisynth_read_header(), avs_read_packet(), bfi_read_header(), cdata_read_header(), choose_pixel_fmt(), cin_read_header(), commit_bitstream_and_slice_buffer(), compute_pkt_fields(), compute_status(), create_audio_stream(), cyuv_decode_frame(), daud_header(), dc1394_read_common(), decode_end(), decode_frame(), decode_init(), decode_mb(), decode_slice(), decode_stream_header(), dirac_header(), do_subtitle_out(), dv_extract_audio_info(), dv_init_demux(), dv_init_mux(), dxa_read_header(), ea_read_header(), encode_mb(), estimate_best_b_count(), extract_mpeg4_header(), ff_aac_ac3_parse(), ff_asf_parse_packet(), ff_audio_interleave_init(), ff_h264_decode_init(), ff_init_me(), ff_mjpeg_decode_frame(), ff_mjpeg_encode_picture_header(), ff_mov_read_esds(), ff_mov_write_packet(), ff_mpa_decode_header(), ff_pnm_decode_header(), ff_psy_init(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ff_rm_retrieve_cache(), ff_rtp_get_codec_info(), ff_rtp_get_payload_type(), ff_rv34_decode_init(), ffm_read_header(), ffm_write_header(), film_read_header(), find_expected_header(), find_stream_in_feed(), flac_header(), flac_read_header(), flic_read_header(), flv_read_packet(), flv_set_audio_codec(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), fourxm_read_header(), get_aiff_header(), get_audio_flags(), get_audio_frame_size(), get_bit_rate(), get_codec_data(), get_sindex(), grab_read_header(), gxf_packet(), gxf_write_header(), gxf_write_media_preamble(), gxf_write_packet(), gxf_write_umf_media_description(), gxf_write_umf_media_mpeg(), has_codec_parameters(), idcin_read_header(), iff_read_header(), iff_read_packet(), img_read_header(), img_read_packet(), imx_dump_header(), ipmovie_read_header(), ipod_get_codec_tag(), is_intra_only(), iss_read_header(), libgsm_decode_frame(), libgsm_encode_frame(), libgsm_init(), lmlm4_read_header(), mace_decode_frame(), matroska_parse_block(), matroska_read_header(), mjpega_dump_header(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_packet(), mkv_write_tracks(), mmf_read_header(), mov_find_codec_tag(), mov_get_codec_tag(), mov_read_enda(), mov_read_hdlr(), mov_read_stsd(), mov_read_trak(), mov_read_wave(), mov_write_audio_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_header(), mov_write_uuidprof_tag(), mov_write_video_tag(), mov_write_wave_tag(), 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(), mpegps_read_packet(), mpegts_find_stream_type(), mpegts_push_data(), mpegts_read_header(), mpegts_set_stream_info(), mpegts_write_header(), mpegts_write_packet(), mpegts_write_pes(), mpegts_write_pmt(), mpegvideo_extract_headers(), MPV_encode_init(), msnwc_tcp_read_header(), mtv_read_header(), mxf_parse_structural_metadata(), mxf_write_d10_audio_packet(), mxf_write_generic_sound_common(), mxf_write_header(), mxf_write_packet(), nc_read_header(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), nsv_parse_NSVs_header(), nsv_read_chunk(), nut_read_header(), nuv_header(), ogg_write_header(), ogg_write_packet(), ogg_write_trailer(), ogm_dshow_header(), ogm_header(), old_dirac_header(), old_flac_header(), oma_read_header(), open_audio(), open_input_file(), open_parser(), open_video(), output_packet(), parse(), parse_ffconfig(), pcm_decode_frame(), pmt_cb(), put_xiph_codecpriv(), pva_read_header(), qcp_read_header(), r3d_read_red1(), rdt_parse_packet(), rdt_parse_sdp_line(), read_access_unit(), read_desc_chunk(), read_ffserver_streams(), read_header(), read_kuki_chunk(), read_major_sync(), read_matrix_params(), read_restart_header(), remove_extradata(), rl2_read_header(), rm_ac3_swap_bytes(), rm_read_audio_stream_info(), roq_read_header(), roq_read_packet(), rpl_read_header(), rtp_parse_open(), rtp_parse_packet(), rtp_write_header(), rtp_write_packet(), rv10_decode_init(), rv10_write_header(), sdp_parse_fmtp_config(), sdp_parse_fmtp_config_h264(), sdp_parse_rtpmap(), seq_read_header(), set_codec_from_probe_data(), show_stream(), siff_parse_vbv1(), smacker_read_header(), sol_read_header(), sox_read_header(), sox_write_header(), sox_write_trailer(), sp5x_decode_frame(), spdif_write_header(), speex_header(), str_read_packet(), stream_component_open(), swf_read_packet(), swf_write_header(), swf_write_video(), tb_unreliable(), theora_header(), thp_read_header(), tmv_read_header(), try_decode_frame(), tta_read_header(), txd_read_header(), v4l2_read_header(), vaapi_vc1_decode_slice(), vc1_decode_frame(), vc1_decode_init(), vc1t_read_header(), vc1test_write_header(), vcr2_init_sequence(), vfw_read_header(), vid_read_header(), vmd_read_header(), voc_get_packet(), vorbis_header(), vqf_read_header(), wc3_read_header(), write_header(), wsaud_read_header(), wsvqa_read_header(), wv_read_header(), x11grab_read_header(), xa_read_header(), xvid_encode_init(), yop_read_header(), and yuv4_read_header().

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 then 32 bits then the demuxer should remap the longer ID to 32 bits with a table or other structure. Alternatively a new extra_codec_tag + size could be added but for this a clear advantage must be demonstrated first.

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

Definition at line 1165 of file avcodec.h.

Referenced by aiff_write_header(), amr_read_header(), ape_read_header(), asf_read_header(), asf_write_header1(), au_read_header(), av_find_stream_info(), av_transcode(), av_write_header(), avcodec_string(), avi_read_header(), avi_write_header(), avisynth_read_header(), cdata_read_header(), cin_read_header(), daud_header(), decode_frame(), decode_frame_byterun1(), decode_init(), decode_stream_header(), dpcm_decode_frame(), dpcm_decode_init(), ea_read_header(), ff_mjpeg_decode_sos(), ff_mov_init_hinting(), ff_rm_read_mdpr_codecdata(), ffm_read_header(), ffm_write_header(), film_read_header(), flic_read_header(), flv_set_audio_codec(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), fourxm_read_header(), get_aiff_header(), get_audio_flags(), get_codec_data(), idcin_read_header(), iff_read_header(), ipmovie_read_header(), ipod_get_codec_tag(), matroska_read_header(), mkv_write_codecprivate(), mov_find_codec_tag(), mov_get_codec_tag(), mov_get_rawvideo_codec_tag(), mov_read_stsd(), mov_write_hdlr_tag(), mov_write_stbl_tag(), mov_write_stsd_tag(), mp4_get_codec_tag(), mpeg_decode_frame(), mpegts_set_stream_info(), MPV_common_init(), msnwc_tcp_read_header(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), nsv_parse_NSVs_header(), nut_read_header(), ogm_header(), oma_read_header(), parse_ffconfig(), pmt_cb(), raw_decode(), raw_encode(), raw_init_decoder(), raw_init_encoder(), read_desc_chunk(), read_header(), rl2_read_header(), rm_read_audio_stream_info(), roq_read_header(), roq_read_packet(), rpl_read_header(), rpl_read_packet(), seq_read_header(), show_stream(), siff_parse_vbv1(), smacker_read_header(), sol_read_header(), str_read_packet(), thp_read_header(), vmd_read_header(), voc_write_packet(), vp3_decode_init(), wc3_read_header(), write_streamheader(), wsaud_read_header(), wsvqa_read_header(), xsub_encoder_init(), and xvid_encode_init().

Definition at line 1149 of file avcodec.h.

Referenced by add_audio_stream(), add_av_stream(), add_codec(), add_dstream(), add_video_stream(), aea_read_header(), amr_read_header(), apc_read_header(), ape_read_header(), asf_read_header(), asf_write_header1(), asf_write_packet(), au_read_header(), audio_read_header(), av_find_default_stream_index(), av_find_stream_info(), av_interleaved_write_frame(), av_read_packet(), av_transcode(), av_write_header(), avcodec_get_context_defaults2(), avcodec_open(), avcodec_string(), avi_read_header(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avisynth_read_header(), avs_read_packet(), bfi_read_header(), build_feed_streams(), build_frame_code(), cdata_read_header(), check_audio_video_sub_inputs(), cin_read_header(), compute_bandwidth(), compute_frame_duration(), compute_pkt_fields2(), compute_status(), create_audio_stream(), create_stream(), daud_header(), dc1394_read_common(), decode_stream_header(), decode_thread(), dirac_header(), do_video_stats(), dump_stream_format(), dv_assemble_frame(), dv_extract_audio_info(), dv_init_demux(), dv_init_mux(), dxa_read_header(), ea_read_header(), ff_asf_parse_packet(), ff_audio_interleave_close(), ff_audio_interleave_init(), ff_audio_rechunk_interleave(), ff_mov_init_hinting(), ff_parse_specific_params(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ff_rtp_get_codec_info(), ffm_read_header(), ffm_write_header(), film_read_header(), flac_header(), flac_read_header(), flic_read_header(), flv_read_metabody(), flv_write_header(), flv_write_packet(), fourxm_read_header(), get_aiff_header(), get_bit_rate(), get_sindex(), gif_write_header(), gif_write_packet(), grab_read_header(), gxf_compare_field_nb(), gxf_interleave_packet(), gxf_write_header(), gxf_write_media_preamble(), gxf_write_packet(), has_codec_parameters(), http_prepare_data(), idcin_read_header(), iff_read_header(), iff_read_packet(), img_read_header(), ipmovie_read_header(), ipod_get_codec_tag(), is_intra_only(), iss_read_header(), lmlm4_read_header(), matroska_read_header(), mkv_write_codecprivate(), mkv_write_packet(), mkv_write_tracks(), mmf_read_header(), mov_build_index(), mov_create_chapter_track(), mov_get_codec_tag(), mov_read_hdlr(), mov_read_stsd(), mov_read_trak(), mov_read_trun(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_hdlr_tag(), mov_write_header(), mov_write_minf_tag(), mov_write_stbl_tag(), mov_write_stsd_tag(), mov_write_stts_tag(), mov_write_tkhd_tag(), mp4_get_codec_tag(), mpc8_read_header(), mpc_read_header(), mpeg_mux_init(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegts_find_stream_type(), mpegts_read_header(), mpegts_set_stream_info(), mpegts_write_header(), mpegts_write_packet(), mpegts_write_pes(), mpegts_write_pmt(), msnwc_tcp_read_header(), mtv_read_header(), mxf_parse_structural_metadata(), mxf_write_common_fields(), mxf_write_header(), mxf_write_packet(), nc_read_header(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), nsv_parse_NSVs_header(), nut_read_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_stream(), opt_input_file(), opt_target(), output_packet(), parse_ffconfig(), print_report(), pva_read_header(), qcp_read_header(), r3d_read_red1(), read_desc_chunk(), read_ffserver_streams(), read_header(), read_packet(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_header(), rm_write_header(), rm_write_packet(), roq_read_header(), roq_read_packet(), rpl_read_header(), rpl_read_packet(), rtp_parse_open(), rtp_write_header(), rv10_write_header(), sdp_parse_line(), sdp_parse_rtpmap(), seq_read_header(), set_codec_from_probe_data(), show_stream(), siff_parse_vbv1(), skeleton_header(), smacker_read_header(), sol_read_header(), sox_read_header(), speex_header(), str_read_packet(), stream_component_close(), stream_component_open(), stream_cycle_channel(), swf_read_packet(), swf_write_header(), swf_write_packet(), swf_write_trailer(), theora_header(), thp_read_header(), tmv_read_header(), try_decode_frame(), tta_read_header(), txd_read_header(), v4l2_read_header(), vc1t_read_header(), vfw_read_header(), vid_read_header(), vmd_read_header(), voc_read_header(), voc_write_header(), vorbis_header(), vqf_read_header(), wc3_read_header(), write_streamheader(), wsaud_read_header(), wsvqa_read_header(), wv_read_header(), x11grab_read_header(), xa_read_header(), yop_read_header(), and yuv4_read_header().

the picture in the bitstream

  • encoding: Set by libavcodec.

  • decoding: Set by libavcodec.

Definition at line 1537 of file avcodec.h.

Referenced by aac_encode_close(), aac_encode_init(), AC3_encode_close(), AC3_encode_init(), adx_encode_close(), adx_encode_init(), alac_encode_close(), alac_encode_init(), bmp_decode_init(), bmp_encode_init(), common_init(), decode_close(), decode_frame(), decode_init(), dnxhd_decode_init(), dnxhd_encode_init(), do_audio_out(), do_video_out(), do_video_stats(), dvvideo_init(), encode_close(), encode_frame(), encode_init(), encode_init_ls(), Faac_encode_close(), Faac_encode_init(), ff_pnm_init(), flac_encode_close(), flac_encode_init(), flashsv_encode_frame(), g726_close(), g726_init(), gif_decode_init(), gif_encode_init(), libdirac_encode_frame(), libdirac_encode_init(), libgsm_close(), libgsm_init(), libopenjpeg_decode_init(), libschroedinger_encode_frame(), libschroedinger_encode_init(), mdec_common_init(), MP3lame_encode_close(), MP3lame_encode_init(), MPA_encode_close(), MPA_encode_init(), MPV_common_init(), MPV_frame_end(), oggvorbis_encode_close(), oggvorbis_encode_frame(), oggvorbis_encode_init(), output_packet(), pcm_encode_close(), pcm_encode_init(), pcx_encode_init(), pcx_init(), png_enc_init(), print_report(), ptx_init(), qtrle_encode_init(), raw_decode(), raw_init_decoder(), raw_init_encoder(), roq_dpcm_encode_close(), roq_dpcm_encode_init(), roq_encode_video(), sgi_init(), sunrast_init(), svq1_encode_init(), targa_encode_init(), targa_init(), tiff_init(), txd_init(), ulti_decode_init(), v4l2_read_packet(), vorbis_encode_close(), vorbis_encode_frame(), vorbis_encode_init(), vp8_encode(), vp8_free(), vp8_init(), write_audio_frame(), write_video_frame(), X264_init(), xvid_encode_init(), and yuv4_read_packet().

coder type

  • encoding: Set by user.

  • decoding: unused

Definition at line 1772 of file avcodec.h.

Referenced by encode_frame(), ffm_read_header(), ffm_write_header(), libdirac_encode_init(), libschroedinger_encode_init(), read_header(), targa_encode_frame(), and X264_init().

Chromaticity coordinates of the source primaries.

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

Definition at line 2415 of file avcodec.h.

Referenced by decode_slice_header(), encode_init(), mpeg_decode_sequence_display_extension(), and parse_source_parameters().

MPEG vs JPEG YUV range.

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

Definition at line 2436 of file avcodec.h.

Referenced by decode_slice_header(), mpeg_decode_init(), and parse_source_parameters().

color table ID

  • encoding: unused
  • decoding: Which clrtable should be used for 8bit RGB images.

Tables have to be stored somewhere. FIXME

Definition at line 1734 of file avcodec.h.

Referenced by mov_read_stsd().

Color Transfer Characteristic.

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

Definition at line 2422 of file avcodec.h.

Referenced by decode_slice_header(), mpeg_decode_sequence_display_extension(), and parse_source_parameters().

YUV colorspace type.

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

Definition at line 2429 of file avcodec.h.

Referenced by decode_slice_header(), mpeg_decode_sequence_display_extension(), and parse_source_parameters().

Reduce fluctuations in qp (before curve compression).

  • encoding: Set by user.
  • decoding: unused

Definition at line 2195 of file avcodec.h.

Referenced by X264_init().

  • encoding: Set by user.

  • decoding: unused

Definition at line 2265 of file avcodec.h.

Referenced by alac_encode_init(), encode_frame(), encode_init(), flac_encode_init(), and MP3lame_encode_init().

context model

  • encoding: Set by user.

  • decoding: unused

Definition at line 1779 of file avcodec.h.

constant quantization parameter rate control method

  • encoding: Set by user.

  • decoding: unused

Definition at line 2153 of file avcodec.h.

Referenced by X264_init().

constant rate factor - quality-based VBR - values ~correspond to qps

  • encoding: Set by user.

  • decoding: unused

Definition at line 2146 of file avcodec.h.

Referenced by X264_init().

Audio cutoff bandwidth (0 means "automatic")

  • encoding: Set by user.

  • decoding: unused

Definition at line 2237 of file avcodec.h.

Referenced by AC3_encode_init(), Faac_encode_init(), ff_psy_preprocess_init(), and oggvorbis_init_encoder().

darkness masking (0-> disabled)

  • encoding: Set by user.

  • decoding: unused

Definition at line 1423 of file avcodec.h.

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

DCT algorithm, see FF_DCT_* below

  • encoding: Set by user.

  • decoding: unused

Definition at line 1381 of file avcodec.h.

Referenced by dsputil_init(), dsputil_init_bfin(), dsputil_init_ppc(), dsputilenc_init_mmx(), ffm_read_header(), ffm_write_header(), MPV_common_init_altivec(), MPV_common_init_mlib(), MPV_common_init_mmx(), and parse_ffconfig().

in-loop deblocking filter alphac0 parameter alpha is in the range -6.

..6

  • encoding: Set by user.
  • decoding: unused

Definition at line 2203 of file avcodec.h.

Referenced by X264_init().

in-loop deblocking filter beta parameter beta is in the range -6.

..6

  • encoding: Set by user.
  • decoding: unused

Definition at line 2211 of file avcodec.h.

Referenced by X264_init().

debug

  • encoding: Set by user.

  • decoding: Set by user.

Definition at line 1544 of file avcodec.h.

Referenced by avcodec_default_get_buffer(), avcodec_default_release_buffer(), decode_chunks(), decode_ext_header(), decode_frame(), decode_init(), decode_nal_units(), decode_picture_timing(), decode_slice_header(), decode_unregistered_user_data(), decode_vol_header(), decode_vop_header(), ff_alloc_picture(), ff_er_frame_end(), ff_flv_decode_picture_header(), ff_h263_decode_frame(), ff_h263_show_pict_info(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_seq_parameter_set(), ff_h264_execute_ref_pic_marking(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sos(), ff_mpeg4_decode_picture_header(), ff_print_debug_info(), ff_rate_estimate_qscale(), ff_vbv_update(), ff_wmv2_decode_secondary_picture_header(), ffm_read_header(), ffm_write_header(), find_short(), libdirac_decode_init(), libdirac_encode_init(), 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_common_init(), MPV_decode_mb_internal(), msmpeg4_decode_picture_header(), opt_input_file(), parse_ffconfig(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), predict_slice(), predict_slice_buffered(), print_long_term(), print_short_term(), remove_short(), rv10_decode_init(), rv20_decode_picture_header(), stream_component_open(), svq3_decode_frame(), and truemotion1_decode_header().

debug

  • encoding: Set by user.

  • decoding: Set by user.

Definition at line 1567 of file avcodec.h.

Referenced by ff_alloc_picture(), ff_print_debug_info(), MPV_common_init(), and stream_component_open().

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

  • encoding: Set by libavcodec.
  • decoding: unused

Definition at line 1046 of file avcodec.h.

Referenced by MPV_encode_init().

ME diamond size & shape

  • encoding: Set by user.

  • decoding: unused

Definition at line 1639 of file avcodec.h.

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

direct MV prediction mode - 0 (none), 1 (spatial), 2 (temporal), 3 (auto)

  • encoding: Set by user.

  • decoding: unused

Definition at line 2230 of file avcodec.h.

Referenced by ffm_read_header(), ffm_write_header(), and X264_init().

void(* AVCodecContext::draw_horiz_band)(struct AVCodecContext *s, const AVFrame *src, int offset[4], 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. 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:
    height the height of the slice
    y the y position of the slice
    type 1->top field, 2->bottom field, 3->frame
    offset offset into the AVFrame.data from which the slice should be read

Referenced by ff_draw_horiz_band(), ff_init_block_index(), MPV_decode_mb_internal(), and vp3_draw_horiz_band().

Percentage of dynamic range compression to be applied by the decoder.

The default value is 1.0, corresponding to full compression.

  • encoding: unused
  • decoding: Set by user.

Definition at line 2336 of file avcodec.h.

Referenced by decode_audio_block().

dsp_mask could be add used to disable unwanted CPU features CPU features (i.e.

MMX, SSE. ...)

With the FORCE flag you may instead enable given CPU features. (Dangerous: Usable in case of misdetection, improper usage however will result into program crash.)

Definition at line 1487 of file avcodec.h.

Referenced by dsputil_init_mmx(), ff_dsputil_init_iwmmxt(), and main().

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

Referenced by mpeg_decode_user_data(), and video_image_display().

uint64_t AVCodecContext::error[4]

error

  • encoding: Set by libavcodec if flags&CODEC_FLAG_PSNR.

  • decoding: unused

Definition at line 1577 of file avcodec.h.

Referenced by estimate_best_b_count(), MPV_encode_picture(), and print_report().

error concealment flags

  • encoding: unused
  • decoding: Set by user.

Definition at line 1475 of file avcodec.h.

Referenced by ff_er_frame_end(), guess_mv(), and stream_component_open().

Simulates errors in the bitstream to test error concealment.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1914 of file avcodec.h.

Referenced by encode_thread().

Error recognization; higher values will detect more errors but may misdetect some more or less valid parts as errors.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1237 of file avcodec.h.

Referenced by ac3_decode_frame(), ac3_decode_init(), decode_init(), execute_decode_slices(), h261_decode_gob_header(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg_decode_slice(), MPV_frame_start(), and stream_component_open().

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:
count the number of things to execute
  • encoding: Set by libavcodec, user can override.
  • decoding: Set by libavcodec, user can override.

Referenced by avcodec_get_context_defaults2(), avcodec_thread_init(), decode_chunks(), encode_picture(), and execute_decode_slices().

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:
c context passed also to func
count the number of things to execute
arg2 argument passed unchanged to func
ret return values of executed functions, must have space for "count" values. May be NULL.
func function 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.

Referenced by avcodec_get_context_defaults2(), avcodec_thread_init(), dnxhd_encode_fast(), dnxhd_encode_picture(), dnxhd_encode_rdo(), and dnxhd_find_qscale().

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

Referenced by aac_adtstoasc_filter(), aac_decode_init(), aac_encode_init(), add_av_stream1(), adpcm_decode_init(), adts_write_header(), aiff_read_header(), alac_encode_close(), alac_encode_init(), alac_set_info(), apc_read_header(), ape_decode_init(), ape_read_header(), asf_read_header(), asfrtp_parse_sdp_line(), atrac3_decode_init(), av_close_input_stream(), av_find_stream_info(), av_mpeg4_decode_header(), av_open_input_stream(), av_parser_change(), av_transcode(), avcodec_close(), avcodec_copy_context(), avi_read_header(), bfi_decode_frame(), bfi_read_header(), concatenate_packet(), cook_decode_init(), decode_ext_header(), decode_header_trees(), decode_init(), decode_stream_header(), dump_extradata(), encode_close(), encode_end(), encode_ext_header(), encode_init(), extract_mpeg4_header(), Faac_encode_close(), Faac_encode_init(), faac_init_mp4(), ff_cmap_read_palette(), ff_flac_is_extradata_valid(), ff_flac_write_header(), ff_h263_decode_frame(), ff_h264_decode_init(), ff_mjpeg_decode_init(), ff_mov_read_esds(), ff_mov_write_packet(), ff_rm_read_mdpr_codecdata(), ffm_read_header(), ffm_write_header(), flac_decode_init(), flac_encode_close(), flac_encode_frame(), flac_encode_init(), flac_header(), flac_read_header(), flic_decode_init(), flic_read_header(), flv_get_extradata(), flv_read_packet(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), fourxm_read_header(), get_aac_sample_rates(), get_codec_data(), h264_mp4toannexb_filter(), http_receive_data(), idcin_decode_init(), idcin_read_header(), iff_read_header(), iff_read_packet(), libspeex_decode_init(), matroska_read_header(), mkv_write_block(), mkv_write_codecprivate(), mov_read_extradata(), mov_read_glbl(), mov_read_smi(), mov_read_strf(), mov_read_stsd(), mov_read_wave(), mov_write_extradata_tag(), mov_write_subtitle_tag(), mp3_header_compress(), mp3_header_decompress(), mp_decode_frame(), mpc7_decode_init(), mpc8_decode_init(), mpc8_read_header(), mpc_read_header(), mpeg_decode_frame(), mpegts_write_header(), MPV_encode_end(), mtv_read_header(), mxf_parse_structural_metadata(), nut_read_header(), ogg_build_speex_headers(), ogg_write_header(), oggvorbis_encode_close(), oggvorbis_encode_init(), oma_read_header(), parse_packed_headers(), put_audio_specific_config(), put_xiph_codecpriv(), qdm2_decode_init(), raw_init_decoder(), read_header(), read_kuki_chunk(), read_specific_config(), rl2_decode_init(), rl2_read_header(), rm_read_extradata(), rv10_decode_init(), rv20_decode_picture_header(), rv30_decode_init(), rv30_parse_slice_header(), sdp_parse_fmtp_config(), sdp_parse_fmtp_config_h264(), smacker_read_header(), speex_header(), svq3_decode_init(), theora_header(), tta_decode_init(), tta_read_header(), vc1_decode_init(), vc1t_read_header(), vc1test_write_header(), vfw_read_header(), vmdvideo_decode_init(), vorbis_decode_init(), vorbis_encode_close(), vorbis_encode_init(), vorbis_header(), vp6_parse_header(), vqa_decode_init(), wma_decode_init(), wmavoice_decode_init(), wmv2_encode_init(), write_header(), write_streamheader(), write_trailer(), wsvqa_read_header(), X264_close(), X264_init(), xvid_encode_close(), xvid_encode_init(), xvid_strip_vol_header(), yop_decode_init(), and yop_read_header().

Definition at line 950 of file avcodec.h.

Referenced by aac_adtstoasc_filter(), aac_decode_init(), aac_encode_init(), add_av_stream1(), adpcm_decode_init(), adts_write_header(), aiff_read_header(), alac_decode_frame(), alac_encode_close(), alac_encode_init(), apc_read_header(), ape_decode_init(), ape_read_header(), asf_read_header(), asf_write_header1(), asfrtp_parse_sdp_line(), atrac3_decode_init(), av_find_stream_info(), av_mpeg4_decode_header(), av_parser_change(), av_transcode(), avcodec_copy_context(), avi_read_header(), bfi_decode_frame(), bfi_read_header(), concatenate_packet(), cook_decode_init(), decode_ext_header(), decode_header_trees(), decode_init(), decode_stream_header(), dump_extradata(), encode_close(), encode_ext_header(), encode_init(), extract_mpeg4_header(), Faac_encode_init(), faac_init_mp4(), ff_cmap_read_palette(), ff_flac_is_extradata_valid(), ff_flac_write_header(), ff_h263_decode_frame(), ff_h264_decode_init(), ff_mjpeg_decode_init(), ff_mov_read_esds(), ff_mov_write_packet(), ff_rtp_send_aac(), ffm_read_header(), ffm_write_header(), flac_encode_close(), flac_encode_init(), flac_header(), flac_read_header(), flic_decode_init(), flic_read_header(), flv_get_extradata(), flv_read_packet(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), fourxm_read_header(), get_aac_sample_rates(), get_codec_data(), h264_mp4toannexb_filter(), http_receive_data(), idcin_decode_init(), idcin_read_header(), iff_read_header(), iff_read_packet(), libspeex_decode_init(), matroska_read_header(), mkv_write_block(), mkv_write_codecprivate(), mov_read_extradata(), mov_read_glbl(), mov_read_smi(), mov_read_strf(), mov_read_stsd(), mov_read_wave(), mov_write_extradata_tag(), mov_write_subtitle_tag(), mp3_header_compress(), mp3_header_decompress(), mp_decode_init(), mpc7_decode_init(), mpc8_decode_init(), mpc8_read_header(), mpc_read_header(), mpeg_decode_frame(), mpegts_write_header(), mtv_read_header(), mxf_parse_structural_metadata(), nut_read_header(), ogg_build_speex_headers(), ogg_write_header(), oggvorbis_encode_init(), oma_read_header(), parse_packed_headers(), put_audio_specific_config(), put_xiph_codecpriv(), qdm2_decode_init(), raw_init_decoder(), read_header(), read_kuki_chunk(), read_packet(), read_specific_config(), rl2_decode_init(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_extradata(), rv10_decode_init(), rv20_decode_picture_header(), rv30_decode_init(), sdp_parse_fmtp_config(), sdp_parse_fmtp_config_h264(), smacker_read_header(), speex_header(), svq3_decode_init(), theora_header(), tta_decode_init(), tta_read_header(), vc1_decode_init(), vc1t_read_header(), vfw_read_header(), vmdvideo_decode_init(), vorbis_decode_init(), vorbis_encode_init(), vorbis_header(), vp6_parse_header(), vqa_decode_init(), wma_decode_init(), wmavoice_decode_init(), wmv2_encode_init(), write_header(), write_streamheader(), write_trailer(), wsvqa_read_header(), X264_init(), xvid_encode_init(), xvid_strip_vol_header(), and yop_read_header().

CODEC_FLAG_*.

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

Definition at line 917 of file avcodec.h.

Referenced by aac_encode_frame(), aac_encode_init(), add_audio_stream(), add_video_stream(), av_parser_change(), av_transcode(), av_write_header(), avcodec_default_get_buffer(), avcodec_string(), common_init(), comp_block(), dct_get(), decode_frame(), dnxhd_decode_macroblock(), dnxhd_encode_init(), do_video_stats(), dsputil_init_mmx(), dsputilenc_init_mmx(), dv_guess_dct_mode(), encode_block(), encode_frame(), encode_init(), estimate_best_b_count(), Faac_encode_init(), ff_dnxhd_find_cid(), ff_dsputil_init_neon(), ff_h263_decode_frame(), ff_mjpeg_decode_init(), ff_rv34_decode_init(), ffm_read_header(), ffm_write_header(), flac_write_header(), float_init_altivec(), get_flags(), h261_decode_frame(), halfpel_interpol(), idct_put(), indeo3_decode_frame(), iv_decode_frame(), libdirac_encode_init(), libschroedinger_encode_init(), mjpeg_decode_scan(), mkv_write_header(), mkv_write_trailer(), mov_write_udta_tag(), MP3lame_encode_init(), mpeg_decode_frame(), mpeg_decode_init(), MPV_common_init(), MPV_encode_init(), mxf_write_header(), mxf_write_identification(), new_audio_stream(), new_video_stream(), ogg_write_header(), oggvorbis_init_encoder(), opt_input_file(), parse_ffconfig(), print_report(), read_ffserver_streams(), remove_extradata(), render_slice(), rv10_decode_init(), stream_component_open(), svq1_decode_init(), svq1_encode_plane(), svq3_decode_init(), tgq_idct_put_mb(), tgq_idct_put_mb_dconly(), tqi_idct_put(), unpack_dct_coeffs(), vc1_decode_init(), video_decode_example(), vorbis_encode_init(), vp8_encode(), vp8_init(), X264_init(), and xvid_encode_init().

number of bits used for the previously encoded frame

  • encoding: Set by libavcodec.

  • decoding: unused

Definition at line 1139 of file avcodec.h.

Referenced by aac_encode_frame(), and MPV_encode_picture().

Samples per packet, initialized when calling 'init'.

Definition at line 1034 of file avcodec.h.

Referenced by aac_decode_frame(), aac_encode_frame(), aac_encode_init(), AC3_encode_init(), adx_encode_frame(), adx_encode_init(), aiff_read_header(), alac_encode_frame(), alac_encode_init(), alac_entropy_coder(), alac_linear_predictor(), alac_stereo_decorrelation(), amr_decode_fix_avctx(), ape_read_header(), asf_read_header(), audio_encode_example(), av_find_stream_info(), av_transcode(), avcodec_decode_audio3(), calc_predictor_params(), create_audio_stream(), dca_decode_frame(), decode_init(), decoder_init(), do_audio_out(), encode_frame(), encode_init(), encode_superframe(), faac_decode_frame(), Faac_encode_frame(), Faac_encode_init(), ff_aac_ac3_parse(), ff_parse_specific_params(), ff_psy_preprocess(), ffm_read_header(), ffm_write_header(), flac_encode_frame(), flac_encode_init(), get_aiff_header(), get_audio_flags(), get_audio_frame_size(), has_codec_parameters(), init_frame(), init_sample_buffers(), libgsm_init(), libspeex_decode_frame(), libspeex_decode_init(), mlp_parse(), mov_read_stsd(), mov_read_trak(), mov_write_audio_tag(), mov_write_header(), MP3lame_encode_frame(), MP3lame_encode_init(), mp_decode_frame(), MPA_encode_init(), mpegaudio_parse(), mpegts_write_header(), oggvorbis_encode_init(), open_audio(), output_packet(), pcm_encode_init(), rdt_parse_sdp_line(), read_major_sync(), rm_write_header(), roq_dpcm_encode_frame(), roq_dpcm_encode_init(), rtp_write_header(), rv10_write_header(), speex_header(), speex_packet(), swf_write_audio(), swf_write_header(), vorbis_decode_init(), vorbis_encode_frame(), vorbis_encode_init(), and write_frame_header().

frame skip comparison function

  • encoding: Set by user.

  • decoding: unused

Definition at line 2075 of file avcodec.h.

Referenced by add_codec(), ffm_read_header(), ffm_write_header(), and MPV_encode_init().

frame skip exponent

  • encoding: Set by user.

  • decoding: unused

Definition at line 2068 of file avcodec.h.

Referenced by skip_check().

frame skip factor

  • encoding: Set by user.

  • decoding: unused

Definition at line 2061 of file avcodec.h.

Referenced by select_input_picture(), and skip_check().

frame skip threshold

  • encoding: Set by user.

  • decoding: unused

Definition at line 2054 of file avcodec.h.

Referenced by select_input_picture(), and skip_check().

callback to negotiate the pixelFormat

Parameters:
fmt is 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.

Referenced by avcodec_get_context_defaults2(), decode_init(), decode_slice_header(), ff_h263_decode_init(), mpeg_get_pixelformat(), and vc1_decode_init().

Global quality for codecs which cannot change it per frame.

This should be proportional to MPEG-1/2/4 qscale.

  • encoding: Set by user.
  • decoding: unused

Definition at line 1760 of file avcodec.h.

Referenced by aac_encode_init(), encode_init(), Faac_encode_init(), libdirac_encode_init(), libschroedinger_encode_init(), MP3lame_encode_init(), new_audio_stream(), new_video_stream(), oggvorbis_init_encoder(), parse_ffconfig(), and vorbis_encode_init().

Definition at line 1126 of file avcodec.h.

Referenced by MPV_encode_picture().

Definition at line 970 of file avcodec.h.

Referenced by aasc_decode_frame(), add_av_stream(), add_codec(), add_video_stream(), alloc_blocks(), alloc_picture(), asf_read_header(), asf_write_header1(), aura_decode_frame(), av_mpeg4_decode_header(), av_transcode(), av_write_header(), avcodec_default_get_buffer(), avcodec_default_reget_buffer(), avcodec_encode_video(), avcodec_open(), avcodec_set_dimensions(), avcodec_string(), avi_read_header(), avi_write_header(), avisynth_read_header(), avs_read_packet(), bethsoftvid_decode_frame(), bfi_decode_frame(), bfi_decode_init(), bfi_read_header(), bink_decode_plane(), bmp_decode_frame(), bmp_encode_frame(), cdg_decode_init(), cin_read_header(), cinepak_decode_init(), cinvideo_decode_frame(), cinvideo_decode_init(), cmv_decode_inter(), cmv_decode_intra(), cmv_process_header(), codec_reinit(), common_init(), common_init_after_header(), compute_status(), cyuv_decode_init(), dc1394_read_common(), decode_13(), decode_frame(), decode_frame_byterun1(), decode_frame_ilbm(), decode_header(), decode_i2_frame(), decode_i_frame(), decode_init(), decode_p_block(), decode_p_frame(), decode_seq_header(), decode_sequence_header_adv(), decode_slice_header(), decode_stream_header(), dnxhd_decode_frame(), dnxhd_encode_init(), dnxhd_get_blocks(), dnxhd_write_header(), do_video_out(), do_video_stats(), dump_stream_format(), dv_extract_video_info(), dv_write_pack(), dvvideo_init_encoder(), dxa_read_header(), ea_read_header(), encode_frame(), encode_init(), encode_picture_ls(), escape124_decode_init(), estimate_best_b_count(), ff_create_schro_frame(), ff_dirac_schro_get_video_format_idx(), ff_dnxhd_find_cid(), ff_draw_horiz_band(), ff_dv_codec_profile(), ff_dxva2_common_end_frame(), ff_pnm_decode_header(), ff_print_debug_info(), ff_rm_read_mdpr_codecdata(), ff_rv34_decode_init(), ff_vaapi_common_end_frame(), ff_vdpau_h264_picture_complete(), ff_vdpau_mpeg4_decode_picture(), ff_vdpau_mpeg_picture_complete(), ff_vdpau_vc1_decode_picture(), ffm_read_header(), ffm_write_header(), fill_picture_parameters(), film_read_header(), find_stream_in_feed(), flashsv_decode_frame(), flashsv_encode_init(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), flic_read_header(), flip(), fourxm_read_header(), frame_start(), gif_encode_init(), gif_image_write_header(), gif_image_write_image(), gif_write_header(), gif_write_video(), grab_read_header(), gxf_find_lines_index(), gxf_write_header(), gxf_write_mpeg_auxiliary(), halfpel_interpol(), idcin_decode_vlcs(), idcin_read_header(), iff_read_header(), img_read_header(), img_read_packet(), indeo3_decode_init(), init_bundles(), ipmovie_read_header(), ipvideo_decode_init(), ipvideo_decode_opcodes(), ir2_decode_frame(), iv_decode_frame(), libdirac_decode_frame(), libdirac_encode_frame(), libdirac_encode_init(), libopenjpeg_decode_frame(), libschroedinger_decode_frame(), libschroedinger_encode_init(), libschroedinger_frame_from_data(), libschroedinger_handle_first_access_unit(), matroska_read_header(), mimic_decode_frame(), mkv_write_tracks(), mov_get_dv_codec_tag(), mov_read_stsd(), mov_read_trak(), mov_write_avid_tag(), mov_write_header(), mov_write_tkhd_tag(), mov_write_uuidprof_tag(), mp_decode_frame(), mp_decode_frame_helper(), mp_decode_init(), mp_read_changes_map(), mpegvideo_extract_headers(), MPV_encode_init(), msrle_decode_8_16_24_32(), msrle_decode_frame(), msrle_decode_pal4(), msvideo1_decode_16bit(), msvideo1_decode_8bit(), mtv_read_header(), mxf_parse_mpeg2_frame(), mxf_parse_structural_metadata(), mxf_write_cdci_common(), new_video_stream(), nsv_parse_NSVs_header(), nut_read_header(), nuv_header(), ogm_dshow_header(), ogm_header(), open_video(), opt_input_file(), output_packet(), pam_encode_frame(), parse_ffconfig(), parse_h264_sdp_line(), pcx_decode_frame(), pcx_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), pre_process_video_frame(), prepare_avpic(), print_report(), ptx_decode_frame(), 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(), queue_picture(), r3d_read_red1(), raw_decode(), raw_encode(), raw_init_decoder(), read_header(), read_packet(), read_seek(), 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(), seq_read_header(), show_stream(), siff_parse_vbv1(), smacker_read_header(), smc_decode_stream(), sp5x_decode_frame(), str_read_packet(), sunrast_decode_frame(), svq1_decode_init(), svq1_encode_end(), svq1_encode_init(), svq3_decode_init(), swf_write_header(), swf_write_video(), targa_encode_frame(), tgq_decode_frame(), tgv_decode_frame(), tgv_decode_inter(), theora_header(), thp_read_header(), tiff_decode_tag(), tm2_decode_blocks(), tmv_decode_frame(), tmv_read_header(), tqi_decode_frame(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), truemotion1_decode_header(), txd_decode_frame(), ulti_decode_init(), v4l2_read_header(), vb_decode_framedata(), vc1_decode_init(), vc1t_read_header(), vc1test_write_header(), vfw_read_header(), vid_read_header(), vid_read_packet(), video_decode_example(), video_encode_example(), video_open(), vmd_decode(), vp3_decode_init(), vp3_draw_horiz_band(), vp6_parse_header(), vp8_decode(), vp8_init(), wc3_read_header(), write_streamheader(), write_trailer(), write_video_frame(), wsvqa_read_header(), x11grab_read_header(), X264_init(), xan_decode_frame(), xan_decode_init(), xan_wc3_decode_frame(), xiph_parse_fmtp_pair(), xvid_encode_init(), yop_decode_frame(), yop_decode_init(), yop_read_header(), yuv4_read_header(), yuv4_read_packet(), and zmbv_me().

hurry up amount

  • encoding: unused
  • decoding: Set by user.

1-> Skip B-frames, 2-> Skip IDCT/dequant too, 5-> Skip everything except header

Deprecated:
Deprecated in favor of skip_idct and skip_frame.

Definition at line 1102 of file avcodec.h.

Referenced by decode_chunks(), ff_h263_decode_frame(), ff_rv34_decode_frame(), h261_decode_frame(), MPV_frame_start(), svq1_decode_frame(), svq3_decode_frame(), and vc1_decode_frame().

Hardware accelerator context.

For some hardware accelerators, a global context needs to be provided by the user. In that case, this holds display-dependent data FFmpeg cannot instantiate itself. Please refer to the FFmpeg HW accelerator documentation to know how to fill this is. e.g. for VA API, this is a struct vaapi_context.

  • encoding: unused
  • decoding: Set by user

Definition at line 2408 of file avcodec.h.

Referenced by commit_bitstream_and_slice_buffer(), decode_slice(), ff_dxva2_common_end_frame(), ff_vaapi_common_end_frame(), fill_slice_long(), start_frame(), vaapi_mpeg2_decode_slice(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_decode_slice(), vaapi_mpeg4_start_frame(), vaapi_vc1_decode_slice(), and vaapi_vc1_start_frame().

Definition at line 1129 of file avcodec.h.

Referenced by MPV_encode_picture().

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

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

qscale offset between P and I-frames

  • encoding: Set by user.

  • decoding: unused

Definition at line 1367 of file avcodec.h.

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

Definition at line 1127 of file avcodec.h.

Referenced by MPV_encode_picture().

interlaced DCT comparison function

  • encoding: Set by user.

  • decoding: unused

Definition at line 1616 of file avcodec.h.

Referenced by dvvideo_init(), encode_mb_internal(), and MPV_encode_init().

custom inter quantization matrix

  • encoding: Set by user, can be NULL.

  • decoding: Set by libavcodec.

Definition at line 1828 of file avcodec.h.

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

inter quantizer bias

  • encoding: Set by user.

  • decoding: unused

Definition at line 1726 of file avcodec.h.

Referenced by MPV_encode_init().

  • encoding: Set by user.

  • decoding: unused

Definition at line 1900 of file avcodec.h.

internal_buffers Don't touch, used by libavcodec default_get_buffer().

Definition at line 1746 of file avcodec.h.

Referenced by avcodec_copy_context(), avcodec_default_free_buffers(), avcodec_default_get_buffer(), and avcodec_default_release_buffer().

internal_buffer count Don't touch, used by libavcodec default_get_buffer().

Definition at line 1740 of file avcodec.h.

Referenced by avcodec_default_free_buffers(), avcodec_default_get_buffer(), and avcodec_default_release_buffer().

precision of the intra DC coefficient - 8

  • encoding: Set by user.

  • decoding: unused

Definition at line 1981 of file avcodec.h.

Referenced by ffm_read_header(), ffm_write_header(), MPV_encode_init(), and new_video_stream().

custom intra quantization matrix

  • encoding: Set by user, can be NULL.

  • decoding: Set by libavcodec.

Definition at line 1821 of file avcodec.h.

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

intra quantizer bias

  • encoding: Set by user.

  • decoding: unused

Definition at line 1718 of file avcodec.h.

Referenced by dnxhd_encode_init(), and MPV_encode_init().

minimum GOP size

  • encoding: Set by user.

  • decoding: unused

Definition at line 2160 of file avcodec.h.

Referenced by encode_init(), ffm_read_header(), ffm_write_header(), vp8_init(), and X264_init().

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

  • encoding: Set by user.

  • decoding: unused

Definition at line 1646 of file avcodec.h.

Referenced by epzs_motion_search_internal().

maximum Lagrange multipler

  • encoding: Set by user.

  • decoding: unused

Definition at line 1858 of file avcodec.h.

Referenced by get_qminmax(), and MPV_encode_picture().

minimum Lagrange multipler

  • encoding: Set by user.

  • decoding: unused

Definition at line 1851 of file avcodec.h.

Referenced by get_qminmax().

LPC coefficient precision - used by FLAC encoder

  • encoding: Set by user.

  • decoding: unused

Definition at line 2280 of file avcodec.h.

Referenced by flac_encode_init().

luma single coefficient elimination threshold

  • encoding: Set by user.

  • decoding: unused

Definition at line 1196 of file avcodec.h.

Referenced by ffm_read_header(), ffm_write_header(), MPV_encode_init(), and parse_ffconfig().

luminance masking (0-> disabled)

  • encoding: Set by user.

  • decoding: unused

Definition at line 1395 of file avcodec.h.

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

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

Definition at line 1079 of file avcodec.h.

Referenced by add_video_stream(), compute_pkt_fields2(), decode_sequence_header_adv(), estimate_best_b_count(), ffm_read_header(), ffm_write_header(), MPV_encode_init(), vaapi_vc1_start_frame(), vc1_decode_init(), vc1_decode_sequence_header(), vc1_parse_frame_header(), video_encode_example(), X264_init(), and xvid_encode_init().

  • encoding: Set by user.

  • decoding: unused

Definition at line 2311 of file avcodec.h.

Referenced by flac_encode_init().

  • encoding: Set by user.

  • decoding: unused

Definition at line 2292 of file avcodec.h.

Referenced by alac_encode_init(), and flac_encode_init().

maximum quantizer difference between frames

  • encoding: Set by user.

  • decoding: unused

Definition at line 1071 of file avcodec.h.

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

macroblock comparison function (not supported yet)

  • encoding: Set by user.

  • decoding: unused

Definition at line 1610 of file avcodec.h.

Referenced by check_bidir_mv(), direct_search(), estimate_best_b_count(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_init_me(), h263_mv4_search(), interlaced_search(), and sse_mb().

maximum MB lagrange multipler

  • encoding: Set by user.

  • decoding: unused

Definition at line 2097 of file avcodec.h.

Referenced by adaptive_quantization().

minimum MB lagrange multipler

  • encoding: Set by user.

  • decoding: unused

Definition at line 2090 of file avcodec.h.

Referenced by adaptive_quantization().

maximum MB quantizer

  • encoding: unused
  • decoding: unused

Definition at line 1591 of file avcodec.h.

minimum MB quantizer

  • encoding: unused
  • decoding: unused

Definition at line 1584 of file avcodec.h.

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

  • encoding: Set by user.
  • decoding: unused

Definition at line 1974 of file avcodec.h.

Referenced by ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), and MPV_encode_init().

motion estimation comparison function

  • encoding: Set by user.

  • decoding: unused

Definition at line 1598 of file avcodec.h.

Referenced by estimate_best_b_count(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_init_me(), ffm_read_header(), ffm_write_header(), hpel_motion_search(), qpel_motion_search(), and X264_init().

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

Referenced by add_codec(), ffm_read_header(), ffm_write_header(), MPV_encode_init(), svq1_encode_plane(), X264_init(), and xvid_encode_init().

  • encoding: Set by user.

  • decoding: unused

Definition at line 2104 of file avcodec.h.

Referenced by encode_picture().

motion estimation prepass comparison function

  • encoding: Set by user.

  • decoding: unused

Definition at line 1660 of file avcodec.h.

Referenced by ff_init_me(), and ff_pre_estimate_p_frame_motion().

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

  • encoding: Set by user.
  • decoding: unused

Definition at line 1711 of file avcodec.h.

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

subpixel motion estimation comparison function

  • encoding: Set by user.

  • decoding: unused

Definition at line 1604 of file avcodec.h.

Referenced by direct_search(), estimate_best_b_count(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_init_me(), hpel_motion_search(), and qpel_motion_search().

subpel ME quality

  • encoding: Set by user.

  • decoding: unused

Definition at line 1674 of file avcodec.h.

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

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

Referenced by copy_picture_attributes(), encode_picture(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), MPV_encode_init(), and new_video_stream().

  • encoding: Set by user.

  • decoding: unused

Definition at line 2305 of file avcodec.h.

Referenced by flac_encode_init().

  • encoding: Set by user.

  • decoding: unused

Definition at line 2286 of file avcodec.h.

Referenced by alac_encode_init(), and flac_encode_init().

Definition at line 1132 of file avcodec.h.

Referenced by MPV_encode_picture().

0-> h263 quant 1-> mpeg quant

  • encoding: Set by user.

  • decoding: unused

Definition at line 1288 of file avcodec.h.

Referenced by ffm_read_header(), ffm_write_header(), MPV_encode_init(), and xvid_encode_init().

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

  • encoding: Set by user.
  • decoding: unused

Definition at line 2252 of file avcodec.h.

Referenced by epzs_motion_search_internal().

Definition at line 1125 of file avcodec.h.

Referenced by MPV_encode_picture().

noise reduction strength

  • encoding: Set by user.

  • decoding: unused

Definition at line 1872 of file avcodec.h.

Referenced by init_duplicate_context(), merge_context_after_encode(), MPV_common_init(), MPV_frame_start(), update_noise_reduction(), vp8_init(), and X264_init().

noise vs.

sse weight for the nsse comparsion function

  • encoding: Set by user.
  • decoding: unused

Definition at line 1988 of file avcodec.h.

Referenced by add_codec(), ffm_read_header(), ffm_write_header(), nsse16_c(), nsse16_mmx(), nsse8_c(), and nsse8_mmx().

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

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

Definition at line 1146 of file avcodec.h.

Definition at line 1130 of file avcodec.h.

Referenced by MPV_encode_picture().

p block masking (0-> disabled)

  • encoding: Set by user.

  • decoding: unused

Definition at line 1416 of file avcodec.h.

Referenced by adaptive_quantization(), and MPV_encode_init().

Definition at line 1128 of file avcodec.h.

Referenced by MPV_encode_picture().

Definition at line 1279 of file avcodec.h.

Referenced by decode_init(), and open_parser().

macroblock subpartition sizes to consider - p8x8, p4x4, b8x8, i8x8, i4x4

  • encoding: Set by user.

  • decoding: unused

Definition at line 2218 of file avcodec.h.

Referenced by ffm_read_header(), ffm_write_header(), and X264_init().

Pixel format, see PIX_FMT_xxx.

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

Definition at line 986 of file avcodec.h.

Referenced by aasc_decode_init(), add_video_stream(), alloc_picture(), aura_decode_init(), av_find_stream_info(), av_transcode(), avcodec_align_dimensions(), avcodec_align_dimensions2(), avcodec_default_get_buffer(), avcodec_default_reget_buffer(), avcodec_get_context_defaults2(), avcodec_string(), avs_decode_init(), bethsoftvid_decode_init(), bfi_decode_init(), bfi_read_header(), bmp_decode_frame(), bmp_encode_frame(), cdg_decode_init(), choose_pixel_fmt(), cinepak_decode_init(), cinvideo_decode_init(), cmv_decode_init(), cyuv_decode_init(), dc1394_read_common(), decode_frame(), decode_frame_byterun1(), decode_frame_ilbm(), decode_init(), decode_slice_header(), dnxhd_decode_frame(), dnxhd_encode_init(), do_video_out(), dv_extract_video_info(), dvvideo_init_encoder(), encode_frame(), encode_init(), encode_init_ls(), encode_picture_lossless(), encode_picture_ls(), escape124_decode_init(), estimate_best_b_count(), ff_cavs_init(), ff_create_schro_frame(), ff_dv_codec_profile(), ff_h263_decode_init(), ff_mjpeg_decode_sof(), ff_mjpeg_encode_picture_header(), ff_pnm_decode_header(), ff_print_debug_info(), ff_rv34_decode_init(), ffm_read_header(), ffm_write_header(), flashsv_decode_init(), flic_decode_frame(), flic_decode_init(), gif_decode_frame(), gif_write_header(), grab_read_header(), gxf_write_header(), gxf_write_mpeg_auxiliary(), gxf_write_umf_media_mpeg(), h261_decode_init(), has_codec_parameters(), idcin_decode_init(), iff_read_header(), img_read_header(), indeo3_decode_init(), init_decoder(), ipvideo_decode_init(), ir2_decode_init(), jpeg_put_comments(), libdirac_decode_frame(), libdirac_encode_frame(), libdirac_encode_init(), libopenjpeg_decode_frame(), libschroedinger_decode_frame(), libschroedinger_encode_init(), libschroedinger_frame_from_data(), libschroedinger_handle_first_access_unit(), load_input_picture(), mimic_decode_frame(), mm_decode_init(), mov_get_dv_codec_tag(), mov_get_rawvideo_codec_tag(), mp_decode_init(), MPV_common_init(), MPV_encode_init(), msrle_decode_init(), msvideo1_decode_8bit(), msvideo1_decode_init(), mtv_read_header(), new_video_stream(), open_video(), opt_input_file(), pam_encode_frame(), parse_h264_sdp_line(), parse_source_parameters(), pcx_decode_frame(), pcx_encode_frame(), png_enc_init(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), pre_process_video_frame(), ptx_decode_frame(), qtrle_decode_init(), qtrle_encode_frame(), qtrle_encode_init(), raw_decode(), raw_encode(), raw_init_decoder(), raw_init_encoder(), read_header(), rl2_decode_init(), roq_decode_frame(), roq_decode_init(), rpza_decode_init(), rv10_decode_init(), seqvideo_decode_init(), SetSchroChromaFormat(), show_stream(), siff_parse_vbv1(), smacker_read_header(), smc_decode_init(), sp5x_decode_frame(), sunrast_decode_frame(), svq1_decode_init(), svq1_encode_frame(), svq3_decode_init(), targa_encode_frame(), tgq_decode_init(), tgv_decode_init(), tiff_decode_tag(), tmv_read_header(), tqi_decode_init(), truemotion1_decode_header(), txd_decode_frame(), ulti_decode_init(), v4l2_read_header(), vc1_decode_frame(), vc1_decode_init(), vcr2_init_sequence(), vfw_read_header(), vid_read_header(), video_encode_example(), vmdvideo_decode_init(), vp3_decode_init(), vp56_init(), vp8_init(), vqa_decode_init(), write_header(), write_video_frame(), x11grab_read_header(), xan_decode_init(), xvid_encode_frame(), yop_decode_init(), yuv4_read_header(), and yuv4_read_packet().

ME prepass diamond size & shape

  • encoding: Set by user.

  • decoding: unused

Definition at line 1667 of file avcodec.h.

Referenced by ff_init_me(), and pre_estimate_motion_thread().

prepass for motion estimation

  • encoding: Set by user.

  • decoding: unused

Definition at line 1653 of file avcodec.h.

Referenced by encode_picture().

prediction method (needed for huffyuv)

  • encoding: Set by user.

  • decoding: unused

Definition at line 1518 of file avcodec.h.

Referenced by encode_picture_lossless(), encode_picture_ls(), ff_mjpeg_encode_picture_header(), and png_enc_init().

search method for selecting prediction order

  • encoding: Set by user.

  • decoding: unused

Definition at line 2299 of file avcodec.h.

Referenced by flac_encode_init().

Definition at line 1106 of file avcodec.h.

Referenced by aac_decode_close(), aac_decode_frame(), aac_decode_init(), aac_encode_close(), aac_encode_end(), aac_encode_frame(), aac_encode_init(), aasc_decode_end(), aasc_decode_frame(), aasc_decode_init(), ac3_decode_end(), ac3_decode_frame(), ac3_decode_init(), AC3_encode_frame(), AC3_encode_init(), adpcm_decode_frame(), adpcm_decode_init(), adx_decode_frame(), adx_encode_frame(), alac_decode_close(), alac_decode_frame(), alac_decode_init(), alac_encode_frame(), alac_encode_init(), amrnb_decode_frame(), amrnb_decode_init(), ape_decode_close(), ape_decode_frame(), ape_decode_init(), apply_window_and_mdct(), atrac1_decode_end(), atrac1_decode_frame(), atrac1_decode_init(), atrac3_decode_close(), atrac3_decode_frame(), atrac3_decode_init(), aura_decode_end(), aura_decode_frame(), aura_decode_init(), avcodec_close(), avcodec_copy_context(), avcodec_open(), avs_decode_frame(), bethsoftvid_decode_end(), bethsoftvid_decode_frame(), bethsoftvid_decode_init(), bfi_decode_close(), bfi_decode_frame(), bfi_decode_init(), bmp_decode_end(), bmp_decode_frame(), bmp_decode_init(), bmp_encode_frame(), bmp_encode_init(), cavs_decode_frame(), cavs_flush(), cdg_decode_end(), cdg_decode_frame(), cdg_decode_init(), channel_setup(), cinaudio_decode_frame(), cinaudio_decode_init(), cinepak_decode_end(), cinepak_decode_frame(), cinepak_decode_init(), cinvideo_decode_end(), cinvideo_decode_frame(), cinvideo_decode_init(), close_decoder(), cmv_decode_end(), cmv_decode_frame(), cmv_decode_init(), codec_reinit(), codecctl_int(), commit_bitstream_and_slice_buffer(), common_end(), common_init(), common_init_after_header(), cook_decode_close(), cook_decode_frame(), cook_decode_init(), cyuv_decode_end(), cyuv_decode_frame(), cyuv_decode_init(), dca_decode_end(), dca_decode_frame(), dca_decode_init(), decode_chunks(), decode_close(), decode_end(), decode_frame(), decode_frame_byterun1(), decode_frame_ilbm(), decode_init(), decode_packet(), decode_slice(), decode_tag(), decoder_init(), determine_bitrate(), 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(), 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_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvvideo_close(), dvvideo_init(), eightsvx_decode_frame(), eightsvx_decode_init(), encode_close(), encode_end(), encode_frame(), encode_init(), encode_init_ls(), encode_nals(), encode_picture_lossless(), encode_picture_ls(), encode_superframe(), end_frame(), escape124_decode_close(), escape124_decode_frame(), escape124_decode_init(), faac_decode_end(), faac_decode_frame(), faac_decode_init(), Faac_encode_close(), Faac_encode_frame(), Faac_encode_init(), faac_init_mp4(), ff_cavs_end(), ff_cavs_init(), ff_h263_decode_end(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h264_decode_end(), ff_h264_decode_init(), ff_mjpeg_decode_end(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_init(), ff_mpeg_flush(), ff_msmpeg4_decode_init(), ff_pnm_end(), ff_pnm_init(), ff_rv34_decode_end(), ff_rv34_decode_frame(), ff_rv34_decode_init(), ff_vdpau_h264_picture_complete(), ff_vdpau_h264_picture_start(), ff_vdpau_h264_set_reference_frames(), ff_vdpau_vc1_decode_picture(), ff_wma_end(), ff_wma_init(), fill_slice(), fill_slice_long(), flac_decode_close(), flac_decode_frame(), flac_decode_init(), flac_encode_close(), flac_encode_frame(), flac_encode_init(), flac_flush(), 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_dpb(), g726_decode_frame(), g726_init(), get_stats(), gif_decode_close(), gif_decode_frame(), gif_decode_init(), gif_encode_close(), gif_encode_frame(), gif_encode_init(), gif_image_write_image(), h261_decode_end(), h261_decode_frame(), h261_decode_init(), idcin_decode_end(), idcin_decode_frame(), idcin_decode_init(), imc_decode_close(), imc_decode_frame(), imc_decode_init(), indeo3_decode_end(), indeo3_decode_frame(), indeo3_decode_init(), ipvideo_decode_end(), ipvideo_decode_frame(), ipvideo_decode_init(), ir2_decode_end(), ir2_decode_frame(), ir2_decode_init(), iv_decode_frame(), libdirac_decode_close(), libdirac_decode_frame(), libdirac_decode_init(), libdirac_encode_close(), libdirac_encode_frame(), libdirac_encode_init(), libgsm_close(), libgsm_decode_frame(), libgsm_encode_frame(), libgsm_init(), libopenjpeg_decode_close(), libopenjpeg_decode_frame(), libopenjpeg_decode_init(), 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(), libspeex_decode_close(), libspeex_decode_frame(), libspeex_decode_init(), log_encoder_error(), mace_decode_frame(), mdec_common_init(), mimic_decode_end(), mimic_decode_frame(), mimic_decode_init(), mjpegb_decode_frame(), mlp_decode_init(), mm_decode_end(), mm_decode_frame(), mm_decode_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_flush(), mpc7_decode_frame(), mpc7_decode_init(), mpc8_decode_frame(), mpc8_decode_init(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg_decode_end(), mpeg_decode_frame(), mpeg_decode_gop(), mpeg_decode_init(), mpeg_decode_postinit(), mpeg_get_pixelformat(), MPV_encode_end(), MPV_encode_init(), MPV_encode_picture(), msrle_decode_end(), msrle_decode_frame(), msrle_decode_init(), msvideo1_decode_end(), msvideo1_decode_frame(), msvideo1_decode_init(), oggvorbis_encode_close(), oggvorbis_encode_frame(), oggvorbis_encode_init(), pam_encode_frame(), parse_palette_segment(), parse_picture_segment(), parse_presentation_segment(), pcm_decode_frame(), pcm_decode_init(), pcx_decode_frame(), pcx_encode_frame(), pcx_encode_init(), pcx_end(), pcx_init(), png_dec_end(), png_dec_init(), png_enc_init(), pnm_decode_frame(), pnm_encode_frame(), ptx_decode_frame(), ptx_end(), ptx_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(), ra288_decode_frame(), raw_close_decoder(), raw_decode(), raw_init_decoder(), raw_init_encoder(), read_access_unit(), read_huffman_tree(), release_buffer(), rl2_decode_end(), rl2_decode_frame(), rl2_decode_init(), roq_decode_end(), roq_decode_frame(), roq_decode_init(), 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(), seqvideo_decode_end(), seqvideo_decode_frame(), seqvideo_decode_init(), SetSchroChromaFormat(), sgi_end(), sgi_init(), shorten_decode_close(), shorten_decode_frame(), shorten_decode_init(), shorten_flush(), sipr_decode_frame(), sipr_decoder_init(), slice_end(), smc_decode_end(), smc_decode_frame(), smc_decode_init(), sp5x_decode_frame(), start_frame(), submit_stats(), sunrast_decode_frame(), sunrast_end(), sunrast_init(), svq1_decode_end(), svq1_decode_frame(), svq1_decode_init(), svq1_encode_end(), svq1_encode_frame(), svq1_encode_init(), svq3_decode_frame(), svq3_decode_init(), synth_frame(), synth_superframe(), targa_encode_init(), targa_end(), targa_init(), tgq_decode_end(), tgq_decode_frame(), tgq_decode_init(), tgv_decode_end(), tgv_decode_frame(), tgv_decode_init(), tiff_end(), tiff_init(), tmv_decode_close(), tmv_decode_frame(), tqi_decode_end(), tqi_decode_frame(), tqi_decode_init(), truemotion1_decode_end(), truemotion1_decode_frame(), truemotion1_decode_init(), truespeech_decode_frame(), tta_decode_close(), tta_decode_frame(), tta_decode_init(), twin_decode_close(), twin_decode_frame(), twin_decode_init(), txd_decode_frame(), txd_end(), txd_init(), ulti_decode_end(), ulti_decode_frame(), ulti_decode_init(), vaapi_mpeg2_decode_slice(), vaapi_mpeg2_end_frame(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_decode_slice(), vaapi_mpeg4_end_frame(), vaapi_mpeg4_start_frame(), vaapi_vc1_decode_slice(), vaapi_vc1_end_frame(), vaapi_vc1_start_frame(), vc1_decode_end(), vc1_decode_frame(), vc1_decode_init(), vcr2_init_sequence(), vmdaudio_decode_frame(), vmdaudio_decode_init(), vmdvideo_decode_end(), vmdvideo_decode_frame(), vmdvideo_decode_init(), vorbis_decode_close(), vorbis_decode_frame(), vorbis_decode_init(), vorbis_encode_close(), vorbis_encode_frame(), vorbis_encode_init(), vp3_decode_end(), vp3_decode_frame(), vp3_decode_init(), vp56_decode_frame(), vp56_free(), vp56_init(), vp56_size_changed(), vp5_decode_init(), vp6_decode_free(), vp6_decode_init(), vp8_decode(), vp8_encode(), vp8_free(), vp8_init(), vqa_decode_end(), vqa_decode_frame(), vqa_decode_init(), wavpack_decode_frame(), wavpack_decode_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(), X264_close(), X264_frame(), X264_init(), xan_decode_end(), xan_decode_frame(), xan_decode_init(), xvid_encode_close(), xvid_encode_frame(), xvid_encode_init(), yop_decode_close(), yop_decode_frame(), and yop_decode_init().

PSY RD Strength of psychovisual optimization

  • encoding: Set by user
  • decoding: unused.

Definition at line 2499 of file avcodec.h.

Referenced by X264_init().

PSY trellis Strength of psychovisual optimization

  • encoding: Set by user
  • decoding: unused.

Definition at line 2507 of file avcodec.h.

Referenced by X264_init().

amount of qscale smoothing over time (0.0-1.0)

Definition at line 1050 of file avcodec.h.

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

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

Definition at line 1049 of file avcodec.h.

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

quantizer noise shaping

  • encoding: Set by user.

  • decoding: unused

Definition at line 1931 of file avcodec.h.

Referenced by dct_quantize_refine(), and encode_mb_internal().

Frame rate emulation.

If not zero, the lower layer (i.e. format handler) has to read frames at native frame rate.

  • encoding: Set by user.
  • decoding: unused

Definition at line 994 of file avcodec.h.

Definition at line 1351 of file avcodec.h.

Referenced by add_codec(), ffm_read_header(), ffm_write_header(), and modify_qscale().

const char* AVCodecContext::rc_eq

rate control equation

  • encoding: Set by user
  • decoding: unused

Definition at line 1329 of file avcodec.h.

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

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

  • encoding: Set by user.
  • decoding: unused

Definition at line 1893 of file avcodec.h.

Referenced by ff_rate_control_init(), ff_xvid_rate_control_init(), new_video_stream(), and X264_init().

initial complexity for pass1 ratecontrol

  • encoding: Set by user.

  • decoding: unused

Definition at line 1374 of file avcodec.h.

Referenced by ff_rate_control_init().

RC lookahead Number of frames for frametype and ratecontrol lookahead

  • encoding: Set by user
  • decoding: unused.

Definition at line 2515 of file avcodec.h.

Referenced by X264_init().

Ratecontrol attempt to use, at maximum,

of what can be used without an underflow.

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

Definition at line 2373 of file avcodec.h.

Referenced by modify_qscale(), and MPV_encode_picture().

minimum bitrate

  • encoding: Set by user.

  • decoding: unused

Definition at line 1343 of file avcodec.h.

Referenced by ff_vbv_update(), ffm_read_header(), ffm_write_header(), modify_qscale(), mov_write_esds_tag(), MPV_encode_init(), MPV_encode_picture(), parse_ffconfig(), and vp8_init().

Ratecontrol attempt to use, at least,

times the amount needed to prevent a vbv overflow.

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

Definition at line 2380 of file avcodec.h.

Referenced by modify_qscale().

ratecontrol override, see RcOverride

  • encoding: Allocated/set/freed by user.

  • decoding: unused

Definition at line 1321 of file avcodec.h.

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

Definition at line 1322 of file avcodec.h.

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

Definition at line 1313 of file avcodec.h.

Referenced by modify_qscale().

Definition at line 1314 of file avcodec.h.

Referenced by modify_qscale().

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

  • encoding: Set by user.
  • decoding: unused

Definition at line 1311 of file avcodec.h.

Referenced by modify_qscale().

obsolete FIXME remove

Definition at line 1091 of file avcodec.h.

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

Returns the real picture number of previous encoded frame.

Definition at line 1037 of file avcodec.h.

number of reference frames

  • encoding: Set by user.

  • decoding: Set by lavc.

Definition at line 2167 of file avcodec.h.

Referenced by decode_slice_header(), ffm_read_header(), ffm_write_header(), and X264_init().

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

Referenced by aasc_decode_frame(), avcodec_get_context_defaults2(), avs_decode_frame(), bethsoftvid_decode_frame(), cdg_decode_frame(), cinepak_decode_frame(), cinvideo_decode_frame(), decode_frame(), decode_frame_byterun1(), decode_frame_ilbm(), flashsv_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), ir2_decode_frame(), mp_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), roq_decode_frame(), rpza_decode_frame(), seqvideo_decode_frame(), smc_decode_frame(), and truemotion1_decode_frame().

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.

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

Referenced by aasc_decode_end(), aura_decode_end(), aura_decode_frame(), avcodec_default_reget_buffer(), avcodec_get_context_defaults2(), bethsoftvid_decode_end(), bfi_decode_close(), bfi_decode_frame(), bmp_decode_end(), bmp_decode_frame(), cavs_decode_frame(), cdg_decode_end(), cdg_decode_frame(), cinepak_decode_end(), cinvideo_decode_end(), cmv_decode_end(), cmv_decode_frame(), common_end(), cyuv_decode_end(), cyuv_decode_frame(), decode_close(), decode_end(), decode_frame(), decode_pic(), dnxhd_decode_close(), dnxhd_decode_frame(), dvvideo_close(), escape124_decode_close(), escape124_decode_frame(), ff_mjpeg_decode_end(), ff_mjpeg_decode_sof(), ff_pnm_end(), flashsv_decode_end(), flashsv_decode_frame(), flic_decode_end(), free_frame_buffer(), gif_decode_close(), gif_decode_frame(), idcin_decode_end(), idcin_decode_frame(), indeo3_decode_frame(), ipvideo_decode_end(), ipvideo_decode_frame(), ir2_decode_end(), ir2_decode_frame(), libopenjpeg_decode_close(), libopenjpeg_decode_frame(), mimic_decode_end(), mimic_decode_frame(), mm_decode_end(), mp_decode_end(), msrle_decode_end(), msvideo1_decode_end(), pcx_decode_frame(), pcx_end(), png_dec_end(), pnm_decode_frame(), ptx_decode_frame(), ptx_end(), qtrle_decode_end(), release_buffer(), rl2_decode_end(), rl2_decode_frame(), roq_decode_end(), roq_encode_end(), rpza_decode_end(), select_input_picture(), seqvideo_decode_end(), sgi_end(), smc_decode_end(), sunrast_decode_frame(), sunrast_end(), targa_end(), tgq_decode_end(), tgq_decode_frame(), tiff_decode_tag(), tiff_end(), tmv_decode_close(), tmv_decode_frame(), tqi_decode_end(), tqi_decode_frame(), truemotion1_decode_end(), txd_decode_frame(), txd_end(), ulti_decode_end(), ulti_decode_frame(), vmdvideo_decode_end(), vmdvideo_decode_frame(), vp3_decode_end(), vp56_decode_frame(), vp56_free(), vqa_decode_end(), vqa_decode_frame(), xan_decode_end(), xan_decode_frame(), yop_decode_close(), and yop_decode_frame().

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

  • encoding: unused
  • decoding: Set by user.

Definition at line 2344 of file avcodec.h.

Referenced by avcodec_default_get_buffer(), avcodec_default_reget_buffer(), avcodec_get_context_defaults2(), and get_video_frame().

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

  • encoding: unused
  • decoding: Set by user.

Definition at line 2366 of file avcodec.h.

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

Referenced by ac3_decode_frame(), ac3_decode_init(), av_transcode(), channel_setup(), dca_decode_frame(), dca_decode_init(), ff_aac_ac3_parse(), read_restart_header(), and stream_component_open().

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

Referenced by encode_thread().

Definition at line 1108 of file avcodec.h.

Referenced by encode_thread(), and MPV_encode_init().

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.

Definition at line 1530 of file avcodec.h.

Referenced by av_write_header(), avcodec_get_context_defaults2(), avcodec_string(), decode_sequence_header_adv(), decode_slice_header(), decode_vol_header(), dump_stream_format(), dv_write_pack(), encode_init(), h263_decode_picture_header(), h263_encode_picture_header(), jpeg_put_comments(), mjpeg_decode_app(), mpeg1_encode_sequence_header(), mpeg4_encode_vol_header(), mpeg_decode_postinit(), MPV_encode_init(), new_video_stream(), opt_input_file(), parse_source_parameters(), show_stream(), video_image_display(), X264_init(), and xvid_encode_frame().

audio sample format

  • encoding: Set by user.

  • decoding: Set by libavcodec. sample format

Definition at line 1028 of file avcodec.h.

Referenced by aac_decode_init(), ac3_decode_init(), adpcm_decode_init(), adx_decode_init(), alac_decode_frame(), alac_encode_init(), amr_decode_fix_avctx(), amrnb_decode_init(), ape_decode_init(), atrac1_decode_init(), atrac3_decode_init(), audio_decode_frame(), avcodec_get_context_defaults2(), avcodec_string(), choose_sample_fmt(), cinaudio_decode_init(), cook_decode_init(), dca_decode_init(), decode_frame(), decode_init(), do_audio_out(), dpcm_decode_init(), eightsvx_decode_init(), faac_decode_init(), ffm_read_header(), ffm_write_header(), flac_decode_init(), flac_encode_init(), flic_read_header(), g726_init(), has_codec_parameters(), imc_decode_init(), libgsm_init(), libspeex_decode_init(), mace_decode_init(), mkv_write_tracks(), mlp_parse(), mpc7_decode_init(), mpc8_decode_init(), new_audio_stream(), opt_input_file(), output_data(), output_packet(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pcm_decode_frame(), pcm_decode_init(), pcm_encode_frame(), qcelp_decode_init(), qdm2_decode_frame(), qdm2_decode_init(), ra144_decode_init(), ra288_decode_init(), read_major_sync(), roq_dpcm_encode_init(), shorten_decode_init(), sipr_decoder_init(), smka_decode_init(), truespeech_decode_init(), tta_decode_init(), twin_decode_init(), vmdaudio_decode_init(), vorbis_decode_init(), wavpack_decode_frame(), wavpack_decode_init(), wma_decode_init(), wmavoice_decode_init(), and ws_snd_decode_init().

samples per second

Definition at line 1020 of file avcodec.h.

Referenced by aac_decode_frame(), aac_decode_init(), aac_encode_frame(), aac_encode_init(), ac3_decode_frame(), AC3_encode_init(), add_audio_stream(), add_av_stream(), add_codec(), adx_decode_header(), adx_encode_header(), aea_read_header(), aiff_read_header(), aiff_write_header(), alac_encode_init(), amr_decode_fix_avctx(), amr_read_header(), apc_read_header(), ape_read_header(), atrac3_decode_init(), au_read_header(), audio_decode_frame(), audio_encode_example(), audio_read_header(), audio_read_packet(), audio_write_header(), av_find_stream_info(), av_transcode(), av_write_header(), avcodec_string(), avisynth_read_header(), bfi_read_header(), cdata_read_header(), choose_sample_rate(), cin_read_header(), compute_frame_duration(), compute_status(), cook_decode_init(), create_audio_stream(), create_vorbis_context(), daud_header(), daud_write_header(), dca_decode_frame(), decode_frame(), decode_init(), decode_ppc(), decode_stream_header(), decode_wave_header(), do_audio_out(), dv_extract_audio_info(), dv_init_mux(), ea_read_header(), encode_init(), faac_decode_frame(), faac_decode_init(), Faac_encode_init(), faac_init_mp4(), ff_aac_ac3_parse(), ff_flac_parse_streaminfo(), ff_mov_read_esds(), ff_parse_specific_params(), ff_psy_preprocess_init(), ff_rtp_get_codec_info(), ff_wma_init(), ffm_read_header(), ffm_write_header(), film_read_header(), find_expected_header(), find_stream_in_feed(), flac_encode_init(), flac_header(), flic_read_header(), flv_read_packet(), flv_set_audio_codec(), flv_write_header(), fourxm_read_header(), g726_init(), get_aiff_header(), get_audio_clock(), get_audio_flags(), get_audio_frame_size(), get_bit_rate(), get_codec_data(), get_sindex(), gxf_write_header(), has_codec_parameters(), idcin_read_header(), iff_read_header(), init_bitstream_params(), ipmovie_read_header(), iss_read_header(), libgsm_init(), libspeex_decode_init(), matroska_read_header(), mkv_write_tracks(), mlp_parse(), mmf_read_header(), mov_read_stsd(), mov_read_trak(), mov_write_esds_tag(), mov_write_header(), mov_write_uuidprof_tag(), mp3_header_decompress(), MP3lame_encode_init(), MPA_encode_init(), mpc8_read_header(), mpc_read_header(), mpeg_mux_init(), mpegaudio_parse(), mpegps_read_packet(), mpegts_write_header(), mtv_read_header(), mxf_parse_structural_metadata(), mxf_write_generic_sound_common(), mxf_write_header(), mxf_write_wav_common(), new_audio_stream(), nsv_read_chunk(), nut_read_header(), ogg_write_header(), oggvorbis_encode_frame(), oggvorbis_init_encoder(), ogm_dshow_header(), ogm_header(), oma_read_header(), open_audio(), opt_input_file(), output_packet(), parse_adts_frame_header(), parse_ffconfig(), pcm_bluray_parse_header(), psy_3gpp_init(), qcp_read_header(), qdm2_decode_init(), r3d_read_reda(), read_desc_chunk(), read_header(), read_major_sync(), read_specific_config(), rl2_read_header(), rm_read_audio_stream_info(), rm_write_header(), roq_dpcm_encode_init(), roq_read_packet(), rtp_parse_open(), rtp_write_header(), rv10_write_header(), sdp_parse_rtpmap(), search_for_quantizers_twoloop(), seq_read_header(), show_stream(), smacker_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(), synchronize_audio(), thp_read_header(), tmv_read_header(), tta_decode_init(), tta_read_header(), twin_decode_frame(), twin_decode_init(), vid_read_header(), vid_read_packet(), video_audio_display(), vmd_read_header(), vmdaudio_decode_init(), voc_get_packet(), voc_write_packet(), vorbis_decode_init(), vorbis_header(), vqf_read_header(), wc3_read_header(), wmavoice_decode_init(), write_streamheader(), wsaud_read_header(), wsvqa_read_header(), wv_read_header(), xa_read_header(), and yop_read_header().

Multiplied by qscale for each frame and added to scene_change_score.

  • encoding: Set by user.
  • decoding: unused

Definition at line 2244 of file avcodec.h.

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

  • encoding: Set by user.
  • decoding: unused

Definition at line 1844 of file avcodec.h.

Referenced by encode_picture(), ffm_read_header(), ffm_write_header(), MPV_encode_init(), and X264_init().

Number of macroblock rows at the bottom which are skipped.

  • encoding: unused
  • decoding: Set by user.

Definition at line 2002 of file avcodec.h.

Referenced by decode_chunks(), and ff_er_frame_end().

Definition at line 1131 of file avcodec.h.

Referenced by MPV_encode_picture().

  • encoding: unused
    • decoding: Set by user.

Definition at line 2118 of file avcodec.h.

Referenced by MPV_decode_mb_internal(), and stream_component_open().

  • encoding: unused
    • decoding: Set by user.

Definition at line 2111 of file avcodec.h.

Referenced by decode_slice_header(), stream_component_open(), vc1_decode_p_mb(), vc1_decode_sequence_header(), and vp56_mc().

Number of macroblock rows at the top which are skipped.

  • encoding: unused
  • decoding: Set by user.

Definition at line 1995 of file avcodec.h.

Referenced by ff_er_add_slice(), and ff_er_frame_end().

slice count

  • encoding: Set by libavcodec.

  • decoding: Set by user (or 0).

Definition at line 1462 of file avcodec.h.

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

slice flags

  • encoding: unused
  • decoding: Set by user.

Definition at line 1794 of file avcodec.h.

Referenced by ff_draw_horiz_band().

slice offsets in the frame in bytes

  • encoding: Set/allocated by libavcodec.

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

Definition at line 1468 of file avcodec.h.

Referenced by avcodec_copy_context(), and get_slice_offset().

spatial complexity masking (0-> disabled)

  • encoding: Set by user.

  • decoding: unused

Definition at line 1409 of file avcodec.h.

Referenced by adaptive_quantization(), and MPV_encode_init().

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

Referenced by av_transcode(), ff_rate_control_init(), submit_stats(), vp8_init(), and xvid_encode_init().

pass1 encoding statistics output buffer

  • encoding: Set by libavcodec.

  • decoding: unused

Definition at line 1295 of file avcodec.h.

Referenced by do_video_out(), encode_close(), ff_write_pass1_stats(), get_stats(), MPV_common_end(), MPV_common_init(), output_packet(), vp8_encode(), vp8_free(), and xvid_encode_frame().

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

Referenced by avi_read_header(), avisynth_read_header(), and MPV_common_init().

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. While setting it to inofficial or lower will mean the encoder might use things that are not supported by all spec compliant decoders. Decoders make no difference between normal, inofficial and experimental, that is they always try to decode things when they can unless they are explicitly asked to behave stupid (=strictly conform to the specs)

Definition at line 1217 of file avcodec.h.

Referenced by choose_pixel_fmt(), decode_frame(), encode_init(), ff_fix_long_p_mvs(), ff_get_best_fcode(), ffm_read_header(), ffm_write_header(), find_frame_rate_index(), libgsm_init(), mov_get_codec_tag(), mp3_header_compress(), MPV_encode_init(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), and parse_ffconfig().

Some codecs need additional format info.

It is stored here. If any muxer uses this then ALL demuxers/parsers AND encoders for the specific codec MUST set it correctly otherwise stream copy breaks. In general use of this field by muxers is not recommanded.

  • encoding: Set by libavcodec.
  • decoding: Set by libavcodec. (FIXME: Is this OK?)

Definition at line 927 of file avcodec.h.

Referenced by decode_frame(), dvbsub_init_decoder(), ff_mpa_decode_header(), mpeg1_decode_sequence(), mpeg_decode_postinit(), mpeg_decode_sequence_extension(), mpegvideo_extract_headers(), pmt_cb(), rv10_decode_init(), rv20_decode_picture_header(), and vcr2_init_sequence().

temporary complexity masking (0-> disabled)

  • encoding: Set by user.

  • decoding: unused

Definition at line 1402 of file avcodec.h.

Referenced by adaptive_quantization(), and MPV_encode_init().

thread opaque Can be used by execute() to store some per AVCodecContext stuff.

Definition at line 1958 of file avcodec.h.

Referenced by avcodec_close(), avcodec_copy_context(), avcodec_thread_execute(), avcodec_thread_execute2(), avcodec_thread_free(), avcodec_thread_init(), and worker().

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

Referenced by av_find_stream_info(), av_transcode(), compute_frame_duration(), compute_pkt_fields2(), ff_h264_decode_init(), mpeg_decode_postinit(), opt_input_file(), output_packet(), and vp8_encode().

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.

Definition at line 960 of file avcodec.h.

Referenced by add_av_stream(), add_codec(), add_video_stream(), av_find_stream_info(), av_transcode(), av_write_header(), avcodec_get_context_defaults2(), avcodec_string(), avi_write_header(), avs_read_packet(), cmv_process_header(), compute_frame_duration(), compute_pkt_fields(), compute_pkt_fields2(), compute_status(), dc1394_read_common(), decode_frame(), decode_seq_header(), decode_sequence_header_adv(), decode_slice_header(), decode_vol_header(), decode_vop_header(), dirac_header(), do_audio_out(), do_video_out(), do_video_stats(), dump_stream_format(), dv_extract_video_info(), ea_read_header(), encode_ext_header(), encode_init(), estimate_best_b_count(), ff_dirac_schro_get_video_format_idx(), ff_flv_encode_picture_header(), ff_h261_encode_picture_header(), ff_h263_show_pict_info(), ff_h264_decode_init(), ff_parse_specific_params(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_rm_read_mdpr_codecdata(), ff_set_mpeg4_time(), ff_vbv_update(), ff_vdpau_mpeg4_decode_picture(), ff_xvid_rate_control_init(), ff_xvid_rate_estimate_qscale(), ffm_read_header(), ffm_write_header(), find_frame_rate_index(), flv_write_header(), gif_write_video(), grab_read_header(), h261_decode_picture_header(), h263_decode_picture_header(), h263_encode_picture_header(), init_pass2(), libdirac_decode_frame(), libdirac_encode_init(), libschroedinger_encode_init(), libschroedinger_handle_first_access_unit(), matroska_read_header(), mkv_write_tracks(), modify_qscale(), mov_write_header(), mov_write_uuidprof_tag(), mpeg4_encode_gop_header(), mpeg4_encode_picture_header(), mpeg4_encode_vol_header(), mpeg_decode_postinit(), mpegts_write_header(), mpegvideo_extract_headers(), mpegvideo_parse(), MPV_encode_init(), MPV_encode_picture(), mxf_write_header(), new_audio_stream(), new_video_stream(), ogg_write_header(), oggvorbis_encode_frame(), ogm_dshow_header(), ogm_header(), opt_input_file(), opt_target(), output_packet(), output_picture2(), parse_ffconfig(), parse_source_parameters(), r3d_read_rdvo(), r3d_read_red1(), r3d_read_redv(), r3d_seek(), rm_write_header(), rtp_write_header(), set_frame_distances(), show_stream(), swf_read_packet(), swf_write_header(), tb_unreliable(), tgq_decode_init(), tgv_decode_init(), theora_header(), tqi_decode_init(), txd_read_header(), v4l2_read_header(), vaapi_mpeg4_start_frame(), vfw_read_header(), video_encode_example(), vp8_init(), write_audio_frame(), write_trailer(), write_video_frame(), x11grab_read_header(), X264_init(), xvid_correct_framerate(), and xvid_encode_init().

GOP timecode frame start number, in non drop frame format

  • encoding: Set by user.

  • decoding: unused

Definition at line 2318 of file avcodec.h.

Referenced by mpeg1_encode_sequence_header().

trellis RD quantization

  • encoding: Set by user.

  • decoding: unused

Definition at line 2188 of file avcodec.h.

Referenced by encode_block(), encode_end(), encode_init(), MPV_encode_init(), X264_init(), and xvid_encode_init().

Sets whether to use LPC mode - used by FLAC encoder.

  • encoding: Set by user.
  • decoding: unused

Definition at line 2273 of file avcodec.h.

Referenced by flac_encode_init().

explicit P-frame weighted prediction analysis method 0: off 1: fast blind weighting (one reference duplicate with -1 offset) 2: smart weighting (full fade detection analysis)

  • encoding: Set by user.

  • decoding: unused

Definition at line 2473 of file avcodec.h.

Referenced by X264_init().

picture width / height.

  • encoding: MUST be set by user.
  • decoding: Set by libavcodec. Note: For compatibility it is possible to set this instead of coded_width/height before decoding.

Definition at line 970 of file avcodec.h.

Referenced by aasc_decode_frame(), add_av_stream(), add_codec(), add_video_stream(), alloc_blocks(), alloc_picture(), asf_read_header(), asf_write_header1(), aura_decode_frame(), aura_decode_init(), av_mpeg4_decode_header(), av_transcode(), av_write_header(), avcodec_default_get_buffer(), avcodec_default_reget_buffer(), avcodec_encode_video(), avcodec_open(), avcodec_set_dimensions(), avcodec_string(), avi_read_header(), avi_write_header(), avisynth_read_header(), avs_read_packet(), bethsoftvid_decode_frame(), bfi_decode_frame(), bfi_decode_init(), bfi_read_header(), bink_decode_plane(), bmp_decode_frame(), bmp_encode_frame(), cdg_decode_init(), cin_read_header(), cinepak_decode(), cinepak_decode_init(), cinvideo_decode_frame(), cinvideo_decode_init(), cmv_decode_inter(), cmv_decode_intra(), cmv_process_header(), codec_reinit(), common_init(), common_init_after_header(), compute_status(), cyuv_decode_init(), dc1394_read_common(), decode_13(), decode_frame(), decode_frame_byterun1(), decode_frame_ilbm(), decode_i2_frame(), decode_i_frame(), decode_init(), decode_p_frame(), decode_seq_header(), decode_sequence_header_adv(), decode_slice_header(), decode_stream_header(), dnxhd_decode_frame(), dnxhd_encode_init(), dnxhd_write_header(), do_video_out(), do_video_stats(), dump_stream_format(), dv_extract_video_info(), dv_write_pack(), dvbsub_parse_region_segment(), dvvideo_init_encoder(), dxa_read_header(), ea_read_header(), encode_frame(), encode_init(), encode_picture_ls(), escape124_decode_frame(), escape124_decode_init(), estimate_best_b_count(), ff_ccitt_unpack(), ff_create_schro_frame(), ff_dirac_schro_get_video_format_idx(), ff_dnxhd_find_cid(), ff_dv_codec_profile(), ff_pnm_decode_header(), ff_print_debug_info(), ff_rm_read_mdpr_codecdata(), ff_rv34_decode_init(), ffm_read_header(), ffm_write_header(), fill_picture_parameters(), film_read_header(), find_stream_in_feed(), flashsv_decode_frame(), flashsv_encode_init(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), flic_read_header(), fourxm_read_header(), frame_start(), gif_encode_init(), gif_image_write_header(), gif_image_write_image(), gif_write_header(), gif_write_video(), grab_read_header(), halfpel_interpol(), has_codec_parameters(), idcin_decode_vlcs(), idcin_read_header(), iff_read_header(), img_read_header(), img_read_packet(), indeo3_decode_init(), init_bundles(), ipmovie_read_header(), ipvideo_decode_init(), ipvideo_decode_opcodes(), ir2_decode_frame(), iv_decode_frame(), libdirac_decode_frame(), libdirac_encode_frame(), libdirac_encode_init(), libopenjpeg_decode_frame(), libschroedinger_decode_frame(), libschroedinger_encode_init(), libschroedinger_frame_from_data(), libschroedinger_handle_first_access_unit(), matroska_read_header(), mimic_decode_frame(), mkv_write_tracks(), mm_decode_intra(), mov_read_stsd(), mov_read_trak(), mov_write_avid_tag(), mov_write_header(), mov_write_tkhd_tag(), mov_write_uuidprof_tag(), mov_write_video_tag(), mp_decode_frame(), mp_decode_frame_helper(), mp_decode_init(), mp_decode_line(), mp_read_changes_map(), mpegvideo_extract_headers(), MPV_encode_init(), msrle_decode_frame(), msrle_decode_pal4(), msvideo1_decode_16bit(), msvideo1_decode_8bit(), mtv_read_header(), mxf_parse_mpeg2_frame(), mxf_parse_structural_metadata(), mxf_write_cdci_common(), new_video_stream(), nsv_parse_NSVs_header(), nut_read_header(), nuv_header(), ogm_dshow_header(), ogm_header(), open_video(), opt_input_file(), output_packet(), pam_encode_frame(), parse_ffconfig(), parse_h264_sdp_line(), pcx_decode_frame(), pcx_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), pre_process_video_frame(), print_report(), ptx_decode_frame(), qtrle_encode_frame(), qtrle_encode_init(), qtrle_encode_line(), queue_picture(), r3d_read_red1(), raw_decode(), raw_encode(), raw_init_decoder(), read_header(), read_packet(), read_seek(), 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(), seq_read_header(), show_stream(), siff_parse_vbv1(), smacker_read_header(), smc_decode_stream(), sp5x_decode_frame(), str_read_packet(), sunrast_decode_frame(), svq1_decode_init(), svq1_encode_end(), svq1_encode_init(), svq3_decode_init(), swf_write_header(), swf_write_video(), targa_encode_frame(), tgq_decode_frame(), tgv_decode_frame(), tgv_decode_inter(), theora_header(), thp_read_header(), tiff_decode_tag(), tm2_decode_blocks(), tmv_decode_frame(), tmv_read_header(), tqi_decode_frame(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), truemotion1_decode_header(), truemotion1_decode_init(), txd_decode_frame(), ulti_decode_init(), v4l2_read_header(), vb_decode_framedata(), vc1_decode_init(), vc1t_read_header(), vc1test_write_header(), vfw_read_header(), vid_read_header(), vid_read_packet(), video_decode_example(), video_encode_example(), video_open(), vmd_decode(), vp3_decode_init(), vp6_parse_header(), vp8_decode(), vp8_init(), wc3_read_header(), write_streamheader(), write_trailer(), write_video_frame(), wsvqa_read_header(), x11grab_read_header(), X264_init(), xan_decode_init(), xan_wc3_copy_pixel_run(), xan_wc3_decode_frame(), xan_wc3_output_pixel_run(), xiph_parse_fmtp_pair(), xvid_encode_init(), yop_decode_frame(), yop_decode_init(), yop_read_header(), yuv4_read_header(), yuv4_read_packet(), and zmbv_me().

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

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

Definition at line 1172 of file avcodec.h.

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


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

Generated on Fri Oct 26 02:36:56 2012 for FFmpeg by  doxygen 1.5.8