libavcodec/avcodec.h File Reference

external API header More...

#include "avutil.h"
#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  RcOverride
struct  AVPanScan
 Pan Scan area. More...
struct  AVFrame
 Audio Video Frame. More...
struct  AVCodecContext
 main external API structure. More...
struct  AVCodec
 AVCodec. 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 INT64_C(c)   c ## LL
#define AV_STRINGIFY(s)   AV_TOSTRING(s)
#define AV_TOSTRING(s)   #s
#define LIBAVCODEC_VERSION_INT   ((51<<16)+(50<<8)+0)
#define LIBAVCODEC_VERSION   51.50.0
#define LIBAVCODEC_BUILD   LIBAVCODEC_VERSION_INT
#define LIBAVCODEC_IDENT   "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
#define AV_NOPTS_VALUE   INT64_C(0x8000000000000000)
#define AV_TIME_BASE   1000000
#define AV_TIME_BASE_Q   (AVRational){1, AV_TIME_BASE}
#define CODEC_ID_MP3LAME   CODEC_ID_MP3
#define CODEC_ID_MPEG4AAC   CODEC_ID_AAC
#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_TRELLIS_QUANT   0x00200000
 Use trellis quantization.
#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_H263P_AIC   0x01000000
 H.263 advanced intra coding / MPEG-4 AC prediction (remove this).
#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   ((int)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_CAP_DRAW_HORIZ_BAND   0x0001
 Decoder can use draw_horiz_band callback.
#define CODEC_CAP_DR1   0x0002
 Codec uses get_buffer() for allocating buffers.
#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 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_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
#define FF_P_TYPE   2
#define FF_B_TYPE   3
#define FF_S_TYPE   4
#define FF_SI_TYPE   5
#define FF_SP_TYPE   6
#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 DEFAULT_FRAME_RATE_BASE   1001000
#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_COMPLIANCE_VERY_STRICT   2
 Strictly conform to a 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.
#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_EC_GUESS_MVS   1
#define FF_EC_DEBLOCK   2
#define FF_MM_FORCE   0x80000000
#define FF_MM_MMX   0x0001
 standard MMX
#define FF_MM_3DNOW   0x0004
 AMD 3DNOW.
#define FF_MM_MMXEXT   0x0002
 SSE integer functions or AMD MMX ext.
#define FF_MM_SSE   0x0008
 SSE functions.
#define FF_MM_SSE2   0x0010
 PIV SSE2 functions.
#define FF_MM_3DNOWEXT   0x0020
 AMD 3DNowExt.
#define FF_MM_SSE3   0x0040
 Prescott SSE3 functions.
#define FF_MM_SSSE3   0x0080
 Conroe SSSE3 functions.
#define FF_MM_IWMMXT   0x0100
 XScale IWMMXT.
#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_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_LAMBDA_SHIFT   7
#define FF_LAMBDA_SCALE   (1<<FF_LAMBDA_SHIFT)
#define FF_QP2LAMBDA   118
 factor to convert from H.263 QP to lambda
#define FF_LAMBDA_MAX   (256*128-1)
#define FF_QUALITY_SCALE   FF_LAMBDA_SCALE
#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 distoration
#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_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 AVERROR(e)   (e)
#define AVUNERROR(e)   (e)
#define AVERROR_UNKNOWN   AVERROR(EINVAL)
 unknown error
#define AVERROR_IO   AVERROR(EIO)
 I/O error.
#define AVERROR_NUMEXPECTED   AVERROR(EDOM)
 Number syntax expected in filename.
#define AVERROR_INVALIDDATA   AVERROR(EINVAL)
 invalid data found
#define AVERROR_NOMEM   AVERROR(ENOMEM)
 not enough memory
#define AVERROR_NOFMT   AVERROR(EILSEQ)
 unknown format
#define AVERROR_NOTSUPP   AVERROR(ENOSYS)
 Operation not supported.
#define AVERROR_NOENT   AVERROR(ENOENT)
 No such file or directory.
#define AVERROR_PATCHWELCOME   -MKTAG('P','A','W','E')
 Not yet implemented in FFmpeg.

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_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_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_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_MPEG4AAC,
  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_DVD_SUBTITLE = 0x17000,
  CODEC_ID_DVB_SUBTITLE, CODEC_ID_TEXT, CODEC_ID_XSUB, CODEC_ID_SSA,
  CODEC_ID_MOV_TEXT, CODEC_ID_TTF = 0x18000, CODEC_ID_MPEG2TS = 0x20000
}
 Identifies the syntax and semantics of the bitstream. More...
enum  CodecType {
  CODEC_TYPE_UNKNOWN = -1, CODEC_TYPE_VIDEO, CODEC_TYPE_AUDIO, CODEC_TYPE_DATA,
  CODEC_TYPE_SUBTITLE, CODEC_TYPE_ATTACHMENT, CODEC_TYPE_NB
}
enum  SampleFormat {
  SAMPLE_FMT_NONE = -1, SAMPLE_FMT_U8, SAMPLE_FMT_S16, SAMPLE_FMT_S24,
  SAMPLE_FMT_S32, SAMPLE_FMT_FLT
}
 Currently unused, may be used if 24/32 bits samples are ever supported. More...
enum  Motion_Est_ID {
  ME_ZERO = 1, ME_FULL, ME_LOG, ME_PHODS,
  ME_EPZS, ME_X1, ME_HEX, ME_UMH,
  ME_ITER
}
 motion estimation type. More...
enum  AVDiscard {
  AVDISCARD_NONE = -16, AVDISCARD_DEFAULT = 0, AVDISCARD_NONREF = 8, AVDISCARD_BIDIR = 16,
  AVDISCARD_NONKEY = 32, AVDISCARD_ALL = 48
}

Functions

ReSampleContextaudio_resample_init (int output_channels, int input_channels, int output_rate, int input_rate)
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)
 Initializes an audio resampler.
int av_resample (struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx)
 resamples.
void av_resample_compensate (struct AVResampleContext *c, int sample_delta, int compensation_distance)
 Compensates samplerate/timestamp drift.
void av_resample_close (struct AVResampleContext *c)
attribute_deprecated
ImgReSampleContext
img_resample_init (int output_width, int output_height, int input_width, int input_height)
attribute_deprecated
ImgReSampleContext
img_resample_full_init (int owidth, int oheight, int iwidth, int iheight, int topBand, int bottomBand, int leftBand, int rightBand, int padtop, int padbottom, int padleft, int padright)
attribute_deprecated void img_resample (struct ImgReSampleContext *s, AVPicture *output, const AVPicture *input)
attribute_deprecated void img_resample_close (struct ImgReSampleContext *s)
int avpicture_alloc (AVPicture *picture, int 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, int pix_fmt, int width, int height)
 Fill in the AVPicture fields.
int avpicture_layout (const AVPicture *src, int pix_fmt, int width, int height, unsigned char *dest, int dest_size)
int avpicture_get_size (int 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 (int pix_fmt, int *h_shift, int *v_shift)
const char * avcodec_get_pix_fmt_name (int pix_fmt)
void avcodec_set_dimensions (AVCodecContext *s, int width, int height)
enum PixelFormat avcodec_get_pix_fmt (const char *name)
unsigned int avcodec_pix_fmt_to_codec_tag (enum PixelFormat p)
int avcodec_get_pix_fmt_loss (int dst_pix_fmt, int src_pix_fmt, int has_alpha)
 Computes what kind of losses will occur when converting from one specific pixel format to another.
int avcodec_find_best_pix_fmt (int pix_fmt_mask, int src_pix_fmt, int has_alpha, int *loss_ptr)
 Finds the best pixel format to convert to given a certain source pixel format.
void avcodec_pix_fmt_string (char *buf, int buf_size, int pix_fmt)
 Print in buf the string corresponding to the pixel format with number pix_fmt, or an header if pix_fmt is negative.
int img_get_alpha_info (const AVPicture *src, int pix_fmt, int width, int height)
 Tell if an image really has transparent alpha values.
attribute_deprecated int img_convert (AVPicture *dst, int dst_pix_fmt, const AVPicture *src, int pix_fmt, int width, int height)
 convert among pixel formats
int avpicture_deinterlace (AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height)
AVCodecav_codec_next (AVCodec *c)
unsigned avcodec_version (void)
unsigned avcodec_build (void)
void avcodec_init (void)
 Initializes libavcodec.
void register_avcodec (AVCodec *format)
AVCodecavcodec_find_encoder (enum CodecID id)
 Finds a registered encoder with a matching codec ID.
AVCodecavcodec_find_encoder_by_name (const char *name)
 Finds a registered encoder with the specified name.
AVCodecavcodec_find_decoder (enum CodecID id)
 Finds a registered decoder with a matching codec ID.
AVCodecavcodec_find_decoder_by_name (const char *name)
 Finds a registered decoder with the specified name.
void avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode)
void avcodec_get_context_defaults (AVCodecContext *s)
 Sets the fields of the given AVCodecContext to default values.
void avcodec_get_context_defaults2 (AVCodecContext *s, enum CodecType)
 THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
AVCodecContextavcodec_alloc_context (void)
 Allocates an AVCodecContext and sets its fields to default values.
AVCodecContextavcodec_alloc_context2 (enum CodecType)
 THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
void avcodec_get_frame_defaults (AVFrame *pic)
 Sets the fields of the given AVFrame to default values.
AVFrameavcodec_alloc_frame (void)
 Allocates an AVFrame and sets 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)
void avcodec_align_dimensions (AVCodecContext *s, int *width, int *height)
int avcodec_check_dimensions (void *av_log_ctx, unsigned int w, unsigned int h)
 Checks if the given dimension of a picture is valid, meaning that all bytes of the picture can be addressed with a signed int.
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_thread_execute (AVCodecContext *s, int(*func)(AVCodecContext *c2, void *arg2), void **arg, int *ret, int count)
int avcodec_default_execute (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void **arg, int *ret, int count)
int avcodec_open (AVCodecContext *avctx, AVCodec *codec)
 Initializes the AVCodecContext to use the given AVCodec.
attribute_deprecated int avcodec_decode_audio (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, const uint8_t *buf, int buf_size)
int avcodec_decode_audio2 (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, const uint8_t *buf, int buf_size)
 Decodes an audio frame from buf into samples.
int avcodec_decode_video (AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const uint8_t *buf, int buf_size)
 Decodes a video frame from buf into picture.
int avcodec_decode_subtitle (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const uint8_t *buf, int buf_size)
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)
 Encodes an audio frame from samples into buf.
