hvirtual/quicktime/ffmpeg/libavcodec/avcodec.h File Reference

#include "common.h"
#include "rational.h"
#include <sys/types.h>
#include <stdarg.h>

Include dependency graph for avcodec.h:

Go to the source code of this file.

Data Structures

struct  RcOverride
struct  AVPanScan
struct  AVFrame
struct  AVCLASS
struct  AVCodecContext
struct  AVOption
struct  AVCodec
struct  AVPicture
struct  AVPaletteControl
struct  AVSubtitleRect
struct  AVSubtitle
struct  AVCodecParserContext
struct  AVCodecParser

Defines

#define FFMPEG_VERSION_INT   0x000409
#define FFMPEG_VERSION   "CVS"
#define LIBAVCODEC_BUILD   4759
#define LIBAVCODEC_VERSION_INT   FFMPEG_VERSION_INT
#define LIBAVCODEC_VERSION   FFMPEG_VERSION
#define AV_STRINGIFY(s)   AV_TOSTRING(s)
#define AV_TOSTRING(s)   #s
#define LIBAVCODEC_IDENT   "FFmpeg" LIBAVCODEC_VERSION "b" AV_STRINGIFY(LIBAVCODEC_BUILD)
#define AV_NOPTS_VALUE   int64_t_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 AVCODEC_MAX_AUDIO_FRAME_SIZE   131072
#define FF_INPUT_BUFFER_PADDING_SIZE   8
#define FF_MIN_BUFFER_SIZE   16384
#define FF_MAX_B_FRAMES   8
#define CODEC_FLAG_QSCALE   0x0002
 use fixed qscale
#define CODEC_FLAG_4MV   0x0004
 4 MV per MB allowed / Advanced prediction for H263
#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
#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
 H263 Advanced intra coding / MPEG4 AC prediction (remove this).
#define CODEC_FLAG_AC_PRED   0x01000000
 H263 Advanced intra coding / MPEG4 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
 H263 Alternative inter vlc.
#define CODEC_FLAG_OBMC   0x00000001
 OBMC.
#define CODEC_FLAG_LOOP_FILTER   0x00000800
 loop filter
#define CODEC_FLAG_H263P_SLICE_STRUCT   0x10000000
#define CODEC_FLAG_INTERLACED_ME   0x20000000
 interlaced motion estimation
#define CODEC_FLAG_SVCD_SCAN_OFFSET   0x40000000
 will reserve space for SVCD scan offset user data
#define CODEC_FLAG_CLOSED_GOP   0x80000000
#define CODEC_FLAG2_FAST   0x00000001
 allow non spec compliant speedup tricks
#define CODEC_FLAG2_STRICT_GOP   0x00000002
 strictly enforce GOP size
#define CODEC_FLAG2_NO_OUTPUT   0x00000004
 skip bitstream encoding
#define CODEC_FLAG2_LOCAL_HEADER   0x00000008
 place global headers at every keyframe instead of in extradata
#define CODEC_CAP_DRAW_HORIZ_BAND   0x0001
 decoder can use draw_horiz_band callback
#define CODEC_CAP_DR1   0x0002
#define CODEC_CAP_PARSE_ONLY   0x0004
#define CODEC_CAP_TRUNCATED   0x0008
#define CODEC_CAP_HWACCEL   0x0010
#define CODEC_CAP_DELAY   0x0020
#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_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 dealloc 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 dealloc 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_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
 workaround various bugs in microsofts 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 non standarized 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_EC_GUESS_MVS   1
#define FF_EC_DEBLOCK   2
#define FF_MM_FORCE   0x80000000
#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_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 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_LEVEL_UNKNOWN   -99
#define FF_OPT_TYPE_BOOL   1
 boolean - true,1,on (or simply presence)
#define FF_OPT_TYPE_DOUBLE   2
 double
#define FF_OPT_TYPE_INT   3
 integer
#define FF_OPT_TYPE_STRING   4
 string (finished with )
#define FF_OPT_TYPE_MASK   0x1f
 mask for types - upper bits are various flags
#define FF_OPT_TYPE_FLAG   (FF_OPT_TYPE_BOOL | 0x40)
#define FF_OPT_TYPE_RCOVERRIDE   (FF_OPT_TYPE_STRING | 0x80)
#define FF_OPT_MAX_DEPTH   10
#define AVPALETTE_SIZE   1024
#define AVPALETTE_COUNT   256
#define PCM_CODEC(id, name)
#define FF_LOSS_RESOLUTION   0x0001
#define FF_LOSS_DEPTH   0x0002
#define FF_LOSS_COLORSPACE   0x0004
#define FF_LOSS_ALPHA   0x0008
#define FF_LOSS_COLORQUANT   0x0010
#define FF_LOSS_CHROMA   0x0020
#define FF_ALPHA_TRANSP   0x0001
#define FF_ALPHA_SEMI_TRANSP   0x0002
#define AV_PARSER_PTS_NB   4
#define AV_LOG_QUIET   -1
#define AV_LOG_ERROR   0
#define AV_LOG_INFO   1
#define AV_LOG_DEBUG   2
#define BE_16(x)   ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])
#define BE_32(x)
#define LE_16(x)   ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0])
#define LE_32(x)

Typedefs

typedef struct AVCLASS AVClass
typedef struct ReSampleContext ReSampleContext
typedef struct ImgReSampleContext ImgReSampleContext

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_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_VC9, CODEC_ID_WMV3, CODEC_ID_LOCO, CODEC_ID_WNV1,
  CODEC_ID_AASC, CODEC_ID_INDEO2, CODEC_ID_FRAPS, 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_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_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_OGGTHEORA = 0x16000, CODEC_ID_DVD_SUBTITLE = 0x17000, CODEC_ID_DVB_SUBTITLE, CODEC_ID_MPEG2TS = 0x20000
}
enum  CodecType {
  CODEC_TYPE_UNKNOWN = -1, CODEC_TYPE_VIDEO, CODEC_TYPE_AUDIO, CODEC_TYPE_DATA,
  CODEC_TYPE_SUBTITLE
}
enum  PixelFormat {
  PIX_FMT_NONE = -1, PIX_FMT_YUV420P, PIX_FMT_YUV422, PIX_FMT_RGB24,
  PIX_FMT_BGR24, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_RGBA32,
  PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_RGB565, PIX_FMT_RGB555,
  PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, PIX_FMT_MONOBLACK, PIX_FMT_PAL8,
  PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_YUVJ444P, PIX_FMT_XVMC_MPEG2_MC,
  PIX_FMT_XVMC_MPEG2_IDCT, PIX_FMT_UYVY422, PIX_FMT_UYVY411, PIX_FMT_NB
}
enum  SampleFormat { SAMPLE_FMT_S16 = 0, SAMPLE_FMT_S32, SAMPLE_FMT_FLT, SAMPLE_FMT_DBL }
enum  Motion_Est_ID {
  ME_ZERO = 1, ME_FULL, ME_LOG, ME_PHODS,
  ME_EPZS, ME_X1
}
enum  AVRounding {
  AV_ROUND_ZERO = 0, AV_ROUND_INF = 1, AV_ROUND_DOWN = 2, AV_ROUND_UP = 3,
  AV_ROUND_NEAR_INF = 5
}
enum  AVDiscard {
  AVDISCARD_NONE = -16, AVDISCARD_DEFAULT = 0, AVDISCARD_NONREF = 8, AVDISCARD_BIDIR = 16,
  AVDISCARD_NONKEY = 32, AVDISCARD_ALL = 48
}

Functions

 PCM_CODEC (CODEC_ID_PCM_S16LE, pcm_s16le)
 PCM_CODEC (CODEC_ID_PCM_S16BE, pcm_s16be)
 PCM_CODEC (CODEC_ID_PCM_U16LE, pcm_u16le)
 PCM_CODEC (CODEC_ID_PCM_U16BE, pcm_u16be)
 PCM_CODEC (CODEC_ID_PCM_S8, pcm_s8)
 PCM_CODEC (CODEC_ID_PCM_U8, pcm_u8)
 PCM_CODEC (CODEC_ID_PCM_ALAW, pcm_alaw)
 PCM_CODEC (CODEC_ID_PCM_MULAW, pcm_mulaw)
 PCM_CODEC (CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt)
 PCM_CODEC (CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav)
 PCM_CODEC (CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3)
 PCM_CODEC (CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4)
 PCM_CODEC (CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws)
 PCM_CODEC (CODEC_ID_ADPCM_SMJPEG, adpcm_ima_smjpeg)
 PCM_CODEC (CODEC_ID_ADPCM_MS, adpcm_ms)
 PCM_CODEC (CODEC_ID_ADPCM_4XM, adpcm_4xm)
 PCM_CODEC (CODEC_ID_ADPCM_XA, adpcm_xa)
 PCM_CODEC (CODEC_ID_ADPCM_ADX, adpcm_adx)
 PCM_CODEC (CODEC_ID_ADPCM_EA, adpcm_ea)
 PCM_CODEC (CODEC_ID_ADPCM_G726, adpcm_g726)
 PCM_CODEC (CODEC_ID_ADPCM_CT, adpcm_ct)
 PCM_CODEC (CODEC_ID_ADPCM_SWF, adpcm_swf)
 PCM_CODEC (CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha)
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)
int av_resample (struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx)
void av_resample_compensate (struct AVResampleContext *c, int sample_delta, int compensation_distance)
void av_resample_close (struct AVResampleContext *c)
ImgReSampleContextimg_resample_init (int output_width, int output_height, int input_width, int input_height)
ImgReSampleContextimg_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)
void img_resample (ImgReSampleContext *s, AVPicture *output, const AVPicture *input)
void img_resample_close (ImgReSampleContext *s)
int avpicture_alloc (AVPicture *picture, int pix_fmt, int width, int height)
void avpicture_free (AVPicture *picture)
int avpicture_fill (AVPicture *picture, uint8_t *ptr, int pix_fmt, int width, int height)
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)
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)
int avcodec_find_best_pix_fmt (int pix_fmt_mask, int src_pix_fmt, int has_alpha, int *loss_ptr)
int img_get_alpha_info (const AVPicture *src, int pix_fmt, int width, int height)
int img_convert (AVPicture *dst, int dst_pix_fmt, const AVPicture *src, int pix_fmt, int width, int height)
int avpicture_deinterlace (AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height)
unsigned avcodec_version (void)
unsigned avcodec_build (void)
void avcodec_init (void)
void register_avcodec (AVCodec *format)
AVCodecavcodec_find_encoder (enum CodecID id)
AVCodecavcodec_find_encoder_by_name (const char *name)
AVCodecavcodec_find_decoder (enum CodecID id)
AVCodecavcodec_find_decoder_by_name (const char *name)
void avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode)
void avcodec_get_context_defaults (AVCodecContext *s)
AVCodecContextavcodec_alloc_context (void)
void avcodec_get_frame_defaults (AVFrame *pic)
AVFrameavcodec_alloc_frame (void)
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)
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)
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)
int avcodec_decode_audio (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, uint8_t *buf, int buf_size)
int avcodec_decode_video (AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, uint8_t *buf, int buf_size)
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)
int avcodec_encode_video (AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict)
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)
void avcodec_flush_buffers (AVCodecContext *avctx)
void avcodec_default_free_buffers (AVCodecContext *s)
char av_get_pict_type_char (int pict_type)
int av_reduce (int *dst_nom, int *dst_den, int64_t nom, int64_t den, int64_t max)
int64_t av_rescale (int64_t a, int64_t b, int64_t c)
int64_t av_rescale_rnd (int64_t a, int64_t b, int64_t c, enum AVRounding)
int64_t av_rescale_q (int64_t a, AVRational bq, AVRational cq)
double av_int2dbl (int64_t v)
float av_int2flt (int32_t v)
int64_t av_dbl2int (double d)
int32_t av_flt2int (float d)
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_malloc (unsigned int size)
void * av_mallocz (unsigned int size)
void * av_realloc (void *ptr, unsigned int size)
void av_free (void *ptr)
char * av_strdup (const char *s)
void av_freep (void *ptr)
void * av_fast_realloc (void *ptr, unsigned int *size, unsigned int min_size)
void av_free_static (void)
void * av_mallocz_static (unsigned int size)
void * av_realloc_static (void *ptr, unsigned int size)
int is_adx (const unsigned char *buf, size_t bufsize)
void img_copy (AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height)
void av_log (void *, int level, const char *fmt,...)
void av_vlog (void *, int level, const char *fmt, va_list)
int av_log_get_level (void)
void av_log_set_level (int)
void av_log_set_callback (void(*)(void *, int, const char *, va_list))
unsigned int av_xiphlacing (unsigned char *s, unsigned int v)

