libavcodec/avcodec.h File Reference

external API header More...

#include <errno.h>
#include "libavcore/samplefmt.h"
#include "libavutil/avutil.h"
#include "libavutil/cpu.h"
#include "libavcore/audioconvert.h"

Go to the source code of this file.

Data Structures

struct  RcOverride
struct  AVPanScan
 Pan Scan area. More...
struct  AVPacket
struct  AVFrame
 Audio Video Frame. More...
struct  AVCodecContext
 main external API structure. More...
struct  AVProfile
 AVProfile. More...
struct  AVCodec
 AVCodec. More...
struct  AVHWAccel
 AVHWAccel. More...
struct  AVPicture
 four components are given, that's all. More...
struct  AVPaletteControl
struct  AVSubtitleRect
struct  AVSubtitle
struct  AVCodecParserContext
struct  AVCodecParser
struct  AVBitStreamFilterContext
struct  AVBitStreamFilter

Defines

#define LIBAVCODEC_VERSION_MAJOR   52
#define LIBAVCODEC_VERSION_MINOR   108
#define LIBAVCODEC_VERSION_MICRO   0
#define LIBAVCODEC_VERSION_INT
#define LIBAVCODEC_VERSION
#define LIBAVCODEC_BUILD   LIBAVCODEC_VERSION_INT
#define LIBAVCODEC_IDENT   "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
#define FF_API_PALETTE_CONTROL   (LIBAVCODEC_VERSION_MAJOR < 54)
 Those FF_API_* defines are not part of public API.
#define FF_API_MM_FLAGS   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_OPT_SHOW   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_AUDIO_OLD   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_VIDEO_OLD   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_SUBTITLE_OLD   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_USE_LPC   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_SET_STRING_OLD   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_INOFFICIAL   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_OLD_SAMPLE_FMT   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_API_OLD_AUDIOCONVERT   (LIBAVCODEC_VERSION_MAJOR < 53)
#define FF_INTERNALC_MEM_TYPE   unsigned int
#define CodecType   AVMediaType
#define CODEC_TYPE_UNKNOWN   AVMEDIA_TYPE_UNKNOWN
#define CODEC_TYPE_VIDEO   AVMEDIA_TYPE_VIDEO
#define CODEC_TYPE_AUDIO   AVMEDIA_TYPE_AUDIO
#define CODEC_TYPE_DATA   AVMEDIA_TYPE_DATA
#define CODEC_TYPE_SUBTITLE   AVMEDIA_TYPE_SUBTITLE
#define CODEC_TYPE_ATTACHMENT   AVMEDIA_TYPE_ATTACHMENT
#define CODEC_TYPE_NB   AVMEDIA_TYPE_NB
#define SampleFormat   AVSampleFormat
#define SAMPLE_FMT_NONE   AV_SAMPLE_FMT_NONE
#define SAMPLE_FMT_U8   AV_SAMPLE_FMT_U8
#define SAMPLE_FMT_S16   AV_SAMPLE_FMT_S16
#define SAMPLE_FMT_S32   AV_SAMPLE_FMT_S32
#define SAMPLE_FMT_FLT   AV_SAMPLE_FMT_FLT
#define SAMPLE_FMT_DBL   AV_SAMPLE_FMT_DBL
#define SAMPLE_FMT_NB   AV_SAMPLE_FMT_NB
#define CH_FRONT_LEFT   AV_CH_FRONT_LEFT
#define CH_FRONT_RIGHT   AV_CH_FRONT_RIGHT
#define CH_FRONT_CENTER   AV_CH_FRONT_CENTER
#define CH_LOW_FREQUENCY   AV_CH_LOW_FREQUENCY
#define CH_BACK_LEFT   AV_CH_BACK_LEFT
#define CH_BACK_RIGHT   AV_CH_BACK_RIGHT
#define CH_FRONT_LEFT_OF_CENTER   AV_CH_FRONT_LEFT_OF_CENTER
#define CH_FRONT_RIGHT_OF_CENTER   AV_CH_FRONT_RIGHT_OF_CENTER
#define CH_BACK_CENTER   AV_CH_BACK_CENTER
#define CH_SIDE_LEFT   AV_CH_SIDE_LEFT
#define CH_SIDE_RIGHT   AV_CH_SIDE_RIGHT
#define CH_TOP_CENTER   AV_CH_TOP_CENTER
#define CH_TOP_FRONT_LEFT   AV_CH_TOP_FRONT_LEFT
#define CH_TOP_FRONT_CENTER   AV_CH_TOP_FRONT_CENTER
#define CH_TOP_FRONT_RIGHT   AV_CH_TOP_FRONT_RIGHT
#define CH_TOP_BACK_LEFT   AV_CH_TOP_BACK_LEFT
#define CH_TOP_BACK_CENTER   AV_CH_TOP_BACK_CENTER
#define CH_TOP_BACK_RIGHT   AV_CH_TOP_BACK_RIGHT
#define CH_STEREO_LEFT   AV_CH_STEREO_LEFT
#define CH_STEREO_RIGHT   AV_CH_STEREO_RIGHT
#define CH_LAYOUT_NATIVE   AV_CH_LAYOUT_NATIVE
 Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output to be the native codec channel order.
#define CH_LAYOUT_MONO   AV_CH_LAYOUT_MONO
#define CH_LAYOUT_STEREO   AV_CH_LAYOUT_STEREO
#define CH_LAYOUT_2_1   AV_CH_LAYOUT_2_1
#define CH_LAYOUT_SURROUND   AV_CH_LAYOUT_SURROUND
#define CH_LAYOUT_4POINT0   AV_CH_LAYOUT_4POINT0
#define CH_LAYOUT_2_2   AV_CH_LAYOUT_2_2
#define CH_LAYOUT_QUAD   AV_CH_LAYOUT_QUAD
#define CH_LAYOUT_5POINT0   AV_CH_LAYOUT_5POINT0
#define CH_LAYOUT_5POINT1   AV_CH_LAYOUT_5POINT1
#define CH_LAYOUT_5POINT0_BACK   AV_CH_LAYOUT_5POINT0_BACK
#define CH_LAYOUT_5POINT1_BACK   AV_CH_LAYOUT_5POINT1_BACK
#define CH_LAYOUT_7POINT0   AV_CH_LAYOUT_7POINT0
#define CH_LAYOUT_7POINT1   AV_CH_LAYOUT_7POINT1
#define CH_LAYOUT_7POINT1_WIDE   AV_CH_LAYOUT_7POINT1_WIDE
#define CH_LAYOUT_STEREO_DOWNMIX   AV_CH_LAYOUT_STEREO_DOWNMIX
#define AVCODEC_MAX_AUDIO_FRAME_SIZE   192000
#define FF_INPUT_BUFFER_PADDING_SIZE   8
 Required number of additionally allocated bytes at the end of the input bitstream for decoding.
#define FF_MIN_BUFFER_SIZE   16384
 minimum encoding buffer size Used to avoid some checks during header writing.
#define FF_MAX_B_FRAMES   16
#define CODEC_FLAG_QSCALE   0x0002
 Use fixed qscale.
#define CODEC_FLAG_4MV   0x0004
 4 MV per MB allowed / advanced prediction for H.263.
#define CODEC_FLAG_QPEL   0x0010
 Use qpel MC.
#define CODEC_FLAG_GMC   0x0020
 Use GMC.
#define CODEC_FLAG_MV0   0x0040
 Always try a MB with MV=<0,0>.
#define CODEC_FLAG_PART   0x0080
 Use data partitioning.
#define CODEC_FLAG_INPUT_PRESERVED   0x0100
 The parent program guarantees that the input for B-frames containing streams is not written to for at least s->max_b_frames+1 frames, if this is not set the input will be copied.
#define CODEC_FLAG_PASS1   0x0200
 Use internal 2pass ratecontrol in first pass mode.
#define CODEC_FLAG_PASS2   0x0400
 Use internal 2pass ratecontrol in second pass mode.
#define CODEC_FLAG_EXTERN_HUFF   0x1000
 Use external Huffman table (for MJPEG).
#define CODEC_FLAG_GRAY   0x2000
 Only decode/encode grayscale.
#define CODEC_FLAG_EMU_EDGE   0x4000
 Don't draw edges.
#define CODEC_FLAG_PSNR   0x8000
 error[?] variables will be set during encoding.
#define CODEC_FLAG_TRUNCATED   0x00010000
#define CODEC_FLAG_NORMALIZE_AQP   0x00020000
 Normalize adaptive quantization.
#define CODEC_FLAG_INTERLACED_DCT   0x00040000
 Use interlaced DCT.
#define CODEC_FLAG_LOW_DELAY   0x00080000
 Force low delay.
#define CODEC_FLAG_ALT_SCAN   0x00100000
 Use alternate scan.
#define CODEC_FLAG_GLOBAL_HEADER   0x00400000
 Place global headers in extradata instead of every keyframe.
#define CODEC_FLAG_BITEXACT   0x00800000
 Use only bitexact stuff (except (I)DCT).
#define CODEC_FLAG_AC_PRED   0x01000000
 H.263 advanced intra coding / MPEG-4 AC prediction.
#define CODEC_FLAG_H263P_UMV   0x02000000
 unlimited motion vector
#define CODEC_FLAG_CBP_RD   0x04000000
 Use rate distortion optimization for cbp.
#define CODEC_FLAG_QP_RD   0x08000000
 Use rate distortion optimization for qp selectioon.
#define CODEC_FLAG_H263P_AIV   0x00000008
 H.263 alternative inter VLC.
#define CODEC_FLAG_OBMC   0x00000001
 OBMC.
#define CODEC_FLAG_LOOP_FILTER   0x00000800
 loop filter
#define CODEC_FLAG_H263P_SLICE_STRUCT   0x10000000
#define CODEC_FLAG_INTERLACED_ME   0x20000000
 interlaced motion estimation
#define CODEC_FLAG_SVCD_SCAN_OFFSET   0x40000000
 Will reserve space for SVCD scan offset user data.
#define CODEC_FLAG_CLOSED_GOP   0x80000000
#define CODEC_FLAG2_FAST   0x00000001
 Allow non spec compliant speedup tricks.
#define CODEC_FLAG2_STRICT_GOP   0x00000002
 Strictly enforce GOP size.
#define CODEC_FLAG2_NO_OUTPUT   0x00000004
 Skip bitstream encoding.
#define CODEC_FLAG2_LOCAL_HEADER   0x00000008
 Place global headers at every keyframe instead of in extradata.
#define CODEC_FLAG2_BPYRAMID   0x00000010
 H.264 allow B-frames to be used as references.
#define CODEC_FLAG2_WPRED   0x00000020
 H.264 weighted biprediction for B-frames.
#define CODEC_FLAG2_MIXED_REFS   0x00000040
 H.264 one reference per partition, as opposed to one reference per macroblock.
#define CODEC_FLAG2_8X8DCT   0x00000080
 H.264 high profile 8x8 transform.
#define CODEC_FLAG2_FASTPSKIP   0x00000100
 H.264 fast pskip.
#define CODEC_FLAG2_AUD   0x00000200
 H.264 access unit delimiters.
#define CODEC_FLAG2_BRDO   0x00000400
 B-frame rate-distortion optimization.
#define CODEC_FLAG2_INTRA_VLC   0x00000800
 Use MPEG-2 intra VLC table.
#define CODEC_FLAG2_MEMC_ONLY   0x00001000
 Only do ME/MC (I frames -> ref, P frame -> ME+MC).
#define CODEC_FLAG2_DROP_FRAME_TIMECODE   0x00002000
 timecode is in drop frame format.
#define CODEC_FLAG2_SKIP_RD   0x00004000
 RD optimal MB level residual skipping.
#define CODEC_FLAG2_CHUNKS   0x00008000
 Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries.
#define CODEC_FLAG2_NON_LINEAR_QUANT   0x00010000
 Use MPEG-2 nonlinear quantizer.
#define CODEC_FLAG2_BIT_RESERVOIR   0x00020000
 Use a bit reservoir when encoding if possible.
#define CODEC_FLAG2_MBTREE   0x00040000
 Use macroblock tree ratecontrol (x264 only).
#define CODEC_FLAG2_PSY   0x00080000
 Use psycho visual optimizations.
#define CODEC_FLAG2_SSIM   0x00100000
 Compute SSIM during encoding, error[] values are undefined.
#define CODEC_FLAG2_INTRA_REFRESH   0x00200000
 Use periodic insertion of intra blocks instead of keyframes.
#define CODEC_CAP_DRAW_HORIZ_BAND   0x0001
 Decoder can use draw_horiz_band callback.
#define CODEC_CAP_DR1   0x0002
 Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define CODEC_CAP_PARSE_ONLY   0x0004
#define CODEC_CAP_TRUNCATED   0x0008
#define CODEC_CAP_HWACCEL   0x0010
#define CODEC_CAP_DELAY   0x0020
 Codec has a nonzero delay and needs to be fed with NULL at the end to get the delayed data.
#define CODEC_CAP_SMALL_LAST_FRAME   0x0040
 Codec can be fed a final frame with a smaller size.