int avcodec_encode_video (AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict)
 Encodes 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)
 Returns a single letter to describe the given picture type pict_type.
int av_get_bits_per_sample (enum CodecID codec_id)
 Returns codec bits per sample.
int av_get_bits_per_sample_format (enum SampleFormat sample_fmt)
 Returns sample format bits per sample.
AVCodecParserav_parser_next (AVCodecParser *c)
void av_register_codec_parser (AVCodecParser *parser)
AVCodecParserContextav_parser_init (int codec_id)
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_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, unsigned int min_size)
 Reallocates the given block if it is not large enough, otherwise it does nothing.
attribute_deprecated void av_free_static (void)
 Frees all static arrays and resets their pointers to 0.
attribute_deprecated void * av_mallocz_static (unsigned int size)
 Allocation of static arrays.
void av_picture_copy (AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height)
 Copy image 'src' to 'dst'.
int av_picture_crop (AVPicture *dst, const AVPicture *src, int 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, int pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color)
 Pad image.
attribute_deprecated void img_copy (AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height)
attribute_deprecated int img_crop (AVPicture *dst, const AVPicture *src, int pix_fmt, int top_band, int left_band)
attribute_deprecated int img_pad (AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color)
unsigned int av_xiphlacing (unsigned char *s, unsigned int v)
int av_parse_video_frame_size (int *width_ptr, int *height_ptr, const char *str)
 Parses str and put in width_ptr and height_ptr the detected values.
int av_parse_video_frame_rate (AVRational *frame_rate, const char *str)
 Parses str and put in frame_rate the detected values.

Variables

AVCodecfirst_avcodec
AVCodecParserav_first_parser


Detailed Description

external API header

Definition in file avcodec.h.


Define Documentation

#define AV_NOPTS_VALUE   INT64_C(0x8000000000000000)

Definition at line 50 of file avcodec.h.

Referenced by asf_read_frame_header(), asf_read_pts(), asf_write_packet(), audio_decode_frame(), av_encode(), av_estimate_timings_from_bit_rate(), av_estimate_timings_from_pts(), av_find_stream_info(), av_gen_search(), av_has_duration(), av_init_packet(), av_interleaved_write_frame(), av_new_stream(), av_open_input_stream(), av_parser_parse(), av_read_frame(), av_read_frame_flush(), av_read_frame_internal(), av_seek_frame_binary(), av_update_stream_timings(), av_write_header(), avcodec_get_frame_defaults(), compute_pkt_fields(), compute_pkt_fields2(), decode_frame(), decode_thread(), decode_vop_header(), do_audio_out(), do_subtitle_out(), do_video_out(), dump_format(), dvbsub_parse(), ff_rate_estimate_qscale(), fill_all_stream_timings(), finalize_packet(), flush_packet(), flv_read_packet(), get_vcd_padding_size(), gxf_header(), gxf_material_tags(), gxf_resync_media(), http_prepare_data(), load_input_picture(), matroska_parse_block(), matroska_parse_blockgroup(), matroska_parse_cluster(), mov_read_header(), mpeg_mux_write_packet(), mpegps_read_dts(), mpegps_read_pes_header(), mpegts_get_pcr(), mpegts_push_data(), mpegts_write_header(), mpegts_write_packet(), mpegts_write_pes(), MPV_encode_init(), mxf_parse_structural_metadata(), nut_read_timestamp(), ogg_get_length(), ogg_gptopts(), ogg_read_timestamp(), open_input_stream(), opt_input_file(), output_packet(), parse_timecode(), pkt_dump_internal(), pva_read_timestamp(), read_part_of_packet(), read_seek(), rm_assemble_video_frame(), rm_read_dts(), rtcp_parse_packet(), rtcp_send_sr(), rtp_check_and_send_back_rr(), rtp_parse_open(), rtp_write_header(), rtsp_cmd_pause(), rtsp_cmd_play(), rtsp_parse_range_npt(), sdp_parse_line(), set_frame_distances(), subtitle_thread(), sync(), truncate_ts(), update_initial_timestamps(), video_thread(), and write_packet().

#define AV_PARSER_PTS_NB   4

Definition at line 2680 of file avcodec.h.

Referenced by av_parser_parse().

#define AV_STRINGIFY (  )     AV_TOSTRING(s)

Definition at line 41 of file avcodec.h.

Referenced by show_banner().

#define AV_TIME_BASE   1000000

#define AV_TIME_BASE_Q   (AVRational){1, AV_TIME_BASE}

#define AV_TOSTRING (  )     #s

Definition at line 42 of file avcodec.h.

#define AVCODEC_MAX_AUDIO_FRAME_SIZE   192000

#define AVERROR (  )     (e)

Definition at line 2858 of file avcodec.h.