Variables

int motion_estimation_method
AVCodec ac3_encoder
AVCodec mp2_encoder
AVCodec mp3lame_encoder
AVCodec oggvorbis_encoder
AVCodec oggtheora_encoder
AVCodec faac_encoder
AVCodec xvid_encoder
AVCodec mpeg1video_encoder
AVCodec mpeg2video_encoder
AVCodec h261_encoder
AVCodec h263_encoder
AVCodec h263p_encoder
AVCodec flv_encoder
AVCodec rv10_encoder
AVCodec rv20_encoder
AVCodec dvvideo_encoder
AVCodec mjpeg_encoder
AVCodec ljpeg_encoder
AVCodec png_encoder
AVCodec ppm_encoder
AVCodec pgm_encoder
AVCodec pgmyuv_encoder
AVCodec pbm_encoder
AVCodec pam_encoder
AVCodec mpeg4_encoder
AVCodec msmpeg4v1_encoder
AVCodec msmpeg4v2_encoder
AVCodec msmpeg4v3_encoder
AVCodec wmv1_encoder
AVCodec wmv2_encoder
AVCodec huffyuv_encoder
AVCodec ffvhuff_encoder
AVCodec h264_encoder
AVCodec asv1_encoder
AVCodec asv2_encoder
AVCodec vcr1_encoder
AVCodec ffv1_encoder
AVCodec snow_encoder
AVCodec mdec_encoder
AVCodec zlib_encoder
AVCodec sonic_encoder
AVCodec sonic_ls_encoder
AVCodec svq1_encoder
AVCodec x264_encoder
AVCodec h263_decoder
AVCodec h261_decoder
AVCodec mpeg4_decoder
AVCodec msmpeg4v1_decoder
AVCodec msmpeg4v2_decoder
AVCodec msmpeg4v3_decoder
AVCodec wmv1_decoder
AVCodec wmv2_decoder
AVCodec vc9_decoder
AVCodec wmv3_decoder
AVCodec mpeg1video_decoder
AVCodec mpeg2video_decoder
AVCodec mpegvideo_decoder
AVCodec mpeg_xvmc_decoder
AVCodec h263i_decoder
AVCodec flv_decoder
AVCodec rv10_decoder
AVCodec rv20_decoder
AVCodec rv30_decoder
AVCodec rv40_decoder
AVCodec svq1_decoder
AVCodec svq3_decoder
AVCodec dvvideo_decoder
AVCodec wmav1_decoder
AVCodec wmav2_decoder
AVCodec mjpeg_decoder
AVCodec mjpegb_decoder
AVCodec sp5x_decoder
AVCodec png_decoder
AVCodec mp2_decoder
AVCodec mp3_decoder
AVCodec mp3adu_decoder
AVCodec mp3on4_decoder
AVCodec mace3_decoder
AVCodec mace6_decoder
AVCodec huffyuv_decoder
AVCodec ffvhuff_decoder
AVCodec oggvorbis_decoder
AVCodec oggtheora_decoder
AVCodec cyuv_decoder
AVCodec h264_decoder
AVCodec indeo3_decoder
AVCodec vp3_decoder
AVCodec theora_decoder
AVCodec amr_nb_decoder
AVCodec amr_nb_encoder
AVCodec amr_wb_encoder
AVCodec amr_wb_decoder
AVCodec aac_decoder
AVCodec mpeg4aac_decoder
AVCodec asv1_decoder
AVCodec asv2_decoder
AVCodec vcr1_decoder
AVCodec cljr_decoder
AVCodec ffv1_decoder
AVCodec snow_decoder
AVCodec fourxm_decoder
AVCodec mdec_decoder
AVCodec roq_decoder
AVCodec interplay_video_decoder
AVCodec xan_wc3_decoder
AVCodec rpza_decoder
AVCodec cinepak_decoder
AVCodec msrle_decoder
AVCodec msvideo1_decoder
AVCodec vqa_decoder
AVCodec idcin_decoder
AVCodec eightbps_decoder
AVCodec smc_decoder
AVCodec flic_decoder
AVCodec vmdvideo_decoder
AVCodec vmdaudio_decoder
AVCodec truemotion1_decoder
AVCodec mszh_decoder
AVCodec zlib_decoder
AVCodec ra_144_decoder
AVCodec ra_288_decoder
AVCodec roq_dpcm_decoder
AVCodec interplay_dpcm_decoder
AVCodec xan_dpcm_decoder
AVCodec sol_dpcm_decoder
AVCodec sonic_decoder
AVCodec qtrle_decoder
AVCodec flac_decoder
AVCodec tscc_decoder
AVCodec ulti_decoder
AVCodec qdraw_decoder
AVCodec xl_decoder
AVCodec qpeg_decoder
AVCodec shorten_decoder
AVCodec loco_decoder
AVCodec wnv1_decoder
AVCodec aasc_decoder
AVCodec alac_decoder
AVCodec ws_snd1_decoder
AVCodec indeo2_decoder
AVCodec vorbis_decoder
AVCodec fraps_decoder
AVCodec libgsm_encoder
AVCodec libgsm_decoder
AVCodec rawvideo_encoder
AVCodec rawvideo_decoder
AVCodec ac3_decoder
AVCodec dts_decoder
AVCodec dvdsub_decoder
AVCodec dvbsub_encoder
AVCodec dvbsub_decoder
AVCodecfirst_avcodec
AVCodecParserav_first_parser
AVCodecParser mpegvideo_parser
AVCodecParser mpeg4video_parser
AVCodecParser h261_parser
AVCodecParser h263_parser
AVCodecParser h264_parser
AVCodecParser mjpeg_parser
AVCodecParser pnm_parser
AVCodecParser mpegaudio_parser
AVCodecParser ac3_parser
AVCodecParser dvdsub_parser
AVCodecParser dvbsub_parser


Detailed Description

external api header.

Definition in file avcodec.h.


Define Documentation

#define AV_LOG_DEBUG   2

Definition at line 2308 of file avcodec.h.