#define CODEC_CAP_HWACCEL_VDPAU   0x0080
 Codec can export data for HW decoding (VDPAU).
#define CODEC_CAP_SUBFRAMES   0x0100
 Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames.
#define CODEC_CAP_EXPERIMENTAL   0x0200
 Codec is experimental and is thus avoided in favor of non experimental encoders.
#define CODEC_CAP_CHANNEL_CONF   0x0400
 Codec should fill in channel configuration and samplerate instead of container.
#define CODEC_CAP_NEG_LINESIZES   0x0800
 Codec is able to deal with negative linesizes.
#define MB_TYPE_INTRA4x4   0x0001
#define MB_TYPE_INTRA16x16   0x0002
#define MB_TYPE_INTRA_PCM   0x0004
#define MB_TYPE_16x16   0x0008
#define MB_TYPE_16x8   0x0010
#define MB_TYPE_8x16   0x0020
#define MB_TYPE_8x8   0x0040
#define MB_TYPE_INTERLACED   0x0080
#define MB_TYPE_DIRECT2   0x0100
#define MB_TYPE_ACPRED   0x0200
#define MB_TYPE_GMC   0x0400
#define MB_TYPE_SKIP   0x0800
#define MB_TYPE_P0L0   0x1000
#define MB_TYPE_P1L0   0x2000
#define MB_TYPE_P0L1   0x4000
#define MB_TYPE_P1L1   0x8000
#define MB_TYPE_L0   (MB_TYPE_P0L0 | MB_TYPE_P1L0)
#define MB_TYPE_L1   (MB_TYPE_P0L1 | MB_TYPE_P1L1)
#define MB_TYPE_L0L1   (MB_TYPE_L0 | MB_TYPE_L1)
#define MB_TYPE_QUANT   0x00010000
#define MB_TYPE_CBP   0x00020000
#define FF_COMMON_FRAME
#define FF_QSCALE_TYPE_MPEG1   0
#define FF_QSCALE_TYPE_MPEG2   1
#define FF_QSCALE_TYPE_H264   2
#define FF_QSCALE_TYPE_VP56   3
#define FF_BUFFER_TYPE_INTERNAL   1
#define FF_BUFFER_TYPE_USER   2
 direct rendering buffers (image is (de)allocated by user)
#define FF_BUFFER_TYPE_SHARED   4
 Buffer from somewhere else; don't deallocate image (data/base), all other tables are not shared.
#define FF_BUFFER_TYPE_COPY   8
 Just a (modified) copy of some other buffer, don't deallocate anything.
#define FF_I_TYPE   1
 Intra.
#define FF_P_TYPE   2
 Predicted.
#define FF_B_TYPE   3
 Bi-dir predicted.
#define FF_S_TYPE   4
 S(GMC)-VOP MPEG4.
#define FF_SI_TYPE   5
 Switching Intra.
#define FF_SP_TYPE   6
 Switching Predicted.
#define FF_BI_TYPE   7
#define FF_BUFFER_HINTS_VALID   0x01
#define FF_BUFFER_HINTS_READABLE   0x02
#define FF_BUFFER_HINTS_PRESERVE   0x04
#define FF_BUFFER_HINTS_REUSABLE   0x08
#define AV_PKT_FLAG_KEY   0x0001
#define PKT_FLAG_KEY   AV_PKT_FLAG_KEY
#define FF_ASPECT_EXTENDED   15
#define FF_RC_STRATEGY_XVID   1
#define FF_BUG_AUTODETECT   1
 autodetection
#define FF_BUG_OLD_MSMPEG4   2
#define FF_BUG_XVID_ILACE   4
#define FF_BUG_UMP4   8
#define FF_BUG_NO_PADDING   16
#define FF_BUG_AMV   32
#define FF_BUG_AC_VLC   0
 Will be removed, libavcodec can now handle these non-compliant files by default.
#define FF_BUG_QPEL_CHROMA   64
#define FF_BUG_STD_QPEL   128
#define FF_BUG_QPEL_CHROMA2   256
#define FF_BUG_DIRECT_BLOCKSIZE   512
#define FF_BUG_EDGE   1024
#define FF_BUG_HPEL_CHROMA   2048
#define FF_BUG_DC_CLIP   4096
#define FF_BUG_MS   8192
 Work around various bugs in Microsoft's broken decoders.
#define FF_BUG_TRUNCATED   16384
#define FF_COMPLIANCE_VERY_STRICT   2
 Strictly conform to an older more strict version of the spec or reference software.
#define FF_COMPLIANCE_STRICT   1
 Strictly conform to all the things in the spec no matter what consequences.
#define FF_COMPLIANCE_NORMAL   0
#define FF_COMPLIANCE_INOFFICIAL   -1
 Allow inofficial extensions (deprecated - use FF_COMPLIANCE_UNOFFICIAL instead).
#define FF_COMPLIANCE_UNOFFICIAL   -1
 Allow unofficial extensions.
#define FF_COMPLIANCE_EXPERIMENTAL   -2
 Allow nonstandardized experimental things.
#define FF_ER_CAREFUL   1
#define FF_ER_COMPLIANT   2
#define FF_ER_AGGRESSIVE   3
#define FF_ER_VERY_AGGRESSIVE   4
#define FF_DCT_AUTO   0
#define FF_DCT_FASTINT   1
#define FF_DCT_INT   2
#define FF_DCT_MMX   3
#define FF_DCT_MLIB   4
#define FF_DCT_ALTIVEC   5
#define FF_DCT_FAAN   6
#define FF_IDCT_AUTO   0
#define FF_IDCT_INT   1
#define FF_IDCT_SIMPLE   2
#define FF_IDCT_SIMPLEMMX   3
#define FF_IDCT_LIBMPEG2MMX   4
#define FF_IDCT_PS2   5
#define FF_IDCT_MLIB   6
#define FF_IDCT_ARM   7
#define FF_IDCT_ALTIVEC   8
#define FF_IDCT_SH4   9
#define FF_IDCT_SIMPLEARM   10
#define FF_IDCT_H264   11
#define FF_IDCT_VP3   12
#define FF_IDCT_IPP   13
#define FF_IDCT_XVIDMMX   14
#define FF_IDCT_CAVS   15
#define FF_IDCT_SIMPLEARMV5TE   16
#define FF_IDCT_SIMPLEARMV6   17
#define FF_IDCT_SIMPLEVIS   18
#define FF_IDCT_WMV2   19
#define FF_IDCT_FAAN   20
#define FF_IDCT_EA   21
#define FF_IDCT_SIMPLENEON   22
#define FF_IDCT_SIMPLEALPHA   23
#define FF_IDCT_BINK   24
#define FF_EC_GUESS_MVS   1
#define FF_EC_DEBLOCK   2
#define FF_MM_FORCE   AV_CPU_FLAG_FORCE
#define FF_MM_MMX   AV_CPU_FLAG_MMX
#define FF_MM_3DNOW   AV_CPU_FLAG_3DNOW
#define FF_MM_MMXEXT   AV_CPU_FLAG_MMX2
#define FF_MM_MMX2   AV_CPU_FLAG_MMX2
#define FF_MM_SSE   AV_CPU_FLAG_SSE
#define FF_MM_SSE2   AV_CPU_FLAG_SSE2
#define FF_MM_SSE2SLOW   AV_CPU_FLAG_SSE2SLOW
#define FF_MM_3DNOWEXT   AV_CPU_FLAG_3DNOWEXT
#define FF_MM_SSE3   AV_CPU_FLAG_SSE3
#define FF_MM_SSE3SLOW   AV_CPU_FLAG_SSE3SLOW
#define FF_MM_SSSE3   AV_CPU_FLAG_SSSE3
#define FF_MM_SSE4   AV_CPU_FLAG_SSE4
#define FF_MM_SSE42   AV_CPU_FLAG_SSE42
#define FF_MM_IWMMXT   AV_CPU_FLAG_IWMMXT
#define FF_MM_ALTIVEC   AV_CPU_FLAG_ALTIVEC
#define FF_PRED_LEFT   0
#define FF_PRED_PLANE   1
#define FF_PRED_MEDIAN   2
#define FF_DEBUG_PICT_INFO   1
#define FF_DEBUG_RC   2
#define FF_DEBUG_BITSTREAM   4
#define FF_DEBUG_MB_TYPE   8
#define FF_DEBUG_QP   16
#define FF_DEBUG_MV   32
#define FF_DEBUG_DCT_COEFF   0x00000040
#define FF_DEBUG_SKIP   0x00000080
#define FF_DEBUG_STARTCODE   0x00000100
#define FF_DEBUG_PTS   0x00000200
#define FF_DEBUG_ER   0x00000400
#define FF_DEBUG_MMCO   0x00000800
#define FF_DEBUG_BUGS   0x00001000
#define FF_DEBUG_VIS_QP   0x00002000
#define FF_DEBUG_VIS_MB_TYPE   0x00004000
#define FF_DEBUG_BUFFERS   0x00008000
#define FF_DEBUG_VIS_MV_P_FOR   0x00000001
#define FF_DEBUG_VIS_MV_B_FOR   0x00000002
#define FF_DEBUG_VIS_MV_B_BACK   0x00000004
#define FF_CMP_SAD   0
#define FF_CMP_SSE   1
#define FF_CMP_SATD   2
#define FF_CMP_DCT   3
#define FF_CMP_PSNR   4
#define FF_CMP_BIT   5
#define FF_CMP_RD   6
#define FF_CMP_ZERO   7
#define FF_CMP_VSAD   8
#define FF_CMP_VSSE   9
#define FF_CMP_NSSE   10
#define FF_CMP_W53   11
#define FF_CMP_W97   12
#define FF_CMP_DCTMAX   13
#define FF_CMP_DCT264   14
#define FF_CMP_CHROMA   256
#define FF_DTG_AFD_SAME   8
#define FF_DTG_AFD_4_3   9
#define FF_DTG_AFD_16_9   10
#define FF_DTG_AFD_14_9   11
#define FF_DTG_AFD_4_3_SP_14_9   13
#define FF_DTG_AFD_16_9_SP_14_9   14
#define FF_DTG_AFD_SP_4_3   15
#define FF_DEFAULT_QUANT_BIAS   999999
#define FF_CODER_TYPE_VLC   0
#define FF_CODER_TYPE_AC   1
#define FF_CODER_TYPE_RAW   2
#define FF_CODER_TYPE_RLE   3
#define FF_CODER_TYPE_DEFLATE   4
#define SLICE_FLAG_CODED_ORDER   0x0001
 draw_horiz_band() is called in coded order instead of display
#define SLICE_FLAG_ALLOW_FIELD   0x0002
 allow draw_horiz_band() with field slices (MPEG2 field pics)
#define SLICE_FLAG_ALLOW_PLANE   0x0004
 allow draw_horiz_band() with 1 component at a time (SVQ1)
#define FF_MB_DECISION_SIMPLE   0
 uses mb_cmp
#define FF_MB_DECISION_BITS   1
 chooses the one which needs the fewest bits
#define FF_MB_DECISION_RD   2
 rate distortion
#define FF_AA_AUTO   0
#define FF_AA_FASTINT   1
#define FF_AA_INT   2
#define FF_AA_FLOAT   3
#define FF_PROFILE_UNKNOWN   -99
#define FF_PROFILE_AAC_MAIN   0
#define FF_PROFILE_AAC_LOW   1
#define FF_PROFILE_AAC_SSR   2
#define FF_PROFILE_AAC_LTP   3
#define FF_PROFILE_DTS   20
#define FF_PROFILE_DTS_ES   30
#define FF_PROFILE_DTS_96_24   40
#define FF_PROFILE_DTS_HD_HRA   50
#define FF_PROFILE_DTS_HD_MA   60
#define FF_PROFILE_H264_BASELINE   66
#define FF_PROFILE_H264_MAIN   77
#define FF_PROFILE_H264_EXTENDED   88
#define FF_PROFILE_H264_HIGH   100
#define FF_PROFILE_H264_HIGH_10   110
#define FF_PROFILE_H264_HIGH_422   122
#define FF_PROFILE_H264_HIGH_444   244
#define FF_PROFILE_H264_CAVLC_444   44
#define FF_LEVEL_UNKNOWN   -99
#define X264_PART_I4X4   0x001
#define X264_PART_I8X8   0x002
#define X264_PART_P8X8   0x010
#define X264_PART_P4X4   0x020
#define X264_PART_B8X8   0x100
#define FF_COMPRESSION_DEFAULT   -1
#define AVPALETTE_SIZE   1024
 AVPaletteControl This structure defines a method for communicating palette changes between and demuxer and a decoder.
#define AVPALETTE_COUNT   256
#define FF_LOSS_RESOLUTION   0x0001
 loss due to resolution change
#define FF_LOSS_DEPTH   0x0002
 loss due to color depth change
#define FF_LOSS_COLORSPACE   0x0004
 loss due to color space conversion
#define FF_LOSS_ALPHA   0x0008
 loss of alpha bits
#define FF_LOSS_COLORQUANT   0x0010
 loss due to color quantization