Referenced by aac_read_header(), ac3_read_header(), aiff_read_header(), aiff_read_packet(), amr_read_header(), amr_read_packet(), apc_read_header(), apc_read_packet(), asf_read_packet(), asf_read_seek(), atrac3_decode_init(), au_read_packet(), audio_open(), audio_read_header(), audio_read_packet(), audio_write_header(), audio_write_packet(), av_dup_packet(), av_encode(), av_find_stream_info(), av_new_packet(), av_open_input_file(), av_open_input_stream(), av_read_frame(), av_read_frame_internal(), av_read_pause(), av_read_play(), av_set_parameters(), av_url_read_fpause(), av_url_read_fseek(), av_url_read_pause(), av_url_read_seek(), av_write_header(), avcodec_open(), avf_sdp_create(), avisynth_read_packet(), avs_read_audio_packet(), avs_read_packet(), avs_read_video_packet(), cdata_read_header(), cdata_read_packet(), cin_read_frame_header(), cin_read_header(), cin_read_packet(), daud_packet(), decode_stream_header(), dts_read_header(), dv1394_read_header(), dv1394_read_packet(), dv_read_header(), dv_read_packet(), dxa_read_packet(), ea_read_header(), ea_read_packet(), ebml_read_ascii(), ebml_read_binary(), ebml_read_header(), ebml_read_master(), ebml_read_num(), ffm_read_packet(), file_open(), film_read_header(), film_read_packet(), flac_read_header(), flic_read_header(), flic_read_packet(), flv_read_header(), flv_read_packet(), fourxm_read_header(), fourxm_read_packet(), frame_hook_add(), g726_init(), get_tag(), gif_parse_next_image(), gif_read_header(), gif_read_image(), gif_read_packet(), gif_write_header(), grab_read_header(), grab_read_packet(), gxf_packet(), h264_mp4toannexb_filter(), http_connect(), http_getc(), http_open(), http_open_cnx(), idcin_read_header(), idcin_read_packet(), img_read_header(), img_read_packet(), ingenient_read_packet(), ipmovie_read_header(), ipmovie_read_packet(), lmlm4_read_header(), lmlm4_read_packet(), matroska_add_stream(), matroska_parse_attachments(), matroska_parse_block(), matroska_parse_blockgroup(), matroska_parse_cluster(), matroska_parse_index(), matroska_parse_info(), matroska_parse_metadata(), matroska_parse_seekhead(), matroska_parse_tracks(), matroska_read_header(), matroska_read_packet(), mkv_add_cuepoint(), mkv_add_seekhead_entry(), mkv_write_header(), mm_read_header(), mm_read_packet(), mmap_read_frame(), mmf_read_header(), mmf_read_packet(), mp3_read_header(), mp3_read_packet(), mpc8_read_header(), mpc8_read_packet(), mpc_read_header(), mpc_read_packet(), mpeg_mux_init(), mpegps_read_pes_header(), mpegts_raw_read_packet(), mtv_read_header(), mtv_read_packet(), mxf_read_packet(), nuv_packet(), ogg_new_stream(), ogg_read_packet(), PCMDEF(), print_error(), pva_read_header(), pva_read_packet(), raw_read_header(), raw_read_packet(), raw_read_partial_packet(), read_frame(), read_header(), read_packet(), read_part_of_packet(), rm_assemble_video_frame(), rm_read_header(), rm_read_packet(), roq_read_header(), roq_read_packet(), rtp_open(), rtp_read(), rtp_write_header(), rtsp_read_header(), sdp_read_header(), seq_fill_buffer(), seq_init_frame_buffers(), seq_read_header(), seq_read_packet(), shorten_read_header(), siff_read_packet(), smacker_read_header(), smacker_read_packet(), sol_read_packet(), str_read_header(), str_read_packet(), swf_read_header(), swf_read_packet(), tcp_open(), tcp_read(), tcp_write(), thp_read_header(), thp_read_packet(), tta_read_header(), txd_read_header(), txd_read_packet(), udp_open(), udp_read(), udp_read_packet(), udp_set_remote_url(), udp_set_url(), udp_write(), url_fdopen(), url_fseek(), url_fsize(), url_open(), url_read(), url_resetbuf(), url_seek(), url_setbufsize(), url_write(), v4l2_read_header(), v4l2_read_packet(), v4l2_set_parameters(), v4l_mm_read_picture(), vc1t_read_packet(), vid_read_header(), vid_read_packet(), video_read_header(), vmd_read_header(), vmd_read_packet(), voc_get_packet(), voc_read_header(), wav_read_header(), wav_read_packet(), wc3_read_header(), wc3_read_packet(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_packet(), x11grab_read_header(), x11grab_read_packet(), yuv4_read_packet(), yuv4_write_header(), and yuv4_write_packet().

#define AVERROR_INVALIDDATA   AVERROR(EINVAL)

#define AVERROR_IO   AVERROR(EIO)

I/O error.

Definition at line 2862 of file avcodec.h.

Referenced by ape_read_packet(), and ea_read_packet().

#define AVERROR_NOENT   AVERROR(ENOENT)

No such file or directory.

Definition at line 2868 of file avcodec.h.

#define AVERROR_NOFMT   AVERROR(EILSEQ)

unknown format

Definition at line 2866 of file avcodec.h.

Referenced by av_open_input_file(), matroska_read_header(), and print_error().

#define AVERROR_NOMEM   AVERROR(ENOMEM)

not enough memory

Definition at line 2865 of file avcodec.h.

Referenced by ape_read_header(), and ape_read_packet().

#define AVERROR_NOTSUPP   AVERROR(ENOSYS)

Operation not supported.

Definition at line 2867 of file avcodec.h.

#define AVERROR_NUMEXPECTED   AVERROR(EDOM)

Number syntax expected in filename.

Definition at line 2863 of file avcodec.h.

Referenced by av_open_input_file(), opt_output_file(), and print_error().

#define AVERROR_PATCHWELCOME   -MKTAG('P','A','W','E')

Not yet implemented in FFmpeg.

Patches welcome.

Definition at line 2869 of file avcodec.h.

Referenced by voc_write_header().

#define AVERROR_UNKNOWN   AVERROR(EINVAL)

unknown error

Definition at line 2861 of file avcodec.h.

Referenced by matroska_parse_seekhead().

#define AVPALETTE_COUNT   256

Definition at line 2111 of file avcodec.h.

#define AVPALETTE_SIZE   1024

AVPaletteControl This structure defines a method for communicating palette changes between and demuxer and a decoder.

Deprecated:
Use AVPacket to send palette changes instead. This is totally broken.

Definition at line 2110 of file avcodec.h.

Referenced by asf_read_header(), avi_read_header(), cinepak_decode_frame(), decode_frame(), flic_decode_frame_8BPP(), mm_decode_frame(), msrle_decode_pal4(), msrle_decode_pal8(), msvideo1_decode_8bit(), qtrle_decode_frame(), raw_decode(), smc_decode_stream(), and xan_decode_frame().

#define AVUNERROR (  )     (e)

Definition at line 2859 of file avcodec.h.

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

Referenced by avcodec_decode_audio2(), avcodec_decode_video(), avcodec_encode_audio(), and avcodec_encode_video().

#define CODEC_CAP_DR1   0x0002

Codec uses get_buffer() for allocating buffers.

direct rendering method 1

Definition at line 462 of file avcodec.h.

Referenced by opt_show_formats().

#define CODEC_CAP_DRAW_HORIZ_BAND   0x0001

Decoder can use draw_horiz_band callback.

Definition at line 457 of file avcodec.h.

Referenced by opt_show_formats().

#define CODEC_CAP_HWACCEL   0x0010

Definition at line 467 of file avcodec.h.

#define CODEC_CAP_PARSE_ONLY   0x0004

Definition at line 464 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 477 of file avcodec.h.

Referenced by output_packet().

#define CODEC_CAP_TRUNCATED   0x0008

Definition at line 465 of file avcodec.h.

Referenced by opt_show_formats(), and video_decode_example().

#define CODEC_FLAG2_8X8DCT   0x00000080

H.264 high profile 8x8 transform.

Definition at line 439 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_AUD   0x00000200

H.264 access unit delimiters.

Definition at line 441 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_BPYRAMID   0x00000010

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

Definition at line 436 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_BRDO   0x00000400

B-frame rate-distortion optimization.

Definition at line 442 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_CHUNKS   0x00008000

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

Definition at line 447 of file avcodec.h.

Referenced by decode_frame(), decode_nal_units(), and decode_slice_header().

#define CODEC_FLAG2_DROP_FRAME_TIMECODE   0x00002000

timecode is in drop frame format.

Definition at line 445 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 432 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 440 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_INTRA_VLC   0x00000800

Use MPEG-2 intra VLC table.

Definition at line 443 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 435 of file avcodec.h.

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

#define CODEC_FLAG2_MEMC_ONLY   0x00001000

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

Definition at line 444 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 438 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG2_NO_OUTPUT   0x00000004

Skip bitstream encoding.

Definition at line 434 of file avcodec.h.

Referenced by encode_bgr_bitstream().

#define CODEC_FLAG2_NON_LINEAR_QUANT   0x00010000

Use MPEG-2 nonlinear quantizer.

Definition at line 448 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG2_SKIP_RD   0x00004000

RD optimal MB level residual skipping.

Definition at line 446 of file avcodec.h.

Referenced by encode_thread().

#define CODEC_FLAG2_STRICT_GOP   0x00000002

Strictly enforce GOP size.

Definition at line 433 of file avcodec.h.

Referenced by select_input_picture().

#define CODEC_FLAG2_WPRED   0x00000020

H.264 weighted biprediction for B-frames.

Definition at line 437 of file avcodec.h.

Referenced by X264_init().

#define CODEC_FLAG_4MV   0x0004

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

Definition at line 391 of file avcodec.h.

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

#define CODEC_FLAG_AC_PRED   0x01000000

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

Definition at line 421 of file avcodec.h.

Referenced by ff_xvid_encode_init(), and MPV_encode_init().

#define CODEC_FLAG_ALT_SCAN   0x00100000

Use alternate scan.

Definition at line 413 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 423 of file avcodec.h.

Referenced by encode_mb_internal(), and MPV_encode_init().

#define CODEC_FLAG_CLOSED_GOP   ((int)0x80000000)

#define CODEC_FLAG_EMU_EDGE   0x4000

#define CODEC_FLAG_EXTERN_HUFF   0x1000

Use external Huffman table (for MJPEG).

Definition at line 404 of file avcodec.h.

Referenced by ff_mjpeg_decode_init().

#define CODEC_FLAG_GLOBAL_HEADER   0x00400000

Place global headers in extradata instead of every keyframe.

Definition at line 415 of file avcodec.h.

Referenced by add_video_stream(), av_parser_change(), Faac_encode_init(), ff_xvid_encode_init(), new_audio_stream(), new_video_stream(), remove_extradata(), and X264_init().

#define CODEC_FLAG_GMC   0x0020

Use GMC.

Definition at line 393 of file avcodec.h.

Referenced by ff_xvid_encode_init().

#define CODEC_FLAG_GRAY   0x2000

#define CODEC_FLAG_H263P_AIC   0x01000000

H.263 advanced intra coding / MPEG-4 AC prediction (remove this).

Definition at line 419 of file avcodec.h.

#define CODEC_FLAG_H263P_AIV   0x00000008

H.263 alternative inter VLC.

Definition at line 425 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_H263P_SLICE_STRUCT   0x10000000

Definition at line 428 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_H263P_UMV   0x02000000

unlimited motion vector

Definition at line 422 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 401 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 427 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 394 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 410 of file avcodec.h.

Referenced by adaptive_quantization().

#define CODEC_FLAG_OBMC   0x00000001

OBMC.

Definition at line 426 of file avcodec.h.

Referenced by MPV_encode_init().

#define CODEC_FLAG_PART   0x0080

Use data partitioning.

Definition at line 395 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 407 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(), and X264_init().

#define CODEC_FLAG_QP_RD   0x08000000

Use rate distortion optimization for qp selectioon.

Definition at line 424 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 430 of file avcodec.h.

Referenced by mpeg1_encode_picture_header().

#define CODEC_FLAG_TRELLIS_QUANT   0x00200000

Use trellis quantization.

Definition at line 414 of file avcodec.h.

Referenced by ff_xvid_encode_init(), and MPV_encode_init().

#define CODEC_FLAG_TRUNCATED   0x00010000

#define CODEC_ID_MP3LAME   CODEC_ID_MP3

Definition at line 305 of file avcodec.h.

#define CODEC_ID_MPEG4AAC   CODEC_ID_AAC

Definition at line 306 of file avcodec.h.

#define DEFAULT_FRAME_RATE_BASE   1001000

Definition at line 649 of file avcodec.h.

Referenced by av_parse_video_frame_rate(), and parse_ffconfig().

#define FF_AA_AUTO   0

Definition at line 1663 of file avcodec.h.

#define FF_AA_FASTINT   1

Definition at line 1664 of file avcodec.h.

#define FF_AA_FLOAT   3

Definition at line 1666 of file avcodec.h.

Referenced by decode_init().

#define FF_AA_INT   2

Definition at line 1665 of file avcodec.h.

#define FF_ALPHA_SEMI_TRANSP   0x0002

Definition at line 2321 of file avcodec.h.

Referenced by get_alpha_info_pal8(), and img_get_alpha_info().

#define FF_ALPHA_TRANSP   0x0001

Definition at line 2320 of file avcodec.h.

Referenced by get_alpha_info_pal8(), and img_get_alpha_info().

#define FF_ASPECT_EXTENDED   15

Definition at line 739 of file avcodec.h.

Referenced by decode_vol_header(), and h263_decode_picture_header().

#define FF_B_TYPE   3

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

Referenced by copy_picture(), and ff_print_debug_info().

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

Referenced by alloc_picture(), estimate_best_b_count(), free_picture(), select_input_picture(), and skip_check().

#define FF_BUFFER_TYPE_USER   2

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

Definition at line 619 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 940 of file avcodec.h.

#define FF_BUG_AMV   32

Definition at line 939 of file avcodec.h.

Referenced by get_amv().

#define FF_BUG_AUTODETECT   1

autodetection

Definition at line 934 of file avcodec.h.

Referenced by decode_slice(), and ff_h263_decode_frame().

#define FF_BUG_DC_CLIP   4096

Definition at line 947 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and ff_mpeg4_pred_dc().

#define FF_BUG_DIRECT_BLOCKSIZE   512

Definition at line 944 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and ff_mpeg4_set_direct_mv().

#define FF_BUG_EDGE   1024

Definition at line 945 of file avcodec.h.

Referenced by decode_vop_header(), and ff_h263_decode_frame().

#define FF_BUG_HPEL_CHROMA   2048

Definition at line 946 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and mpeg_motion().

#define FF_BUG_MS   8192

Work around various bugs in Microsoft's broken decoders.

Definition at line 948 of file avcodec.h.

#define FF_BUG_NO_PADDING   16

Definition at line 938 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 935 of file avcodec.h.

#define FF_BUG_QPEL_CHROMA   64

Definition at line 941 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and qpel_motion().

#define FF_BUG_QPEL_CHROMA2   256

Definition at line 943 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and qpel_motion().

#define FF_BUG_STD_QPEL   128

Definition at line 942 of file avcodec.h.

Referenced by ff_h263_decode_frame().

#define FF_BUG_UMP4   8

Definition at line 937 of file avcodec.h.

Referenced by decode_vop_header(), and ff_h263_decode_frame().

#define FF_BUG_XVID_ILACE   4

Definition at line 936 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and ff_mpeg4_decode_mb().

#define FF_CMP_BIT   5

Definition at line 1366 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 1364 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_DCT264   14

Definition at line 1375 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_DCTMAX   13

Definition at line 1374 of file avcodec.h.

Referenced by add_codec(), and ff_set_cmp().

#define FF_CMP_NSSE   10

Definition at line 1371 of file avcodec.h.

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

#define FF_CMP_PSNR   4

Definition at line 1365 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_RD   6

Definition at line 1367 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 1361 of file avcodec.h.

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

#define FF_CMP_SATD   2

Definition at line 1363 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_SSE   1

Definition at line 1362 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 1369 of file avcodec.h.

Referenced by ff_set_cmp().

#define FF_CMP_VSSE   9

Definition at line 1370 of file avcodec.h.

Referenced by encode_mb_internal(), and ff_set_cmp().

#define FF_CMP_W53   11

Definition at line 1372 of file avcodec.h.

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

#define FF_CMP_W97   12

Definition at line 1373 of file avcodec.h.

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

#define FF_CMP_ZERO   7

Definition at line 1368 of file avcodec.h.

Referenced by ff_set_cmp().

#define FF_CODER_TYPE_AC   1

Definition at line 1507 of file avcodec.h.

Referenced by X264_init().

#define FF_CODER_TYPE_DEFLATE   4

Definition at line 1510 of file avcodec.h.

#define FF_CODER_TYPE_RAW   2

Definition at line 1508 of file avcodec.h.

#define FF_CODER_TYPE_RLE   3

Definition at line 1509 of file avcodec.h.

#define FF_CODER_TYPE_VLC   0

Definition at line 1506 of file avcodec.h.

#define FF_COMMON_FRAME

Definition at line 532 of file avcodec.h.

#define FF_COMPLIANCE_EXPERIMENTAL   -2

Allow nonstandardized experimental things.

Definition at line 975 of file avcodec.h.

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

#define FF_COMPLIANCE_INOFFICIAL   -1

Allow inofficial extensions.

Definition at line 974 of file avcodec.h.

Referenced by find_frame_rate_index(), g726_init(), and MPV_encode_init().

#define FF_COMPLIANCE_NORMAL   0

Definition at line 973 of file avcodec.h.

Referenced by ff_fix_long_p_mvs(), ff_get_best_fcode(), and mov_find_codec_tag().

#define FF_COMPLIANCE_STRICT   1

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

Definition at line 972 of file avcodec.h.

#define FF_COMPLIANCE_VERY_STRICT   2

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

Definition at line 971 of file avcodec.h.

#define FF_COMPRESSION_DEFAULT   -1

Definition at line 1997 of file avcodec.h.

Referenced by encode_frame().

#define FF_DCT_ALTIVEC   5

Definition at line 1138 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 1139 of file avcodec.h.

Referenced by dsputil_init().

#define FF_DCT_FASTINT   1

Definition at line 1134 of file avcodec.h.

Referenced by dsputil_init(), and parse_ffconfig().

#define FF_DCT_INT   2

Definition at line 1135 of file avcodec.h.

#define FF_DCT_MLIB   4

Definition at line 1137 of file avcodec.h.

Referenced by MPV_common_init_mlib().

#define FF_DCT_MMX   3

Definition at line 1136 of file avcodec.h.

Referenced by dsputil_init_mmx(), and MPV_common_init_mmx().

#define FF_DEBUG_BITSTREAM   4

Definition at line 1292 of file avcodec.h.

#define FF_DEBUG_BUGS   0x00001000

Definition at line 1302 of file avcodec.h.

Referenced by decode_unregistered_user_data(), and ff_h263_decode_frame().

#define FF_DEBUG_DCT_COEFF   0x00000040

Definition at line 1296 of file avcodec.h.

Referenced by alloc_picture(), and MPV_decode_mb_internal().

#define FF_DEBUG_ER   0x00000400

Definition at line 1300 of file avcodec.h.

Referenced by ff_er_frame_end().

#define FF_DEBUG_MB_TYPE   8

Definition at line 1293 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_MMCO   0x00000800

#define FF_DEBUG_MV   32

Definition at line 1295 of file avcodec.h.

Referenced by alloc_picture(), and opt_input_file().

#define FF_DEBUG_PICT_INFO   1

#define FF_DEBUG_PTS   0x00000200

Definition at line 1299 of file avcodec.h.

Referenced by av_read_frame_internal(), and decode_vop_header().

#define FF_DEBUG_QP   16

Definition at line 1294 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 1291 of file avcodec.h.

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

#define FF_DEBUG_SKIP   0x00000080

Definition at line 1297 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 1304 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 1314 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_MV_B_FOR   0x00000002

Definition at line 1313 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_MV_P_FOR   0x00000001

Definition at line 1312 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_QP   0x00002000

Definition at line 1303 of file avcodec.h.

Referenced by ff_print_debug_info(), and MPV_common_init().

#define FF_DEFAULT_QUANT_BIAS   999999

Definition at line 1463 of file avcodec.h.

Referenced by dnxhd_encode_init(), and MPV_encode_init().

#define FF_DTG_AFD_14_9   11

Definition at line 1443 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_16_9   10

Definition at line 1442 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_16_9_SP_14_9   14

Definition at line 1445 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_4_3   9

Definition at line 1441 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_4_3_SP_14_9   13

Definition at line 1444 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_SAME   8

Definition at line 1440 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_SP_4_3   15

Definition at line 1446 of file avcodec.h.

Referenced by video_image_display().

#define FF_EC_DEBLOCK   2

Definition at line 1229 of file avcodec.h.

Referenced by ff_er_frame_end().

#define FF_EC_GUESS_MVS   1

Definition at line 1228 of file avcodec.h.

Referenced by guess_mv().

#define FF_ER_AGGRESSIVE   3

Definition at line 995 of file avcodec.h.

Referenced by huffman_decode(), and mpeg_decode_slice().

#define FF_ER_CAREFUL   1

Definition at line 993 of file avcodec.h.

Referenced by ac3_decode_frame().

#define FF_ER_COMPLIANT   2

#define FF_ER_VERY_AGGRESSIVE   4

Definition at line 996 of file avcodec.h.

#define FF_I_TYPE   1

#define FF_IDCT_ALTIVEC   8

Definition at line 1196 of file avcodec.h.

Referenced by dsputil_init_ppc(), and MPV_common_init_altivec().

#define FF_IDCT_ARM   7

Definition at line 1195 of file avcodec.h.

Referenced by dsputil_init_armv4l().

#define FF_IDCT_AUTO   0

#define FF_IDCT_CAVS   15

Definition at line 1203 of file avcodec.h.

Referenced by decode_pic(), and dsputil_init_mmx().

#define FF_IDCT_H264   11

Definition at line 1199 of file avcodec.h.

#define FF_IDCT_INT   1

Definition at line 1189 of file avcodec.h.

Referenced by dsputil_init().

#define FF_IDCT_IPP   13

Definition at line 1201 of file avcodec.h.

Referenced by dsputil_init_armv4l().

#define FF_IDCT_LIBMPEG2MMX   4

Definition at line 1192 of file avcodec.h.

Referenced by dsputil_init_mmx().

#define FF_IDCT_MLIB   6

Definition at line 1194 of file avcodec.h.

Referenced by MPV_common_init_mlib().

#define FF_IDCT_PS2   5

Definition at line 1193 of file avcodec.h.

Referenced by dsputil_init_mmi().

#define FF_IDCT_SH4   9

Definition at line 1197 of file avcodec.h.

Referenced by dsputil_init_sh4().

#define FF_IDCT_SIMPLE   2

Definition at line 1190 of file avcodec.h.

Referenced by parse_ffconfig(), and vcr2_init_sequence().

#define FF_IDCT_SIMPLEARM   10

Definition at line 1198 of file avcodec.h.

Referenced by dsputil_init_armv4l().

#define FF_IDCT_SIMPLEARMV5TE   16

Definition at line 1204 of file avcodec.h.

Referenced by dsputil_init_armv4l().

#define FF_IDCT_SIMPLEARMV6   17

Definition at line 1205 of file avcodec.h.

Referenced by dsputil_init_armv4l().

#define FF_IDCT_SIMPLEMMX   3

Definition at line 1191 of file avcodec.h.

Referenced by dsputil_init_mmx().

#define FF_IDCT_SIMPLEVIS   18

Definition at line 1206 of file avcodec.h.

Referenced by dsputil_init_vis().

#define FF_IDCT_VP3   12

#define FF_IDCT_WMV2   19

Definition at line 1207 of file avcodec.h.

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

#define FF_IDCT_XVIDMMX   14

Definition at line 1202 of file avcodec.h.

Referenced by dsputil_init_mmx(), and ff_h263_decode_frame().

#define FF_INPUT_BUFFER_PADDING_SIZE   8

#define FF_LAMBDA_MAX   (256*128-1)

Definition at line 1495 of file avcodec.h.

Referenced by get_qminmax().

#define FF_LAMBDA_SCALE   (1<<FF_LAMBDA_SHIFT)

Definition at line 1493 of file avcodec.h.

Referenced by encode_frame(), svq1_encode_plane(), and update_qscale().

#define FF_LAMBDA_SHIFT   7

#define FF_LEVEL_UNKNOWN   -99

Definition at line 1763 of file avcodec.h.

Referenced by encode_init().

#define FF_LOSS_ALPHA   0x0008

loss of alpha bits

Definition at line 2258 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 2260 of file avcodec.h.

Referenced by avcodec_get_pix_fmt_loss().

#define FF_LOSS_COLORQUANT   0x0010

loss due to color quantization

Definition at line 2259 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 2257 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 2256 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 2255 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 383 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 1557 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 1556 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 348 of file avcodec.h.

Referenced by avcodec_decode_audio2(), avcodec_encode_audio(), and avcodec_encode_video().

#define FF_MM_3DNOW   0x0004

AMD 3DNOW.

Definition at line 1243 of file avcodec.h.

Referenced by mm_support().

#define FF_MM_3DNOWEXT   0x0020

AMD 3DNowExt.

Definition at line 1247 of file avcodec.h.

Referenced by mm_support().

#define FF_MM_FORCE   0x80000000

Definition at line 1240 of file avcodec.h.

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

#define FF_MM_IWMMXT   0x0100

XScale IWMMXT.

Definition at line 1250 of file avcodec.h.

#define FF_MM_MMX   0x0001

standard MMX

Definition at line 1242 of file avcodec.h.

Referenced by main(), and mm_support().

#define FF_MM_MMXEXT   0x0002

SSE integer functions or AMD MMX ext.

Definition at line 1244 of file avcodec.h.

Referenced by main(), and mm_support().

#define FF_MM_SSE   0x0008

SSE functions.

Definition at line 1245 of file avcodec.h.

Referenced by mm_support().

#define FF_MM_SSE2   0x0010

PIV SSE2 functions.

Definition at line 1246 of file avcodec.h.

Referenced by mm_support().

#define FF_MM_SSE3   0x0040

Prescott SSE3 functions.

Definition at line 1248 of file avcodec.h.

Referenced by mm_support().

#define FF_MM_SSSE3   0x0080

Conroe SSSE3 functions.

Definition at line 1249 of file avcodec.h.

Referenced by mm_support().

#define FF_P_TYPE   2

#define FF_PRED_LEFT   0

Definition at line 1265 of file avcodec.h.

#define FF_PRED_MEDIAN   2

Definition at line 1267 of file avcodec.h.

#define FF_PRED_PLANE   1

Definition at line 1266 of file avcodec.h.

#define FF_PROFILE_AAC_LOW   1

Definition at line 1753 of file avcodec.h.

Referenced by Faac_encode_init().

#define FF_PROFILE_AAC_LTP   3

Definition at line 1755 of file avcodec.h.

Referenced by Faac_encode_init().

#define FF_PROFILE_AAC_MAIN   0

Definition at line 1752 of file avcodec.h.

Referenced by Faac_encode_init().

#define FF_PROFILE_AAC_SSR   2

Definition at line 1754 of file avcodec.h.

Referenced by Faac_encode_init().

#define FF_PROFILE_UNKNOWN   -99

Definition at line 1751 of file avcodec.h.

Referenced by encode_init(), and Faac_encode_init().

#define FF_QP2LAMBDA   118

#define FF_QSCALE_TYPE_H264   2

Definition at line 616 of file avcodec.h.

Referenced by decode_frame().

#define FF_QSCALE_TYPE_MPEG1   0

Definition at line 614 of file avcodec.h.

#define FF_QSCALE_TYPE_MPEG2   1

Definition at line 615 of file avcodec.h.

Referenced by slice_end().

#define FF_QUALITY_SCALE   FF_LAMBDA_SCALE

Definition at line 1497 of file avcodec.h.

#define FF_RC_STRATEGY_XVID   1

#define FF_S_TYPE   4

Definition at line 627 of file avcodec.h.

Referenced by ff_print_debug_info(), and ff_xvid_encode_frame().

#define FF_SI_TYPE   5

Definition at line 628 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_SP_TYPE   6

Definition at line 629 of file avcodec.h.

Referenced by ff_print_debug_info().

#define INT64_C ( c   )     c ## LL

#define LIBAVCODEC_BUILD   LIBAVCODEC_VERSION_INT

Definition at line 46 of file avcodec.h.

Referenced by avcodec_build().

#define LIBAVCODEC_IDENT   "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)

Definition at line 48 of file avcodec.h.

Referenced by jpeg_put_comments(), mov_write_uuidusmt_tag(), and oggvorbis_encode_init().

#define LIBAVCODEC_VERSION   51.50.0

Definition at line 45 of file avcodec.h.

Referenced by show_banner().

#define LIBAVCODEC_VERSION_INT   ((51<<16)+(50<<8)+0)

Definition at line 44 of file avcodec.h.

Referenced by avcodec_version().

#define MB_TYPE_16x16   0x0008

#define MB_TYPE_16x8   0x0010

#define MB_TYPE_8x16   0x0020

Definition at line 485 of file avcodec.h.

Referenced by filter_mb_fast().

#define MB_TYPE_8x8   0x0040

#define MB_TYPE_ACPRED   0x0200

Definition at line 489 of file avcodec.h.

Referenced by ff_h263_decode_mb(), ff_mpeg4_decode_mb(), and mpeg4_decode_partition_b().

#define MB_TYPE_CBP   0x00020000

Definition at line 500 of file avcodec.h.

Referenced by mpeg_decode_mb().

#define MB_TYPE_DIRECT2   0x0100

#define MB_TYPE_GMC   0x0400

Definition at line 490 of file avcodec.h.

Referenced by ff_mpeg4_decode_mb(), and mpeg4_decode_partition_a().

#define MB_TYPE_INTERLACED   0x0080

#define MB_TYPE_INTRA16x16   0x0002

Definition at line 481 of file avcodec.h.

Referenced by rv34_decode_mb_header(), and svq3_decode_mb().

#define MB_TYPE_INTRA4x4   0x0001

Definition at line 480 of file avcodec.h.

Referenced by ff_er_frame_end(), and svq3_decode_mb().

#define MB_TYPE_INTRA_PCM   0x0004

Definition at line 482 of file avcodec.h.

#define MB_TYPE_L0   (MB_TYPE_P0L0 | MB_TYPE_P1L0)

#define MB_TYPE_L0L1   (MB_TYPE_L0 | MB_TYPE_L1)

#define MB_TYPE_L1   (MB_TYPE_P0L1 | MB_TYPE_P1L1)

Definition at line 497 of file avcodec.h.

Referenced by pred_direct_motion(), and rv34_pred_mv_b().

#define MB_TYPE_P0L0   0x1000

Definition at line 492 of file avcodec.h.

Referenced by decode_mb_skip(), and pred_direct_motion().

#define MB_TYPE_P0L1   0x4000

Definition at line 494 of file avcodec.h.

Referenced by decode_mb_skip(), and pred_direct_motion().

#define MB_TYPE_P1L0   0x2000

Definition at line 493 of file avcodec.h.

Referenced by decode_mb_skip().

#define MB_TYPE_P1L1   0x8000

Definition at line 495 of file avcodec.h.

#define MB_TYPE_QUANT   0x00010000

Definition at line 499 of file avcodec.h.

Referenced by mpeg_decode_mb().

#define MB_TYPE_SKIP   0x0800

#define PARSER_FLAG_COMPLETE_FRAMES   0x0001

#define SLICE_FLAG_ALLOW_FIELD   0x0002

allow draw_horiz_band() with field slices (MPEG2 field pics)

Definition at line 1540 of file avcodec.h.

Referenced by ff_draw_horiz_band().

#define SLICE_FLAG_ALLOW_PLANE   0x0004

allow draw_horiz_band() with 1 component at a time (SVQ1)

Definition at line 1541 of file avcodec.h.

#define SLICE_FLAG_CODED_ORDER   0x0001

draw_horiz_band() is called in coded order instead of display

Definition at line 1539 of file avcodec.h.

Referenced by ff_draw_horiz_band().

#define X264_PART_B8X8   0x100

Definition at line 1954 of file avcodec.h.

Referenced by X264_init().

#define X264_PART_I4X4   0x001

Definition at line 1950 of file avcodec.h.

Referenced by X264_init().

#define X264_PART_I8X8   0x002

Definition at line 1951 of file avcodec.h.

Referenced by X264_init().

#define X264_PART_P4X4   0x020

Definition at line 1953 of file avcodec.h.

Referenced by X264_init().

#define X264_PART_P8X8   0x010

Definition at line 1952 of file avcodec.h.

Referenced by X264_init().


Typedef Documentation

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 2169 of file avcodec.h.

Definition at line 2151 of file avcodec.h.


Enumeration Type Documentation

enum AVDiscard

Enumerator:
AVDISCARD_NONE  discard nothing
AVDISCARD_DEFAULT  discard useless packets like 0 size packets in avi
AVDISCARD_NONREF  discard all non reference
AVDISCARD_BIDIR  discard all bidirectional frames
AVDISCARD_NONKEY  discard all frames except keyframes
AVDISCARD_ALL  discard all

Definition at line 365 of file avcodec.h.

enum CodecID

Identifies the syntax and semantics of the bitstream.

The principle is roughly: Two decoders with the same ID can decode the same streams. Two encoders with the same ID can encode compatible streams. There may be slight deviations from the principle due to implementation details.

If you add a codec ID to this list, add it so that 1. no value of a existing codec ID changes (that would break ABI), 2. it is as close as possible to similar codecs.

Enumerator:
CODEC_ID_NONE 
CODEC_ID_MPEG1VIDEO 
CODEC_ID_MPEG2VIDEO  preferred ID for MPEG-1/2 video decoding
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_PCM_S16LE 
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_ADPCM_IMA_QT 
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_AMR_NB 
CODEC_ID_AMR_WB 
CODEC_ID_RA_144 
CODEC_ID_RA_288 
CODEC_ID_ROQ_DPCM 
CODEC_ID_INTERPLAY_DPCM 
CODEC_ID_XAN_DPCM 
CODEC_ID_SOL_DPCM 
CODEC_ID_MP2 
CODEC_ID_MP3  preferred ID for decoding MPEG audio layer 1, 2 or 3
CODEC_ID_AAC 
CODEC_ID_MPEG4AAC 
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  as in Berlin toast format
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_DVD_SUBTITLE 
CODEC_ID_DVB_SUBTITLE 
CODEC_ID_TEXT  raw UTF-8 text
CODEC_ID_XSUB 
CODEC_ID_SSA 
CODEC_ID_MOV_TEXT 
CODEC_ID_TTF 
CODEC_ID_MPEG2TS  _FAKE_ codec to indicate a raw MPEG-2 TS stream (only used by libavformat)

Definition at line 66 of file avcodec.h.

enum CodecType

Enumerator:
CODEC_TYPE_UNKNOWN 
CODEC_TYPE_VIDEO 
CODEC_TYPE_AUDIO 
CODEC_TYPE_DATA 
CODEC_TYPE_SUBTITLE 
CODEC_TYPE_ATTACHMENT 
CODEC_TYPE_NB 

Definition at line 309 of file avcodec.h.

motion estimation type.

Enumerator:
ME_ZERO  no search, that is use 0,0 vector whenever one is needed
ME_FULL 
ME_LOG 
ME_PHODS 
ME_EPZS  enhanced predictive zonal search
ME_X1  reserved for experiments
ME_HEX  hexagon based search
ME_UMH  uneven multi-hexagon search
ME_ITER  iterative search

Definition at line 353 of file avcodec.h.

Currently unused, may be used if 24/32 bits samples are ever supported.

all in native-endian format

Enumerator:
SAMPLE_FMT_NONE 
SAMPLE_FMT_U8  unsigned 8 bits
SAMPLE_FMT_S16  signed 16 bits
SAMPLE_FMT_S24  signed 24 bits
SAMPLE_FMT_S32  signed 32 bits
SAMPLE_FMT_FLT  float

Definition at line 323 of file avcodec.h.


Function Documentation

int audio_resample ( ReSampleContext s,
short *  output,
short *  input,
int  nb_samples 
)

Definition at line 172 of file resample.c.

Referenced by do_audio_out().

void audio_resample_close ( ReSampleContext s  ) 

Definition at line 244 of file resample.c.

Referenced by av_encode().

ReSampleContext* audio_resample_init ( int  output_channels,
int  input_channels,
int  output_rate,
int  input_rate 
)

Definition at line 129 of file resample.c.

Referenced by do_audio_out().

void av_bitstream_filter_close ( AVBitStreamFilterContext bsf  ) 

Definition at line 50 of file bitstream_filter.c.

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 
)