Referenced by amr_nb_encode_init(), av_resample(), bitplane_decoding(), build_table(), compute_exp_strategy(), decode_b_picture_secondary_header(), decode_ext_header(), decode_frame(), decode_i_picture_primary_header(), decode_i_picture_secondary_header(), decode_nal_units(), decode_p_picture_primary_header(), decode_p_picture_secondary_header(), decode_picture_parameter_set(), decode_residuals(), decode_seq_parameter_set(), decode_sequence_header(), decode_slice_header(), decode_subframe(), decode_subframe_lpc(), decode_vop_header(), dump_headers(), encode_exp(), execute_ref_pic_marking(), ff_build_rac_states(), ff_er_frame_end(), ff_h263_decode_frame(), ff_mpeg4_decode_picture_header(), ff_print_debug_info(), ff_rate_estimate_qscale(), ff_vbv_update(), ff_wmv2_decode_secondary_picture_header(), flac_decode_frame(), flv_h263_decode_picture_header(), get_level_prefix(), h263_decode_picture_header(), mjpeg_decode_app(), mjpeg_decode_frame(), mjpeg_decode_sos(), mjpegb_decode_frame(), mm_support(), modify_qscale(), MPA_encode_init(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg_decode_frame(), mpeg_decode_gop(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), mpeg_motion(), msmpeg4_decode_picture_header(), oggvorbis_decode_init(), opt_debug(), output_audio_block(), print_long_term(), print_short_term(), remove_short(), rv10_decode_init(), rv20_decode_picture_header(), stream_component_open(), svq3_decode_frame(), theora_decode_header(), vc9_decode_frame(), vc9_init_common(), vmdaudio_decode_init(), vp3_decode_frame(), X264_log(), and xvid_correct_framerate().

#define AV_LOG_ERROR   0

Definition at line 2306 of file avcodec.h.

Referenced by a52_decode_frame(), a52_resample_init(), aasc_decode_frame(), adpcm_decode_frame(), alac_decode_frame(), alloc_picture(), amr_nb_decode_init(), asv1_decode_block(), audio_resample_init(), avcodec_check_dimensions(), avcodec_close(), avcodec_encode_audio(), avcodec_encode_video(), avcodec_open(), bits2qp(), build_table(), check_diff(), check_input_motion(), check_intra4x4_pred_mode(), check_intra_pred_mode(), cinepak_decode_frame(), compute_bit_allocation(), copy_picture_attributes(), cyuv_decode_frame(), decode_b_picture_primary_header(), decode_dc(), decode_format80(), decode_frame(), decode_header(), decode_i_block(), decode_i_frame(), decode_init(), decode_init_mp3on4(), decode_mb_cabac(), decode_mb_cavlc(), decode_nal_units(), decode_p_frame(), decode_picture_parameter_set(), decode_ref_pic_list_reordering(), decode_ref_pic_marking(), decode_residual(), decode_rle(), decode_seq_parameter_set(), decode_sequence_header(), decode_slice(), decode_slice_header(), decode_subframe_fixed(), decode_vol_header(), decode_vop_header(), decode_vui_parameters(), decode_wave_header(), delete_state(), dpcm_decode_init(), dsputil_init(), dts_decode_frame(), dv_decode_video_segment(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_object_segment(), dvbsub_parse_pixel_data_block(), dvbsub_read_2bit_string(), dvbsub_read_4bit_string(), dvbsub_read_8bit_string(), dvvideo_decode_frame(), encode_422_bitstream(), encode_blocks(), encode_frame(), encode_gray_bitstream(), encode_init(), encode_line(), encode_mb(), encode_subband_c0run(), evalPrimary(), execute_ref_pic_marking(), faac_decode_frame(), faac_decode_init(), Faac_encode_init(), faac_init_mp4(), ff_er_frame_end(), ff_h263_decode_frame(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), ff_mpeg4_decode_partitions(), ff_mpeg4_decode_picture_header(), ff_mpeg4_pred_dc(), ff_rate_control_init(), ff_set_cmp(), ff_spatial_idwt_buffered_init(), ff_vbv_update(), ff_wmv2_decode_picture_header(), ff_wmv2_decode_secondary_picture_header(), ff_xvid_encode_frame(), ff_xvid_encode_init(), flac_decode_frame(), flic_decode_frame(), flic_decode_init(), flv_h263_decode_picture_header(), frame_start(), g726_init(), generate_bits_table(), h261_decode_block(), h261_decode_frame(), h261_decode_gob(), h261_decode_mb(), h261_decode_picture_header(), h263_decode_block(), h263_decode_picture_header(), idcin_decode_frame(), idcin_decode_init(), idcin_decode_vlcs(), indeo3_decode_frame(), init_offset(), init_pass2(), intel_h263_decode_picture_header(), ipvideo_decode_block_opcode_0x6(), ipvideo_decode_frame(), ipvideo_decode_init(), ipvideo_decode_opcodes(), ir2_decode_frame(), iv_Decode_Chunk(), mdec_decode_block_intra(), mjpeg_decode_app(), mjpeg_decode_frame(), mjpeg_decode_sof(), MP3lame_encode_frame(), MPA_encode_init(), mpeg1_decode_block_inter(), mpeg1_decode_block_intra(), mpeg1_decode_sequence(), mpeg2_decode_block_intra(), mpeg2_decode_block_non_intra(), mpeg4_decode_block(), mpeg4_decode_dc(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), mpeg4_decode_video_packet_header(), mpeg_decode_mb(), mpeg_decode_slice(), mpeg_field_start(), MPV_common_init(), MPV_frame_start(), msmpeg4_decode_block(), msmpeg4_decode_dc(), msmpeg4_decode_ext_header(), msmpeg4_decode_motion(), msmpeg4_decode_picture_header(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), msrle_decode_frame(), msrle_decode_pal4(), msrle_decode_pal8(), msvideo1_decode_frame(), oggvorbis_decode_init(), oggvorbis_encode_init(), pam_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), qp2bits(), qtrle_decode_frame(), qtrle_decode_init(), ra288_decode_frame(), read_header(), read_huffman_tables(), read_huffman_tree(), render_fragments(), render_slice(), roq_decode_frame(), roqvideo_decode_frame(), rpza_decode_frame(), rpza_decode_stream(), rv10_decode_init(), rv10_decode_packet(), rv10_decode_picture_header(), rv20_decode_picture_header(), rv_decode_dc(), shorten_decode_frame(), smc_decode_frame(), sonic_decode_init(), svq3_decode_frame(), svq3_decode_mb(), svq3_decode_slice_header(), svq3_mc_dir(), Theora_decode_init(), theora_decode_tables(), truemotion1_decode_frame(), truemotion1_decode_header(), ulti_decode_frame(), unpack_modes(), unpack_superblocks(), unpack_token(), unpack_vectors(), unpack_vlcs(), vc9_decode_block(), vc9_decode_frame(), vc9_decode_i_mb(), vmd_decode(), vmdvideo_decode_frame(), vmdvideo_decode_init(), vorbis_decode_init(), vorbis_parse_audio_packet(), vorbis_parse_id_hdr(), vorbis_parse_setup_hdr(), vorbis_parse_setup_hdr_codebooks(), vorbis_parse_setup_hdr_floors(), vorbis_parse_setup_hdr_mappings(), vorbis_parse_setup_hdr_tdtransforms(), vorbis_residue_decode(), vp3_decode_frame(), vqa_decode_chunk(), vqa_decode_frame(), vqa_decode_init(), wmv2_add_block(), wmv2_decode_mb(), X264_log(), xan_decode_frame(), xan_decode_init(), xan_wc3_build_palette(), xan_wc3_copy_pixel_run(), and xan_wc3_output_pixel_run().

#define AV_LOG_INFO   1

#define AV_LOG_QUIET   -1

Definition at line 2305 of file avcodec.h.

#define AV_NOPTS_VALUE   int64_t_C(0x8000000000000000)

#define AV_PARSER_PTS_NB   4

Definition at line 2234 of file avcodec.h.

Referenced by av_parser_parse().

#define AV_STRINGIFY ( s   )     AV_TOSTRING(s)

Definition at line 26 of file avcodec.h.

#define AV_TIME_BASE   1000000

#define AV_TIME_BASE_Q   (AVRational){1, AV_TIME_BASE}

Definition at line 32 of file avcodec.h.

Referenced by av_encode(), do_subtitle_out(), http_prepare_data(), and output_packet().

#define AV_TOSTRING ( s   )     #s

Definition at line 27 of file avcodec.h.

#define AVCODEC_MAX_AUDIO_FRAME_SIZE   131072

Definition at line 254 of file avcodec.h.

Referenced by audio_decode_example(), output_packet(), and pcm_decode_frame().

#define AVPALETTE_COUNT   256

Definition at line 1792 of file avcodec.h.

#define AVPALETTE_SIZE   1024

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

Definition at line 1791 of file avcodec.h.

Referenced by cinepak_decode_frame(), decode_frame(), flic_decode_frame(), msrle_decode_pal4(), msrle_decode_pal8(), msvideo1_decode_8bit(), qtrle_decode_frame(), and smc_decode_stream().

#define BE_16 (  )     ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])

#define BE_32 (  ) 

Value:

((((uint8_t*)(x))[0] << 24) | \
                   (((uint8_t*)(x))[1] << 16) | \
                   (((uint8_t*)(x))[2] << 8) | \
                    ((uint8_t*)(x))[3])

Definition at line 2324 of file avcodec.h.

Referenced by alac_set_info(), cinepak_decode_codebook(), cinepak_decode_vectors(), decode_frame(), main(), rpza_decode_stream(), smc_decode_stream(), svq3_decode_frame(), and vqa_decode_chunk().

#define CODEC_CAP_DELAY   0x0020

codec has a non zero delay and needs to be feeded with NULL at the end to get the delayed data. if this is not set, the codec is guranteed to never be feeded with NULL data

Definition at line 381 of file avcodec.h.

Referenced by avcodec_decode_audio(), 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 370 of file avcodec.h.

Referenced by show_formats().

#define CODEC_CAP_DRAW_HORIZ_BAND   0x0001

decoder can use draw_horiz_band callback

Definition at line 365 of file avcodec.h.

Referenced by show_formats().

#define CODEC_CAP_HWACCEL   0x0010

Definition at line 376 of file avcodec.h.

#define CODEC_CAP_PARSE_ONLY   0x0004

Definition at line 373 of file avcodec.h.

Referenced by open_parser().

#define CODEC_CAP_TRUNCATED   0x0008

Definition at line 374 of file avcodec.h.

Referenced by show_formats(), and video_decode_example().

#define CODEC_FLAG2_FAST   0x00000001

allow non spec compliant speedup tricks

Definition at line 353 of file avcodec.h.

Referenced by mpeg_decode_mb(), and stream_component_open().

#define CODEC_FLAG2_LOCAL_HEADER   0x00000008

place global headers at every keyframe instead of in extradata

Definition at line 356 of file avcodec.h.

Referenced by av_parser_change(), and new_video_stream().

#define CODEC_FLAG2_NO_OUTPUT   0x00000004

skip bitstream encoding

Definition at line 355 of file avcodec.h.

Referenced by encode_422_bitstream(), encode_frame(), encode_gray_bitstream(), and new_video_stream().

#define CODEC_FLAG2_STRICT_GOP   0x00000002

strictly enforce GOP size

Definition at line 354 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_4MV   0x0004

4 MV per MB allowed / Advanced prediction for H263

Definition at line 317 of file avcodec.h.

Referenced by check_input_motion(), common_init(), encode(), ff_estimate_p_frame_motion(), ff_fix_long_p_mvs(), ff_xvid_encode_init(), new_video_stream(), and parse_ffconfig().

#define CODEC_FLAG_AC_PRED   0x01000000

H263 Advanced intra coding / MPEG4 AC prediction.

Definition at line 342 of file avcodec.h.

Referenced by encode(), and ff_xvid_encode_init().

#define CODEC_FLAG_ALT_SCAN   0x00100000

use alternate scan

Definition at line 336 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_BITEXACT   0x00800000

use only bitexact stuff (except (i)dct)

Definition at line 339 of file avcodec.h.

Referenced by dsputil_init_mmx(), dsputil_init_pix_mmx(), ff_h263_decode_frame(), new_video_stream(), and opt_input_file().

#define CODEC_FLAG_CBP_RD   0x04000000

use rate distortion optimization for cbp

Definition at line 344 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_CLOSED_GOP   0x80000000

Definition at line 352 of file avcodec.h.

Referenced by ff_xvid_encode_init(), and new_video_stream().

#define CODEC_FLAG_EMU_EDGE   0x4000

#define CODEC_FLAG_EXTERN_HUFF   0x1000

use external huffman table (for mjpeg)

Definition at line 327 of file avcodec.h.

Referenced by mjpeg_decode_init().

#define CODEC_FLAG_GLOBAL_HEADER   0x00400000

place global headers in extradata instead of every keyframe

Definition at line 338 of file avcodec.h.

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

#define CODEC_FLAG_GMC   0x0020

use GMC

Definition at line 319 of file avcodec.h.

Referenced by ff_xvid_encode_init().

#define CODEC_FLAG_GRAY   0x2000

#define CODEC_FLAG_H263P_AIC   0x01000000

H263 Advanced intra coding / MPEG4 AC prediction (remove this).

Definition at line 341 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_H263P_AIV   0x00000008

H263 Alternative inter vlc.

Definition at line 346 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_H263P_SLICE_STRUCT   0x10000000

Definition at line 349 of file avcodec.h.

Referenced by encode(), new_video_stream(), and quicktime_new_ffmpeg().

#define CODEC_FLAG_H263P_UMV   0x02000000

Unlimited motion vector.

Definition at line 343 of file avcodec.h.

Referenced by encode(), and new_video_stream().

#define CODEC_FLAG_INPUT_PRESERVED   0x0100

Definition at line 324 of file avcodec.h.

#define CODEC_FLAG_INTERLACED_DCT   0x00040000

use interlaced dct

Definition at line 334 of file avcodec.h.

Referenced by encode(), and new_video_stream().

#define CODEC_FLAG_INTERLACED_ME   0x20000000

#define CODEC_FLAG_LOOP_FILTER   0x00000800

loop filter

Definition at line 348 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_LOW_DELAY   0x00080000

#define CODEC_FLAG_MV0   0x0040

always try a MB with MV=<0,0>

Definition at line 320 of file avcodec.h.

Referenced by ff_estimate_p_frame_motion(), and new_video_stream().

#define CODEC_FLAG_NORMALIZE_AQP   0x00020000

normalize adaptive quantization

Definition at line 333 of file avcodec.h.

Referenced by adaptive_quantization(), and new_video_stream().

#define CODEC_FLAG_OBMC   0x00000001

OBMC.

Definition at line 347 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_PART   0x0080

use data partitioning

Definition at line 321 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_PASS1   0x0200

use internal 2pass ratecontrol in first pass mode

Definition at line 325 of file avcodec.h.

Referenced by av_encode(), avcodec_string(), encode_422_bitstream(), encode_frame(), encode_gray_bitstream(), encode_init(), ff_xvid_encode_init(), and new_video_stream().

#define CODEC_FLAG_PASS2   0x0400

use internal 2pass ratecontrol in second pass mode

Definition at line 326 of file avcodec.h.

Referenced by av_encode(), avcodec_string(), encode_frame(), encode_init(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_xvid_encode_init(), and new_video_stream().

#define CODEC_FLAG_PSNR   0x8000

error[?] variables will be set during encoding

Definition at line 330 of file avcodec.h.

Referenced by do_video_stats(), encode_frame(), MPV_decode_mb_internal(), new_video_stream(), and print_report().

#define CODEC_FLAG_QP_RD   0x08000000

use rate distortion optimization for qp selectioon

Definition at line 345 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_QPEL   0x0010

#define CODEC_FLAG_QSCALE   0x0002

use fixed qscale

Definition at line 316 of file avcodec.h.

Referenced by encode(), ff_xvid_encode_init(), new_video_stream(), and X264_init().

#define CODEC_FLAG_SVCD_SCAN_OFFSET   0x40000000

will reserve space for SVCD scan offset user data

Definition at line 351 of file avcodec.h.

Referenced by new_video_stream().

#define CODEC_FLAG_TRELLIS_QUANT   0x00200000

use trellis quantization

Definition at line 337 of file avcodec.h.

Referenced by DCT_common_init(), ff_xvid_encode_init(), and new_video_stream().

#define CODEC_FLAG_TRUNCATED   0x00010000

#define CODEC_ID_MP3LAME   CODEC_ID_MP3

Definition at line 190 of file avcodec.h.

#define DEFAULT_FRAME_RATE_BASE   1001000

Definition at line 545 of file avcodec.h.

Referenced by parse_ffconfig().

#define FF_AA_AUTO   0

Definition at line 1529 of file avcodec.h.

#define FF_AA_FASTINT   1

Definition at line 1530 of file avcodec.h.

#define FF_AA_FLOAT   3

Definition at line 1532 of file avcodec.h.

Referenced by decode_init().

#define FF_AA_INT   2

Definition at line 1531 of file avcodec.h.

#define FF_ALPHA_SEMI_TRANSP   0x0002

Definition at line 2096 of file avcodec.h.

Referenced by get_alpha_info_pal8(), and img_get_alpha_info().

#define FF_ALPHA_TRANSP   0x0001

Definition at line 2095 of file avcodec.h.

Referenced by get_alpha_info_pal8(), and img_get_alpha_info().

#define FF_ASPECT_EXTENDED   15

Definition at line 634 of file avcodec.h.

Referenced by decode_vol_header(), and h263_decode_picture_header().

#define FF_B_TYPE   3

Definition at line 528 of file avcodec.h.

Referenced by ff_print_debug_info(), ff_xvid_encode_frame(), output_picture2(), and X264_frame().

#define FF_BUFFER_HINTS_PRESERVE   0x04

#define FF_BUFFER_HINTS_READABLE   0x02

Definition at line 534 of file avcodec.h.

Referenced by avcodec_default_reget_buffer(), qtrle_decode_frame(), and smc_decode_frame().

#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 dealloc anything

Definition at line 523 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 dealloc image (data/base), all other tables are not shared

Definition at line 522 of file avcodec.h.

Referenced by alloc_picture(), and free_picture().

#define FF_BUFFER_TYPE_USER   2

Direct rendering buffers (image is (de)allocated by user).

Definition at line 521 of file avcodec.h.

Referenced by ff_mpeg_flush().

#define FF_BUG_AC_VLC   0

will be removed, libavcodec can now handle these non compliant files by default

Definition at line 824 of file avcodec.h.

#define FF_BUG_AMV   32

Definition at line 823 of file avcodec.h.

Referenced by get_amv().

#define FF_BUG_AUTODETECT   1

autodetection

Definition at line 818 of file avcodec.h.

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

#define FF_BUG_DC_CLIP   4096

Definition at line 831 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and ff_mpeg4_pred_dc().

#define FF_BUG_DIRECT_BLOCKSIZE   512

Definition at line 828 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and ff_mpeg4_set_direct_mv().

#define FF_BUG_EDGE   1024

Definition at line 829 of file avcodec.h.

Referenced by decode_vop_header(), and ff_h263_decode_frame().

#define FF_BUG_HPEL_CHROMA   2048

Definition at line 830 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and mpeg_motion().

#define FF_BUG_MS   8192

workaround various bugs in microsofts broken decoders

Definition at line 832 of file avcodec.h.

#define FF_BUG_NO_PADDING   16

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

#define FF_BUG_QPEL_CHROMA   64

Definition at line 825 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and qpel_motion().

#define FF_BUG_QPEL_CHROMA2   256

Definition at line 827 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and qpel_motion().

#define FF_BUG_STD_QPEL   128

Definition at line 826 of file avcodec.h.

Referenced by ff_h263_decode_frame().

#define FF_BUG_UMP4   8

Definition at line 821 of file avcodec.h.

Referenced by decode_vop_header(), and ff_h263_decode_frame().

#define FF_BUG_XVID_ILACE   4

Definition at line 820 of file avcodec.h.

Referenced by ff_h263_decode_frame(), and ff_mpeg4_decode_mb().

#define FF_CMP_BIT   5

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

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_DCTMAX   13

Definition at line 1252 of file avcodec.h.

Referenced by add_codec(), encode(), and ff_set_cmp().

#define FF_CMP_NSSE   10

Definition at line 1249 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_PSNR   4

Definition at line 1243 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_RD   6

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

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

#define FF_CMP_SATD   2

Definition at line 1241 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_SSE   1

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

Referenced by avcodec_get_context_defaults(), encode(), and ff_set_cmp().

#define FF_CMP_VSSE   9

Definition at line 1248 of file avcodec.h.

Referenced by ff_set_cmp().

#define FF_CMP_W53   11

Definition at line 1250 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_W97   12

Definition at line 1251 of file avcodec.h.

Referenced by ff_set_cmp(), and get_penalty_factor().

#define FF_CMP_ZERO   7

Definition at line 1246 of file avcodec.h.

Referenced by ff_set_cmp().

#define FF_CODER_TYPE_AC   1

Definition at line 1384 of file avcodec.h.

Referenced by X264_init().

#define FF_CODER_TYPE_VLC   0

Definition at line 1383 of file avcodec.h.

#define FF_COMMON_FRAME

Definition at line 435 of file avcodec.h.

#define FF_COMPLIANCE_EXPERIMENTAL   -2

allow non standarized experimental things

Definition at line 859 of file avcodec.h.

Referenced by encode_init().

#define FF_COMPLIANCE_INOFFICIAL   -1

allow inofficial extensions

Definition at line 858 of file avcodec.h.

Referenced by g726_init().

#define FF_COMPLIANCE_NORMAL   0

Definition at line 857 of file avcodec.h.

#define FF_COMPLIANCE_STRICT   1

strictly conform to all the things in the spec no matter what consequences

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

#define FF_DCT_ALTIVEC   5

Definition at line 1022 of file avcodec.h.

Referenced by dsputil_init_ppc(), and MPV_common_init_ppc().

#define FF_DCT_AUTO   0

#define FF_DCT_FAAN   6

Definition at line 1023 of file avcodec.h.

Referenced by dsputil_init().

#define FF_DCT_FASTINT   1

Definition at line 1018 of file avcodec.h.

Referenced by dsputil_init().

#define FF_DCT_INT   2

Definition at line 1019 of file avcodec.h.

#define FF_DCT_MLIB   4

Definition at line 1021 of file avcodec.h.

Referenced by MPV_common_init_mlib().

#define FF_DCT_MMX   3

Definition at line 1020 of file avcodec.h.

Referenced by dsputil_init_mmx(), and MPV_common_init_mmx().

#define FF_DEBUG_BITSTREAM   4

Definition at line 1170 of file avcodec.h.

#define FF_DEBUG_BUGS   0x00001000

Definition at line 1180 of file avcodec.h.

Referenced by ff_h263_decode_frame().

#define FF_DEBUG_DCT_COEFF   0x00000040

Definition at line 1174 of file avcodec.h.

Referenced by alloc_picture(), and MPV_decode_mb_internal().

#define FF_DEBUG_ER   0x00000400

Definition at line 1178 of file avcodec.h.

Referenced by ff_er_frame_end().

#define FF_DEBUG_MB_TYPE   8

Definition at line 1171 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_MMCO   0x00000800

#define FF_DEBUG_MV   32

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

Referenced by decode_vop_header().

#define FF_DEBUG_QP   16

Definition at line 1172 of file avcodec.h.

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

#define FF_DEBUG_RC   2

Definition at line 1169 of file avcodec.h.

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

#define FF_DEBUG_SKIP   0x00000080

Definition at line 1175 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 1182 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 1192 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_MV_B_FOR   0x00000002

Definition at line 1191 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_MV_P_FOR   0x00000001

Definition at line 1190 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_DEBUG_VIS_QP   0x00002000

Definition at line 1181 of file avcodec.h.

Referenced by ff_print_debug_info(), and MPV_common_init().

#define FF_DEFAULT_QUANT_BIAS   999999

Definition at line 1340 of file avcodec.h.

Referenced by avcodec_get_context_defaults(), and encode().

#define FF_DTG_AFD_14_9   11

Definition at line 1320 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_16_9   10

Definition at line 1319 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_16_9_SP_14_9   14

Definition at line 1322 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_4_3   9

Definition at line 1318 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_4_3_SP_14_9   13

Definition at line 1321 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_SAME   8

Definition at line 1317 of file avcodec.h.

Referenced by video_image_display().

#define FF_DTG_AFD_SP_4_3   15

Definition at line 1323 of file avcodec.h.

Referenced by video_image_display().

#define FF_EC_DEBLOCK   2

Definition at line 1105 of file avcodec.h.

Referenced by ff_er_frame_end().

#define FF_EC_GUESS_MVS   1

Definition at line 1104 of file avcodec.h.

Referenced by guess_mv().

#define FF_ER_AGGRESSIVE   3

Definition at line 879 of file avcodec.h.

Referenced by mpeg_decode_slice().

#define FF_ER_CAREFUL   1

Definition at line 877 of file avcodec.h.

Referenced by encode().

#define FF_ER_COMPLIANT   2

Definition at line 878 of file avcodec.h.

Referenced by h263_decode_block(), mpeg1_decode_picture(), and mpeg4_decode_block().

#define FF_ER_VERY_AGGRESSIVE   4

Definition at line 880 of file avcodec.h.

#define FF_I_TYPE   1

#define FF_IDCT_ALTIVEC   8

Definition at line 1078 of file avcodec.h.

Referenced by dsputil_init_ppc(), and MPV_common_init_ppc().

#define FF_IDCT_ARM   7

Definition at line 1077 of file avcodec.h.

Referenced by dsputil_init_armv4l().

#define FF_IDCT_AUTO   0

#define FF_IDCT_H264   11

Definition at line 1081 of file avcodec.h.

#define FF_IDCT_INT   1

Definition at line 1071 of file avcodec.h.

Referenced by dsputil_init().

#define FF_IDCT_IPP   13

Definition at line 1083 of file avcodec.h.

Referenced by dsputil_init_armv4l().

#define FF_IDCT_LIBMPEG2MMX   4

Definition at line 1074 of file avcodec.h.

Referenced by dsputil_init_mmx(), and ff_h263_decode_frame().

#define FF_IDCT_MLIB   6

Definition at line 1076 of file avcodec.h.

Referenced by MPV_common_init_mlib().

#define FF_IDCT_PS2   5

Definition at line 1075 of file avcodec.h.

Referenced by dsputil_init_mmi().

#define FF_IDCT_SH4   9

Definition at line 1079 of file avcodec.h.

Referenced by dsputil_init_sh4().

#define FF_IDCT_SIMPLE   2

Definition at line 1072 of file avcodec.h.

Referenced by vcr2_init_sequence().

#define FF_IDCT_SIMPLEARM   10

Definition at line 1080 of file avcodec.h.

Referenced by dsputil_init_armv4l().

#define FF_IDCT_SIMPLEMMX   3

Definition at line 1073 of file avcodec.h.

Referenced by dsputil_init_mmx().

#define FF_IDCT_VP3   12

#define FF_INPUT_BUFFER_PADDING_SIZE   8

Required number of additionally allocated bytes at the end of the input bitstream for decoding. this is mainly needed because some optimized bitstream readers read 32 or 64 bit at once and could read over the end
Note, if the first 23 bits of the additional bytes are not 0 then damaged MPEG bitstreams could cause overread and segfault

Definition at line 263 of file avcodec.h.

Referenced by audio_decode_example(), av_parser_change(), av_parser_parse(), decode_frame(), decode_i_frame(), decode_p_frame(), ff_combine_frame(), ff_h263_decode_frame(), mjpeg_decode_frame(), and video_decode_example().

#define FF_LAMBDA_MAX   (256*128-1)

Definition at line 1372 of file avcodec.h.

Referenced by get_qminmax(), opt_mb_lmax(), and opt_mb_lmin().

#define FF_LAMBDA_SCALE   (1<<FF_LAMBDA_SHIFT)

Definition at line 1370 of file avcodec.h.

Referenced by encode_frame().

#define FF_LAMBDA_SHIFT   7

Definition at line 1369 of file avcodec.h.

Referenced by encode_frame(), encode_q_branch(), and get_penalty_factor().

#define FF_LEVEL_UNKNOWN   -99

Definition at line 1624 of file avcodec.h.

Referenced by avcodec_get_context_defaults(), and encode().

#define FF_LOSS_ALPHA   0x0008

Definition at line 2086 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_LOSS_CHROMA   0x0020

Definition at line 2088 of file avcodec.h.

Referenced by avcodec_get_pix_fmt_loss().

#define FF_LOSS_COLORQUANT   0x0010

Definition at line 2087 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_LOSS_COLORSPACE   0x0004

Definition at line 2085 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_LOSS_DEPTH   0x0002

Definition at line 2084 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_LOSS_RESOLUTION   0x0001

Definition at line 2083 of file avcodec.h.

Referenced by avcodec_find_best_pix_fmt(), and avcodec_get_pix_fmt_loss().

#define FF_MAX_B_FRAMES   8

Definition at line 309 of file avcodec.h.

Referenced by opt_b_frames().

#define FF_MB_DECISION_BITS   1

chooses the one which needs the fewest bits

Definition at line 1423 of file avcodec.h.

Referenced by parse_ffconfig().

#define FF_MB_DECISION_RD   2

rate distoration

Definition at line 1424 of file avcodec.h.

#define FF_MB_DECISION_SIMPLE   0

uses mb_cmp

Definition at line 1422 of file avcodec.h.

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

#define FF_MIN_BUFFER_SIZE   16384

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

Definition at line 269 of file avcodec.h.

Referenced by avcodec_encode_audio(), and avcodec_encode_video().

#define FF_MM_FORCE   0x80000000

Definition at line 1116 of file avcodec.h.

Referenced by dsputil_init_iwmmxt(), and dsputil_init_mmx().

#define FF_OPT_MAX_DEPTH   10

Definition at line 1753 of file avcodec.h.

#define FF_OPT_TYPE_BOOL   1

boolean - true,1,on (or simply presence)

Definition at line 1733 of file avcodec.h.

#define FF_OPT_TYPE_DOUBLE   2

double

Definition at line 1734 of file avcodec.h.

#define FF_OPT_TYPE_FLAG   (FF_OPT_TYPE_BOOL | 0x40)

Definition at line 1739 of file avcodec.h.

#define FF_OPT_TYPE_INT   3

integer

Definition at line 1735 of file avcodec.h.

#define FF_OPT_TYPE_MASK   0x1f

mask for types - upper bits are various flags

Definition at line 1737 of file avcodec.h.

#define FF_OPT_TYPE_RCOVERRIDE   (FF_OPT_TYPE_STRING | 0x80)

Definition at line 1740 of file avcodec.h.

#define FF_OPT_TYPE_STRING   4

string (finished with )

Definition at line 1736 of file avcodec.h.

#define FF_P_TYPE   2

#define FF_PRED_LEFT   0

Definition at line 1143 of file avcodec.h.

#define FF_PRED_MEDIAN   2

Definition at line 1145 of file avcodec.h.

#define FF_PRED_PLANE   1

Definition at line 1144 of file avcodec.h.

#define FF_PROFILE_UNKNOWN   -99

Definition at line 1616 of file avcodec.h.

Referenced by avcodec_get_context_defaults(), and encode().

#define FF_QP2LAMBDA   118

#define FF_QSCALE_TYPE_MPEG1   0

Definition at line 517 of file avcodec.h.

#define FF_QSCALE_TYPE_MPEG2   1

Definition at line 518 of file avcodec.h.

Referenced by slice_end().

#define FF_QUALITY_SCALE   FF_LAMBDA_SCALE

Definition at line 1374 of file avcodec.h.

Referenced by encode_init().

#define FF_S_TYPE   4

Definition at line 529 of file avcodec.h.

Referenced by ff_print_debug_info(), and ff_xvid_encode_frame().

#define FF_SI_TYPE   5

Definition at line 530 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FF_SP_TYPE   6

Definition at line 531 of file avcodec.h.

Referenced by ff_print_debug_info().

#define FFMPEG_VERSION   "CVS"

Definition at line 19 of file avcodec.h.

Referenced by show_banner(), show_help(), and show_version().

#define FFMPEG_VERSION_INT   0x000409

Definition at line 18 of file avcodec.h.

#define LE_16 (  )     ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0])

#define LE_32 (  ) 

Value:

((((uint8_t*)(x))[3] << 24) | \
                   (((uint8_t*)(x))[2] << 16) | \
                   (((uint8_t*)(x))[1] << 8) | \
                    ((uint8_t*)(x))[0])

Definition at line 2329 of file avcodec.h.

Referenced by adpcm_decode_frame(), decode_frame(), decode_init(), flic_decode_frame(), lz_unpack(), vmdaudio_decode_frame(), and vmdvideo_decode_init().

#define LIBAVCODEC_BUILD   4759

Definition at line 20 of file avcodec.h.

Referenced by avcodec_build(), and show_banner().

#define LIBAVCODEC_IDENT   "FFmpeg" LIBAVCODEC_VERSION "b" AV_STRINGIFY(LIBAVCODEC_BUILD)

Definition at line 28 of file avcodec.h.

Referenced by oggvorbis_encode_init().

#define LIBAVCODEC_VERSION   FFMPEG_VERSION

Definition at line 24 of file avcodec.h.

#define LIBAVCODEC_VERSION_INT   FFMPEG_VERSION_INT

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

#define MB_TYPE_8x8   0x0040

#define MB_TYPE_ACPRED   0x0200

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

Referenced by mpeg_decode_mb().

#define MB_TYPE_DIRECT2   0x0100

#define MB_TYPE_GMC   0x0400

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

Referenced by svq3_decode_mb().

#define MB_TYPE_INTRA4x4   0x0001

Definition at line 384 of file avcodec.h.

Referenced by ff_er_frame_end(), and svq3_decode_mb().

#define MB_TYPE_INTRA_PCM   0x0004

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

#define MB_TYPE_P0L0   0x1000

Definition at line 396 of file avcodec.h.

Referenced by decode_mb_skip(), and pred_direct_motion().

#define MB_TYPE_P0L1   0x4000

Definition at line 398 of file avcodec.h.

Referenced by decode_mb_skip(), and pred_direct_motion().

#define MB_TYPE_P1L0   0x2000

Definition at line 397 of file avcodec.h.

Referenced by decode_mb_skip().

#define MB_TYPE_P1L1   0x8000

Definition at line 399 of file avcodec.h.

#define MB_TYPE_QUANT   0x00010000

Definition at line 403 of file avcodec.h.

Referenced by mpeg_decode_mb().

#define MB_TYPE_SKIP   0x0800

#define PCM_CODEC ( id,
name   ) 

Value:

extern AVCodec name ## _decoder; \
extern AVCodec name ## _encoder

Definition at line 1973 of file avcodec.h.

#define SLICE_FLAG_ALLOW_FIELD   0x0002

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

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

#define SLICE_FLAG_CODED_ORDER   0x0001

draw_horiz_band() is called in coded order instead of display

Definition at line 1405 of file avcodec.h.

Referenced by ff_draw_horiz_band().


Typedef Documentation

typedef struct AVCLASS AVClass

Used by av_log

Definition at line 550 of file avcodec.h.

Definition at line 2040 of file avcodec.h.

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

enum AVRounding

Enumerator:
AV_ROUND_ZERO  round toward zero
AV_ROUND_INF  round away from zero
AV_ROUND_DOWN  round toward -infinity
AV_ROUND_UP  round toward +infinity
AV_ROUND_NEAR_INF  round to nearest and halfway cases away from zero

Definition at line 281 of file avcodec.h.

enum CodecID

Enumerator:
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_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_VC9 
CODEC_ID_WMV3 
CODEC_ID_LOCO 
CODEC_ID_WNV1 
CODEC_ID_AASC 
CODEC_ID_INDEO2 
CODEC_ID_FRAPS 
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_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_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 
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_OGGTHEORA 
CODEC_ID_DVD_SUBTITLE 
CODEC_ID_DVB_SUBTITLE 
CODEC_ID_MPEG2TS 

Definition at line 34 of file avcodec.h.

enum CodecType

Enumerator:
CODEC_TYPE_UNKNOWN 
CODEC_TYPE_VIDEO 
CODEC_TYPE_AUDIO 
CODEC_TYPE_DATA 
CODEC_TYPE_SUBTITLE 

Definition at line 192 of file avcodec.h.

Enumerator:
ME_ZERO 
ME_FULL 
ME_LOG 
ME_PHODS 
ME_EPZS 
ME_X1 

Definition at line 272 of file avcodec.h.

Pixel format. Notes:

PIX_FMT_RGBA32 is handled in an endian-specific manner. A RGBA color is put together as: (A << 24) | (R << 16) | (G << 8) | B This is stored as BGRA on little endian CPU architectures and ARGB on big endian CPUs.

When the pixel format is palettized RGB (PIX_FMT_PAL8), the palettized image data is stored in AVFrame.data[0]. The palette is transported in AVFrame.data[1] and, is 1024 bytes long (256 4-byte entries) and is formatted the same as in PIX_FMT_RGBA32 described above (i.e., it is also endian-specific). Note also that the individual RGB palette components stored in AVFrame.data[1] should be in the range 0..255. This is important as many custom PAL8 video codecs that were designed to run on the IBM VGA graphics adapter use 6-bit palette components.

Enumerator:
PIX_FMT_NONE 
PIX_FMT_YUV420P  Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples).
PIX_FMT_YUV422  Packed pixel, Y0 Cb Y1 Cr.
PIX_FMT_RGB24  Packed pixel, 3 bytes per pixel, RGBRGB...
PIX_FMT_BGR24  Packed pixel, 3 bytes per pixel, BGRBGR...
PIX_FMT_YUV422P  Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples).
PIX_FMT_YUV444P  Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples).
PIX_FMT_RGBA32  Packed pixel, 4 bytes per pixel, BGRABGRA..., stored in cpu endianness.
PIX_FMT_YUV410P  Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples).
PIX_FMT_YUV411P  Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples).
PIX_FMT_RGB565  always stored in cpu endianness
PIX_FMT_RGB555  always stored in cpu endianness, most significant bit to 1
PIX_FMT_GRAY8 
PIX_FMT_MONOWHITE  0 is white
PIX_FMT_MONOBLACK  0 is black
PIX_FMT_PAL8  8 bit with RGBA palette
PIX_FMT_YUVJ420P  Planar YUV 4:2:0 full scale (jpeg).
PIX_FMT_YUVJ422P  Planar YUV 4:2:2 full scale (jpeg).
PIX_FMT_YUVJ444P  Planar YUV 4:4:4 full scale (jpeg).
PIX_FMT_XVMC_MPEG2_MC  XVideo Motion Acceleration via common packet passing(xvmc_render.h).
PIX_FMT_XVMC_MPEG2_IDCT 
PIX_FMT_UYVY422  Packed pixel, Cb Y0 Cr Y1.
PIX_FMT_UYVY411  Packed pixel, Cb Y0 Y1 Cr Y2 Y3.
PIX_FMT_NB 