#define FF_LOSS_CHROMA   0x0020
 loss of chroma (e.g.
#define FF_ALPHA_TRANSP   0x0001
#define FF_ALPHA_SEMI_TRANSP   0x0002
#define AV_PARSER_PTS_NB   4
#define PARSER_FLAG_COMPLETE_FRAMES   0x0001
#define PARSER_FLAG_ONCE   0x0002
#define PARSER_FLAG_FETCHED_OFFSET   0x0004
 Set if the parser has a valid file offset.

Typedefs

typedef struct AVPaletteControl attribute_deprecated
typedef struct ReSampleContext ReSampleContext

Enumerations

enum  CodecID {
  CODEC_ID_NONE, CODEC_ID_MPEG1VIDEO, CODEC_ID_MPEG2VIDEO, CODEC_ID_MPEG2VIDEO_XVMC,
  CODEC_ID_H261, CODEC_ID_H263, CODEC_ID_RV10, CODEC_ID_RV20,
  CODEC_ID_MJPEG, CODEC_ID_MJPEGB, CODEC_ID_LJPEG, CODEC_ID_SP5X,
  CODEC_ID_JPEGLS, CODEC_ID_MPEG4, CODEC_ID_RAWVIDEO, CODEC_ID_MSMPEG4V1,
  CODEC_ID_MSMPEG4V2, CODEC_ID_MSMPEG4V3, CODEC_ID_WMV1, CODEC_ID_WMV2,
  CODEC_ID_H263P, CODEC_ID_H263I, CODEC_ID_FLV1, CODEC_ID_SVQ1,
  CODEC_ID_SVQ3, CODEC_ID_DVVIDEO, CODEC_ID_HUFFYUV, CODEC_ID_CYUV,
  CODEC_ID_H264, CODEC_ID_INDEO3, CODEC_ID_VP3, CODEC_ID_THEORA,
  CODEC_ID_ASV1, CODEC_ID_ASV2, CODEC_ID_FFV1, CODEC_ID_4XM,
  CODEC_ID_VCR1, CODEC_ID_CLJR, CODEC_ID_MDEC, CODEC_ID_ROQ,
  CODEC_ID_INTERPLAY_VIDEO, CODEC_ID_XAN_WC3, CODEC_ID_XAN_WC4, CODEC_ID_RPZA,
  CODEC_ID_CINEPAK, CODEC_ID_WS_VQA, CODEC_ID_MSRLE, CODEC_ID_MSVIDEO1,
  CODEC_ID_IDCIN, CODEC_ID_8BPS, CODEC_ID_SMC, CODEC_ID_FLIC,
  CODEC_ID_TRUEMOTION1, CODEC_ID_VMDVIDEO, CODEC_ID_MSZH, CODEC_ID_ZLIB,
  CODEC_ID_QTRLE, CODEC_ID_SNOW, CODEC_ID_TSCC, CODEC_ID_ULTI,
  CODEC_ID_QDRAW, CODEC_ID_VIXL, CODEC_ID_QPEG, CODEC_ID_XVID,
  CODEC_ID_PNG, CODEC_ID_PPM, CODEC_ID_PBM, CODEC_ID_PGM,
  CODEC_ID_PGMYUV, CODEC_ID_PAM, CODEC_ID_FFVHUFF, CODEC_ID_RV30,
  CODEC_ID_RV40, CODEC_ID_VC1, CODEC_ID_WMV3, CODEC_ID_LOCO,
  CODEC_ID_WNV1, CODEC_ID_AASC, CODEC_ID_INDEO2, CODEC_ID_FRAPS,
  CODEC_ID_TRUEMOTION2, CODEC_ID_BMP, CODEC_ID_CSCD, CODEC_ID_MMVIDEO,
  CODEC_ID_ZMBV, CODEC_ID_AVS, CODEC_ID_SMACKVIDEO, CODEC_ID_NUV,
  CODEC_ID_KMVC, CODEC_ID_FLASHSV, CODEC_ID_CAVS, CODEC_ID_JPEG2000,
  CODEC_ID_VMNC, CODEC_ID_VP5, CODEC_ID_VP6, CODEC_ID_VP6F,
  CODEC_ID_TARGA, CODEC_ID_DSICINVIDEO, CODEC_ID_TIERTEXSEQVIDEO, CODEC_ID_TIFF,
  CODEC_ID_GIF, CODEC_ID_FFH264, CODEC_ID_DXA, CODEC_ID_DNXHD,
  CODEC_ID_THP, CODEC_ID_SGI, CODEC_ID_C93, CODEC_ID_BETHSOFTVID,
  CODEC_ID_PTX, CODEC_ID_TXD, CODEC_ID_VP6A, CODEC_ID_AMV,
  CODEC_ID_VB, CODEC_ID_PCX, CODEC_ID_SUNRAST, CODEC_ID_INDEO4,
  CODEC_ID_INDEO5, CODEC_ID_MIMIC, CODEC_ID_RL2, CODEC_ID_8SVX_EXP,
  CODEC_ID_8SVX_FIB, CODEC_ID_ESCAPE124, CODEC_ID_DIRAC, CODEC_ID_BFI,
  CODEC_ID_CMV, CODEC_ID_MOTIONPIXELS, CODEC_ID_TGV, CODEC_ID_TGQ,
  CODEC_ID_TQI, CODEC_ID_AURA, CODEC_ID_AURA2, CODEC_ID_V210X,
  CODEC_ID_TMV, CODEC_ID_V210, CODEC_ID_DPX, CODEC_ID_MAD,
  CODEC_ID_FRWU, CODEC_ID_FLASHSV2, CODEC_ID_CDGRAPHICS, CODEC_ID_R210,
  CODEC_ID_ANM, CODEC_ID_BINKVIDEO, CODEC_ID_IFF_ILBM, CODEC_ID_IFF_BYTERUN1,
  CODEC_ID_KGV1, CODEC_ID_YOP, CODEC_ID_VP8, CODEC_ID_PICTOR,
  CODEC_ID_ANSI, CODEC_ID_A64_MULTI, CODEC_ID_A64_MULTI5, CODEC_ID_R10K,
  CODEC_ID_MXPEG, CODEC_ID_LAGARITH, CODEC_ID_PCM_S16LE = 0x10000, CODEC_ID_PCM_S16BE,
  CODEC_ID_PCM_U16LE, CODEC_ID_PCM_U16BE, CODEC_ID_PCM_S8, CODEC_ID_PCM_U8,
  CODEC_ID_PCM_MULAW, CODEC_ID_PCM_ALAW, CODEC_ID_PCM_S32LE, CODEC_ID_PCM_S32BE,
  CODEC_ID_PCM_U32LE, CODEC_ID_PCM_U32BE, CODEC_ID_PCM_S24LE, CODEC_ID_PCM_S24BE,
  CODEC_ID_PCM_U24LE, CODEC_ID_PCM_U24BE, CODEC_ID_PCM_S24DAUD, CODEC_ID_PCM_ZORK,
  CODEC_ID_PCM_S16LE_PLANAR, CODEC_ID_PCM_DVD, CODEC_ID_PCM_F32BE, CODEC_ID_PCM_F32LE,
  CODEC_ID_PCM_F64BE, CODEC_ID_PCM_F64LE, CODEC_ID_PCM_BLURAY, CODEC_ID_PCM_LXF,
  CODEC_ID_ADPCM_IMA_QT = 0x11000, CODEC_ID_ADPCM_IMA_WAV, CODEC_ID_ADPCM_IMA_DK3, CODEC_ID_ADPCM_IMA_DK4,
  CODEC_ID_ADPCM_IMA_WS, CODEC_ID_ADPCM_IMA_SMJPEG, CODEC_ID_ADPCM_MS, CODEC_ID_ADPCM_4XM,
  CODEC_ID_ADPCM_XA, CODEC_ID_ADPCM_ADX, CODEC_ID_ADPCM_EA, CODEC_ID_ADPCM_G726,
  CODEC_ID_ADPCM_CT, CODEC_ID_ADPCM_SWF, CODEC_ID_ADPCM_YAMAHA, CODEC_ID_ADPCM_SBPRO_4,
  CODEC_ID_ADPCM_SBPRO_3, CODEC_ID_ADPCM_SBPRO_2, CODEC_ID_ADPCM_THP, CODEC_ID_ADPCM_IMA_AMV,
  CODEC_ID_ADPCM_EA_R1, CODEC_ID_ADPCM_EA_R3, CODEC_ID_ADPCM_EA_R2, CODEC_ID_ADPCM_IMA_EA_SEAD,
  CODEC_ID_ADPCM_IMA_EA_EACS, CODEC_ID_ADPCM_EA_XAS, CODEC_ID_ADPCM_EA_MAXIS_XA, CODEC_ID_ADPCM_IMA_ISS,
  CODEC_ID_ADPCM_G722, CODEC_ID_AMR_NB = 0x12000, CODEC_ID_AMR_WB, CODEC_ID_RA_144 = 0x13000,
  CODEC_ID_RA_288, CODEC_ID_ROQ_DPCM = 0x14000, CODEC_ID_INTERPLAY_DPCM, CODEC_ID_XAN_DPCM,
  CODEC_ID_SOL_DPCM, CODEC_ID_MP2 = 0x15000, CODEC_ID_MP3, CODEC_ID_AAC,
  CODEC_ID_AC3, CODEC_ID_DTS, CODEC_ID_VORBIS, CODEC_ID_DVAUDIO,
  CODEC_ID_WMAV1, CODEC_ID_WMAV2, CODEC_ID_MACE3, CODEC_ID_MACE6,
  CODEC_ID_VMDAUDIO, CODEC_ID_SONIC, CODEC_ID_SONIC_LS, CODEC_ID_FLAC,
  CODEC_ID_MP3ADU, CODEC_ID_MP3ON4, CODEC_ID_SHORTEN, CODEC_ID_ALAC,
  CODEC_ID_WESTWOOD_SND1, CODEC_ID_GSM, CODEC_ID_QDM2, CODEC_ID_COOK,
  CODEC_ID_TRUESPEECH, CODEC_ID_TTA, CODEC_ID_SMACKAUDIO, CODEC_ID_QCELP,
  CODEC_ID_WAVPACK, CODEC_ID_DSICINAUDIO, CODEC_ID_IMC, CODEC_ID_MUSEPACK7,
  CODEC_ID_MLP, CODEC_ID_GSM_MS, CODEC_ID_ATRAC3, CODEC_ID_VOXWARE,
  CODEC_ID_APE, CODEC_ID_NELLYMOSER, CODEC_ID_MUSEPACK8, CODEC_ID_SPEEX,
  CODEC_ID_WMAVOICE, CODEC_ID_WMAPRO, CODEC_ID_WMALOSSLESS, CODEC_ID_ATRAC3P,
  CODEC_ID_EAC3, CODEC_ID_SIPR, CODEC_ID_MP1, CODEC_ID_TWINVQ,
  CODEC_ID_TRUEHD, CODEC_ID_MP4ALS, CODEC_ID_ATRAC1, CODEC_ID_BINKAUDIO_RDFT,
  CODEC_ID_BINKAUDIO_DCT, CODEC_ID_AAC_LATM, CODEC_ID_DVD_SUBTITLE = 0x17000, CODEC_ID_DVB_SUBTITLE,
  CODEC_ID_TEXT, CODEC_ID_XSUB, CODEC_ID_SSA, CODEC_ID_MOV_TEXT,
  CODEC_ID_HDMV_PGS_SUBTITLE, CODEC_ID_DVB_TELETEXT, CODEC_ID_SRT, CODEC_ID_TTF = 0x18000,
  CODEC_ID_PROBE = 0x19000, CODEC_ID_MPEG2TS = 0x20000, CODEC_ID_FFMETADATA = 0x21000
}
 Identify the syntax and semantics of the bitstream. More...
enum  Motion_Est_ID {
  ME_ZERO = 1, ME_FULL, ME_LOG, ME_PHODS,
  ME_EPZS, ME_X1, ME_HEX, ME_UMH,
  ME_ITER, ME_TESA
}
 motion estimation type. More...
enum  AVDiscard {
  AVDISCARD_NONE = -16, AVDISCARD_DEFAULT = 0, AVDISCARD_NONREF = 8, AVDISCARD_BIDIR = 16,
  AVDISCARD_NONKEY = 32, AVDISCARD_ALL = 48
}
enum  AVColorPrimaries {
  AVCOL_PRI_BT709 = 1, AVCOL_PRI_UNSPECIFIED = 2, AVCOL_PRI_BT470M = 4, AVCOL_PRI_BT470BG = 5,
  AVCOL_PRI_SMPTE170M = 6, AVCOL_PRI_SMPTE240M = 7, AVCOL_PRI_FILM = 8, AVCOL_PRI_NB
}
enum  AVColorTransferCharacteristic {
  AVCOL_TRC_BT709 = 1, AVCOL_TRC_UNSPECIFIED = 2, AVCOL_TRC_GAMMA22 = 4, AVCOL_TRC_GAMMA28 = 5,
  AVCOL_TRC_NB
}
enum  AVColorSpace {
  AVCOL_SPC_RGB = 0, AVCOL_SPC_BT709 = 1, AVCOL_SPC_UNSPECIFIED = 2, AVCOL_SPC_FCC = 4,
  AVCOL_SPC_BT470BG = 5, AVCOL_SPC_SMPTE170M = 6, AVCOL_SPC_SMPTE240M = 7, AVCOL_SPC_NB
}
enum  AVColorRange { AVCOL_RANGE_UNSPECIFIED = 0, AVCOL_RANGE_MPEG = 1, AVCOL_RANGE_JPEG = 2, AVCOL_RANGE_NB }
enum  AVChromaLocation {
  AVCHROMA_LOC_UNSPECIFIED = 0, AVCHROMA_LOC_LEFT = 1, AVCHROMA_LOC_CENTER = 2, AVCHROMA_LOC_TOPLEFT = 3,
  AVCHROMA_LOC_TOP = 4, AVCHROMA_LOC_BOTTOMLEFT = 5, AVCHROMA_LOC_BOTTOM = 6, AVCHROMA_LOC_NB
}
 X X 3 4 X X are luma samples, 1 2 1-6 are possible chroma positions X X 5 6 X 0 is undefined/unknown position. More...
enum  AVLPCType {
  AV_LPC_TYPE_DEFAULT = -1, AV_LPC_TYPE_NONE = 0, AV_LPC_TYPE_FIXED = 1, AV_LPC_TYPE_LEVINSON = 2,
  AV_LPC_TYPE_CHOLESKY = 3, AV_LPC_TYPE_NB
}
 LPC analysis type. More...
enum  AVSubtitleType { SUBTITLE_NONE, SUBTITLE_BITMAP, SUBTITLE_TEXT, SUBTITLE_ASS }
enum  AVLockOp { AV_LOCK_CREATE, AV_LOCK_OBTAIN, AV_LOCK_RELEASE, AV_LOCK_DESTROY }
 Lock operation used by lockmgr. More...

Functions

attribute_deprecated void av_destruct_packet_nofree (AVPacket *pkt)
void av_destruct_packet (AVPacket *pkt)
 Default packet destructor.
void av_init_packet (AVPacket *pkt)
 Initialize optional fields of a packet with default values.
int av_new_packet (AVPacket *pkt, int size)
 Allocate the payload of a packet and initialize its fields with default values.
void av_shrink_packet (AVPacket *pkt, int size)
 Reduce packet size, correctly zeroing padding.
int av_grow_packet (AVPacket *pkt, int grow_by)
 Increase packet size, correctly zeroing padding.
int av_dup_packet (AVPacket *pkt)
void av_free_packet (AVPacket *pkt)
 Free a packet.
attribute_deprecated
ReSampleContext
audio_resample_init (int output_channels, int input_channels, int output_rate, int input_rate)
ReSampleContextav_audio_resample_init (int output_channels, int input_channels, int output_rate, int input_rate, enum AVSampleFormat sample_fmt_out, enum AVSampleFormat sample_fmt_in, int filter_length, int log2_phase_count, int linear, double cutoff)
 Initialize audio resampling context.
int audio_resample (ReSampleContext *s, short *output, short *input, int nb_samples)
void audio_resample_close (ReSampleContext *s)
struct AVResampleContextav_resample_init (int out_rate, int in_rate, int filter_length, int log2_phase_count, int linear, double cutoff)
 Initialize an audio resampler.
int av_resample (struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx)
 Resample an array of samples using a previously configured context.
void av_resample_compensate (struct AVResampleContext *c, int sample_delta, int compensation_distance)
 Compensate samplerate/timestamp drift.
void av_resample_close (struct AVResampleContext *c)
int avpicture_alloc (AVPicture *picture, enum PixelFormat pix_fmt, int width, int height)
 Allocate memory for a picture.
void avpicture_free (AVPicture *picture)
 Free a picture previously allocated by avpicture_alloc().
int avpicture_fill (AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int width, int height)
 Fill in the AVPicture fields.
int avpicture_layout (const AVPicture *src, enum PixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size)
int avpicture_get_size (enum PixelFormat pix_fmt, int width, int height)
 Calculate the size in bytes that a picture of the given width and height would occupy if stored in the given picture format.
void avcodec_get_chroma_sub_sample (enum PixelFormat pix_fmt, int *h_shift, int *v_shift)
const char * avcodec_get_pix_fmt_name (enum PixelFormat pix_fmt)
void avcodec_set_dimensions (AVCodecContext *s, int width, int height)
attribute_deprecated enum
PixelFormat 
avcodec_get_pix_fmt (const char *name)
 Return the pixel format corresponding to the name name.
unsigned int avcodec_pix_fmt_to_codec_tag (enum PixelFormat pix_fmt)
 Return a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found.
size_t av_get_codec_tag_string (char *buf, size_t buf_size, unsigned int codec_tag)
 Put a string representing the codec tag codec_tag in buf.
int avcodec_get_pix_fmt_loss (enum PixelFormat dst_pix_fmt, enum PixelFormat src_pix_fmt, int has_alpha)
 Compute what kind of losses will occur when converting from one specific pixel format to another.
enum PixelFormat avcodec_find_best_pix_fmt (int64_t pix_fmt_mask, enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr)
 Find the best pixel format to convert to given a certain source pixel format.
attribute_deprecated void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
int img_get_alpha_info (const AVPicture *src, enum PixelFormat pix_fmt, int width, int height)
 Tell if an image really has transparent alpha values.
int avpicture_deinterlace (AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int width, int height)
AVCodecav_codec_next (AVCodec *c)
 If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec after c, or NULL if c is the last one.
unsigned avcodec_version (void)
 Return the LIBAVCODEC_VERSION_INT constant.
const char * avcodec_configuration (void)
 Return the libavcodec build-time configuration.
const char * avcodec_license (void)
 Return the libavcodec license.
void avcodec_init (void)
 Initialize libavcodec.
attribute_deprecated void register_avcodec (AVCodec *codec)
void avcodec_register (AVCodec *codec)
 Register the codec codec and initialize libavcodec.
AVCodecavcodec_find_encoder (enum CodecID id)
 Find a registered encoder with a matching codec ID.
AVCodecavcodec_find_encoder_by_name (const char *name)
 Find a registered encoder with the specified name.
AVCodecavcodec_find_decoder (enum CodecID id)
 Find a registered decoder with a matching codec ID.
AVCodecavcodec_find_decoder_by_name (const char *name)
 Find a registered decoder with the specified name.
void avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode)
const char * av_get_profile_name (const AVCodec *codec, int profile)
 Return a name for the specified profile, if available.