Definition at line 58 of file bitstream_filter.c.

Referenced by write_frame().

AVBitStreamFilterContext* av_bitstream_filter_init ( const char *  name  ) 

Definition at line 35 of file bitstream_filter.c.

Referenced by opt_bsf().

AVBitStreamFilter* av_bitstream_filter_next ( AVBitStreamFilter f  ) 

Definition at line 25 of file bitstream_filter.c.

Referenced by opt_show_formats().

AVCodec* av_codec_next ( AVCodec c  ) 

Definition at line 129 of file utils.c.

Referenced by opt_show_formats().

void* av_fast_realloc ( void *  ptr,
unsigned int *  size,
unsigned int  min_size 
)

attribute_deprecated void av_free_static ( void   ) 

Frees all static arrays and resets their pointers to 0.

Call this function to release all statically allocated tables.

Deprecated:
. Code which uses av_free_static is broken/misdesigned and should correctly use static arrays

Definition at line 106 of file utils.c.

Referenced by av_exit(), and do_free().

int av_get_bits_per_sample ( enum CodecID  codec_id  ) 

Returns codec bits per sample.

Parameters:
[in] codec_id the codec
Returns:
Number of bits per sample or zero if unknown for the given codec.

Definition at line 1300 of file utils.c.

Referenced by av_find_stream_info(), get_aiff_header(), get_audio_frame_size(), mkv_write_tracks(), mov_read_stsd(), mov_write_header(), pcm_decode_frame(), pcm_read_seek(), raw_read_packet(), and voc_get_packet().

