Go to the source code of this file.
Data Structures
main external API structure.
More...
Macros
Allow decoders to produce frames with data planes that are not aligned to CPU requirements (e.g.
More...
4
MV per MB allowed / advanced prediction for H.263.
More...
Output even those frames that might be corrupted.
More...
Request the encoder to output reconstructed frames, i.e. frames that would be produced by decoding the encoded bitstream.
More...
Signal to the encoder that the values of
AVFrame.duration are valid and should be used (typically for transferring them to output packets).
More...
Use internal 2pass ratecontrol in first pass mode.
More...
Use internal 2pass ratecontrol in second pass mode.
More...
Only decode/encode grayscale.
More...
error[?] variables will be set during encoding.
More...
Place global headers in extradata instead of every keyframe.
More...
Use only bitexact stuff (except (I)DCT).
More...
H.263 advanced intra coding / MPEG-4 AC prediction.
More...
interlaced motion estimation
More...
Allow non spec compliant speedup tricks.
More...
Place global headers at every keyframe instead of in extradata.
More...
Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries.
More...
Show all frames before the first keyframe.
More...
Export motion vectors through frame side data.
More...
Do not skip samples and export skip information as frame side data.
More...
Do not reset
ASS ReadOrder field on flush (subtitles decoding)
More...
Generate/parse ICC profiles on encode/decode, as appropriate for the type of file.
More...
Export motion vectors through frame side data.
More...
Export encoder Producer Reference Time through packet side data.
More...
The decoder will keep a reference to the frame and may reuse it later.
More...
The encoder will keep a reference to the packet and may reuse it later.
More...
chooses the one which needs the fewest bits
More...
Work around various bugs in Microsoft's broken decoders.
More...
Decode more than one frame at once.
More...
Decode more than one part of a single frame at once.
More...
do nothing (demuxer outputs a stream supposed to be already in UTF-8, or the codec is bitmap for instance)
More...
libavcodec will select the mode itself
More...
the
AVPacket data needs to be recoded to UTF-8 before being fed to the decoder, requires iconv
More...
neither convert the subtitles, nor check them for valid UTF-8
More...
HWAccel is experimental and is thus avoided in favor of non experimental codecs.
More...
Hardware acceleration should be used for decoding even if the codec level used is unknown or higher than the maximum supported level reported by the hardware driver.
More...
Hardware acceleration can output YUV pixel formats with a different chroma sampling than 4:2:0 and/or other than 8 bits per component.
More...
Hardware acceleration should still be attempted for decoding when the codec profile does not match the reported capabilities of the hardware.
More...
Some hardware decoders (namely nvdec) can either output direct decoder surfaces, or make an on-device copy and return said copy.
More...
Set if the parser has a valid file offset.
More...
Enumerations
Functions
Return the LIBAVCODEC_VERSION_INT constant.
More...
Return the libavcodec build-time configuration.
More...
Return the libavcodec license.
More...
Free the codec context and everything associated with it and write NULL to the provided pointer.
More...
Fill the parameters struct based on the values from the supplied codec context.
More...
Fill the codec context based on the values from the supplied codec parameters.
More...
Free all allocated data in the given subtitle struct.
More...
Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you do not use any horizontal padding.
More...
Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you also ensure that all line sizes are a multiple of the respective linesize_align[i].
More...
Supply raw packet data as input to a decoder.
More...
Supply a raw video or audio frame to the encoder.
More...
Read encoded data from the encoder.
More...
Retrieve a list of all supported values for a given configuration type.
More...
Iterate over all registered codec parsers.
More...
Return a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found.
More...
Find the best pixel format to convert to given a certain source pixel format.
More...
Reset the internal codec state / flush internal buffers.
More...
Return audio frame duration.
More...
Same behaviour av_fast_malloc but the buffer has additional AV_INPUT_BUFFER_PADDING_SIZE at the end which will always be 0.
More...
Same behaviour av_fast_padded_malloc except that buffer will always be 0-initialized after call.
More...
Detailed Description
Libavcodec external API header
Definition in file avcodec.h.
Macro Definition Documentation
◆ SLICE_FLAG_CODED_ORDER
#define SLICE_FLAG_CODED_ORDER 0x0001
◆ SLICE_FLAG_ALLOW_FIELD
#define SLICE_FLAG_ALLOW_FIELD 0x0002
◆ SLICE_FLAG_ALLOW_PLANE
#define SLICE_FLAG_ALLOW_PLANE 0x0004
◆ FF_CMP_SAD
◆ FF_CMP_SSE
◆ FF_CMP_SATD
◆ FF_CMP_DCT
◆ FF_CMP_PSNR
◆ FF_CMP_BIT
◆ FF_CMP_RD
◆ FF_CMP_ZERO
◆ FF_CMP_VSAD
◆ FF_CMP_VSSE
◆ FF_CMP_NSSE
◆ FF_CMP_W53
◆ FF_CMP_W97
◆ FF_CMP_DCTMAX
◆ FF_CMP_DCT264
◆ FF_CMP_MEDIAN_SAD
#define FF_CMP_MEDIAN_SAD 15
◆ FF_CMP_CHROMA
#define FF_CMP_CHROMA 256
◆ FF_MB_DECISION_SIMPLE
#define FF_MB_DECISION_SIMPLE 0
◆ FF_MB_DECISION_BITS
#define FF_MB_DECISION_BITS 1
chooses the one which needs the fewest bits
Definition at line 938 of file avcodec.h.
◆ FF_MB_DECISION_RD
#define FF_MB_DECISION_RD 2
◆ FF_COMPRESSION_DEFAULT
#define FF_COMPRESSION_DEFAULT -1
◆ FF_BUG_AUTODETECT
#define FF_BUG_AUTODETECT 1
◆ FF_BUG_XVID_ILACE
#define FF_BUG_XVID_ILACE 4
◆ FF_BUG_UMP4
◆ FF_BUG_NO_PADDING
#define FF_BUG_NO_PADDING 16
◆ FF_BUG_AMV
◆ FF_BUG_QPEL_CHROMA
#define FF_BUG_QPEL_CHROMA 64
◆ FF_BUG_STD_QPEL
#define FF_BUG_STD_QPEL 128
◆ FF_BUG_QPEL_CHROMA2
#define FF_BUG_QPEL_CHROMA2 256
◆ FF_BUG_DIRECT_BLOCKSIZE
#define FF_BUG_DIRECT_BLOCKSIZE 512
◆ FF_BUG_EDGE
◆ FF_BUG_HPEL_CHROMA
#define FF_BUG_HPEL_CHROMA 2048
◆ FF_BUG_DC_CLIP
#define FF_BUG_DC_CLIP 4096
◆ FF_BUG_MS
Work around various bugs in Microsoft's broken decoders.
Definition at line 1340 of file avcodec.h.
◆ FF_BUG_TRUNCATED
#define FF_BUG_TRUNCATED 16384
◆ FF_BUG_IEDGE
#define FF_BUG_IEDGE 32768
◆ FF_EC_GUESS_MVS
#define FF_EC_GUESS_MVS 1
◆ FF_EC_DEBLOCK
◆ FF_EC_FAVOR_INTER
#define FF_EC_FAVOR_INTER 256
◆ FF_DEBUG_PICT_INFO
#define FF_DEBUG_PICT_INFO 1
◆ FF_DEBUG_RC
◆ FF_DEBUG_BITSTREAM
#define FF_DEBUG_BITSTREAM 4
◆ FF_DEBUG_MB_TYPE
#define FF_DEBUG_MB_TYPE 8
◆ FF_DEBUG_QP
◆ FF_DEBUG_DCT_COEFF
#define FF_DEBUG_DCT_COEFF 0x00000040
◆ FF_DEBUG_SKIP
#define FF_DEBUG_SKIP 0x00000080
◆ FF_DEBUG_STARTCODE
#define FF_DEBUG_STARTCODE 0x00000100
◆ FF_DEBUG_ER
#define FF_DEBUG_ER 0x00000400
◆ FF_DEBUG_MMCO
#define FF_DEBUG_MMCO 0x00000800
◆ FF_DEBUG_BUGS
#define FF_DEBUG_BUGS 0x00001000
◆ FF_DEBUG_BUFFERS
#define FF_DEBUG_BUFFERS 0x00008000
◆ FF_DEBUG_THREADS
#define FF_DEBUG_THREADS 0x00010000
◆ FF_DEBUG_GREEN_MD
#define FF_DEBUG_GREEN_MD 0x00800000
◆ FF_DEBUG_NOMC
#define FF_DEBUG_NOMC 0x01000000
◆ FF_DCT_AUTO
◆ FF_DCT_FASTINT
◆ FF_DCT_INT
◆ FF_DCT_MMX
◆ FF_DCT_ALTIVEC
◆ FF_DCT_FAAN
◆ FF_DCT_NEON
◆ FF_IDCT_AUTO
◆ FF_IDCT_INT
◆ FF_IDCT_SIMPLE
◆ FF_IDCT_SIMPLEMMX
#define FF_IDCT_SIMPLEMMX 3
◆ FF_IDCT_ARM
◆ FF_IDCT_ALTIVEC
#define FF_IDCT_ALTIVEC 8
◆ FF_IDCT_SIMPLEARM
#define FF_IDCT_SIMPLEARM 10
◆ FF_IDCT_XVID
◆ FF_IDCT_SIMPLEARMV5TE
#define FF_IDCT_SIMPLEARMV5TE 16
◆ FF_IDCT_SIMPLEARMV6
#define FF_IDCT_SIMPLEARMV6 17
◆ FF_IDCT_FAAN
◆ FF_IDCT_SIMPLENEON
#define FF_IDCT_SIMPLENEON 22
◆ FF_IDCT_SIMPLEAUTO
#define FF_IDCT_SIMPLEAUTO 128
◆ FF_THREAD_FRAME
#define FF_THREAD_FRAME 1
Decode more than one frame at once.
Definition at line 1572 of file avcodec.h.
◆ FF_THREAD_SLICE
#define FF_THREAD_SLICE 2
Decode more than one part of a single frame at once.
Definition at line 1573 of file avcodec.h.
◆ FF_CODEC_PROPERTY_LOSSLESS
#define FF_CODEC_PROPERTY_LOSSLESS 0x00000001
◆ FF_CODEC_PROPERTY_CLOSED_CAPTIONS
#define FF_CODEC_PROPERTY_CLOSED_CAPTIONS 0x00000002
◆ FF_CODEC_PROPERTY_FILM_GRAIN
#define FF_CODEC_PROPERTY_FILM_GRAIN 0x00000004
◆ FF_SUB_CHARENC_MODE_DO_NOTHING
#define FF_SUB_CHARENC_MODE_DO_NOTHING -1
do nothing (demuxer outputs a stream supposed to be already in UTF-8, or the codec is bitmap for instance)
Definition at line 1720 of file avcodec.h.
◆ FF_SUB_CHARENC_MODE_AUTOMATIC
#define FF_SUB_CHARENC_MODE_AUTOMATIC 0
libavcodec will select the mode itself
Definition at line 1721 of file avcodec.h.
◆ FF_SUB_CHARENC_MODE_PRE_DECODER
#define FF_SUB_CHARENC_MODE_PRE_DECODER 1
the AVPacket data needs to be recoded to UTF-8 before being fed to the decoder, requires iconv
Definition at line 1722 of file avcodec.h.
◆ FF_SUB_CHARENC_MODE_IGNORE
#define FF_SUB_CHARENC_MODE_IGNORE 2
neither convert the subtitles, nor check them for valid UTF-8
Definition at line 1723 of file avcodec.h.
◆ AV_PARSER_PTS_NB
#define AV_PARSER_PTS_NB 4
◆ PARSER_FLAG_COMPLETE_FRAMES
#define PARSER_FLAG_COMPLETE_FRAMES 0x0001
◆ PARSER_FLAG_ONCE
#define PARSER_FLAG_ONCE 0x0002
◆ PARSER_FLAG_FETCHED_OFFSET
#define PARSER_FLAG_FETCHED_OFFSET 0x0004
Set if the parser has a valid file offset.
Definition at line 2612 of file avcodec.h.
◆ PARSER_FLAG_USE_CODEC_TS
#define PARSER_FLAG_USE_CODEC_TS 0x1000