void avcodec_get_context_defaults (AVCodecContext *s)
 Set the fields of the given AVCodecContext to default values.
void avcodec_get_context_defaults2 (AVCodecContext *s, enum AVMediaType)
 THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
int avcodec_get_context_defaults3 (AVCodecContext *s, AVCodec *codec)
 THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
AVCodecContextavcodec_alloc_context (void)
 Allocate an AVCodecContext and set its fields to default values.
AVCodecContextavcodec_alloc_context2 (enum AVMediaType)
 THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
AVCodecContextavcodec_alloc_context3 (AVCodec *codec)
 THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
int avcodec_copy_context (AVCodecContext *dest, const AVCodecContext *src)
 Copy the settings of the source AVCodecContext into the destination AVCodecContext.
void avcodec_get_frame_defaults (AVFrame *pic)
 Set the fields of the given AVFrame to default values.
AVFrameavcodec_alloc_frame (void)
 Allocate an AVFrame and set its fields to default values.
int avcodec_default_get_buffer (AVCodecContext *s, AVFrame *pic)
void avcodec_default_release_buffer (AVCodecContext *s, AVFrame *pic)
int avcodec_default_reget_buffer (AVCodecContext *s, AVFrame *pic)
unsigned avcodec_get_edge_width (void)
 Return the amount of padding in pixels which the get_buffer callback must provide around the edge of the image for codecs which do not have the CODEC_FLAG_EMU_EDGE flag.
void avcodec_align_dimensions (AVCodecContext *s, int *width, int *height)
 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.
void avcodec_align_dimensions2 (AVCodecContext *s, int *width, int *height, int linesize_align[4])
 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].
attribute_deprecated int avcodec_check_dimensions (void *av_log_ctx, unsigned int w, unsigned int h)
enum PixelFormat avcodec_default_get_format (struct AVCodecContext *s, const enum PixelFormat *fmt)
int avcodec_thread_init (AVCodecContext *s, int thread_count)
void avcodec_thread_free (AVCodecContext *s)
 Free what has been allocated by avcodec_thread_init().
int avcodec_default_execute (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size)
int avcodec_default_execute2 (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2, int, int), void *arg, int *ret, int count)
int avcodec_open (AVCodecContext *avctx, AVCodec *codec)
 Initialize the AVCodecContext to use the given AVCodec.
attribute_deprecated int avcodec_decode_audio2 (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, const uint8_t *buf, int buf_size)
 Decode an audio frame from buf into samples.
int avcodec_decode_audio3 (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, AVPacket *avpkt)
 Decode the audio frame of size avpkt->size from avpkt->data into samples.
attribute_deprecated int avcodec_decode_video (AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const uint8_t *buf, int buf_size)
 Decode a video frame from buf into picture.
int avcodec_decode_video2 (AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt)
 Decode the video frame of size avpkt->size from avpkt->data into picture.
attribute_deprecated int avcodec_decode_subtitle (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const uint8_t *buf, int buf_size)
int avcodec_decode_subtitle2 (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt)
 Decode a subtitle message.
void avsubtitle_free (AVSubtitle *sub)
 Frees all allocated data in the given subtitle struct.
int avcodec_parse_frame (AVCodecContext *avctx, uint8_t **pdata, int *data_size_ptr, uint8_t *buf, int buf_size)
int avcodec_encode_audio (AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples)
 Encode an audio frame from samples into buf.
int avcodec_encode_video (AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict)
 Encode a video frame from pict into buf.
int avcodec_encode_subtitle (AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVSubtitle *sub)
int avcodec_close (AVCodecContext *avctx)
void avcodec_register_all (void)
 Register all the codecs, parsers and bitstream filters which were enabled at configuration time.
void avcodec_flush_buffers (AVCodecContext *avctx)
 Flush buffers, should be called when seeking or when switching to a different stream.
void avcodec_default_free_buffers (AVCodecContext *s)
char av_get_pict_type_char (int pict_type)
 Return a single letter to describe the given picture type pict_type.
int av_get_bits_per_sample (enum CodecID codec_id)
 Return codec bits per sample.
attribute_deprecated int av_get_bits_per_sample_format (enum AVSampleFormat sample_fmt)
AVCodecParserav_parser_next (AVCodecParser *c)
void av_register_codec_parser (AVCodecParser *parser)
AVCodecParserContextav_parser_init (int codec_id)
attribute_deprecated int av_parser_parse (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts)
int av_parser_parse2 (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos)
 Parse a packet.