int av_get_bits_per_sample_format ( enum SampleFormat  sample_fmt  ) 

Returns sample format bits per sample.

Parameters:
[in] sample_fmt the sample format
Returns:
Number of bits per sample or zero if unknown for the given sample format.

Definition at line 1336 of file utils.c.

Referenced by mkv_write_tracks().

char av_get_pict_type_char ( int  pict_type  ) 

Returns a single letter to describe the given picture type pict_type.

Parameters:
[in] pict_type the picture type
Returns:
A single character representing the picture type.

Definition at line 1288 of file utils.c.

Referenced by decode_mb_cavlc(), decode_slice_header(), do_video_stats(), ff_rate_estimate_qscale(), flv_h263_decode_picture_header(), show_pict_info(), and svq3_decode_frame().

attribute_deprecated void* av_mallocz_static ( unsigned int  size  ) 

Allocation of static arrays.

Warning:
Do not use for normal allocation.
Parameters:
[in] size The amount of memory you need in bytes.
Returns:
block of memory of the requested size
Deprecated:
. Code which uses av_mallocz_static is broken/misdesigned and should correctly use static arrays

Definition at line 76 of file utils.c.

Referenced by ff_realloc_static(), init_2d_vlc_rl(), and init_vlc_rl().

int av_parse_video_frame_rate ( AVRational frame_rate,
const char *  str 
)