Definition at line 218 of file avcodec.h.

Enumerator:
SAMPLE_FMT_S16  signed 16 bits
SAMPLE_FMT_S32  signed 32 bits
SAMPLE_FMT_FLT  float
SAMPLE_FMT_DBL  double

Definition at line 246 of file avcodec.h.


Function Documentation

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

void audio_resample_close ( ReSampleContext s  ) 

Definition at line 241 of file resample.c.

References av_free(), av_freep(), av_resample_close(), ReSampleContext::resample_context, and ReSampleContext::temp.

Referenced by av_encode().

Here is the call graph for this function:

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

int64_t av_dbl2int ( double  d  ) 

Definition at line 1035 of file utils.c.

References e, and LL.

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

realloc which does nothing if the block is large enough

Definition at line 101 of file utils.c.

References av_realloc().

Referenced by allocate_buffers(), av_mallocz_static(), avcodec_default_get_buffer(), decode_frame(), decode_i_frame(), decode_nal(), decode_p_frame(), ff_combine_frame(), ff_h263_decode_frame(), flac_decode_frame(), output_packet(), and shorten_decode_frame().

Here is the call graph for this function:

int32_t av_flt2int ( float  d  ) 

Definition at line 1043 of file utils.c.

References e.

void av_free ( void *  ptr  ) 