int av_parser_change (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
void av_parser_close (AVCodecParserContext *s)
void av_register_bitstream_filter (AVBitStreamFilter *bsf)
AVBitStreamFilterContextav_bitstream_filter_init (const char *name)
int av_bitstream_filter_filter (AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
void av_bitstream_filter_close (AVBitStreamFilterContext *bsf)
AVBitStreamFilterav_bitstream_filter_next (AVBitStreamFilter *f)
void * av_fast_realloc (void *ptr, unsigned int *size, FF_INTERNALC_MEM_TYPE min_size)
 Reallocate the given block if it is not large enough, otherwise do nothing.
void av_fast_malloc (void *ptr, unsigned int *size, FF_INTERNALC_MEM_TYPE min_size)
 Allocate a buffer, reusing the given one if large enough.
attribute_deprecated void av_picture_data_copy (uint8_t *dst_data[4], int dst_linesize[4], uint8_t *src_data[4], int src_linesize[4], enum PixelFormat pix_fmt, int width, int height)
void av_picture_copy (AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int width, int height)
 Copy image src to dst.
int av_picture_crop (AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int top_band, int left_band)
 Crop image top and left side.
int av_picture_pad (AVPicture *dst, const AVPicture *src, int height, int width, enum PixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color)
 Pad image.
unsigned int av_xiphlacing (unsigned char *s, unsigned int v)
 Encode extradata length to a buffer.
attribute_deprecated int av_parse_video_frame_size (int *width_ptr, int *height_ptr, const char *str)
 Parse str and put in width_ptr and height_ptr the detected values.
attribute_deprecated int av_parse_video_frame_rate (AVRational *frame_rate, const char *str)
 Parse str and store the detected values in *frame_rate.
void av_log_missing_feature (void *avc, const char *feature, int want_sample)
 Logs a generic warning message about a missing feature.
void av_log_ask_for_sample (void *avc, const char *msg)
 Log a generic warning message asking for a sample.
void av_register_hwaccel (AVHWAccel *hwaccel)
 Register the hardware accelerator hwaccel.
AVHWAccelav_hwaccel_next (AVHWAccel *hwaccel)
 If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL, returns the next registered hardware accelerator after hwaccel, or NULL if hwaccel is the last one.
int av_lockmgr_register (int(*cb)(void **mutex, enum AVLockOp op))
 Register a user provided lock manager supporting the operations specified by AVLockOp.


Detailed Description

external API header

Definition in file avcodec.h.


Define Documentation

#define AV_PARSER_PTS_NB   4

Definition at line 3707 of file avcodec.h.

Referenced by av_parser_parse2(), and ff_fetch_timestamp().

#define AV_PKT_FLAG_KEY   0x0001

#define AVCODEC_MAX_AUDIO_FRAME_SIZE   192000

#define AVPALETTE_COUNT   256

#define AVPALETTE_SIZE   1024

#define CH_BACK_CENTER   AV_CH_BACK_CENTER

Definition at line 449 of file avcodec.h.

#define CH_BACK_LEFT   AV_CH_BACK_LEFT

Definition at line 445 of file avcodec.h.

#define CH_BACK_RIGHT   AV_CH_BACK_RIGHT

Definition at line 446 of file avcodec.h.

#define CH_FRONT_CENTER   AV_CH_FRONT_CENTER

Definition at line 443 of file avcodec.h.

#define CH_FRONT_LEFT   AV_CH_FRONT_LEFT

Definition at line 441 of file avcodec.h.

#define CH_FRONT_LEFT_OF_CENTER   AV_CH_FRONT_LEFT_OF_CENTER

Definition at line 447 of file avcodec.h.

#define CH_FRONT_RIGHT   AV_CH_FRONT_RIGHT

Definition at line 442 of file avcodec.h.

#define CH_FRONT_RIGHT_OF_CENTER   AV_CH_FRONT_RIGHT_OF_CENTER

Definition at line 448 of file avcodec.h.

#define CH_LAYOUT_2_1   AV_CH_LAYOUT_2_1

Definition at line 470 of file avcodec.h.

#define CH_LAYOUT_2_2   AV_CH_LAYOUT_2_2

Definition at line 473 of file avcodec.h.

#define CH_LAYOUT_4POINT0   AV_CH_LAYOUT_4POINT0

Definition at line 472 of file avcodec.h.

#define CH_LAYOUT_5POINT0   AV_CH_LAYOUT_5POINT0

Definition at line 475 of file avcodec.h.

#define CH_LAYOUT_5POINT0_BACK   AV_CH_LAYOUT_5POINT0_BACK

Definition at line 477 of file avcodec.h.

#define CH_LAYOUT_5POINT1   AV_CH_LAYOUT_5POINT1

Definition at line 476 of file avcodec.h.

#define CH_LAYOUT_5POINT1_BACK   AV_CH_LAYOUT_5POINT1_BACK

Definition at line 478 of file avcodec.h.

#define CH_LAYOUT_7POINT0   AV_CH_LAYOUT_7POINT0

Definition at line 479 of file avcodec.h.

#define CH_LAYOUT_7POINT1   AV_CH_LAYOUT_7POINT1

Definition at line 480 of file avcodec.h.

#define CH_LAYOUT_7POINT1_WIDE   AV_CH_LAYOUT_7POINT1_WIDE

Definition at line 481 of file avcodec.h.

#define CH_LAYOUT_MONO   AV_CH_LAYOUT_MONO

#define CH_LAYOUT_NATIVE   AV_CH_LAYOUT_NATIVE

Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output to be the native codec channel order.

Definition at line 465 of file avcodec.h.

#define CH_LAYOUT_QUAD   AV_CH_LAYOUT_QUAD

Definition at line 474 of file avcodec.h.

#define CH_LAYOUT_STEREO   AV_CH_LAYOUT_STEREO

#define CH_LAYOUT_STEREO_DOWNMIX   AV_CH_LAYOUT_STEREO_DOWNMIX

Definition at line 482 of file avcodec.h.

#define CH_LAYOUT_SURROUND   AV_CH_LAYOUT_SURROUND

Definition at line 471 of file avcodec.h.

#define CH_LOW_FREQUENCY   AV_CH_LOW_FREQUENCY

Definition at line 444 of file avcodec.h.

Referenced by ff_ac3_parse_header().

#define CH_SIDE_LEFT   AV_CH_SIDE_LEFT

Definition at line 450 of file avcodec.h.

#define CH_SIDE_RIGHT   AV_CH_SIDE_RIGHT

Definition at line 451 of file avcodec.h.

#define CH_STEREO_LEFT   AV_CH_STEREO_LEFT

Definition at line 459 of file avcodec.h.

#define CH_STEREO_RIGHT   AV_CH_STEREO_RIGHT

Definition at line 460 of file avcodec.h.

#define CH_TOP_BACK_CENTER   AV_CH_TOP_BACK_CENTER

Definition at line 457 of file avcodec.h.

#define CH_TOP_BACK_LEFT   AV_CH_TOP_BACK_LEFT

Definition at line 456 of file avcodec.h.

#define CH_TOP_BACK_RIGHT   AV_CH_TOP_BACK_RIGHT

Definition at line 458 of file avcodec.h.

#define CH_TOP_CENTER   AV_CH_TOP_CENTER

Definition at line 452 of file avcodec.h.

#define CH_TOP_FRONT_CENTER   AV_CH_TOP_FRONT_CENTER

Definition at line 454 of file avcodec.h.

#define CH_TOP_FRONT_LEFT   AV_CH_TOP_FRONT_LEFT

Definition at line 453 of file avcodec.h.

#define CH_TOP_FRONT_RIGHT   AV_CH_TOP_FRONT_RIGHT

Definition at line 455 of file avcodec.h.

#define CODEC_CAP_CHANNEL_CONF   0x0400

Codec should fill in channel configuration and samplerate instead of container.

Definition at line 724 of file avcodec.h.

Referenced by av_find_stream_info().

#define CODEC_CAP_DELAY   0x0020

Codec has a nonzero delay and needs to be fed with NULL at the end to get the delayed data.

If this is not set, the codec is guaranteed to never be fed with NULL data.

Definition at line 694 of file avcodec.h.

Referenced by avcodec_decode_audio3(), avcodec_decode_video2(), avcodec_encode_audio(), and avcodec_encode_video().

#define CODEC_CAP_DR1   0x0002

Codec uses get_buffer() for allocating buffers and supports custom allocators.

If not set, it might not use get_buffer() at all or use operations that assume the buffer was allocated by avcodec_default_get_buffer.

Definition at line 684 of file avcodec.h.

Referenced by show_codecs().

#define CODEC_CAP_DRAW_HORIZ_BAND   0x0001

Decoder can use draw_horiz_band callback.

Definition at line 678 of file avcodec.h.

Referenced by show_codecs().

#define CODEC_CAP_EXPERIMENTAL   0x0200

Codec is experimental and is thus avoided in favor of non experimental encoders.

Definition at line 720 of file avcodec.h.

Referenced by avcodec_find_encoder(), and find_codec_or_die().

#define CODEC_CAP_HWACCEL   0x0010

Definition at line 689 of file avcodec.h.

#define CODEC_CAP_HWACCEL_VDPAU   0x0080

#define CODEC_CAP_NEG_LINESIZES   0x0800

Codec is able to deal with negative linesizes.

Definition at line 728 of file avcodec.h.

#define CODEC_CAP_PARSE_ONLY   0x0004

Definition at line 686 of file avcodec.h.

Referenced by open_parser().

#define CODEC_CAP_SMALL_LAST_FRAME   0x0040

Codec can be fed a final frame with a smaller size.

This can be used to prevent truncation of the last audio samples.

Definition at line 699 of file avcodec.h.

Referenced by output_packet().

#define CODEC_CAP_SUBFRAMES   0x0100

Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames.

This flag is reserved to the very rare category of codecs which have a bitstream that cannot be split into frames without timeconsuming operations like full decoding. Demuxers carring such bitstreams thus may return multiple frames in a packet. This has many disadvantages like prohibiting stream copy in many cases thus it should only be considered as a last resort.

Definition at line 715 of file avcodec.h.

#define CODEC_CAP_TRUNCATED   0x0008

Definition at line 687 of file avcodec.h.

Referenced by show_codecs(), and video_decode_example().

#define CODEC_FLAG2_8X8DCT   0x00000080

H.264 high profile 8x8 transform.

Definition at line 655 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_AUD   0x00000200

H.264 access unit delimiters.

Definition at line 657 of file avcodec.h.

Referenced by X264_init(), and XAVS_init().

#define CODEC_FLAG2_BIT_RESERVOIR   0x00020000

Use a bit reservoir when encoding if possible.

Definition at line 665 of file avcodec.h.

Referenced by MP3lame_encode_init().

#define CODEC_FLAG2_BPYRAMID   0x00000010

H.264 allow B-frames to be used as references.

Definition at line 652 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_BRDO   0x00000400

B-frame rate-distortion optimization.

Definition at line 658 of file avcodec.h.

#define CODEC_FLAG2_CHUNKS   0x00008000

Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries.

Definition at line 663 of file avcodec.h.

Referenced by decode_frame(), and decode_nal_units().

#define CODEC_FLAG2_DROP_FRAME_TIMECODE   0x00002000

timecode is in drop frame format.

Definition at line 661 of file avcodec.h.

Referenced by encode_init(), and mpeg1_encode_sequence_header().

#define CODEC_FLAG2_FAST   0x00000001

Allow non spec compliant speedup tricks.

Definition at line 648 of file avcodec.h.

Referenced by decode_slice_header(), ff_h263_decode_frame(), mpeg_decode_mb(), and stream_component_open().

#define CODEC_FLAG2_FASTPSKIP   0x00000100

H.264 fast pskip.

Definition at line 656 of file avcodec.h.

Referenced by X264_init(), and XAVS_init().

#define CODEC_FLAG2_INTRA_REFRESH   0x00200000

Use periodic insertion of intra blocks instead of keyframes.

Definition at line 669 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_INTRA_VLC   0x00000800

Use MPEG-2 intra VLC table.

Definition at line 659 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG2_LOCAL_HEADER   0x00000008

Place global headers at every keyframe instead of in extradata.

Definition at line 651 of file avcodec.h.

Referenced by av_parser_change(), dump_extradata(), new_video_stream(), and remove_extradata().

#define CODEC_FLAG2_MBTREE   0x00040000

Use macroblock tree ratecontrol (x264 only).

Definition at line 666 of file avcodec.h.

Referenced by X264_init(), and XAVS_init().

#define CODEC_FLAG2_MEMC_ONLY   0x00001000

Only do ME/MC (I frames -> ref, P frame -> ME+MC).

Definition at line 660 of file avcodec.h.

Referenced by encode_frame().

#define CODEC_FLAG2_MIXED_REFS   0x00000040

H.264 one reference per partition, as opposed to one reference per macroblock.

Definition at line 654 of file avcodec.h.

Referenced by X264_init(), and XAVS_init().

#define CODEC_FLAG2_NO_OUTPUT   0x00000004

#define CODEC_FLAG2_NON_LINEAR_QUANT   0x00010000

Use MPEG-2 nonlinear quantizer.

Definition at line 664 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG2_PSY   0x00080000

Use psycho visual optimizations.

Definition at line 667 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_SKIP_RD   0x00004000

RD optimal MB level residual skipping.

Definition at line 662 of file avcodec.h.

Referenced by encode_thread().

#define CODEC_FLAG2_SSIM   0x00100000

Compute SSIM during encoding, error[] values are undefined.

Definition at line 668 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_STRICT_GOP   0x00000002

Strictly enforce GOP size.

Definition at line 649 of file avcodec.h.

Referenced by select_input_picture().

#define CODEC_FLAG2_WPRED   0x00000020

H.264 weighted biprediction for B-frames.

Definition at line 653 of file avcodec.h.

Referenced by X264_init(), and XAVS_init().

#define CODEC_FLAG_4MV   0x0004

4 MV per MB allowed / advanced prediction for H.263.

Definition at line 611 of file avcodec.h.

Referenced by check_input_motion(), encode_init(), ff_estimate_p_frame_motion(), ff_fix_long_p_mvs(), MPV_encode_init(), and parse_ffconfig().

#define CODEC_FLAG_AC_PRED   0x01000000

H.263 advanced intra coding / MPEG-4 AC prediction.

Definition at line 637 of file avcodec.h.

Referenced by mpeg4_encode_mb(), and MPV_encode_init().

#define CODEC_FLAG_ALT_SCAN   0x00100000

Use alternate scan.

Definition at line 633 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_BITEXACT   0x00800000

#define CODEC_FLAG_CBP_RD   0x04000000

Use rate distortion optimization for cbp.

Definition at line 639 of file avcodec.h.

Referenced by encode_mb_internal(), get_b_cbp(), get_p_cbp(), and MPV_encode_init().

#define CODEC_FLAG_CLOSED_GOP   0x80000000

#define CODEC_FLAG_EMU_EDGE   0x4000

#define CODEC_FLAG_EXTERN_HUFF   0x1000

Use external Huffman table (for MJPEG).

Definition at line 624 of file avcodec.h.

Referenced by ff_mjpeg_decode_init().

#define CODEC_FLAG_GLOBAL_HEADER   0x00400000

#define CODEC_FLAG_GMC   0x0020

Use GMC.

Definition at line 613 of file avcodec.h.

#define CODEC_FLAG_GRAY   0x2000

#define CODEC_FLAG_H263P_AIV   0x00000008

H.263 alternative inter VLC.

Definition at line 641 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_H263P_SLICE_STRUCT   0x10000000

Definition at line 644 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_H263P_UMV   0x02000000

unlimited motion vector

Definition at line 638 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_INPUT_PRESERVED   0x0100

The parent program guarantees that the input for B-frames containing streams is not written to for at least s->max_b_frames+1 frames, if this is not set the input will be copied.

Definition at line 621 of file avcodec.h.

Referenced by estimate_best_b_count(), and load_input_picture().

#define CODEC_FLAG_INTERLACED_DCT   0x00040000

#define CODEC_FLAG_INTERLACED_ME   0x20000000

#define CODEC_FLAG_LOOP_FILTER   0x00000800

loop filter

Definition at line 643 of file avcodec.h.

Referenced by MPV_encode_init(), and X264_init().

#define CODEC_FLAG_LOW_DELAY   0x00080000

#define CODEC_FLAG_MV0   0x0040

Always try a MB with MV=<0,0>.

Definition at line 614 of file avcodec.h.

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

#define CODEC_FLAG_NORMALIZE_AQP   0x00020000

Normalize adaptive quantization.

Definition at line 630 of file avcodec.h.

Referenced by adaptive_quantization().

#define CODEC_FLAG_OBMC   0x00000001

OBMC.

Definition at line 642 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_PART   0x0080

Use data partitioning.

Definition at line 615 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_PASS1   0x0200

#define CODEC_FLAG_PASS2   0x0400

#define CODEC_FLAG_PSNR   0x8000

error[?] variables will be set during encoding.

Definition at line 627 of file avcodec.h.

Referenced by do_video_stats(), encode_frame(), encode_thread(), estimate_best_b_count(), MPV_decode_mb_internal(), new_video_stream(), print_report(), X264_init(), and XAVS_init().

#define CODEC_FLAG_QP_RD   0x08000000

Use rate distortion optimization for qp selectioon.

Definition at line 640 of file avcodec.h.

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

#define CODEC_FLAG_QPEL   0x0010

#define CODEC_FLAG_QSCALE   0x0002

#define CODEC_FLAG_SVCD_SCAN_OFFSET   0x40000000

Will reserve space for SVCD scan offset user data.

Definition at line 646 of file avcodec.h.

Referenced by mpeg1_encode_picture_header().

#define CODEC_FLAG_TRUNCATED   0x00010000

#define CODEC_TYPE_ATTACHMENT   AVMEDIA_TYPE_ATTACHMENT

Definition at line 421 of file avcodec.h.

#define CODEC_TYPE_AUDIO   AVMEDIA_TYPE_AUDIO

Definition at line 418 of file avcodec.h.

Referenced by qt_rtp_parse_packet().

#define CODEC_TYPE_DATA   AVMEDIA_TYPE_DATA

Definition at line 419 of file avcodec.h.

#define CODEC_TYPE_NB   AVMEDIA_TYPE_NB

Definition at line 422 of file avcodec.h.

#define CODEC_TYPE_SUBTITLE   AVMEDIA_TYPE_SUBTITLE

Definition at line 420 of file avcodec.h.

#define CODEC_TYPE_UNKNOWN   AVMEDIA_TYPE_UNKNOWN

Definition at line 416 of file avcodec.h.

#define CODEC_TYPE_VIDEO   AVMEDIA_TYPE_VIDEO

Definition at line 417 of file avcodec.h.

Referenced by qt_rtp_parse_packet().

#define CodecType   AVMediaType

Definition at line 414 of file avcodec.h.

#define FF_AA_AUTO   0

Definition at line 2010 of file avcodec.h.

#define FF_AA_FASTINT   1

Definition at line 2011 of file avcodec.h.

#define FF_AA_FLOAT   3

Definition at line 2013 of file avcodec.h.

#define FF_AA_INT   2

Definition at line 2012 of file avcodec.h.

#define FF_ALPHA_SEMI_TRANSP   0x0002

Definition at line 3186 of file avcodec.h.

Referenced by get_alpha_info_pal8(), and img_get_alpha_info().

#define FF_ALPHA_TRANSP   0x0001

Definition at line 3185 of file avcodec.h.

Referenced by get_alpha_info_pal8(), and img_get_alpha_info().

#define FF_API_AUDIO_OLD   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 62 of file avcodec.h.

#define FF_API_INOFFICIAL   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 77 of file avcodec.h.

#define FF_API_MM_FLAGS   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 56 of file avcodec.h.

#define FF_API_OLD_AUDIOCONVERT   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 83 of file avcodec.h.

#define FF_API_OLD_SAMPLE_FMT   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 80 of file avcodec.h.

#define FF_API_OPT_SHOW   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 59 of file avcodec.h.

#define FF_API_PALETTE_CONTROL   (LIBAVCODEC_VERSION_MAJOR < 54)

Those FF_API_* defines are not part of public API.

They may change, break or disappear at any time.

Definition at line 53 of file avcodec.h.

#define FF_API_SET_STRING_OLD   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 74 of file avcodec.h.

#define FF_API_SUBTITLE_OLD   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 68 of file avcodec.h.

#define FF_API_USE_LPC   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 71 of file avcodec.h.

#define FF_API_VIDEO_OLD   (LIBAVCODEC_VERSION_MAJOR < 53)

Definition at line 65 of file avcodec.h.

#define FF_ASPECT_EXTENDED   15

#define FF_B_TYPE   3

Bi-dir predicted.

Definition at line 891 of file avcodec.h.

Referenced by av_get_pict_type_char(), cavs_decode_frame(), compute_pkt_fields(), decode_cabac_mb_ref(), decode_cabac_mb_skip(), decode_chunks(), decode_frame(), decode_mb_skip(), decode_nal_units(), decode_pic(), decode_slice(), decode_slice_header(), decode_vop_header(), dirac_combine_frame(), encode_mb_internal(), encode_picture(), encode_thread(), epzs_motion_search_internal(), estimate_best_b_count(), estimate_motion_thread(), ff_alloc_picture(), ff_clean_mpeg4_qscales(), ff_draw_horiz_band(), ff_er_frame_end(), ff_get_best_fcode(), ff_h263_decode_frame(), ff_h263_decode_mb(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_direct_ref_list_init(), ff_h264_fill_default_ref_list(), ff_h264_get_slice_type(), ff_init_block_index(), ff_mpeg4_get_video_packet_prefix_length(), ff_print_debug_info(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_rv34_decode_frame(), ff_set_mpeg4_time(), ff_vdpau_mpeg4_decode_picture(), ff_vdpau_mpeg_picture_complete(), ff_vdpau_vc1_decode_picture(), ff_xvid_rate_estimate_qscale(), ff_xvmc_field_start(), fill_decode_caches(), fill_picture_parameters(), fill_slice_long(), get_diff_limited_q(), get_qminmax(), get_qscale(), gxf_write_media_preamble(), h261_decode_frame(), h263_decode_picture_header(), init_pass2(), mpeg1_decode_picture(), mpeg1_encode_mb_internal(), mpeg1_encode_picture_header(), mpeg4_decode_mb(), mpeg4_decode_video_packet_header(), mpeg4_encode_mb(), mpeg4_encode_picture_header(), mpeg4_is_resync(), mpeg_decode_mb(), mpeg_decode_picture_coding_extension(), mpeg_decode_slice(), MPV_decode_mb_internal(), MPV_encode_picture(), MPV_frame_end(), MPV_frame_start(), MPV_motion_internal(), MPV_motion_lowres(), pred_weight_table(), rv10_decode_frame(), rv10_decode_packet(), rv20_decode_picture_header(), rv30_decode_mb_info(), rv34_decode_mb_header(), rv34_decode_slice(), select_input_picture(), set_frame_distances(), set_mv_intra(), slice_end(), svq1_decode_frame(), svq3_decode_frame(), svq3_decode_mb(), vaapi_mpeg2_start_frame(), vaapi_mpeg4_start_frame(), vaapi_vc1_start_frame(), vc1_decode_blocks(), vc1_decode_frame(), vc1_extract_headers(), vc1_get_MVMODE(), vc1_get_PTYPE(), vc1_has_ACPRED_bitplane(), vc1_has_DIRECTMB_bitplane(), vc1_has_OVERFLAGS_bitplane(), vc1_has_SKIPMB_bitplane(), vc1_parse_frame_header(), vc1_parse_frame_header_adv(), write_back_motion(), X264_frame(), and XAVS_frame().

#define FF_BI_TYPE   7

#define FF_BUFFER_HINTS_PRESERVE   0x04

#define FF_BUFFER_HINTS_READABLE   0x02

#define FF_BUFFER_HINTS_REUSABLE   0x08

#define FF_BUFFER_HINTS_VALID   0x01

#define FF_BUFFER_TYPE_COPY   8

Just a (modified) copy of some other buffer, don't deallocate anything.

Definition at line 886 of file avcodec.h.

Referenced by ff_copy_picture(), ff_print_debug_info(), and vp3_decode_end().

#define FF_BUFFER_TYPE_INTERNAL   1

#define FF_BUFFER_TYPE_SHARED   4

Buffer from somewhere else; don't deallocate image (data/base), all other tables are not shared.

Definition at line 885 of file avcodec.h.

Referenced by estimate_best_b_count(), ff_alloc_picture(), free_picture(), mpeg4_encode_mb(), select_input_picture(), and skip_check().

#define FF_BUFFER_TYPE_USER   2

direct rendering buffers (image is (de)allocated by user)

Definition at line 884 of file avcodec.h.

Referenced by ff_mpeg_flush(), and select_input_picture().

#define FF_BUG_AC_VLC   0

Will be removed, libavcodec can now handle these non-compliant files by default.

Definition at line 1266 of file avcodec.h.

#define FF_BUG_AMV   32

Definition at line 1265 of file avcodec.h.

Referenced by get_amv().

#define FF_BUG_AUTODETECT   1

autodetection

Definition at line 1260 of file avcodec.h.

Referenced by decode_nal_units(), decode_slice(), and ff_h263_decode_frame().

#define FF_BUG_DC_CLIP   4096

Definition at line 1273 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and ff_mpeg4_pred_dc().

#define FF_BUG_DIRECT_BLOCKSIZE   512

Definition at line 1270 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and ff_mpeg4_set_direct_mv().

#define FF_BUG_EDGE   1024

Definition at line 1271 of file avcodec.h.

Referenced by decode_vop_header(), and ff_h263_decode_frame().

#define FF_BUG_HPEL_CHROMA   2048

Definition at line 1272 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and mpeg_motion_internal().

#define FF_BUG_MS   8192

Work around various bugs in Microsoft's broken decoders.

Definition at line 1274 of file avcodec.h.

Referenced by encode_init(), mpeg4_encode_picture_header(), and mpeg4_encode_vol_header().

#define FF_BUG_NO_PADDING   16

Definition at line 1264 of file avcodec.h.

Referenced by decode_slice(), ff_h263_decode_frame(), and mpeg4_is_resync().

#define FF_BUG_OLD_MSMPEG4   2

Definition at line 1261 of file avcodec.h.

#define FF_BUG_QPEL_CHROMA   64

Definition at line 1267 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and qpel_motion().

#define FF_BUG_QPEL_CHROMA2   256

Definition at line 1269 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and qpel_motion().

#define FF_BUG_STD_QPEL   128

Definition at line 1268 of file avcodec.h.

Referenced by ff_h263_decode_frame().

#define FF_BUG_TRUNCATED   16384

Definition at line 1275 of file avcodec.h.

Referenced by decode_nal_units(), and decode_slice().

#define FF_BUG_UMP4   8

Definition at line 1263 of file avcodec.h.

Referenced by decode_vop_header(), and ff_h263_decode_frame().

#define FF_BUG_XVID_ILACE   4

Definition at line 1262 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and mpeg4_decode_mb().

#define FF_CMP_BIT   5

Definition at line 1714 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_CHROMA   256

#define FF_CMP_DCT   3

Definition at line 1712 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_DCT264   14

Definition at line 1723 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_DCTMAX   13

Definition at line 1722 of file avcodec.h.

Referenced by add_codec(), and ff_set_cmp().

#define FF_CMP_NSSE   10

Definition at line 1719 of file avcodec.h.

Referenced by ff_set_cmp(), get_penalty_factor(), and sse_mb().

#define FF_CMP_PSNR   4

Definition at line 1713 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_RD   6

Definition at line 1715 of file avcodec.h.

Referenced by ff_set_cmp(), get_penalty_factor(), h263_mv4_search(), and interlaced_search().

#define FF_CMP_SAD   0

Definition at line 1709 of file avcodec.h.

Referenced by ff_init_me(), ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_SATD   2

Definition at line 1711 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_SSE   1

Definition at line 1710 of file avcodec.h.

Referenced by ff_estimate_p_frame_motion(), ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_VSAD   8

Definition at line 1717 of file avcodec.h.

Referenced by ff_set_cmp().

#define FF_CMP_VSSE   9

Definition at line 1718 of file avcodec.h.

Referenced by encode_mb_internal(), and ff_set_cmp().

#define FF_CMP_W53   11

Definition at line 1720 of file avcodec.h.

Referenced by ff_set_cmp(), get_block_rd(), and get_penalty_factor().

#define FF_CMP_W97   12

Definition at line 1721 of file avcodec.h.

Referenced by ff_set_cmp(), get_block_rd(), and get_penalty_factor().

#define FF_CMP_ZERO   7

Definition at line 1716 of file avcodec.h.

Referenced by ff_set_cmp().

#define FF_CODER_TYPE_AC   1

Definition at line 1849 of file avcodec.h.

Referenced by X264_init().

#define FF_CODER_TYPE_DEFLATE   4

Definition at line 1852 of file avcodec.h.

#define FF_CODER_TYPE_RAW   2

Definition at line 1850 of file avcodec.h.

Referenced by encode_frame(), and targa_encode_frame().

#define FF_CODER_TYPE_RLE   3

Definition at line 1851 of file avcodec.h.

#define FF_CODER_TYPE_VLC   0

Definition at line 1848 of file avcodec.h.

Referenced by libdirac_encode_init(), and libschroedinger_encode_init().

#define FF_COMMON_FRAME

Definition at line 783 of file avcodec.h.

#define FF_COMPLIANCE_EXPERIMENTAL   -2

Allow nonstandardized experimental things.

Definition at line 1312 of file avcodec.h.

Referenced by encode_init(), find_codec_or_die(), mp3_header_compress(), and MPV_encode_init().

#define FF_COMPLIANCE_INOFFICIAL   -1

Allow inofficial extensions (deprecated - use FF_COMPLIANCE_UNOFFICIAL instead).

Definition at line 1309 of file avcodec.h.

#define FF_COMPLIANCE_NORMAL   0

#define FF_COMPLIANCE_STRICT   1

Strictly conform to all the things in the spec no matter what consequences.

Definition at line 1306 of file avcodec.h.

Referenced by decode_frame().

#define FF_COMPLIANCE_UNOFFICIAL   -1

Allow unofficial extensions.

Definition at line 1311 of file avcodec.h.

Referenced by choose_pixel_fmt(), find_frame_rate_index(), libgsm_init(), and MPV_encode_init().

#define FF_COMPLIANCE_VERY_STRICT   2

Strictly conform to an older more strict version of the spec or reference software.

Definition at line 1305 of file avcodec.h.

Referenced by mpeg4_encode_picture_header().

#define FF_COMPRESSION_DEFAULT   -1

Definition at line 2360 of file avcodec.h.

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

#define FF_DCT_ALTIVEC   5

Definition at line 1477 of file avcodec.h.

Referenced by dsputil_init_ppc(), and MPV_common_init_altivec().

#define FF_DCT_AUTO   0

#define FF_DCT_FAAN   6

Definition at line 1478 of file avcodec.h.

Referenced by dsputil_init().

#define FF_DCT_FASTINT   1

Definition at line 1473 of file avcodec.h.

Referenced by dsputil_init(), and parse_ffconfig().

#define FF_DCT_INT   2

Definition at line 1474 of file avcodec.h.

#define FF_DCT_MLIB   4

Definition at line 1476 of file avcodec.h.

Referenced by MPV_common_init_mlib().

#define FF_DCT_MMX   3

Definition at line 1475 of file avcodec.h.

Referenced by dsputilenc_init_mmx(), and MPV_common_init_mmx().

#define FF_DEBUG_BITSTREAM   4

Definition at line 1639 of file avcodec.h.

Referenced by decode_init(), and pcm_bluray_decode_frame().

#define FF_DEBUG_BUFFERS   0x00008000

Definition at line 1652 of file avcodec.h.

Referenced by avcodec_default_get_buffer(), and avcodec_default_release_buffer().

#define FF_DEBUG_BUGS   0x00001000

Definition at line 1649 of file avcodec.h.

Referenced by decode_unregistered_user_data(), and ff_h263_decode_frame().

#define FF_DEBUG_DCT_COEFF   0x00000040

Definition at line 1643 of file avcodec.h.

Referenced by ff_alloc_picture(), and MPV_decode_mb_internal().

#define FF_DEBUG_ER   0x00000400

Definition at line 1647 of file avcodec.h.

Referenced by ff_er_frame_end().

#define FF_DEBUG_MB_TYPE   8

Definition at line 1640 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_MMCO   0x00000800

#define FF_DEBUG_MV   32

Definition at line 1642 of file avcodec.h.

Referenced by ff_alloc_picture(), and opt_input_file().

#define FF_DEBUG_PICT_INFO   1

#define FF_DEBUG_PTS   0x00000200

Definition at line 1646 of file avcodec.h.

Referenced by decode_vop_header().

#define FF_DEBUG_QP   16

Definition at line 1641 of file avcodec.h.

Referenced by ff_mjpeg_decode_frame(), ff_print_debug_info(), and mjpegb_decode_frame().

#define FF_DEBUG_RC   2

Definition at line 1638 of file avcodec.h.

Referenced by ff_rate_estimate_qscale(), ff_vbv_update(), and modify_qscale().

#define FF_DEBUG_SKIP   0x00000080

Definition at line 1644 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_STARTCODE   0x00000100

#define FF_DEBUG_VIS_MB_TYPE   0x00004000

Definition at line 1651 of file avcodec.h.

Referenced by ff_print_debug_info(), and MPV_common_init().

#define FF_DEBUG_VIS_MV_B_BACK   0x00000004

Definition at line 1662 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_MV_B_FOR   0x00000002

Definition at line 1661 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_MV_P_FOR   0x00000001

Definition at line 1660 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_QP   0x00002000

Definition at line 1650 of file avcodec.h.

Referenced by ff_print_debug_info(), and MPV_common_init().

#define FF_DEFAULT_QUANT_BIAS   999999

Definition at line 1811 of file avcodec.h.

Referenced by dnxhd_encode_init(), and MPV_encode_init().

#define FF_DTG_AFD_14_9   11

Definition at line 1791 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_16_9   10

Definition at line 1790 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_16_9_SP_14_9   14

Definition at line 1793 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_4_3   9

Definition at line 1789 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_4_3_SP_14_9   13

Definition at line 1792 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_SAME   8

Definition at line 1788 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_SP_4_3   15

Definition at line 1794 of file avcodec.h.

Referenced by video_image_display().

#define FF_EC_DEBLOCK   2

Definition at line 1567 of file avcodec.h.

Referenced by ff_er_frame_end().

#define FF_EC_GUESS_MVS   1

Definition at line 1566 of file avcodec.h.

Referenced by guess_mv().

#define FF_ER_AGGRESSIVE   3

Definition at line 1330 of file avcodec.h.

Referenced by huffman_decode(), and mpeg_decode_slice().

#define FF_ER_CAREFUL   1

#define FF_ER_COMPLIANT   2

#define FF_ER_VERY_AGGRESSIVE   4

Definition at line 1331 of file avcodec.h.

#define FF_I_TYPE   1

Intra.

Definition at line 889 of file avcodec.h.

Referenced by a64multi_encode_frame(), a64multi_init_encoder(), av_get_pict_type_char(), av_parser_init(), avs_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), bmp_encode_frame(), cmv_decode_frame(), compute_pkt_fields(), decode_chunks(), decode_frame(), decode_mb_i(), decode_nal_units(), decode_pic(), decode_slice(), decode_slice_header(), decode_vop_header(), dnxhd_decode_init(), dnxhd_encode_init(), do_video_out(), dvvideo_decode_frame(), dvvideo_encode_frame(), encode_frame(), encode_init(), encode_picture(), encode_picture_lossless(), encode_picture_ls(), encode_thread(), estimate_best_b_count(), execute_code(), ff_flv_decode_picture_header(), ff_h263_decode_frame(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_get_slice_type(), ff_h264_init_cabac_states(), ff_intel_h263_decode_picture_header(), ff_mjpeg_decode_sof(), ff_mpeg4_decode_partitions(), ff_mpeg4_get_video_packet_prefix_length(), ff_mpeg4_merge_partitions(), ff_print_debug_info(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_rv34_decode_frame(), ff_vp56_decode_frame(), ff_wmv2_decode_picture_header(), ff_wmv2_decode_secondary_picture_header(), ff_wmv2_encode_mb(), ff_wmv2_encode_picture_header(), ff_xvmc_field_start(), fill_picture_parameters(), find_best_tables(), flashsv_encode_frame(), get_diff_limited_q(), get_qminmax(), get_qscale(), gif_encode_frame(), gxf_write_media_preamble(), h261_decode_frame(), h263_decode_block(), h263_decode_picture_header(), h263_encode_gob_header(), h263_encode_mb(), init_pass2(), is_intra_more_likely(), mimic_decode_frame(), mpeg1_decode_picture(), mpeg1_encode_mb_internal(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg4_decode_video_packet_header(), mpeg4_encode_mb(), mpeg4_encode_picture_header(), mpeg_decode_mb(), mpeg_decode_picture_coding_extension(), mpeg_decode_slice(), MPV_decode_mb_internal(), MPV_frame_start(), msmpeg4_decode_picture_header(), msmpeg4_encode_mb(), msmpeg4_encode_picture_header(), pam_encode_frame(), parse(), parse_nal_units(), pcx_decode_frame(), pcx_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), ptx_decode_frame(), qtrle_encode_frame(), ratecontrol_1pass(), raw_init_decoder(), raw_init_encoder(), rv10_decode_picture_header(), rv10_encode_picture_header(), rv20_decode_picture_header(), rv20_encode_picture_header(), rv34_decode_macroblock(), rv34_decode_slice(), select_input_picture(), storeframe(), sunrast_decode_frame(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_encode_frame(), svq1_encode_plane(), svq1_write_header(), svq3_decode_frame(), svq3_decode_mb(), targa_encode_frame(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), txd_decode_frame(), vaapi_mpeg4_start_frame(), vaapi_vc1_start_frame(), vc1_decode_blocks(), vc1_decode_frame(), vc1_get_PTYPE(), vc1_has_ACPRED_bitplane(), vc1_has_OVERFLAGS_bitplane(), vc1_parse_frame_header(), vc1_parse_frame_header_adv(), vp8_decode_frame(), X264_frame(), and XAVS_frame().

#define FF_IDCT_ALTIVEC   8

Definition at line 1529 of file avcodec.h.

Referenced by dsputil_init_ppc(), and MPV_common_init_altivec().

#define FF_IDCT_ARM   7

Definition at line 1528 of file avcodec.h.

Referenced by dsputil_init_arm().

#define FF_IDCT_AUTO   0

#define FF_IDCT_BINK   24

Definition at line 1545 of file avcodec.h.

Referenced by decode_init(), and dsputil_init().

#define FF_IDCT_CAVS   15

Definition at line 1536 of file avcodec.h.

Referenced by decode_pic(), and dsputil_init_mmx().

#define FF_IDCT_EA   21

#define FF_IDCT_FAAN   20

Definition at line 1541 of file avcodec.h.

Referenced by dsputil_init().

#define FF_IDCT_H264   11

Definition at line 1532 of file avcodec.h.

#define FF_IDCT_INT   1

Definition at line 1522 of file avcodec.h.

Referenced by dsputil_init().

#define FF_IDCT_IPP   13

Definition at line 1534 of file avcodec.h.

#define FF_IDCT_LIBMPEG2MMX   4

Definition at line 1525 of file avcodec.h.

Referenced by dsputil_init_mmx().

#define FF_IDCT_MLIB   6

Definition at line 1527 of file avcodec.h.

Referenced by MPV_common_init_mlib().

#define FF_IDCT_PS2   5

Definition at line 1526 of file avcodec.h.

Referenced by dsputil_init_mmi().

#define FF_IDCT_SH4   9

Definition at line 1530 of file avcodec.h.

Referenced by dsputil_init_sh4().

#define FF_IDCT_SIMPLE   2

Definition at line 1523 of file avcodec.h.

Referenced by decode_init(), parse_ffconfig(), and vcr2_init_sequence().

#define FF_IDCT_SIMPLEALPHA   23

Definition at line 1544 of file avcodec.h.

Referenced by dsputil_init_alpha().

#define FF_IDCT_SIMPLEARM   10

Definition at line 1531 of file avcodec.h.

Referenced by dsputil_init_arm().

#define FF_IDCT_SIMPLEARMV5TE   16

Definition at line 1537 of file avcodec.h.

Referenced by ff_dsputil_init_armv5te().

#define FF_IDCT_SIMPLEARMV6   17

Definition at line 1538 of file avcodec.h.

Referenced by ff_dsputil_init_armv6().

#define FF_IDCT_SIMPLEMMX   3

Definition at line 1524 of file avcodec.h.

Referenced by dsputil_init_mmx().

#define FF_IDCT_SIMPLENEON   22

Definition at line 1543 of file avcodec.h.

Referenced by ff_dsputil_init_neon().

#define FF_IDCT_SIMPLEVIS   18

Definition at line 1539 of file avcodec.h.

Referenced by dsputil_init_vis().

#define FF_IDCT_VP3   12

#define FF_IDCT_WMV2   19

Definition at line 1540 of file avcodec.h.

Referenced by dsputil_init(), vc1_decode_init(), and wmv2_decode_init().

#define FF_IDCT_XVIDMMX   14

Definition at line 1535 of file avcodec.h.

Referenced by dsputil_init_mmx(), and ff_h263_decode_frame().

#define FF_INPUT_BUFFER_PADDING_SIZE   8

Required number of additionally allocated bytes at the end of the input bitstream for decoding.

This is mainly needed because some optimized bitstream readers read 32 or 64 bit at once and could read over the end.
Note: If the first 23 bits of the additional bytes are not 0, then damaged MPEG bitstreams could cause overread and segfault.

Definition at line 495 of file avcodec.h.

Referenced by a64multi_init_encoder(), aac_adtstoasc_filter(), aac_encode_init(), ac3_decode_init(), aiff_read_header(), apc_read_header(), asf_read_header(), atrac3_decode_init(), audio_decode_example(), av_dup_packet(), av_find_stream_info(), av_grow_packet(), av_new_packet(), av_parser_change(), av_parser_parse2(), av_shrink_packet(), avcodec_copy_context(), avi_read_header(), cook_decode_init(), decode_frame(), decode_i_frame(), decode_init(), decode_p_frame(), decode_stream_header(), dump_extradata(), Faac_encode_init(), ff_asf_parse_packet(), ff_combine_frame(), ff_get_wav_header(), ff_h263_decode_frame(), ff_h264_decode_nal(), ff_mjpeg_decode_frame(), ff_mp4_read_dec_config_descr(), ff_parse_mpeg2_descriptor(), fixup_vorbis_headers(), flac_header(), flac_read_header(), flv_get_extradata(), h264_mp4toannexb_filter(), h264_new_context(), imx_dump_header(), latm_decode_audio_specific_config(), matroska_fix_ass_packet(), matroska_read_header(), mimic_decode_frame(), mjpega_dump_header(), mov2textsub(), mov_read_extradata(), mov_read_glbl(), mov_read_smi(), mov_read_strf(), mov_read_stsz(), mov_read_wave(), mp3_header_compress(), mp3_header_decompress(), mp_decode_frame(), mpc7_decode_frame(), mpc8_parse_seektable(), mpc8_read_header(), mpc_read_header(), mpegts_push_data(), mxg_update_cache(), new_pes_packet(), noise(), oggvorbis_encode_init(), oma_read_header(), parse_fmtp_config(), parse_packed_headers(), qdm2_parse_config(), qt_rtp_parse_packet(), rdt_parse_b64buf(), read_header(), read_kuki_chunk(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_extradata(), sdp_parse_fmtp_config_h264(), spdif_write_packet(), speex_header(), svq3_parse_packet(), text2movsub(), theora_header(), tiff_unpack_strip(), tqi_decode_frame(), transcode(), tta_read_header(), url_close_dyn_buf(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_headers(), vfw_read_header(), video_decode_example(), vmd_read_header(), wsvqa_read_header(), wv_get_value_float(), and yop_read_header().

#define FF_INTERNALC_MEM_TYPE   unsigned int

Definition at line 87 of file avcodec.h.

#define FF_LEVEL_UNKNOWN   -99

Definition at line 2126 of file avcodec.h.

Referenced by encode_init(), and mpeg4_encode_visual_object_header().

#define FF_LOSS_ALPHA   0x0008

loss of alpha bits

Definition at line 3128 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_LOSS_CHROMA   0x0020

loss of chroma (e.g.

RGB to gray conversion)

Definition at line 3130 of file avcodec.h.

Referenced by avcodec_get_pix_fmt_loss().

#define FF_LOSS_COLORQUANT   0x0010

loss due to color quantization

Definition at line 3129 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_LOSS_COLORSPACE   0x0004

loss due to color space conversion

Definition at line 3127 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_LOSS_DEPTH   0x0002

loss due to color depth change

Definition at line 3126 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_LOSS_RESOLUTION   0x0001

loss due to resolution change

Definition at line 3125 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_MAX_B_FRAMES   16

Definition at line 603 of file avcodec.h.

Referenced by estimate_best_b_count().

#define FF_MB_DECISION_BITS   1

chooses the one which needs the fewest bits

Definition at line 1899 of file avcodec.h.

Referenced by encode_thread(), and parse_ffconfig().

#define FF_MB_DECISION_RD   2

#define FF_MB_DECISION_SIMPLE   0

uses mb_cmp

Definition at line 1898 of file avcodec.h.

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

#define FF_MIN_BUFFER_SIZE   16384

minimum encoding buffer size Used to avoid some checks during header writing.

Definition at line 501 of file avcodec.h.

Referenced by avcodec_decode_audio3(), avcodec_encode_audio(), avcodec_encode_video(), and do_audio_out().

#define FF_MM_3DNOW   AV_CPU_FLAG_3DNOW

Definition at line 1582 of file avcodec.h.

#define FF_MM_3DNOWEXT   AV_CPU_FLAG_3DNOWEXT

Definition at line 1588 of file avcodec.h.

#define FF_MM_ALTIVEC   AV_CPU_FLAG_ALTIVEC

Definition at line 1595 of file avcodec.h.

#define FF_MM_FORCE   AV_CPU_FLAG_FORCE

Definition at line 1580 of file avcodec.h.

#define FF_MM_IWMMXT   AV_CPU_FLAG_IWMMXT

Definition at line 1594 of file avcodec.h.

#define FF_MM_MMX   AV_CPU_FLAG_MMX

Definition at line 1581 of file avcodec.h.

#define FF_MM_MMX2   AV_CPU_FLAG_MMX2

Definition at line 1584 of file avcodec.h.

#define FF_MM_MMXEXT   AV_CPU_FLAG_MMX2

Definition at line 1583 of file avcodec.h.

#define FF_MM_SSE   AV_CPU_FLAG_SSE

Definition at line 1585 of file avcodec.h.

#define FF_MM_SSE2   AV_CPU_FLAG_SSE2

Definition at line 1586 of file avcodec.h.

#define FF_MM_SSE2SLOW   AV_CPU_FLAG_SSE2SLOW

Definition at line 1587 of file avcodec.h.

#define FF_MM_SSE3   AV_CPU_FLAG_SSE3

Definition at line 1589 of file avcodec.h.

#define FF_MM_SSE3SLOW   AV_CPU_FLAG_SSE3SLOW

Definition at line 1590 of file avcodec.h.

#define FF_MM_SSE4   AV_CPU_FLAG_SSE4

Definition at line 1592 of file avcodec.h.

#define FF_MM_SSE42   AV_CPU_FLAG_SSE42

Definition at line 1593 of file avcodec.h.

#define FF_MM_SSSE3   AV_CPU_FLAG_SSSE3

Definition at line 1591 of file avcodec.h.

#define FF_P_TYPE   2

Predicted.

Definition at line 890 of file avcodec.h.

Referenced by av_get_pict_type_char(), avs_decode_frame(), bfi_decode_frame(), cmv_decode_frame(), decode_chunks(), decode_frame(), decode_pic(), decode_slice_header(), decode_vop_header(), encode_frame(), encode_picture(), estimate_best_b_count(), ff_fix_long_p_mvs(), ff_flv_decode_picture_header(), ff_flv_encode_picture_header(), ff_h263_decode_mb(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_get_slice_type(), ff_mpeg4_decode_partitions(), ff_mpeg4_get_video_packet_prefix_length(), ff_print_debug_info(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_vdpau_mpeg4_decode_picture(), ff_vdpau_mpeg_picture_complete(), ff_vdpau_vc1_decode_picture(), ff_vp56_decode_frame(), ff_wmv2_decode_mb(), ff_xvmc_field_start(), find_best_tables(), flashsv_encode_frame(), get_diff_limited_q(), get_qscale(), h261_decode_picture_header(), h263_decode_picture_header(), h263_encode_picture_header(), init_pass2(), mimic_decode_frame(), modify_qscale(), mpeg1_decode_picture(), mpeg1_encode_mb_internal(), mpeg1_encode_picture_header(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), mpeg4_encode_picture_header(), mpeg_decode_mb(), mpeg_decode_picture_coding_extension(), mpeg_decode_slice(), MPV_encode_picture(), msmpeg4_decode_picture_header(), msmpeg4_encode_picture_header(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), parse(), preview_obmc(), qtrle_encode_frame(), rv10_decode_picture_header(), rv10_encode_picture_header(), rv20_decode_picture_header(), rv34_decode_mb_header(), rv34_decode_mv(), rv40_decode_mb_info(), select_input_picture(), storeframe(), svq1_encode_frame(), svq1_encode_plane(), svq3_decode_frame(), svq3_decode_mb(), tgv_decode_frame(), vaapi_mpeg2_start_frame(), vaapi_vc1_start_frame(), vc1_decode_blocks(), vc1_decode_skip_blocks(), vc1_get_MVMODE(), vc1_get_MVMODE2(), vc1_get_PTYPE(), vc1_has_MVTYPEMB_bitplane(), vc1_has_SKIPMB_bitplane(), vc1_mc_1mv(), vc1_parse_frame_header(), vc1_parse_frame_header_adv(), vp8_decode_frame(), X264_frame(), and XAVS_frame().

#define FF_PRED_LEFT   0

Definition at line 1611 of file avcodec.h.

#define FF_PRED_MEDIAN   2

Definition at line 1613 of file avcodec.h.

#define FF_PRED_PLANE   1

Definition at line 1612 of file avcodec.h.

#define FF_PROFILE_AAC_LOW   1

Definition at line 2101 of file avcodec.h.

Referenced by aac_encode_init(), and Faac_encode_init().

#define FF_PROFILE_AAC_LTP   3

Definition at line 2103 of file avcodec.h.

Referenced by Faac_encode_init().

#define FF_PROFILE_AAC_MAIN   0

Definition at line 2100 of file avcodec.h.

Referenced by Faac_encode_init().

#define FF_PROFILE_AAC_SSR   2

Definition at line 2102 of file avcodec.h.

Referenced by Faac_encode_init().

#define FF_PROFILE_DTS   20

Definition at line 2105 of file avcodec.h.

Referenced by dca_decode_frame().

#define FF_PROFILE_DTS_96_24   40

Definition at line 2107 of file avcodec.h.

Referenced by dca_decode_frame(), and dca_exss_parse_asset_header().

#define FF_PROFILE_DTS_ES   30

Definition at line 2106 of file avcodec.h.

Referenced by dca_decode_frame(), and dca_exss_parse_asset_header().

#define FF_PROFILE_DTS_HD_HRA   50

Definition at line 2108 of file avcodec.h.

Referenced by dca_exss_parse_asset_header().

#define FF_PROFILE_DTS_HD_MA   60

Definition at line 2109 of file avcodec.h.

Referenced by dca_exss_parse_asset_header().

#define FF_PROFILE_H264_BASELINE   66

Definition at line 2111 of file avcodec.h.

#define FF_PROFILE_H264_CAVLC_444   44

Definition at line 2118 of file avcodec.h.

#define FF_PROFILE_H264_EXTENDED   88

Definition at line 2113 of file avcodec.h.

#define FF_PROFILE_H264_HIGH   100

Definition at line 2114 of file avcodec.h.

#define FF_PROFILE_H264_HIGH_10   110

Definition at line 2115 of file avcodec.h.

#define FF_PROFILE_H264_HIGH_422   122

Definition at line 2116 of file avcodec.h.

#define FF_PROFILE_H264_HIGH_444   244

Definition at line 2117 of file avcodec.h.

#define FF_PROFILE_H264_MAIN   77

Definition at line 2112 of file avcodec.h.

#define FF_PROFILE_UNKNOWN   -99

#define FF_QSCALE_TYPE_H264   2

Definition at line 880 of file avcodec.h.

Referenced by field_end().

#define FF_QSCALE_TYPE_MPEG1   0

Definition at line 878 of file avcodec.h.

#define FF_QSCALE_TYPE_MPEG2   1

Definition at line 879 of file avcodec.h.

Referenced by slice_end().

#define FF_QSCALE_TYPE_VP56   3

Definition at line 881 of file avcodec.h.

Referenced by ff_vp56_decode_frame().

#define FF_RC_STRATEGY_XVID   1

#define FF_S_TYPE   4

#define FF_SI_TYPE   5

#define FF_SP_TYPE   6

Switching Predicted.

Definition at line 894 of file avcodec.h.

Referenced by av_get_pict_type_char(), decode_slice_header(), ff_h264_get_slice_type(), and ff_print_debug_info().

#define LIBAVCODEC_BUILD   LIBAVCODEC_VERSION_INT

Definition at line 44 of file avcodec.h.

#define LIBAVCODEC_IDENT   "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)

#define LIBAVCODEC_VERSION

#define LIBAVCODEC_VERSION_INT

#define LIBAVCODEC_VERSION_MAJOR   52

Definition at line 34 of file avcodec.h.

#define LIBAVCODEC_VERSION_MICRO   0

Definition at line 36 of file avcodec.h.

#define LIBAVCODEC_VERSION_MINOR   108

Definition at line 35 of file avcodec.h.

#define MB_TYPE_16x16   0x0008

#define MB_TYPE_16x8   0x0010