Parses str and put in frame_rate the detected values.

Returns:
0 in case of a successful parsing, a negative value otherwise
Parameters:
[in] str the string to parse: it has to be a string in the format <frame_rate_nom>/<frame_rate_den>, a float number or a valid video rate abbreviation
[in,out] frame_rate pointer to the AVRational which will contain the detected frame rate

Definition at line 1496 of file utils.c.

Referenced by opt_frame_rate(), and parse_frame_rate().

int av_parse_video_frame_size ( int *  width_ptr,
int *  height_ptr,
const char *  str 
)

Parses str and put in width_ptr and height_ptr the detected values.

Returns:
0 in case of a successful parsing, a negative value otherwise
Parameters:
[in] str the string to parse: it has to be a string in the format <width>x<height> or a valid video frame size abbreviation.
[in,out] width_ptr pointer to the variable which will contain the detected frame width value
[in,out] height_ptr pointer to the variable which will contain the detected frame height value

Definition at line 1468 of file utils.c.

Referenced by opt_frame_size(), parse_ffconfig(), and parse_image_size().

int av_parser_change ( AVCodecParserContext s,
AVCodecContext avctx,
uint8_t **  poutbuf,
int *  poutbuf_size,
const uint8_t buf,
int  buf_size,
int  keyframe 
)

Returns:
0 if the output buffer is a subset of the input, 1 if it is allocated and must be freed
Deprecated:
use AVBitstreamFilter

Definition at line 182 of file parser.c.

Referenced by output_packet().

void av_parser_close ( AVCodecParserContext s  ) 

AVCodecParserContext* av_parser_init ( int  codec_id  ) 

Definition at line 38 of file parser.c.

Referenced by av_find_stream_info(), av_read_frame_internal(), and remove_extradata().

AVCodecParser* av_parser_next ( AVCodecParser c  ) 

Definition at line 27 of file parser.c.

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 
)

Parameters:
buf input
buf_size input length, to signal EOF, this should be 0 (so that the last frame can be output)
pts input presentation timestamp
dts input decoding timestamp
poutbuf will contain a pointer to the first byte of the output frame
poutbuf_size will contain the length of the output frame
Returns:
the number of bytes of the input bitstream used
Example:
   while(in_len){
       len = av_parser_parse(myparser, AVCodecContext, &data, &size,
                                       in_data, in_len,
                                       pts, dts);
       in_data += len;
       in_len  -= len;

       if(size)
          decode_frame(data, size);
   }

Definition at line 103 of file parser.c.

Referenced by av_read_frame_internal().

void av_picture_copy ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

int av_picture_crop ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  top_band,
int  left_band 
)

Crop image top and left side.

Definition at line 2224 of file imgconvert.c.

Referenced by do_video_out(), and img_crop().

int av_picture_pad ( AVPicture dst,
const AVPicture src,
int  height,
int  width,
int  pix_fmt,
int  padtop,
int  padbottom,
int  padleft,
int  padright,
int *  color 
)

Pad image.

Definition at line 2246 of file imgconvert.c.

Referenced by do_video_out(), and img_pad().

void av_register_bitstream_filter ( AVBitStreamFilter bsf  ) 

Definition at line 30 of file bitstream_filter.c.

void av_register_codec_parser ( AVCodecParser parser  ) 

Definition at line 32 of file parser.c.

int av_resample ( AVResampleContext c,
short *  dst,
short *  src,
int *  consumed,
int  src_size,
int  dst_size,
int  update_ctx 
)

resamples.

Parameters:
src an array of unconsumed samples
consumed the number of samples of src which have been consumed are returned here
src_size the number of unconsumed samples available
dst_size the amount of space in samples available in dst
update_ctx if this is 0 then the context wont be modified, that way several channels can be resampled with the same context
Returns:
the number of samples written in dst or -1 if an error occured

Definition at line 236 of file resample2.c.

Referenced by audio_resample().

void av_resample_close ( struct AVResampleContext c  ) 

Definition at line 204 of file resample2.c.

Referenced by audio_resample_close().

void av_resample_compensate ( AVResampleContext c,
int  sample_delta,
int  compensation_distance 
)

Compensates samplerate/timestamp drift.

The compensation is done by changing the resampler parameters, so no audible clicks or similar distortions ocur

Parameters:
compensation_distance distance in output samples over which the compensation should be performed
sample_delta number of output samples which should be output less
example: av_resample_compensate(c, 10, 500) here instead of 510 samples only 500 samples would be output

note, due to rounding the actual compensation might be slightly different, especially if the compensation_distance is large and the in_rate used during init is small

Definition at line 221 of file resample2.c.

Referenced by av_resample(), and do_audio_out().

struct AVResampleContext* av_resample_init ( int  out_rate,
int  in_rate,
int  filter_size,
int  phase_shift,
int  linear,
double  cutoff 
) [read]

Initializes an audio resampler.

Note, if either rate is not an integer then simply scale both rates up so they are.

Definition at line 182 of file resample2.c.

Referenced by audio_resample_init().

unsigned int av_xiphlacing ( unsigned char *  s,
unsigned int  v 
)

Definition at line 1358 of file utils.c.

Referenced by fixup_vorbis_headers(), oggvorbis_encode_init(), and put_main_header().

void avcodec_align_dimensions ( AVCodecContext s,
int *  width,
int *  height 
)

Definition at line 163 of file utils.c.

Referenced by avcodec_default_get_buffer().

AVCodecContext* avcodec_alloc_context ( void   ) 

Allocates an AVCodecContext and sets its fields to default values.

The resulting struct can be deallocated by simply calling av_free().

Returns:
An AVCodecContext filled with default values or NULL on failure.
See also:
avcodec_get_context_defaults

Definition at line 820 of file utils.c.

Referenced by add_av_stream1(), add_codec(), audio_decode_example(), audio_encode_example(), av_new_stream(), estimate_best_b_count(), http_prepare_data(), main(), read_ffserver_streams(), rtp_new_av_stream(), video_decode_example(), and video_encode_example().

AVCodecContext* avcodec_alloc_context2 ( enum  CodecType  ) 

THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!

Definition at line 806 of file utils.c.

Referenced by avcodec_alloc_context(), and main().

AVFrame* avcodec_alloc_frame ( void   ) 

Allocates an AVFrame and sets its fields to default values.

The resulting struct can be deallocated by simply calling av_free().

Returns:
An AVFrame filled with default values or NULL on failure.
See also:
avcodec_get_frame_defaults

Definition at line 831 of file utils.c.

Referenced by AC3_encode_init(), adx_encode_init(), alloc_picture(), encode_init(), Faac_encode_init(), flac_encode_init(), g726_init(), get_watermark_picture(), libgsm_init(), MP3lame_encode_init(), MPA_encode_init(), oggvorbis_encode_init(), pcm_encode_init(), roq_dpcm_encode_init(), video_decode_example(), video_encode_example(), video_thread(), and vorbis_encode_init().

unsigned avcodec_build ( void   ) 

Definition at line 1249 of file utils.c.

Referenced by show_version().

int avcodec_check_dimensions ( void *  av_log_ctx,
unsigned int  w,
unsigned int  h 
)

int avcodec_close ( AVCodecContext avctx  ) 

attribute_deprecated int avcodec_decode_audio ( AVCodecContext avctx,
int16_t *  samples,
int *  frame_size_ptr,
const uint8_t buf,
int  buf_size 
)

Deprecated:
Use avcodec_decode_audio2() instead.

Definition at line 987 of file utils.c.

Referenced by audio_decode_example().