void av_free_static ( void   ) 

free all static arrays and reset pointers to 0.

Definition at line 156 of file utils.c.

References array_static, av_freep(), and last_static.

Referenced by main().

Here is the call graph for this function:

void av_freep ( void *  arg  ) 

char av_get_pict_type_char ( int  pict_type  ) 

returns a single letter to describe the picture type

Definition at line 938 of file utils.c.

References B_TYPE, I_TYPE, P_TYPE, S_TYPE, SI_TYPE, and SP_TYPE.

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

double av_int2dbl ( int64_t  v  ) 

Definition at line 1023 of file utils.c.

References LL.

float av_int2flt ( int32_t  v  ) 

Definition at line 1029 of file utils.c.

void av_log ( void *  ,
int  level,
const char *  fmt,
  ... 
)

Definition at line 1074 of file utils.c.

References av_vlog().

Referenced by a52_decode_frame(), a52_resample_init(), aasc_decode_frame(), adpcm_decode_frame(), alac_decode_frame(), alloc_picture(), amr_nb_decode_init(), amr_nb_encode_init(), asv1_decode_block(), audio_resample_init(), av_resample(), avcodec_check_dimensions(), avcodec_close(), avcodec_encode_audio(), avcodec_encode_video(), avcodec_open(), bitplane_decoding(), bits2qp(), build_table(), check_diff(), check_input_motion(), check_intra4x4_pred_mode(), check_intra_pred_mode(), check_marker(), cinepak_decode_frame(), compute_bit_allocation(), compute_exp_strategy(), copy_picture_attributes(), cyuv_decode_frame(), decode_b_picture_primary_header(), decode_b_picture_secondary_header(), decode_dc(), decode_dvd_subtitles(), decode_ext_header(), decode_format80(), decode_frame(), decode_header(), decode_i_block(), decode_i_frame(), decode_i_picture_primary_header(), decode_i_picture_secondary_header(), decode_init(), decode_init_mp3on4(), decode_mb_cabac(), decode_mb_cavlc(), decode_nal_units(), decode_p_frame(), decode_p_picture_primary_header(), decode_p_picture_secondary_header(), decode_picture_parameter_set(), decode_ref_pic_list_reordering(), decode_ref_pic_marking(), decode_residual(), decode_residuals(), decode_rle(), decode_seq_parameter_set(), decode_sequence_header(), decode_slice(), decode_slice_header(), decode_subframe(), decode_subframe_fixed(), decode_subframe_lpc(), decode_vol_header(), decode_vop_header(), decode_vui_parameters(), decode_wave_header(), delete_state(), dpcm_decode_init(), dsputil_init(), dsputil_init_mmx(), dts_decode_frame(), dump_headers(), dv_decode_video_segment(), dvbsub_decode(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvbsub_read_2bit_string(), dvbsub_read_4bit_string(), dvbsub_read_8bit_string(), dvdsub_decode(), dvvideo_decode_frame(), encode_422_bitstream(), encode_blocks(), encode_exp(), encode_frame(), encode_gray_bitstream(), encode_init(), encode_line(), encode_mb(), encode_subband_c0run(), evalPrimary(), execute_ref_pic_marking(), faac_decode_frame(), faac_decode_init(), Faac_encode_init(), faac_init_mp4(), ff_build_rac_states(), ff_er_frame_end(), ff_h263_decode_frame(), ff_h263_decode_mb(), ff_mpeg4_decode_mb(), ff_mpeg4_decode_partitions(), ff_mpeg4_decode_picture_header(), ff_mpeg4_pred_dc(), ff_print_debug_info(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_set_cmp(), ff_spatial_idwt_buffered_init(), ff_vbv_update(), ff_wmv2_decode_picture_header(), ff_wmv2_decode_secondary_picture_header(), ff_xvid_encode_frame(), ff_xvid_encode_init(), flac_decode_frame(), flic_decode_frame(), flic_decode_init(), flv_h263_decode_picture_header(), frame_start(), g726_init(), generate_bits_table(), get_level_prefix(), h261_decode_block(), h261_decode_frame(), h261_decode_gob(), h261_decode_mb(), h261_decode_picture_header(), h263_decode_block(), h263_decode_picture_header(), help(), idcin_decode_frame(), idcin_decode_init(), idcin_decode_vlcs(), indeo3_decode_frame(), init_offset(), init_pass2(), intel_h263_decode_picture_header(), ipvideo_decode_block_opcode_0x6(), ipvideo_decode_frame(), ipvideo_decode_init(), ipvideo_decode_opcodes(), ir2_decode_frame(), iv_Decode_Chunk(), main(), mdec_decode_block_intra(), mjpeg_decode_app(), mjpeg_decode_com(), mjpeg_decode_frame(), mjpeg_decode_init(), mjpeg_decode_sof(), mjpeg_decode_sos(), mjpegb_decode_frame(), mm_support(), modify_qscale(), MP3lame_encode_frame(), MPA_encode_init(), mpeg1_decode_block_inter(), mpeg1_decode_block_intra(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg2_decode_block_intra(), mpeg2_decode_block_non_intra(), mpeg4_decode_block(), mpeg4_decode_dc(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), mpeg4_decode_video_packet_header(), mpeg_decode_frame(), mpeg_decode_gop(), mpeg_decode_mb(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), mpeg_field_start(), mpeg_motion(), MPV_common_init(), MPV_common_init_ppc(), MPV_frame_start(), msmpeg4_decode_block(), msmpeg4_decode_dc(), msmpeg4_decode_ext_header(), msmpeg4_decode_motion(), msmpeg4_decode_picture_header(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), msrle_decode_frame(), msrle_decode_pal4(), msrle_decode_pal8(), msvideo1_decode_frame(), oggvorbis_decode_init(), oggvorbis_encode_init(), output_audio_block(), pam_encode_frame(), pnm_decode_frame(), pnm_encode_frame(), print_long_term(), print_short_term(), qp2bits(), qtrle_decode_frame(), qtrle_decode_init(), ra288_decode_frame(), read_header(), read_huffman_tables(), read_huffman_tree(), remove_short(), render_fragments(), render_slice(), roq_decode_frame(), roqvideo_decode_frame(), rpza_decode_frame(), rpza_decode_stream(), rv10_decode_init(), rv10_decode_packet(), rv10_decode_picture_header(), rv20_decode_picture_header(), rv_decode_dc(), shorten_decode_frame(), smc_decode_frame(), smc_decode_stream(), sonic_decode_init(), standard_decode_picture_primary_header(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_decode_delta_block(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_motion_inter_4v_block(), svq1_motion_inter_block(), svq3_decode_frame(), svq3_decode_mb(), svq3_decode_slice_header(), svq3_mc_dir(), theora_decode_header(), Theora_decode_init(), theora_decode_tables(), truemotion1_decode_frame(), truemotion1_decode_header(), ulti_decode_frame(), unpack_modes(), unpack_superblocks(), unpack_token(), unpack_vectors(), unpack_vlcs(), vc9_decode_block(), vc9_decode_frame(), vc9_decode_i_mb(), vc9_decode_init(), vc9_init_common(), vmd_decode(), vmdaudio_decode_init(), vmdaudio_loadsound(), vmdvideo_decode_frame(), vmdvideo_decode_init(), vorbis_decode_init(), vorbis_len2vlc(), vorbis_parse_audio_packet(), vorbis_parse_id_hdr(), vorbis_parse_setup_hdr(), vorbis_parse_setup_hdr_codebooks(), vorbis_parse_setup_hdr_floors(), vorbis_parse_setup_hdr_mappings(), vorbis_parse_setup_hdr_tdtransforms(), vorbis_residue_decode(), vp3_decode_frame(), vqa_decode_chunk(), vqa_decode_frame(), vqa_decode_init(), wmv2_add_block(), wmv2_decode_mb(), xan_decode_frame(), xan_decode_init(), xan_wc3_build_palette(), xan_wc3_copy_pixel_run(), xan_wc3_output_pixel_run(), and xvid_correct_framerate().

Here is the call graph for this function:

int av_log_get_level ( void   ) 

Definition at line 1087 of file utils.c.

void av_log_set_callback ( void(*)(void *, int, const char *, va_list)   ) 

Definition at line 1097 of file utils.c.

References av_log_callback.

void av_log_set_level ( int   ) 

Definition at line 1092 of file utils.c.

Referenced by opt_debug(), opt_verbose(), and stream_component_open().

void* av_malloc ( unsigned int  size  ) 

void* av_mallocz ( unsigned int  size  ) 

void* av_mallocz_static ( unsigned int  size  ) 

allocation of static arrays - do not use for normal allocation.

Definition at line 119 of file utils.c.

References allocated_static, array_static, av_fast_realloc(), av_mallocz(), last_static, and NULL.

Referenced by av_realloc_static(), decode_init(), init_2d_vlc_rl(), init_rl(), and init_vlc_rl().

Here is the call graph for this function:

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

Definition at line 149 of file parser.c.

References av_malloc(), CODEC_FLAG2_LOCAL_HEADER, CODEC_FLAG_GLOBAL_HEADER, AVCodecContext::extradata, AVCodecContext::extradata_size, FF_INPUT_BUFFER_PADDING_SIZE, AVCodecContext::flags, AVCodecContext::flags2, memcpy, AVCodecParserContext::parser, and AVCodecParser::split.

Referenced by output_packet().

Here is the call graph for this function:

void av_parser_close ( AVCodecParserContext s  ) 

Definition at line 181 of file parser.c.

References av_free(), AVCodecParserContext::parser, AVCodecParser::parser_close, and AVCodecParserContext::priv_data.

Here is the call graph for this function:

AVCodecParserContext* av_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 
)

void* av_realloc ( void *  ptr,
unsigned int  size 
)

av_realloc semantics (same as glibc): if ptr is NULL and size > 0, identical to malloc(size). If size is zero, it is identical to free(ptr) and NULL is returned.

Definition at line 100 of file mem.c.

References av_malloc(), and NULL.

Referenced by alloc_table(), allocate_buffers(), audio_resample(), av_fast_realloc(), av_realloc_static(), do_audio_out(), iv_alloc_frames(), new_video_stream(), and oggvorbis_encode_init().

Here is the call graph for this function:

void* av_realloc_static ( void *  ptr,
unsigned int  size 
)

same as above, but does realloc

Definition at line 137 of file utils.c.

References array_static, av_mallocz_static(), av_realloc(), last_static, and NULL.

Referenced by alloc_table().

Here is the call graph for this function:

int av_reduce ( int *  dst_nom,
int *  dst_den,
int64_t  nom,
int64_t  den,
int64_t  max 
)

reduce a fraction. this is usefull for framerate calculations

Parameters:
max the maximum allowed for dst_nom & dst_den
Returns:
1 if exact, 0 otherwise

Definition at line 950 of file utils.c.

References a0, a1, ABS, AVRational::den, ff_gcd(), and AVRational::num.

Referenced by av_add_q(), av_d2q(), av_div_q(), av_mul_q(), av_sub_q(), and mpeg_decode_postinit().

Here is the call graph for this function:

void av_register_codec_parser ( AVCodecParser parser  ) 

Definition at line 26 of file parser.c.

References AVCodecParser::next.

Referenced by avcodec_register_all().

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 187 of file resample2.c.

References ABS, av_log(), AV_LOG_DEBUG, av_resample_compensate(), AVResampleContext::compensation_distance, AVResampleContext::dst_incr, FELEM, FELEM2, filter(), AVResampleContext::filter_bank, AVResampleContext::filter_length, FILTER_SHIFT, AVResampleContext::frac, AVResampleContext::ideal_dst_incr, AVResampleContext::index, AVResampleContext::linear, LL, NULL, AVResampleContext::phase_mask, AVResampleContext::phase_shift, and AVResampleContext::src_incr.

Referenced by audio_resample().

Here is the call graph for this function:

void av_resample_close ( struct AVResampleContext c  ) 

Definition at line 155 of file resample2.c.

References av_freep(), and AVResampleContext::filter_bank.

Referenced by audio_resample_close().

Here is the call graph for this function:

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 172 of file resample2.c.

References AVResampleContext::compensation_distance, AVResampleContext::dst_incr, and AVResampleContext::ideal_dst_incr.

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]

initalizes a audio resampler. note, if either rate is not a integer then simply scale both rates up so they are

Definition at line 133 of file resample2.c.

References av_build_filter(), av_mallocz(), c, AVResampleContext::dst_incr, FELEM, AVResampleContext::filter_bank, AVResampleContext::filter_length, FILTER_SHIFT, AVResampleContext::ideal_dst_incr, AVResampleContext::index, AVResampleContext::linear, memcpy, AVResampleContext::phase_mask, AVResampleContext::phase_shift, and AVResampleContext::src_incr.

Referenced by audio_resample_init().

Here is the call graph for this function:

int64_t av_rescale ( int64_t  a,
int64_t  b,
int64_t  c 
)

rescale a 64bit integer with rounding to nearest. a simple a*b/c isn't possible as it can overflow

Definition at line 1008 of file utils.c.

References av_rescale_rnd(), and AV_ROUND_NEAR_INF.

Referenced by output_packet().

Here is the call graph for this function:

int64_t av_rescale_q ( int64_t  a,
AVRational  bq,
AVRational  cq 
)

rescale a 64bit integer by 2 rational numbers.

Definition at line 1012 of file utils.c.

References av_rescale_rnd(), AV_ROUND_NEAR_INF, b, AVRational::den, and AVRational::num.

Referenced by av_encode(), do_audio_out(), do_subtitle_out(), do_video_out(), http_prepare_data(), output_packet(), write_audio_frame(), and write_video_frame().

Here is the call graph for this function:

int64_t av_rescale_rnd ( int64_t  a,
int64_t  b,
int64_t  c,
enum  AVRounding 
)

rescale a 64bit integer with specified rounding. a simple a*b/c isn't possible as it can overflow

Definition at line 983 of file utils.c.

References av_add_i(), av_div_i(), av_i2int(), av_int2i(), av_mul_i(), av_rescale_rnd(), AV_ROUND_NEAR_INF, INT64_MIN, and r.

Referenced by av_rescale(), av_rescale_q(), and av_rescale_rnd().

Here is the call graph for this function:

char* av_strdup ( const char *  s  ) 

Definition at line 86 of file utils.c.

References av_malloc(), memcpy, and NULL.

Referenced by add_frame_hooker(), opt_audio_device(), opt_grab_device(), opt_video_device(), opt_video_standard(), and parse_options().

Here is the call graph for this function:

void av_vlog ( void *  ,
int  level,
const char *  fmt,
va_list   
)

Definition at line 1082 of file utils.c.

References av_log_callback.

Referenced by av_log(), and X264_log().

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

Definition at line 1108 of file utils.c.

Referenced by oggvorbis_encode_init().

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

AVCodecContext* avcodec_alloc_context ( void   ) 

allocates a AVCodecContext and set it to defaults. this can be deallocated by simply calling free()

Definition at line 503 of file utils.c.

References av_malloc(), avcodec_get_context_defaults(), and NULL.

Referenced by add_av_stream1(), add_codec(), audio_decode_example(), audio_encode_example(), encode(), http_prepare_data(), FFMPEG::init(), init_codec(), init_decode(), FileAC3::open_file(), quicktime_new_ffmpeg(), rtp_new_av_stream(), video_decode_example(), and video_encode_example().

Here is the call graph for this function:

AVFrame* avcodec_alloc_frame ( void   ) 

allocates a AVPFrame and set it to defaults. this can be deallocated by simply calling free()

Definition at line 524 of file utils.c.

References av_malloc(), avcodec_get_frame_defaults(), and NULL.

Referenced by AC3_encode_init(), alloc_picture(), amr_nb_encode_init(), Faac_encode_init(), g726_init(), FFMPEG::init(), libgsm_init(), MP3lame_encode_init(), MPA_encode_init(), oggvorbis_encode_init(), pcm_encode_init(), video_decode_example(), video_encode_example(), and video_thread().

Here is the call graph for this function:

unsigned avcodec_build ( void   ) 

Definition at line 895 of file utils.c.

References LIBAVCODEC_BUILD.

Referenced by show_version().

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

int avcodec_close ( AVCodecContext avctx  ) 

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

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

Definition at line 677 of file utils.c.

References AVCodecContext::codec, AVCodec::decode, and AVCodecContext::frame_number.

Referenced by output_packet().

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

decode a frame.

Parameters:
buf bitstream buffer, must be FF_INPUT_BUFFER_PADDING_SIZE larger then the actual read bytes because some optimized bitstream readers read 32 or 64 bit at once and could read over the end
buf_size the size of the buffer in bytes
got_picture_ptr zero if no frame could be decompressed, Otherwise, it is non zero
Returns:
-1 if error, otherwise return the number of bytes used.

Definition at line 631 of file utils.c.

References avcodec_check_dimensions(), AVCodec::capabilities, AVCodecContext::codec, CODEC_CAP_DELAY, AVCodecContext::coded_height, AVCodecContext::coded_width, AVCodec::decode, emms_c, and AVCodecContext::frame_number.

Referenced by FFMPEG::decode(), decode_wrapper(), output_packet(), video_decode_example(), and video_thread().

Here is the call graph for this function:

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

Definition at line 430 of file utils.c.

References r.

Referenced by avcodec_get_context_defaults().

void avcodec_default_free_buffers ( AVCodecContext s  ) 

Definition at line 921 of file utils.c.

References av_freep(), InternalBuffer::base, buf, InternalBuffer::data, AVCodecContext::internal_buffer, AVCodecContext::internal_buffer_count, INTERNAL_BUFFER_SIZE, and NULL.

Referenced by avcodec_close(), and MPV_common_end().

Here is the call graph for this function:

int avcodec_default_get_buffer ( AVCodecContext s,
AVFrame pic 
)

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

Definition at line 440 of file utils.c.

Referenced by avcodec_get_context_defaults().

int avcodec_default_reget_buffer ( AVCodecContext s,
AVFrame pic 
)

void avcodec_default_release_buffer ( AVCodecContext s,
AVFrame pic 
)

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

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

Definition at line 613 of file utils.c.

References AVCodecContext::codec, AVCodec::encode, and AVCodecContext::frame_number.

Referenced by do_subtitle_out().

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

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

find best pixel format to convert to. Return -1 if none found

Definition at line 543 of file imgconvert.c.

References avcodec_find_best_pix_fmt1(), avcodec_get_pix_fmt_loss(), FF_LOSS_ALPHA, FF_LOSS_COLORQUANT, FF_LOSS_COLORSPACE, FF_LOSS_DEPTH, and FF_LOSS_RESOLUTION.

Here is the call graph for this function:

AVCodec* avcodec_find_decoder ( enum CodecID  id  ) 

AVCodec* avcodec_find_decoder_by_name ( const char *  name  ) 

Definition at line 745 of file utils.c.

References AVCodec::decode, AVCodec::name, AVCodec::next, and NULL.

AVCodec* avcodec_find_encoder ( enum CodecID  id  ) 

AVCodec* avcodec_find_encoder_by_name ( const char *  name  ) 

Definition at line 721 of file utils.c.

References AVCodec::encode, AVCodec::name, AVCodec::next, and NULL.

void avcodec_flush_buffers ( AVCodecContext avctx  ) 

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

Definition at line 915 of file utils.c.

References AVCodecContext::codec, and AVCodec::flush.

Referenced by decode_thread().

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

void avcodec_get_context_defaults ( AVCodecContext s  ) 

Definition at line 455 of file utils.c.

References AVCodecContext::av_class, avcodec_default_execute(), avcodec_default_get_buffer(), avcodec_default_get_format(), avcodec_default_reget_buffer(), avcodec_default_release_buffer(), AVCodecContext::b_quant_factor, AVCodecContext::b_quant_offset, AVCodecContext::bit_rate, AVCodecContext::bit_rate_tolerance, AVCodecContext::error_concealment, AVCodecContext::error_resilience, AVCodecContext::execute, FF_BUG_AUTODETECT, FF_CMP_VSAD, FF_DEFAULT_QUANT_BIAS, FF_LEVEL_UNKNOWN, FF_PROFILE_UNKNOWN, FF_QP2LAMBDA, AVCodecContext::get_buffer, AVCodecContext::get_format, AVCodecContext::gop_size, AVCodecContext::i_quant_factor, AVCodecContext::i_quant_offset, AVCodecContext::ildct_cmp, AVCodecContext::inter_quant_bias, AVCodecContext::intra_quant_bias, AVCodecContext::level, AVCodecContext::lmax, AVCodecContext::lmin, AVCodecContext::max_qdiff, AVCodecContext::mb_lmax, AVCodecContext::mb_lmin, ME_EPZS, AVCodecContext::me_method, AVCodecContext::me_penalty_compensation, AVCodecContext::me_subpel_quality, NULL, AVCodecContext::palctrl, AVCodecContext::pix_fmt, PIX_FMT_NONE, AVCodecContext::profile, AVCodecContext::qcompress, AVCodecContext::qmax, AVCodecContext::qmin, AVCodecContext::rc_eq, AVCodecContext::reget_buffer, AVCodecContext::release_buffer, AVCodecContext::sample_aspect_ratio, AVCodecContext::thread_count, AVCodecContext::time_base, and AVCodecContext::workaround_bugs.

Referenced by avcodec_alloc_context().

Here is the call graph for this function:

void avcodec_get_frame_defaults ( AVFrame pic  ) 

Definition at line 513 of file utils.c.

References AV_NOPTS_VALUE.

Referenced by av_encode(), avcodec_alloc_frame(), common_init(), do_video_out(), encode(), and output_packet().

enum PixelFormat avcodec_get_pix_fmt ( const char *  name  ) 

Definition at line 254 of file imgconvert.c.

References PIX_FMT_NB.

Referenced by opt_frame_pix_fmt().

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

const char* avcodec_get_pix_fmt_name ( int  pix_fmt  ) 

Definition at line 246 of file imgconvert.c.

References PixFmtInfo::name, and PIX_FMT_NB.

Referenced by avcodec_string().

void avcodec_init ( void   ) 

Definition at line 901 of file utils.c.

References dsputil_static_init().

Referenced by encode(), FFMPEG::init(), init_codec(), init_decode(), main(), FileAC3::open_file(), and quicktime_new_ffmpeg().

Here is the call graph for this function:

int avcodec_open ( AVCodecContext avctx,
AVCodec codec 
)

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

unsigned int avcodec_pix_fmt_to_codec_tag ( enum PixelFormat  p  ) 

Definition at line 67 of file raw.c.

References PixleFormatTag::fourcc, and PixleFormatTag::pix_fmt.

Referenced by raw_init_encoder().

void avcodec_register_all ( void   ) 

simple call to register all the codecs.

Definition at line 33 of file allcodecs.c.

References aac_decoder, aasc_decoder, ac3_decoder, ac3_encoder, ac3_parser, alac_decoder, amr_nb_decoder, amr_nb_encoder, amr_wb_decoder, amr_wb_encoder, asv1_decoder, asv1_encoder, asv2_decoder, asv2_encoder, av_register_codec_parser(), cinepak_decoder, cljr_decoder, CODEC_ID_ADPCM_4XM, CODEC_ID_ADPCM_ADX, CODEC_ID_ADPCM_CT, CODEC_ID_ADPCM_EA, CODEC_ID_ADPCM_G726, CODEC_ID_ADPCM_IMA_DK3, CODEC_ID_ADPCM_IMA_DK4, CODEC_ID_ADPCM_IMA_QT, CODEC_ID_ADPCM_IMA_SMJPEG, CODEC_ID_ADPCM_IMA_WAV, CODEC_ID_ADPCM_IMA_WS, CODEC_ID_ADPCM_MS, CODEC_ID_ADPCM_SWF, CODEC_ID_ADPCM_XA, CODEC_ID_ADPCM_YAMAHA, CODEC_ID_PCM_ALAW, CODEC_ID_PCM_MULAW, CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE, CODEC_ID_PCM_S8, CODEC_ID_PCM_U16BE, CODEC_ID_PCM_U16LE, CODEC_ID_PCM_U8, cyuv_decoder, dts_decoder, dvbsub_decoder, dvbsub_encoder, dvbsub_parser, dvdsub_decoder, dvdsub_parser, dvvideo_decoder, dvvideo_encoder, eightbps_decoder, faac_encoder, ffv1_decoder, ffv1_encoder, ffvhuff_decoder, ffvhuff_encoder, flac_decoder, flic_decoder, flv_decoder, flv_encoder, fourxm_decoder, fraps_decoder, h261_decoder, h261_encoder, h261_parser, h263_decoder, h263_encoder, h263_parser, h263i_decoder, h263p_encoder, h264_decoder, h264_parser, huffyuv_decoder, huffyuv_encoder, idcin_decoder, indeo2_decoder, indeo3_decoder, interplay_dpcm_decoder, interplay_video_decoder, libgsm_decoder, libgsm_encoder, ljpeg_encoder, loco_decoder, mace3_decoder, mace6_decoder, mdec_decoder, mjpeg_decoder, mjpeg_encoder, mjpeg_parser, mjpegb_decoder, mp2_decoder, mp2_encoder, mp3_decoder, mp3adu_decoder, mp3lame_encoder, mp3on4_decoder, mpeg1video_decoder, mpeg1video_encoder, mpeg2video_decoder, mpeg2video_encoder, mpeg4_decoder, mpeg4_encoder, mpeg4aac_decoder, mpeg4video_parser, mpeg_xvmc_decoder, mpegaudio_parser, mpegvideo_decoder, mpegvideo_parser, msmpeg4v1_decoder, msmpeg4v1_encoder, msmpeg4v2_decoder, msmpeg4v2_encoder, msmpeg4v3_decoder, msmpeg4v3_encoder, msrle_decoder, msvideo1_decoder, mszh_decoder, oggtheora_decoder, oggvorbis_decoder, oggvorbis_encoder, pam_encoder, pbm_encoder, PCM_CODEC, pgm_encoder, pgmyuv_encoder, png_decoder, png_encoder, pnm_parser, ppm_encoder, qdraw_decoder, qpeg_decoder, qtrle_decoder, ra_144_decoder, ra_288_decoder, rawvideo_decoder, rawvideo_encoder, register_avcodec(), roq_decoder, roq_dpcm_decoder, rpza_decoder, rv10_decoder, rv10_encoder, rv20_decoder, rv20_encoder, shorten_decoder, smc_decoder, snow_decoder, snow_encoder, sol_dpcm_decoder, sonic_decoder, sonic_encoder, sonic_ls_encoder, sp5x_decoder, svq1_decoder, svq1_encoder, svq3_decoder, theora_decoder, truemotion1_decoder, tscc_decoder, ulti_decoder, vc9_decoder, vcr1_decoder, vmdaudio_decoder, vmdvideo_decoder, vorbis_decoder, vp3_decoder, vqa_decoder, wmav1_decoder, wmav2_decoder, wmv1_decoder, wmv1_encoder, wmv2_decoder, wmv2_encoder, wmv3_decoder, wnv1_decoder, ws_snd1_decoder, x264_encoder, xan_dpcm_decoder, xan_wc3_decoder, xl_decoder, xvid_encoder, zlib_decoder, and zlib_encoder.

Referenced by encode(), FFMPEG::init(), init_codec(), init_decode(), main(), FileAC3::open_file(), and quicktime_new_ffmpeg().

Here is the call graph for this function:

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

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

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

void avcodec_thread_free ( AVCodecContext s  ) 

free what has been allocated by avcodec_thread_init(). must be called after decoding has finished, especially dont call while avcodec_thread_execute() is running

Definition at line 78 of file beosthread.c.

References av_free(), av_freep(), c, ThreadContext::current_job_cond, ThreadContext::current_job_lock, ThreadContext::done, ThreadContext::func, ThreadContext::last_job_cond, NULL, AVCodecContext::thread_count, AVCodecContext::thread_opaque, and ThreadContext::workers.

Referenced by avcodec_thread_init().

Here is the call graph for this function:

int avcodec_thread_init ( AVCodecContext s,
int  thread_count 
)

unsigned avcodec_version ( void   ) 

Definition at line 890 of file utils.c.

References LIBAVCODEC_VERSION_INT.

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:
0 if successful, -1 if not.

Definition at line 1922 of file imgconvert.c.

References av_malloc(), avpicture_fill(), and avpicture_get_size().

Referenced by av_encode(), and img_convert().

Here is the call graph for this function:

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

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

void avpicture_free ( AVPicture picture  ) 

Definition at line 1941 of file imgconvert.c.

References av_free(), and AVPicture::data.

Referenced by img_convert().

Here is the call graph for this function:

int avpicture_get_size ( int  pix_fmt,
int  width,
int  height 
)

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

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

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

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 2226 of file imgconvert.c.

References FF_ALPHA_SEMI_TRANSP, FF_ALPHA_TRANSP, get_alpha_info_pal8(), PixFmtInfo::is_alpha, PIX_FMT_PAL8, PIX_FMT_RGB555, and PIX_FMT_RGBA32.

Here is the call graph for this function:

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

void img_resample_close ( ImgReSampleContext s  ) 

Definition at line 624 of file imgresample.c.

References av_free(), and ImgReSampleContext::line_buf.

Referenced by av_encode().

Here is the call graph for this function:

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 
)

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

Definition at line 545 of file imgresample.c.

References img_resample_full_init().

Here is the call graph for this function:

int is_adx ( const unsigned char *  buf,
size_t  bufsize 
)

Definition at line 270 of file adx.c.

References memcmp, offset, and read_long().

Referenced by adx_decode_header().

Here is the call graph for this function:

PCM_CODEC ( CODEC_ID_ADPCM_YAMAHA  ,
adpcm_yamaha   
)

PCM_CODEC ( CODEC_ID_ADPCM_SWF  ,
adpcm_swf   
)

PCM_CODEC ( CODEC_ID_ADPCM_CT  ,
adpcm_ct   
)

PCM_CODEC ( CODEC_ID_ADPCM_G726  ,
adpcm_g726   
)

PCM_CODEC ( CODEC_ID_ADPCM_EA  ,
adpcm_ea   
)

PCM_CODEC ( CODEC_ID_ADPCM_ADX  ,
adpcm_adx   
)

PCM_CODEC ( CODEC_ID_ADPCM_XA  ,
adpcm_xa   
)

PCM_CODEC ( CODEC_ID_ADPCM_4XM  ,
adpcm_4xm   
)

PCM_CODEC ( CODEC_ID_ADPCM_MS  ,
adpcm_ms   
)

PCM_CODEC ( CODEC_ID_ADPCM_SMJPEG  ,
adpcm_ima_smjpeg   
)

PCM_CODEC ( CODEC_ID_ADPCM_IMA_WS  ,
adpcm_ima_ws   
)

PCM_CODEC ( CODEC_ID_ADPCM_IMA_DK4  ,
adpcm_ima_dk4   
)

PCM_CODEC ( CODEC_ID_ADPCM_IMA_DK3  ,
adpcm_ima_dk3   
)

PCM_CODEC ( CODEC_ID_ADPCM_IMA_WAV  ,
adpcm_ima_wav   
)

PCM_CODEC ( CODEC_ID_ADPCM_IMA_QT  ,
adpcm_ima_qt   
)

PCM_CODEC ( CODEC_ID_PCM_MULAW  ,
pcm_mulaw   
)

PCM_CODEC ( CODEC_ID_PCM_ALAW  ,
pcm_alaw   
)

PCM_CODEC ( CODEC_ID_PCM_U8  ,
pcm_u8   
)

PCM_CODEC ( CODEC_ID_PCM_S8  ,
pcm_s8   
)

PCM_CODEC ( CODEC_ID_PCM_U16BE  ,
pcm_u16be   
)

PCM_CODEC ( CODEC_ID_PCM_U16LE  ,
pcm_u16le   
)

PCM_CODEC ( CODEC_ID_PCM_S16BE  ,
pcm_s16be   
)

PCM_CODEC ( CODEC_ID_PCM_S16LE  ,
pcm_s16le   
)

void register_avcodec ( AVCodec format  ) 

Definition at line 178 of file utils.c.

References AVCodec::next, and NULL.

Referenced by avcodec_register_all().


Variable Documentation

Referenced by avcodec_register_all().

Definition at line 164 of file aasc.c.

Referenced by avcodec_register_all().

Definition at line 246 of file a52dec.c.

Referenced by avcodec_register_all().

Definition at line 1563 of file ac3enc.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 824 of file alac.c.

Referenced by avcodec_register_all().

Definition at line 460 of file amr.c.

Referenced by avcodec_register_all().

Definition at line 472 of file amr.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 600 of file asv1.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 612 of file asv1.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 24 of file parser.c.

Definition at line 432 of file cinepak.c.

Referenced by avcodec_register_all().

Definition at line 131 of file cljr.c.

Referenced by avcodec_register_all().

Definition at line 173 of file cyuv.c.

Referenced by avcodec_register_all().

Definition at line 311 of file dtsdec.c.

Referenced by avcodec_register_all().

Definition at line 1454 of file dvbsubdec.c.

Referenced by avcodec_register_all().

Definition at line 435 of file dvbsub.c.

Referenced by avcodec_register_all().

Definition at line 1627 of file dvbsubdec.c.

Referenced by avcodec_register_all().

Definition at line 400 of file dvdsub.c.

Referenced by avcodec_register_all().

Definition at line 463 of file dvdsub.c.

Referenced by avcodec_register_all().

Definition at line 960 of file dv.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 224 of file 8bps.c.

Referenced by avcodec_register_all().

Definition at line 117 of file faac.c.

Referenced by avcodec_register_all().

Definition at line 1017 of file ffv1.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 1235 of file huffyuv.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 176 of file utils.c.

Referenced by opt_audio_codec(), opt_codec(), opt_video_codec(), and show_formats().

Definition at line 814 of file flac.c.

Referenced by avcodec_register_all().

Definition at line 382 of file flicvideo.c.

Referenced by avcodec_register_all().

Definition at line 875 of file h263dec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 742 of file 4xm.c.

Referenced by avcodec_register_all().

Definition at line 238 of file fraps.c.

Referenced by avcodec_register_all().

Definition at line 1029 of file h261.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 1041 of file h261.c.

Referenced by avcodec_register_all().

Definition at line 802 of file h263dec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 887 of file h263dec.c.

Referenced by avcodec_register_all().

Definition at line 863 of file h263dec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 7744 of file h264.c.

Referenced by avcodec_register_all().

Definition at line 7757 of file h264.c.

Referenced by avcodec_register_all().

Definition at line 1222 of file huffyuv.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 259 of file idcinvideo.c.

Referenced by avcodec_register_all().

Definition at line 210 of file indeo2.c.

Referenced by avcodec_register_all().

Definition at line 1140 of file indeo3.c.

Referenced by avcodec_register_all().

Definition at line 302 of file dpcm.c.

Referenced by avcodec_register_all().

Definition at line 952 of file interplayvideo.c.

Referenced by avcodec_register_all().

Definition at line 86 of file libgsm.c.

Referenced by avcodec_register_all().

Definition at line 64 of file libgsm.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 275 of file loco.c.

Referenced by avcodec_register_all().

Definition at line 433 of file mace.c.

Referenced by avcodec_register_all().

Definition at line 444 of file mace.c.

Referenced by avcodec_register_all().

Definition at line 256 of file mdec.c.

Referenced by avcodec_register_all().

Definition at line 2268 of file mjpeg.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 2319 of file mjpeg.c.

Referenced by avcodec_register_all().

Definition at line 2281 of file mjpeg.c.

Referenced by avcodec_register_all().

Definition at line 2861 of file mpegaudiodec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 2874 of file mpegaudiodec.c.

Referenced by avcodec_register_all().

Definition at line 2887 of file mpegaudiodec.c.

Referenced by avcodec_register_all().

Definition at line 205 of file mp3lameaudio.c.

Referenced by avcodec_register_all().

Definition at line 2900 of file mpegaudiodec.c.

Referenced by avcodec_register_all().

Definition at line 3210 of file mpeg12.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 3223 of file mpeg12.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 789 of file h263dec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 838 of file parser.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 847 of file parser.c.

Referenced by avcodec_register_all().

Definition at line 3237 of file mpeg12.c.

Referenced by avcodec_register_all().

Definition at line 829 of file parser.c.

Referenced by avcodec_register_all().

Definition at line 815 of file h263dec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 827 of file h263dec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 839 of file h263dec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 297 of file msrle.c.

Referenced by avcodec_register_all().

Definition at line 337 of file msvideo1.c.

Referenced by avcodec_register_all().

Definition at line 885 of file lcl.c.

Referenced by avcodec_register_all().

Definition at line 122 of file oggtheora.c.

Referenced by avcodec_register_all().

Definition at line 335 of file oggvorbis.c.

Referenced by avcodec_register_all().

Definition at line 172 of file oggvorbis.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 512 of file pnm.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 148 of file qdrw.c.

Referenced by avcodec_register_all().

Definition at line 292 of file qpeg.c.

Referenced by avcodec_register_all().

Definition at line 612 of file qtrle.c.

Referenced by avcodec_register_all().

Definition at line 507 of file ra144.c.

Referenced by avcodec_register_all().

Definition at line 268 of file ra288.c.

Referenced by avcodec_register_all().

Definition at line 186 of file raw.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 489 of file roqvideo.c.

Referenced by avcodec_register_all().

Definition at line 291 of file dpcm.c.

Referenced by avcodec_register_all().

Definition at line 280 of file rpza.c.

Referenced by avcodec_register_all().

Definition at line 751 of file rv10.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 763 of file rv10.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 511 of file shorten.c.

Referenced by avcodec_register_all().

Definition at line 481 of file smc.c.

Referenced by avcodec_register_all().

Definition at line 3829 of file snow.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 324 of file dpcm.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 2294 of file mjpeg.c.

Referenced by avcodec_register_all().

Definition at line 1391 of file svq1.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 1002 of file svq3.c.

Referenced by avcodec_register_all().

Definition at line 3565 of file vp3.c.

Referenced by avcodec_register_all().

Definition at line 922 of file truemotion1.c.

Referenced by avcodec_register_all().

Definition at line 319 of file tscc.c.

Referenced by avcodec_register_all().

Definition at line 414 of file ulti.c.

Referenced by avcodec_register_all().

Definition at line 2652 of file vc9.c.

Referenced by avcodec_register_all().

Definition at line 163 of file vcr1.c.

Referenced by avcodec_register_all().

Definition at line 569 of file vmdav.c.

Referenced by avcodec_register_all().

Definition at line 557 of file vmdav.c.

Referenced by avcodec_register_all().

Definition at line 1461 of file vorbis.c.

Referenced by avcodec_register_all().

Definition at line 3551 of file vp3.c.

Referenced by avcodec_register_all().

Definition at line 598 of file vqavideo.c.

Referenced by avcodec_register_all().

Definition at line 1313 of file wmadec.c.

Referenced by avcodec_register_all().

Definition at line 1325 of file wmadec.c.

Referenced by avcodec_register_all().

Definition at line 851 of file h263dec.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 830 of file wmv2.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().

Definition at line 2665 of file vc9.c.

Referenced by avcodec_register_all().

Definition at line 134 of file wnv1.c.

Referenced by avcodec_register_all().

Definition at line 136 of file ws-snd1.c.

Referenced by avcodec_register_all().

Definition at line 174 of file x264.c.

Referenced by avcodec_register_all().

Definition at line 313 of file dpcm.c.

Referenced by avcodec_register_all().

Definition at line 800 of file xan.c.

Referenced by avcodec_register_all().

Definition at line 128 of file xl.c.

Referenced by avcodec_register_all().

XviD codec definition for libavcodec.

Definition at line 766 of file xvidff.c.

Referenced by avcodec_register_all().

Definition at line 898 of file lcl.c.

Referenced by avcodec_register_all().

Referenced by avcodec_register_all().


Generated on Mon Apr 28 14:03:33 2008 for Cinelerra by  doxygen 1.5.5