int avcodec_decode_audio2 ( AVCodecContext avctx,
int16_t *  samples,
int *  frame_size_ptr,
const uint8_t buf,
int  buf_size 
)

Decodes an audio frame from buf into samples.

The avcodec_decode_audio2() function decodes an audio frame from the input buffer buf of size buf_size. To decode it, it makes use of the audio codec which was coupled with avctx using avcodec_open(). The resulting decoded frame is stored in output buffer samples. If no frame could be decompressed, frame_size_ptr is zero. Otherwise, it is the decompressed frame size in bytes.

Warning:
You must set frame_size_ptr to the allocated size of the output buffer before calling avcodec_decode_audio2().

The input buffer must be FF_INPUT_BUFFER_PADDING_SIZE larger than the actual read bytes because some optimized bitstream readers read 32 or 64 bits at once and could read over the end.

The end of the input buffer buf should be set to 0 to ensure that no overreading happens for damaged MPEG streams.

Note:
You might have to align the input buffer buf and output buffer samples. The alignment requirements depend on the CPU: On some CPUs it isn't necessary at all, on others it won't work at all if not aligned and on others it will work but it will have an impact on performance. In practice, the bitstream should have 4 byte alignment at minimum and all sample data should be 16 byte aligned unless the CPU doesn't need it (AltiVec and SSE do). If the linesize is not a multiple of 16 then there's no sense in aligning the start of the buffer to 16.
Parameters:
avctx the codec context
[out] samples the output buffer
[in,out] frame_size_ptr the output buffer size in bytes
[in] buf the input buffer
[in] buf_size the input buffer size in bytes
Returns:
On error a negative value is returned, otherwise the number of bytes used or zero if no frame could be decompressed.

Definition at line 958 of file utils.c.

Referenced by audio_decode_frame(), avcodec_decode_audio(), output_packet(), and try_decode_frame().

int avcodec_decode_subtitle ( AVCodecContext avctx,
AVSubtitle sub,
int *  got_sub_ptr,
const uint8_t buf,
int  buf_size 
)

Definition at line 995 of file utils.c.

Referenced by output_packet(), and subtitle_thread().

int avcodec_decode_video ( AVCodecContext avctx,
AVFrame picture,
int *  got_picture_ptr,
const uint8_t buf,
int  buf_size 
)

Decodes a video frame from buf into picture.

The avcodec_decode_video() function decodes a video frame from the input buffer buf of size buf_size. To decode it, it makes use of the video codec which was coupled with avctx using avcodec_open(). The resulting decoded frame is stored in picture.

Warning:
The input buffer must be FF_INPUT_BUFFER_PADDING_SIZE larger than the actual read bytes because some optimized bitstream readers read 32 or 64 bits at once and could read over the end.

The end of the input buffer buf should be set to 0 to ensure that no overreading happens for damaged MPEG streams.

Note:
You might have to align the input buffer buf and output buffer samples. The alignment requirements depend on the CPU: on some CPUs it isn't necessary at all, on others it won't work at all if not aligned and on others it will work but it will have an impact on performance. In practice, the bitstream should have 4 byte alignment at minimum and all sample data should be 16 byte aligned unless the CPU doesn't need it (AltiVec and SSE do). If the linesize is not a multiple of 16 then there's no sense in aligning the start of the buffer to 16.
Parameters:
avctx the codec context
[out] picture The AVFrame in which the decoded video frame will be stored.
[in] buf the input buffer
[in] buf_size the size of the input buffer in bytes
[in,out] got_picture_ptr Zero if no frame could be decompressed, otherwise, it is nonzero.
Returns:
On error a negative value is returned, otherwise the number of bytes used or zero if no frame could be decompressed.

Definition at line 935 of file utils.c.

Referenced by get_watermark_picture(), output_packet(), try_decode_frame(), video_decode_example(), and video_thread().

int avcodec_default_execute ( AVCodecContext c,
int(*)(AVCodecContext *c2, void *arg2)  func,
void **  arg,
int *  ret,
int  count 
)

Definition at line 400 of file utils.c.

Referenced by avcodec_get_context_defaults2().

void avcodec_default_free_buffers ( AVCodecContext s  ) 

Definition at line 1271 of file utils.c.

Referenced by avcodec_close(), and MPV_common_end().

int avcodec_default_get_buffer ( AVCodecContext s,
AVFrame pic 
)

Definition at line 228 of file utils.c.

Referenced by avcodec_get_context_defaults2(), and my_get_buffer().

enum PixelFormat avcodec_default_get_format ( struct AVCodecContext s,
const enum PixelFormat fmt 
)

Definition at line 410 of file utils.c.

Referenced by avcodec_get_context_defaults2().

int avcodec_default_reget_buffer ( AVCodecContext s,
AVFrame pic 
)

Definition at line 368 of file utils.c.

Referenced by avcodec_get_context_defaults2().

void avcodec_default_release_buffer ( AVCodecContext s,
AVFrame pic 
)

Definition at line 342 of file utils.c.

Referenced by avcodec_get_context_defaults2(), and my_release_buffer().

int avcodec_encode_audio ( AVCodecContext avctx,
uint8_t buf,
int  buf_size,
const short *  samples 
)

Encodes an audio frame from samples into buf.

The avcodec_encode_audio() function encodes an audio frame from the input buffer samples. To encode it, it makes use of the audio codec which was coupled with avctx using avcodec_open(). The resulting encoded frame is stored in output buffer buf.

Note:
The output buffer should be at least FF_MIN_BUFFER_SIZE bytes large.
Parameters:
avctx the codec context
[out] buf the output buffer
[in] buf_size the output buffer size
[in] samples the input buffer containing the samples The number of samples read from this buffer is frame_size*channels, both of which are defined in avctx.
Returns:
On error a negative value is returned, on success zero or the number of bytes used to encode the data read from the input buffer.

Definition at line 892 of file utils.c.

Referenced by audio_encode_example(), do_audio_out(), output_packet(), and write_audio_frame().

int avcodec_encode_subtitle ( AVCodecContext avctx,
uint8_t buf,
int  buf_size,
const AVSubtitle sub 
)

Definition at line 926 of file utils.c.

Referenced by do_subtitle_out().

int avcodec_encode_video ( AVCodecContext avctx,
uint8_t buf,
int  buf_size,
const AVFrame pict 
)

Encodes a video frame from pict into buf.

The avcodec_encode_video() function encodes a video frame from the input pict. To encode it, it makes use of the video codec which was coupled with avctx using avcodec_open(). The resulting encoded bytes representing the frame are stored in the output buffer buf. The input picture should be stored using a specific format, namely avctx.pix_fmt.

Parameters:
avctx the codec context
[out] buf the output buffer for the bitstream of encoded frame
[in] buf_size the size of the output buffer in bytes
[in] pict the input picture to encode
Returns:
On error a negative value is returned, on success zero or the number of bytes used from the input buffer.

Definition at line 907 of file utils.c.

Referenced by do_video_out(), estimate_best_b_count(), output_packet(), video_encode_example(), and write_video_frame().

int avcodec_find_best_pix_fmt ( int  pix_fmt_mask,
int  src_pix_fmt,
int  has_alpha,
int *  loss_ptr 
)

Finds the best pixel format to convert to given a certain source pixel format.

When converting from one pixel format to another, information loss may occur. For example, when converting from RGB24 to GRAY, the color information will be lost. Similarly, other losses occur when converting from some formats to other formats. avcodec_find_best_pix_fmt() searches which of the given pixel formats should be used to suffer the least amount of loss. The pixel formats from which it chooses one, are determined by the pix_fmt_mask parameter.

 src_pix_fmt = PIX_FMT_YUV420P;
 pix_fmt_mask = (1 << PIX_FMT_YUV422P) || (1 << PIX_FMT_RGB24);
 dst_pix_fmt = avcodec_find_best_pix_fmt(pix_fmt_mask, src_pix_fmt, alpha, &loss);

Parameters:
[in] pix_fmt_mask bitmask determining which pixel format to choose from
[in] src_pix_fmt source pixel format
[in] has_alpha Whether the source pixel format alpha channel is used.
[out] loss_ptr Combination of flags informing you what kind of losses will occur.
Returns:
The best pixel format to convert to or -1 if none was found.

Definition at line 763 of file imgconvert.c.

AVCodec* avcodec_find_decoder ( enum CodecID  id  ) 

Finds a registered decoder with a matching codec ID.

Parameters:
id CodecID of the requested decoder
Returns:
A decoder if one was found, NULL otherwise.

Definition at line 1053 of file utils.c.

Referenced by audio_decode_example(), av_encode(), avcodec_string(), get_watermark_picture(), open_parser(), sdp_parse_rtpmap(), stream_component_open(), try_decode_frame(), and video_decode_example().

AVCodec* avcodec_find_decoder_by_name ( const char *  name  ) 

Finds a registered decoder with the specified name.

Parameters:
name name of the requested decoder
Returns:
A decoder if one was found, NULL otherwise.

Definition at line 1065 of file utils.c.

Referenced by find_codec_or_die().

AVCodec* avcodec_find_encoder ( enum CodecID  id  ) 

Finds a registered encoder with a matching codec ID.

Parameters:
id CodecID of the requested encoder
Returns:
An encoder if one was found, NULL otherwise.

Definition at line 1029 of file utils.c.

Referenced by asf_write_header1(), audio_encode_example(), av_encode(), avcodec_string(), compute_stats(), estimate_best_b_count(), new_video_stream(), open_audio(), open_video(), and video_encode_example().

AVCodec* avcodec_find_encoder_by_name ( const char *  name  ) 

Finds a registered encoder with the specified name.

Parameters:
name name of the requested encoder
Returns:
An encoder if one was found, NULL otherwise.

Definition at line 1041 of file utils.c.

Referenced by find_codec_or_die(), opt_audio_codec(), and opt_video_codec().

void avcodec_flush_buffers ( AVCodecContext avctx  ) 

Flush buffers, should be called when seeking or when switching to a different stream.

Definition at line 1265 of file utils.c.

Referenced by audio_decode_frame(), subtitle_thread(), and video_thread().

void avcodec_get_chroma_sub_sample ( int  pix_fmt,
int *  h_shift,
int *  v_shift 
)

void avcodec_get_context_defaults ( AVCodecContext s  ) 

Sets the fields of the given AVCodecContext to default values.

Parameters:
s The AVCodecContext of which the fields should be set to default values.

Definition at line 816 of file utils.c.

void avcodec_get_context_defaults2 ( AVCodecContext s,
enum  CodecType 
)

THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!

Definition at line 777 of file utils.c.

Referenced by avcodec_alloc_context2(), avcodec_get_context_defaults(), new_audio_stream(), new_subtitle_stream(), and new_video_stream().

void avcodec_get_frame_defaults ( AVFrame pic  ) 

Sets the fields of the given AVFrame to default values.

Parameters:
pic The AVFrame of which the fields should be set to default values.

Definition at line 824 of file utils.c.

Referenced by av_encode(), avcodec_alloc_frame(), bmp_decode_init(), bmp_encode_init(), common_init(), do_video_out(), encode_init(), estimate_best_b_count(), gif_decode_init(), output_packet(), pcx_init(), png_dec_init(), png_enc_init(), ptx_init(), sgi_init(), sunrast_init(), targa_init(), tiff_init(), and txd_init().

enum PixelFormat avcodec_get_pix_fmt ( const char *  name  ) 

Definition at line 398 of file imgconvert.c.

Referenced by opt_frame_pix_fmt().

int avcodec_get_pix_fmt_loss ( int  dst_pix_fmt,
int  src_pix_fmt,
int  has_alpha 
)

Computes what kind of losses will occur when converting from one specific pixel format to another.

When converting from one pixel format to another, information loss may occur. For example, when converting from RGB24 to GRAY, the color information will be lost. Similarly, other losses occur when converting from some formats to other formats. These losses can involve loss of chroma, but also loss of resolution, loss of color depth, loss due to the color space conversion, loss of the alpha bits or loss due to color quantization. avcodec_get_fix_fmt_loss() informs you about the various types of losses which will occur when converting from one pixel format to another.

Parameters:
[in] dst_pix_fmt destination pixel format
[in] src_pix_fmt source pixel format
[in] has_alpha Whether the source pixel format alpha channel is used.
Returns:
Combination of flags informing you what kind of losses will occur.

Definition at line 640 of file imgconvert.c.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_find_best_pix_fmt1().

const char* avcodec_get_pix_fmt_name ( int  pix_fmt  ) 

Definition at line 390 of file imgconvert.c.

Referenced by avcodec_string(), and dc1394_read_common().

void avcodec_init ( void   ) 

Initializes libavcodec.

Warning:
This function must be called before any other libavcodec function.

Definition at line 1254 of file utils.c.

Referenced by av_register_all(), and main().

int avcodec_open ( AVCodecContext avctx,
AVCodec codec 
)

Initializes the AVCodecContext to use the given AVCodec.

Prior to using this function the context has to be allocated.

The functions avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(), avcodec_find_decoder() and avcodec_find_encoder() provide an easy way for retrieving a codec.

Warning:
This function is not thread safe!
 avcodec_register_all();
 codec = avcodec_find_decoder(CODEC_ID_H264);
 if (!codec)
     exit(1);

 context = avcodec_alloc_context();

 if (avcodec_open(context, codec) < 0)
     exit(1);

Parameters:
avctx The context which will be set up to use the given codec.
codec The codec to use within the context.
Returns:
zero on success, a negative value on error
See also:
avcodec_alloc_context, avcodec_find_decoder, avcodec_find_encoder

Definition at line 841 of file utils.c.

Referenced by audio_decode_example(), audio_encode_example(), av_encode(), estimate_best_b_count(), get_watermark_picture(), open_audio(), open_parser(), open_video(), stream_component_open(), try_decode_frame(), video_decode_example(), and video_encode_example().

int avcodec_parse_frame ( AVCodecContext avctx,
uint8_t **  pdata,
int *  data_size_ptr,
uint8_t buf,
int  buf_size 
)

void avcodec_pix_fmt_string ( char *  buf,
int  buf_size,
int  pix_fmt 
)

Print in buf the string corresponding to the pixel format with number pix_fmt, or an header if pix_fmt is negative.

Parameters:
[in] buf the buffer where to write the string
[in] buf_size the size of buf
[in] pix_fmt the number of the pixel format to print the corresponding info string, or a negative value to print the corresponding header. Meaningful values for obtaining a pixel format info vary from 0 to PIX_FMT_NB -1.

Definition at line 408 of file imgconvert.c.

Referenced by list_pix_fmts().

unsigned int avcodec_pix_fmt_to_codec_tag ( enum PixelFormat  p  ) 

Definition at line 58 of file raw.c.

Referenced by av_find_stream_info(), and raw_init_encoder().

void avcodec_register_all ( void   ) 

Register all the codecs, parsers and bitstream filters which were enabled at configuration time.

If you do not call this function you can select exactly which formats you want to support, by using the individual registration functions.

See also:
register_avcodec

av_register_codec_parser

av_register_bitstream_filter

Definition at line 54 of file allcodecs.c.

Referenced by av_register_all(), and main().

void avcodec_set_dimensions ( AVCodecContext s,
int  width,
int  height 
)

void avcodec_string ( char *  buf,
int  buf_size,
AVCodecContext enc,
int  encode 
)

Definition at line 1077 of file utils.c.

Referenced by av_find_stream_info(), compute_stats(), and dump_stream_format().

int avcodec_thread_execute ( AVCodecContext s,
int(*)(AVCodecContext *c2, void *arg2)  func,
void **  arg,
int *  ret,
int  count 
)

Definition at line 95 of file beosthread.c.

Referenced by avcodec_thread_init().

void avcodec_thread_free ( AVCodecContext s  ) 

Free what has been allocated by avcodec_thread_init().

Must be called after decoding has finished, especially do not call while avcodec_thread_execute() is running.

Free what has been allocated by avcodec_thread_init().

must be called after decoding has finished, especially do not call while avcodec_thread_execute() is running

Definition at line 78 of file beosthread.c.

Referenced by avcodec_close(), and avcodec_thread_init().

int avcodec_thread_init ( AVCodecContext s,
int  thread_count 
)

unsigned avcodec_version ( void   ) 

Definition at line 1244 of file utils.c.

int avpicture_alloc ( AVPicture picture,
int  pix_fmt,
int  width,
int  height 
)

Allocate memory for a picture.

Call avpicture_free to free it.

Parameters:
picture the picture to be filled in
pix_fmt the format of the picture
width the width of the picture
height the height of the picture
Returns:
zero if successful, a negative value if not

Definition at line 2192 of file imgconvert.c.

Referenced by av_encode(), img_convert(), and qtrle_encode_init().

int avpicture_deinterlace ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

Definition at line 2821 of file imgconvert.c.

Referenced by pre_process_video_frame().

int avpicture_fill ( AVPicture picture,
uint8_t ptr,
int  pix_fmt,
int  width,
int  height 
)

Fill in the AVPicture fields.

The fields of the given AVPicture are filled in by using the 'ptr' address which points to the image data buffer. Depending on the specified picture format, one or multiple image data pointers and line sizes will be set. If a planar format is specified, several pointers will be set pointing to the different picture planes and the line sizes of the different planes will be stored in the lines_sizes array.

Parameters:
picture AVPicture whose fields are to be filled in
ptr Buffer which will contain or contains the actual image data
pix_fmt The format in which the picture data is stored.
width the width of the image in pixels
height the height of the image in pixels
Returns:
size of the image data in bytes

Definition at line 429 of file imgconvert.c.

Referenced by alloc_picture(), avcodec_default_get_buffer(), avpicture_alloc(), avpicture_get_size(), copy_frame(), get_watermark_picture(), pre_process_video_frame(), Process(), Process0(), Process1(), and raw_decode().

void avpicture_free ( AVPicture picture  ) 

Free a picture previously allocated by avpicture_alloc().

Parameters:
picture the AVPicture to be freed

Definition at line 2211 of file imgconvert.c.

Referenced by img_convert(), and qtrle_encode_end().

int avpicture_get_size ( int  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.

Parameters:
pix_fmt the given picture format
width the width of the image
height the height of the image
Returns:
Image data size in bytes

Definition at line 634 of file imgconvert.c.

Referenced by alloc_picture(), avpicture_alloc(), avpicture_layout(), dc1394_read_common(), get_watermark_picture(), pam_encode_frame(), PCMDEF(), pnm_encode_frame(), pnm_parse(), pre_process_video_frame(), Process(), Process0(), Process1(), raw_init_decoder(), targa_encode_frame(), v4l2_read_header(), and yuv4_read_packet().

int avpicture_layout ( const AVPicture src,
int  pix_fmt,
int  width,
int  height,
unsigned char *  dest,
int  dest_size 
)

Definition at line 581 of file imgconvert.c.

Referenced by raw_encode().

attribute_deprecated int img_convert ( AVPicture dst,
int  dst_pix_fmt,
const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

convert among pixel formats

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 2329 of file imgconvert.c.

Referenced by img_convert().

attribute_deprecated void img_copy ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 2307 of file imgconvert.c.

attribute_deprecated int img_crop ( AVPicture dst,
const AVPicture src,
int  pix_fmt,
int  top_band,
int  left_band 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 2313 of file imgconvert.c.

int img_get_alpha_info ( const AVPicture src,
int  pix_fmt,
int  width,
int  height 
)

Tell if an image really has transparent alpha values.

Returns:
ored mask of FF_ALPHA_xxx constants

Definition at line 2602 of file imgconvert.c.

attribute_deprecated int img_pad ( AVPicture dst,
const AVPicture src,
int  height,
int  width,
int  pix_fmt,
int  padtop,
int  padbottom,
int  padleft,
int  padright,
int *  color 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 2319 of file imgconvert.c.

attribute_deprecated void img_resample ( struct ImgReSampleContext s,
AVPicture output,
const AVPicture input 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 487 of file imgresample.c.

attribute_deprecated void img_resample_close ( struct ImgReSampleContext s  ) 

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 509 of file imgresample.c.

attribute_deprecated ImgReSampleContext* img_resample_full_init ( int  owidth,
int  oheight,
int  iwidth,
int  iheight,
int  topBand,
int  bottomBand,
int  leftBand,
int  rightBand,
int  padtop,
int  padbottom,
int  padleft,
int  padright 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 434 of file imgresample.c.

Referenced by img_resample_init().

attribute_deprecated ImgReSampleContext* img_resample_init ( int  output_width,
int  output_height,
int  input_width,
int  input_height 
)

Deprecated:
Use the software scaler (swscale) instead.

Definition at line 427 of file imgresample.c.

void register_avcodec ( AVCodec format  ) 

Definition at line 134 of file utils.c.


Variable Documentation

Definition at line 25 of file parser.c.

Definition at line 127 of file utils.c.


Generated on Fri Oct 3 22:46:55 2008 for ffmpeg by  doxygen 1.5.6