Core functions/structures.
[Encoding/Decoding Library]

Basic definitions, functions for querying libavcodec capabilities, allocating core structures, etc. More...


Data Structures

struct  RcOverride
struct  AVPanScan
 Pan Scan area. More...
struct  AVFrame
 Audio Video Frame. More...
struct  AVCodecContext
 main external API structure. More...
struct  AVProfile
 AVProfile. More...
struct  AVCodec
 AVCodec. More...
struct  AVHWAccel
 AVHWAccel. More...
struct  AVSubtitleRect
struct  AVSubtitle

Modules

 AVPacket
 Types and functions for working with AVPacket.
 AVPicture
 Functions for working with AVPicture.

Defines

#define AVCODEC_MAX_AUDIO_FRAME_SIZE   192000
#define AVCOL_SPC_YCGCO   AVCOL_SPC_YCOCG
#define FF_MAX_B_FRAMES   16
#define CODEC_FLAG_QSCALE   0x0002
 Use fixed qscale.
#define CODEC_FLAG_4MV   0x0004
 4 MV per MB allowed / advanced prediction for H.263.
#define CODEC_FLAG_QPEL   0x0010
 Use qpel MC.
#define CODEC_FLAG_GMC   0x0020
 Use GMC.
#define CODEC_FLAG_MV0   0x0040
 Always try a MB with MV=<0,0>.
#define CODEC_FLAG_INPUT_PRESERVED   0x0100
 The parent program guarantees that the input for B-frames containing streams is not written to for at least s->max_b_frames+1 frames, if this is not set the input will be copied.
#define CODEC_FLAG_PASS1   0x0200
 Use internal 2pass ratecontrol in first pass mode.
#define CODEC_FLAG_PASS2   0x0400
 Use internal 2pass ratecontrol in second pass mode.
#define CODEC_FLAG_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_GLOBAL_HEADER   0x00400000
 Place global headers in extradata instead of every keyframe.
#define CODEC_FLAG_BITEXACT   0x00800000
 Use only bitexact stuff (except (I)DCT).
#define CODEC_FLAG_AC_PRED   0x01000000
 H.263 advanced intra coding / MPEG-4 AC prediction.
#define CODEC_FLAG_LOOP_FILTER   0x00000800
 loop filter
#define CODEC_FLAG_INTERLACED_ME   0x20000000
 interlaced motion estimation
#define CODEC_FLAG_CLOSED_GOP   0x80000000
#define CODEC_FLAG2_FAST   0x00000001
 Allow non spec compliant speedup tricks.
#define CODEC_FLAG2_NO_OUTPUT   0x00000004
 Skip bitstream encoding.
#define CODEC_FLAG2_LOCAL_HEADER   0x00000008
 Place global headers at every keyframe instead of in extradata.
#define CODEC_FLAG2_DROP_FRAME_TIMECODE   0x00002000
 timecode is in drop frame format. DEPRECATED!!!!
#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_FLAG2_STRICT_GOP   0x00000002
 Strictly enforce GOP size.
#define CODEC_FLAG2_SKIP_RD   0x00004000
 RD optimal MB level residual skipping.
#define CODEC_FLAG2_CHUNKS   0x00008000
 Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries.
#define CODEC_FLAG2_SHOW_ALL   0x00400000
 Show all frames before the first keyframe.
#define CODEC_CAP_DRAW_HORIZ_BAND   0x0001
 Decoder can use draw_horiz_band callback.
#define CODEC_CAP_DR1   0x0002
 Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define CODEC_CAP_TRUNCATED   0x0008
#define CODEC_CAP_HWACCEL   0x0010
#define CODEC_CAP_DELAY   0x0020
 Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output.
#define CODEC_CAP_SMALL_LAST_FRAME   0x0040
 Codec can be fed a final frame with a smaller size.
#define CODEC_CAP_HWACCEL_VDPAU   0x0080
 Codec can export data for HW decoding (VDPAU).
#define CODEC_CAP_SUBFRAMES   0x0100
 Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames.
#define CODEC_CAP_EXPERIMENTAL   0x0200
 Codec is experimental and is thus avoided in favor of non experimental encoders.
#define CODEC_CAP_CHANNEL_CONF   0x0400
 Codec should fill in channel configuration and samplerate instead of container.
#define CODEC_CAP_NEG_LINESIZES   0x0800
 Codec is able to deal with negative linesizes.
#define CODEC_CAP_FRAME_THREADS   0x1000
 Codec supports frame-level multithreading.
#define CODEC_CAP_SLICE_THREADS   0x2000
 Codec supports slice-based (or partition-based) multithreading.
#define CODEC_CAP_PARAM_CHANGE   0x4000
 Codec supports changed parameters at any point.
#define CODEC_CAP_AUTO_THREADS   0x8000
 Codec supports avctx->thread_count == 0 (auto).
#define CODEC_CAP_VARIABLE_FRAME_SIZE   0x10000
 Audio encoder supports receiving a different number of samples in each call.
#define CODEC_CAP_LOSSLESS   0x80000000
 Codec is lossless.
#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_QSCALE_TYPE_MPEG1   0
#define FF_QSCALE_TYPE_MPEG2   1
#define FF_QSCALE_TYPE_H264   2
#define FF_QSCALE_TYPE_VP56   3
#define FF_BUFFER_TYPE_INTERNAL   1
#define FF_BUFFER_TYPE_USER   2
 direct rendering buffers (image is (de)allocated by user)
#define FF_BUFFER_TYPE_SHARED   4
 Buffer from somewhere else; don't deallocate image (data/base), all other tables are not shared.
#define FF_BUFFER_TYPE_COPY   8
 Just a (modified) copy of some other buffer, don't deallocate anything.
#define FF_BUFFER_HINTS_VALID   0x01
#define FF_BUFFER_HINTS_READABLE   0x02
#define FF_BUFFER_HINTS_PRESERVE   0x04
#define FF_BUFFER_HINTS_REUSABLE   0x08

Typedefs

typedef struct AVCodecDefault AVCodecDefault

Enumerations

enum  CodecID {
  CODEC_ID_NONE, CODEC_ID_MPEG1VIDEO, CODEC_ID_MPEG2VIDEO, CODEC_ID_MPEG2VIDEO_XVMC,
  CODEC_ID_H261, CODEC_ID_H263, CODEC_ID_RV10, CODEC_ID_RV20,
  CODEC_ID_MJPEG, CODEC_ID_MJPEGB, CODEC_ID_LJPEG, CODEC_ID_SP5X,
  CODEC_ID_JPEGLS, CODEC_ID_MPEG4, CODEC_ID_RAWVIDEO, CODEC_ID_MSMPEG4V1,
  CODEC_ID_MSMPEG4V2, CODEC_ID_MSMPEG4V3, CODEC_ID_WMV1, CODEC_ID_WMV2,
  CODEC_ID_H263P, CODEC_ID_H263I, CODEC_ID_FLV1, CODEC_ID_SVQ1,
  CODEC_ID_SVQ3, CODEC_ID_DVVIDEO, CODEC_ID_HUFFYUV, CODEC_ID_CYUV,
  CODEC_ID_H264, CODEC_ID_INDEO3, CODEC_ID_VP3, CODEC_ID_THEORA,
  CODEC_ID_ASV1, CODEC_ID_ASV2, CODEC_ID_FFV1, CODEC_ID_4XM,
  CODEC_ID_VCR1, CODEC_ID_CLJR, CODEC_ID_MDEC, CODEC_ID_ROQ,
  CODEC_ID_INTERPLAY_VIDEO, CODEC_ID_XAN_WC3, CODEC_ID_XAN_WC4, CODEC_ID_RPZA,
  CODEC_ID_CINEPAK, CODEC_ID_WS_VQA, CODEC_ID_MSRLE, CODEC_ID_MSVIDEO1,
  CODEC_ID_IDCIN, CODEC_ID_8BPS, CODEC_ID_SMC, CODEC_ID_FLIC,
  CODEC_ID_TRUEMOTION1, CODEC_ID_VMDVIDEO, CODEC_ID_MSZH, CODEC_ID_ZLIB,
  CODEC_ID_QTRLE, CODEC_ID_SNOW, CODEC_ID_TSCC, CODEC_ID_ULTI,
  CODEC_ID_QDRAW, CODEC_ID_VIXL, CODEC_ID_QPEG, CODEC_ID_PNG,
  CODEC_ID_PPM, CODEC_ID_PBM, CODEC_ID_PGM, CODEC_ID_PGMYUV,
  CODEC_ID_PAM, CODEC_ID_FFVHUFF, CODEC_ID_RV30, CODEC_ID_RV40,
  CODEC_ID_VC1, CODEC_ID_WMV3, CODEC_ID_LOCO, CODEC_ID_WNV1,
  CODEC_ID_AASC, CODEC_ID_INDEO2, CODEC_ID_FRAPS, CODEC_ID_TRUEMOTION2,
  CODEC_ID_BMP, CODEC_ID_CSCD, CODEC_ID_MMVIDEO, CODEC_ID_ZMBV,
  CODEC_ID_AVS, CODEC_ID_SMACKVIDEO, CODEC_ID_NUV, CODEC_ID_KMVC,
  CODEC_ID_FLASHSV, CODEC_ID_CAVS, CODEC_ID_JPEG2000, CODEC_ID_VMNC,
  CODEC_ID_VP5, CODEC_ID_VP6, CODEC_ID_VP6F, CODEC_ID_TARGA,
  CODEC_ID_DSICINVIDEO, CODEC_ID_TIERTEXSEQVIDEO, CODEC_ID_TIFF, CODEC_ID_GIF,
  CODEC_ID_DXA, CODEC_ID_DNXHD, CODEC_ID_THP, CODEC_ID_SGI,
  CODEC_ID_C93, CODEC_ID_BETHSOFTVID, CODEC_ID_PTX, CODEC_ID_TXD,
  CODEC_ID_VP6A, CODEC_ID_AMV, CODEC_ID_VB, CODEC_ID_PCX,
  CODEC_ID_SUNRAST, CODEC_ID_INDEO4, CODEC_ID_INDEO5, CODEC_ID_MIMIC,
  CODEC_ID_RL2, CODEC_ID_ESCAPE124, CODEC_ID_DIRAC, CODEC_ID_BFI,
  CODEC_ID_CMV, CODEC_ID_MOTIONPIXELS, CODEC_ID_TGV, CODEC_ID_TGQ,
  CODEC_ID_TQI, CODEC_ID_AURA, CODEC_ID_AURA2, CODEC_ID_V210X,
  CODEC_ID_TMV, CODEC_ID_V210, CODEC_ID_DPX, CODEC_ID_MAD,
  CODEC_ID_FRWU, CODEC_ID_FLASHSV2, CODEC_ID_CDGRAPHICS, CODEC_ID_R210,
  CODEC_ID_ANM, CODEC_ID_BINKVIDEO, CODEC_ID_IFF_ILBM, CODEC_ID_IFF_BYTERUN1,
  CODEC_ID_KGV1, CODEC_ID_YOP, CODEC_ID_VP8, CODEC_ID_PICTOR,
  CODEC_ID_ANSI, CODEC_ID_A64_MULTI, CODEC_ID_A64_MULTI5, CODEC_ID_R10K,
  CODEC_ID_MXPEG, CODEC_ID_LAGARITH, CODEC_ID_PRORES, CODEC_ID_JV,
  CODEC_ID_DFA, CODEC_ID_WMV3IMAGE, CODEC_ID_VC1IMAGE, CODEC_ID_UTVIDEO,
  CODEC_ID_BMV_VIDEO, CODEC_ID_VBLE, CODEC_ID_DXTORY, CODEC_ID_V410,
  CODEC_ID_XWD, CODEC_ID_CDXL, CODEC_ID_XBM, CODEC_ID_ZEROCODEC,
  CODEC_ID_Y41P = MKBETAG('Y','4','1','P'), CODEC_ID_ESCAPE130 = MKBETAG('E','1','3','0'), CODEC_ID_EXR = MKBETAG('0','E','X','R'), CODEC_ID_AVRP = MKBETAG('A','V','R','P'),
  CODEC_ID_G2M = MKBETAG( 0 ,'G','2','M'), CODEC_ID_AVUI = MKBETAG('A','V','U','I'), CODEC_ID_AYUV = MKBETAG('A','Y','U','V'), CODEC_ID_V308 = MKBETAG('V','3','0','8'),
  CODEC_ID_V408 = MKBETAG('V','4','0','8'), CODEC_ID_YUV4 = MKBETAG('Y','U','V','4'), CODEC_ID_FIRST_AUDIO = 0x10000, CODEC_ID_PCM_S16LE = 0x10000,
  CODEC_ID_PCM_S16BE, CODEC_ID_PCM_U16LE, CODEC_ID_PCM_U16BE, CODEC_ID_PCM_S8,
  CODEC_ID_PCM_U8, CODEC_ID_PCM_MULAW, CODEC_ID_PCM_ALAW, CODEC_ID_PCM_S32LE,
  CODEC_ID_PCM_S32BE, CODEC_ID_PCM_U32LE, CODEC_ID_PCM_U32BE, CODEC_ID_PCM_S24LE,
  CODEC_ID_PCM_S24BE, CODEC_ID_PCM_U24LE, CODEC_ID_PCM_U24BE, CODEC_ID_PCM_S24DAUD,
  CODEC_ID_PCM_ZORK, CODEC_ID_PCM_S16LE_PLANAR, CODEC_ID_PCM_DVD, CODEC_ID_PCM_F32BE,
  CODEC_ID_PCM_F32LE, CODEC_ID_PCM_F64BE, CODEC_ID_PCM_F64LE, CODEC_ID_PCM_BLURAY,
  CODEC_ID_PCM_LXF, CODEC_ID_S302M, CODEC_ID_PCM_S8_PLANAR, CODEC_ID_ADPCM_IMA_QT = 0x11000,
  CODEC_ID_ADPCM_IMA_WAV, CODEC_ID_ADPCM_IMA_DK3, CODEC_ID_ADPCM_IMA_DK4, CODEC_ID_ADPCM_IMA_WS,
  CODEC_ID_ADPCM_IMA_SMJPEG, CODEC_ID_ADPCM_MS, CODEC_ID_ADPCM_4XM, CODEC_ID_ADPCM_XA,
  CODEC_ID_ADPCM_ADX, CODEC_ID_ADPCM_EA, CODEC_ID_ADPCM_G726, CODEC_ID_ADPCM_CT,
  CODEC_ID_ADPCM_SWF, CODEC_ID_ADPCM_YAMAHA, CODEC_ID_ADPCM_SBPRO_4, CODEC_ID_ADPCM_SBPRO_3,
  CODEC_ID_ADPCM_SBPRO_2, CODEC_ID_ADPCM_THP, CODEC_ID_ADPCM_IMA_AMV, CODEC_ID_ADPCM_EA_R1,
  CODEC_ID_ADPCM_EA_R3, CODEC_ID_ADPCM_EA_R2, CODEC_ID_ADPCM_IMA_EA_SEAD, CODEC_ID_ADPCM_IMA_EA_EACS,
  CODEC_ID_ADPCM_EA_XAS, CODEC_ID_ADPCM_EA_MAXIS_XA, CODEC_ID_ADPCM_IMA_ISS, CODEC_ID_ADPCM_G722,
  CODEC_ID_ADPCM_IMA_APC, CODEC_ID_AMR_NB = 0x12000, CODEC_ID_AMR_WB, CODEC_ID_RA_144 = 0x13000,
  CODEC_ID_RA_288, CODEC_ID_ROQ_DPCM = 0x14000, CODEC_ID_INTERPLAY_DPCM, CODEC_ID_XAN_DPCM,
  CODEC_ID_SOL_DPCM, CODEC_ID_MP2 = 0x15000, CODEC_ID_MP3, CODEC_ID_AAC,
  CODEC_ID_AC3, CODEC_ID_DTS, CODEC_ID_VORBIS, CODEC_ID_DVAUDIO,
  CODEC_ID_WMAV1, CODEC_ID_WMAV2, CODEC_ID_MACE3, CODEC_ID_MACE6,
  CODEC_ID_VMDAUDIO, CODEC_ID_FLAC, CODEC_ID_MP3ADU, CODEC_ID_MP3ON4,
  CODEC_ID_SHORTEN, CODEC_ID_ALAC, CODEC_ID_WESTWOOD_SND1, CODEC_ID_GSM,
  CODEC_ID_QDM2, CODEC_ID_COOK, CODEC_ID_TRUESPEECH, CODEC_ID_TTA,
  CODEC_ID_SMACKAUDIO, CODEC_ID_QCELP, CODEC_ID_WAVPACK, CODEC_ID_DSICINAUDIO,
  CODEC_ID_IMC, CODEC_ID_MUSEPACK7, CODEC_ID_MLP, CODEC_ID_GSM_MS,
  CODEC_ID_ATRAC3, CODEC_ID_VOXWARE, CODEC_ID_APE, CODEC_ID_NELLYMOSER,
  CODEC_ID_MUSEPACK8, CODEC_ID_SPEEX, CODEC_ID_WMAVOICE, CODEC_ID_WMAPRO,
  CODEC_ID_WMALOSSLESS, CODEC_ID_ATRAC3P, CODEC_ID_EAC3, CODEC_ID_SIPR,
  CODEC_ID_MP1, CODEC_ID_TWINVQ, CODEC_ID_TRUEHD, CODEC_ID_MP4ALS,
  CODEC_ID_ATRAC1, CODEC_ID_BINKAUDIO_RDFT, CODEC_ID_BINKAUDIO_DCT, CODEC_ID_AAC_LATM,
  CODEC_ID_QDMC, CODEC_ID_CELT, CODEC_ID_G723_1, CODEC_ID_G729,
  CODEC_ID_8SVX_EXP, CODEC_ID_8SVX_FIB, CODEC_ID_BMV_AUDIO, CODEC_ID_RALF,
  CODEC_ID_FFWAVESYNTH = MKBETAG('F','F','W','S'), CODEC_ID_8SVX_RAW = MKBETAG('8','S','V','X'), CODEC_ID_SONIC = MKBETAG('S','O','N','C'), CODEC_ID_SONIC_LS = MKBETAG('S','O','N','L'),
  CODEC_ID_FIRST_SUBTITLE = 0x17000, CODEC_ID_DVD_SUBTITLE = 0x17000, CODEC_ID_DVB_SUBTITLE, CODEC_ID_TEXT,
  CODEC_ID_XSUB, CODEC_ID_SSA, CODEC_ID_MOV_TEXT, CODEC_ID_HDMV_PGS_SUBTITLE,
  CODEC_ID_DVB_TELETEXT, CODEC_ID_SRT, CODEC_ID_MICRODVD = MKBETAG('m','D','V','D'), CODEC_ID_EIA_608 = MKBETAG('c','6','0','8'),
  CODEC_ID_JACOSUB = MKBETAG('J','S','U','B'), CODEC_ID_FIRST_UNKNOWN = 0x18000, CODEC_ID_TTF = 0x18000, CODEC_ID_BINTEXT = MKBETAG('B','T','X','T'),
  CODEC_ID_XBIN = MKBETAG('X','B','I','N'), CODEC_ID_IDF = MKBETAG( 0 ,'I','D','F'), CODEC_ID_PROBE = 0x19000, CODEC_ID_MPEG2TS = 0x20000,
  CODEC_ID_MPEG4SYSTEMS = 0x20001, CODEC_ID_FFMETADATA = 0x21000
}
 Identify the syntax and semantics of the bitstream. More...
enum  AVColorPrimaries {
  AVCOL_PRI_BT709 = 1, AVCOL_PRI_UNSPECIFIED = 2, AVCOL_PRI_BT470M = 4, AVCOL_PRI_BT470BG = 5,
  AVCOL_PRI_SMPTE170M = 6, AVCOL_PRI_SMPTE240M = 7, AVCOL_PRI_FILM = 8, AVCOL_PRI_NB
}
enum  AVColorTransferCharacteristic {
  AVCOL_TRC_BT709 = 1, AVCOL_TRC_UNSPECIFIED = 2, AVCOL_TRC_GAMMA22 = 4, AVCOL_TRC_GAMMA28 = 5,
  AVCOL_TRC_SMPTE240M = 7, AVCOL_TRC_NB
}
enum  AVColorSpace {
  AVCOL_SPC_RGB = 0, AVCOL_SPC_BT709 = 1, AVCOL_SPC_UNSPECIFIED = 2, AVCOL_SPC_FCC = 4,
  AVCOL_SPC_BT470BG = 5, AVCOL_SPC_SMPTE170M = 6, AVCOL_SPC_SMPTE240M = 7, AVCOL_SPC_YCOCG = 8,
  AVCOL_SPC_NB
}
enum  AVColorRange { AVCOL_RANGE_UNSPECIFIED = 0, AVCOL_RANGE_MPEG = 1, AVCOL_RANGE_JPEG = 2, AVCOL_RANGE_NB }
enum  AVChromaLocation {
  AVCHROMA_LOC_UNSPECIFIED = 0, AVCHROMA_LOC_LEFT = 1, AVCHROMA_LOC_CENTER = 2, AVCHROMA_LOC_TOPLEFT = 3,
  AVCHROMA_LOC_TOP = 4, AVCHROMA_LOC_BOTTOMLEFT = 5, AVCHROMA_LOC_BOTTOM = 6, AVCHROMA_LOC_NB
}
 X X 3 4 X X are luma samples, 1 2 1-6 are possible chroma positions X X 5 6 X 0 is undefined/unknown position. More...
enum  AVAudioServiceType {
  AV_AUDIO_SERVICE_TYPE_MAIN = 0, AV_AUDIO_SERVICE_TYPE_EFFECTS = 1, AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED = 2, AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED = 3,
  AV_AUDIO_SERVICE_TYPE_DIALOGUE = 4, AV_AUDIO_SERVICE_TYPE_COMMENTARY = 5, AV_AUDIO_SERVICE_TYPE_EMERGENCY = 6, AV_AUDIO_SERVICE_TYPE_VOICE_OVER = 7,
  AV_AUDIO_SERVICE_TYPE_KARAOKE = 8, AV_AUDIO_SERVICE_TYPE_NB
}
enum  AVFieldOrder {
  AV_FIELD_UNKNOWN, AV_FIELD_PROGRESSIVE, AV_FIELD_TT, AV_FIELD_BB,
  AV_FIELD_TB, AV_FIELD_BT
}
enum  AVSubtitleType { SUBTITLE_NONE, SUBTITLE_BITMAP, SUBTITLE_TEXT, SUBTITLE_ASS }

Functions

int64_t av_frame_get_best_effort_timestamp (const AVFrame *frame)
 Accessors for some AVFrame fields.
int64_t av_frame_get_pkt_pos (const AVFrame *frame)
int64_t av_frame_get_channel_layout (const AVFrame *frame)
int av_frame_get_sample_rate (const AVFrame *frame)
void av_frame_set_best_effort_timestamp (AVFrame *frame, int64_t val)
void av_frame_set_pkt_pos (AVFrame *frame, int64_t val)
void av_frame_set_channel_layout (AVFrame *frame, int64_t val)
void av_frame_set_sample_rate (AVFrame *frame, int val)
AVCodecav_codec_next (AVCodec *c)
 If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec after c, or NULL if c is the last one.
unsigned avcodec_version (void)
 Return the LIBAVCODEC_VERSION_INT constant.
const char * avcodec_configuration (void)
 Return the libavcodec build-time configuration.
const char * avcodec_license (void)
 Return the libavcodec license.
void avcodec_register (AVCodec *codec)
 Register the codec codec and initialize libavcodec.
void avcodec_register_all (void)
 Register all the codecs, parsers and bitstream filters which were enabled at configuration time.
attribute_deprecated
AVCodecContext
avcodec_alloc_context (void)
 Allocate an AVCodecContext and set its fields to default values.
attribute_deprecated
AVCodecContext
avcodec_alloc_context2 (enum AVMediaType)
 THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
attribute_deprecated void avcodec_get_context_defaults (AVCodecContext *s)
 Set the fields of the given AVCodecContext to default values.
attribute_deprecated void avcodec_get_context_defaults2 (AVCodecContext *s, enum AVMediaType)
 THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
AVCodecContextavcodec_alloc_context3 (AVCodec *codec)
 Allocate an AVCodecContext and set its fields to default values.
int avcodec_get_context_defaults3 (AVCodecContext *s, AVCodec *codec)
 Set the fields of the given AVCodecContext to default values corresponding to the given codec (defaults may be codec-dependent).
const AVClassavcodec_get_class (void)
 Get the AVClass for AVCodecContext.
const AVClassavcodec_get_frame_class (void)
 Get the AVClass for AVFrame.
const AVClassavcodec_get_subtitle_rect_class (void)
 Get the AVClass for AVSubtitleRect.
int avcodec_copy_context (AVCodecContext *dest, const AVCodecContext *src)
 Copy the settings of the source AVCodecContext into the destination AVCodecContext.
AVFrameavcodec_alloc_frame (void)
 Allocate an AVFrame and set its fields to default values.
void avcodec_get_frame_defaults (AVFrame *pic)
 Set the fields of the given AVFrame to default values.
attribute_deprecated int avcodec_open (AVCodecContext *avctx, AVCodec *codec)
 Initialize the AVCodecContext to use the given AVCodec.
int avcodec_open2 (AVCodecContext *avctx, AVCodec *codec, AVDictionary **options)
 Initialize the AVCodecContext to use the given AVCodec.
int avcodec_close (AVCodecContext *avctx)
 Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext itself).
void avsubtitle_free (AVSubtitle *sub)
 Free all allocated data in the given subtitle struct.


Detailed Description

Basic definitions, functions for querying libavcodec capabilities, allocating core structures, etc.

Define Documentation

#define AVCODEC_MAX_AUDIO_FRAME_SIZE   192000

Definition at line 447 of file avcodec.h.

Referenced by dv_assemble_frame(), and dv_init_mux().

#define AVCOL_SPC_YCGCO   AVCOL_SPC_YCOCG

Definition at line 530 of file avcodec.h.

Referenced by decode_slice_header().

#define CODEC_CAP_AUTO_THREADS   0x8000

Codec supports avctx->thread_count == 0 (auto).

Definition at line 718 of file avcodec.h.

Referenced by avcodec_open2(), and validate_thread_parameters().

#define CODEC_CAP_CHANNEL_CONF   0x0400

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

Definition at line 696 of file avcodec.h.

Referenced by try_decode_frame().

#define CODEC_CAP_DELAY   0x0020

Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output.

NOTE: If this flag is not set, the codec is guaranteed to never be fed with with NULL data. The user can still send NULL data to the public encode or decode function, but libavcodec will not pass it along to the codec unless this flag is set.

Decoders: The decoder has a non-zero delay and needs to be fed with avpkt->data=NULL, avpkt->size=0 at the end to get the delayed data until the decoder no longer returns frames.

Encoders: The encoder needs to be fed with NULL data at the end of encoding until the encoder no longer returns data.

NOTE: For encoders implementing the AVCodec.encode2() function, setting this flag also means that the encoder must set the pts and duration for each output packet. If this flag is not set, the pts and duration will be determined by libavcodec from the input frame.

Definition at line 666 of file avcodec.h.

Referenced by audio_decode_frame(), avcodec_decode_audio4(), avcodec_decode_video2(), avcodec_encode_audio2(), avcodec_encode_video2(), do_video_out(), mpeg12_class(), read_thread(), and submit_packet().

#define CODEC_CAP_DR1   0x0002

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

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

Definition at line 639 of file avcodec.h.

Referenced by init_input_stream(), opt_codecs(), and stream_component_open().

#define CODEC_CAP_DRAW_HORIZ_BAND   0x0001

Decoder can use draw_horiz_band callback.

Definition at line 633 of file avcodec.h.

Referenced by ff_MPV_frame_end(), and opt_codecs().

#define CODEC_CAP_EXPERIMENTAL   0x0200

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

Definition at line 692 of file avcodec.h.

Referenced by assert_codec_experimental(), avcodec_find_decoder(), avcodec_find_encoder(), and avcodec_open2().

#define CODEC_CAP_FRAME_THREADS   0x1000

Codec supports frame-level multithreading.

Definition at line 706 of file avcodec.h.

Referenced by validate_thread_parameters().

#define CODEC_CAP_HWACCEL   0x0010

Definition at line 642 of file avcodec.h.

#define CODEC_CAP_HWACCEL_VDPAU   0x0080

Codec can export data for HW decoding (VDPAU).

Definition at line 675 of file avcodec.h.

Referenced by decode_nal_units(), execute_decode_slices(), ff_draw_horiz_band(), ff_er_frame_end(), ff_h263_decode_frame(), ff_MPV_frame_end(), field_end(), and vc1_decode_frame().

#define CODEC_CAP_LOSSLESS   0x80000000

Codec is lossless.

Definition at line 726 of file avcodec.h.

Referenced by choose_sample_fmt().

#define CODEC_CAP_NEG_LINESIZES   0x0800

Codec is able to deal with negative linesizes.

Definition at line 701 of file avcodec.h.

#define CODEC_CAP_PARAM_CHANGE   0x4000

Codec supports changed parameters at any point.

Definition at line 714 of file avcodec.h.

Referenced by apply_param_change().

#define CODEC_CAP_SLICE_THREADS   0x2000

Codec supports slice-based (or partition-based) multithreading.

Definition at line 710 of file avcodec.h.

Referenced by validate_thread_parameters().

#define CODEC_CAP_SMALL_LAST_FRAME   0x0040

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

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

Definition at line 671 of file avcodec.h.

Referenced by avcodec_encode_audio2().

#define CODEC_CAP_SUBFRAMES   0x0100

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

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

Definition at line 687 of file avcodec.h.

#define CODEC_CAP_TRUNCATED   0x0008

Definition at line 640 of file avcodec.h.

Referenced by opt_codecs(), and video_decode_example().

#define CODEC_CAP_VARIABLE_FRAME_SIZE   0x10000

Audio encoder supports receiving a different number of samples in each call.

Definition at line 722 of file avcodec.h.

Referenced by avcodec_encode_audio2(), open_audio(), and poll_filters().

#define CODEC_FLAG2_CHUNKS   0x00008000

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

Definition at line 623 of file avcodec.h.

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

#define CODEC_FLAG2_DROP_FRAME_TIMECODE   0x00002000

timecode is in drop frame format. DEPRECATED!!!!

Definition at line 616 of file avcodec.h.

Referenced by encode_init(), and ff_mov_read_stsd_entries().

#define CODEC_FLAG2_FAST   0x00000001

Allow non spec compliant speedup tricks.

Definition at line 613 of file avcodec.h.

Referenced by decode_slice_header(), ff_h263_decode_frame(), ff_h264_decode_nal(), 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 615 of file avcodec.h.

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

#define CODEC_FLAG2_NO_OUTPUT   0x00000004

Skip bitstream encoding.

Definition at line 614 of file avcodec.h.

Referenced by encode_bgra_bitstream(), ff_h263_encode_motion_vector(), and mpeg4_encode_blocks().

#define CODEC_FLAG2_SHOW_ALL   0x00400000

Show all frames before the first keyframe.

Definition at line 624 of file avcodec.h.

Referenced by decode_chunks(), and decode_nal_units().

#define CODEC_FLAG2_SKIP_RD   0x00004000

RD optimal MB level residual skipping.

Definition at line 621 of file avcodec.h.

Referenced by ff_MPV_encode_init().

#define CODEC_FLAG2_STRICT_GOP   0x00000002

Strictly enforce GOP size.

Definition at line 620 of file avcodec.h.

Referenced by ff_MPV_encode_init().

#define CODEC_FLAG_4MV   0x0004

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

Definition at line 586 of file avcodec.h.

Referenced by check_input_motion(), config(), encode_init(), ff_estimate_p_frame_motion(), ff_fix_long_p_mvs(), ff_MPV_encode_init(), parse_ffconfig(), and xvid_encode_init().

#define CODEC_FLAG_AC_PRED   0x01000000

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

Definition at line 609 of file avcodec.h.

Referenced by ff_mpeg4_encode_mb(), ff_MPV_encode_init(), and xvid_encode_init().

#define CODEC_FLAG_BITEXACT   0x00800000

#define CODEC_FLAG_CBP_RD   0x04000000

Use rate distortion optimization for cbp.

Definition at line 618 of file avcodec.h.

Referenced by ff_MPV_encode_init().

#define CODEC_FLAG_CLOSED_GOP   0x80000000

#define CODEC_FLAG_EMU_EDGE   0x4000

#define CODEC_FLAG_GLOBAL_HEADER   0x00400000

#define CODEC_FLAG_GMC   0x0020

Use GMC.

Definition at line 588 of file avcodec.h.

Referenced by xvid_encode_init().

#define CODEC_FLAG_GRAY   0x2000

#define CODEC_FLAG_INPUT_PRESERVED   0x0100

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

Definition at line 595 of file avcodec.h.

Referenced by estimate_best_b_count(), and load_input_picture().

#define CODEC_FLAG_INTERLACED_DCT   0x00040000

#define CODEC_FLAG_INTERLACED_ME   0x20000000

#define CODEC_FLAG_LOOP_FILTER   0x00000800

loop filter

Definition at line 610 of file avcodec.h.

Referenced by ff_MPV_encode_init(), and X264_init().

#define CODEC_FLAG_LOW_DELAY   0x00080000

#define CODEC_FLAG_MV0   0x0040

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

Definition at line 589 of file avcodec.h.

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

#define CODEC_FLAG_NORMALIZE_AQP   0x00020000

Normalize adaptive quantization.

Definition at line 603 of file avcodec.h.

Referenced by adaptive_quantization().

#define CODEC_FLAG_PASS1   0x0200

#define CODEC_FLAG_PASS2   0x0400

#define CODEC_FLAG_PSNR   0x8000

error[?] variables will be set during encoding.

Definition at line 600 of file avcodec.h.

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

#define CODEC_FLAG_QP_RD   0x08000000

Use rate distortion optimization for qp selectioon.

Definition at line 619 of file avcodec.h.

Referenced by ff_MPV_encode_init().

#define CODEC_FLAG_QPEL   0x0010

#define CODEC_FLAG_QSCALE   0x0002

#define CODEC_FLAG_TRUNCATED   0x00010000

#define FF_BUFFER_HINTS_PRESERVE   0x04

#define FF_BUFFER_HINTS_READABLE   0x02

#define FF_BUFFER_HINTS_REUSABLE   0x08

#define FF_BUFFER_HINTS_VALID   0x01

#define FF_BUFFER_TYPE_COPY   8

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

Definition at line 789 of file avcodec.h.

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

#define FF_BUFFER_TYPE_INTERNAL   1

#define FF_BUFFER_TYPE_SHARED   4

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

Definition at line 788 of file avcodec.h.

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

#define FF_BUFFER_TYPE_USER   2

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

Definition at line 787 of file avcodec.h.

Referenced by codec_get_buffer(), codec_release_buffer(), decode_video(), ff_mpeg_flush(), and select_input_picture().

#define FF_MAX_B_FRAMES   16

Definition at line 578 of file avcodec.h.

Referenced by estimate_best_b_count().

#define FF_QSCALE_TYPE_H264   2

Definition at line 783 of file avcodec.h.

Referenced by decode_postinit().

#define FF_QSCALE_TYPE_MPEG1   0

Definition at line 781 of file avcodec.h.

#define FF_QSCALE_TYPE_MPEG2   1

Definition at line 782 of file avcodec.h.

Referenced by slice_end().

#define FF_QSCALE_TYPE_VP56   3

Definition at line 784 of file avcodec.h.

Referenced by ff_vp56_decode_frame().

#define MB_TYPE_16x16   0x0008

#define MB_TYPE_16x8   0x0010

#define MB_TYPE_8x16   0x0020

#define MB_TYPE_8x8   0x0040

#define MB_TYPE_ACPRED   0x0200

Definition at line 738 of file avcodec.h.

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

#define MB_TYPE_CBP   0x00020000

Definition at line 749 of file avcodec.h.

Referenced by mpeg_decode_mb().

#define MB_TYPE_DIRECT2   0x0100

#define MB_TYPE_GMC   0x0400

Definition at line 739 of file avcodec.h.

Referenced by mpeg4_decode_mb(), and mpeg4_decode_partition_a().

#define MB_TYPE_INTERLACED   0x0080

#define MB_TYPE_INTRA16x16   0x0002

#define MB_TYPE_INTRA4x4   0x0001

Definition at line 729 of file avcodec.h.

Referenced by ff_er_frame_end(), and svq3_decode_mb().

#define MB_TYPE_INTRA_PCM   0x0004

Definition at line 731 of file avcodec.h.

Referenced by decode_cabac_intra_mb_type().

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

Referenced by rv34_pred_mv_b().

#define MB_TYPE_P0L0   0x1000

Definition at line 741 of file avcodec.h.

Referenced by decode_mb_skip(), and pred_temp_direct_motion().

#define MB_TYPE_P0L1   0x4000

Definition at line 743 of file avcodec.h.

Referenced by pred_temp_direct_motion().

#define MB_TYPE_P1L0   0x2000

Definition at line 742 of file avcodec.h.

Referenced by decode_mb_skip(), and pred_spatial_direct_motion().

#define MB_TYPE_P1L1   0x8000

Definition at line 744 of file avcodec.h.

Referenced by pred_spatial_direct_motion().

#define MB_TYPE_QUANT   0x00010000

Definition at line 748 of file avcodec.h.

Referenced by mpeg_decode_mb().

#define MB_TYPE_SKIP   0x0800


Typedef Documentation

Definition at line 2927 of file avcodec.h.


Enumeration Type Documentation

Enumerator:
AV_AUDIO_SERVICE_TYPE_MAIN 
AV_AUDIO_SERVICE_TYPE_EFFECTS 
AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED 
AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED 
AV_AUDIO_SERVICE_TYPE_DIALOGUE 
AV_AUDIO_SERVICE_TYPE_COMMENTARY 
AV_AUDIO_SERVICE_TYPE_EMERGENCY 
AV_AUDIO_SERVICE_TYPE_VOICE_OVER 
AV_AUDIO_SERVICE_TYPE_KARAOKE 
AV_AUDIO_SERVICE_TYPE_NB  Not part of ABI.

Definition at line 555 of file avcodec.h.

X X 3 4 X X are luma samples, 1 2 1-6 are possible chroma positions X X 5 6 X 0 is undefined/unknown position.

Enumerator:
AVCHROMA_LOC_UNSPECIFIED 
AVCHROMA_LOC_LEFT  mpeg2/4, h264 default
AVCHROMA_LOC_CENTER  mpeg1, jpeg, h263
AVCHROMA_LOC_TOPLEFT  DV.
AVCHROMA_LOC_TOP 
AVCHROMA_LOC_BOTTOMLEFT 
AVCHROMA_LOC_BOTTOM 
AVCHROMA_LOC_NB  Not part of ABI.

Definition at line 544 of file avcodec.h.

Enumerator:
AVCOL_PRI_BT709  also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B
AVCOL_PRI_UNSPECIFIED 
AVCOL_PRI_BT470M 
AVCOL_PRI_BT470BG  also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
AVCOL_PRI_SMPTE170M  also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
AVCOL_PRI_SMPTE240M  functionally identical to above
AVCOL_PRI_FILM 
AVCOL_PRI_NB  Not part of ABI.

Definition at line 499 of file avcodec.h.

Enumerator:
AVCOL_RANGE_UNSPECIFIED 
AVCOL_RANGE_MPEG  the normal 219*2^(n-8) "MPEG" YUV ranges
AVCOL_RANGE_JPEG  the normal 2^n-1 "JPEG" YUV ranges
AVCOL_RANGE_NB  Not part of ABI.

Definition at line 532 of file avcodec.h.

Enumerator:
AVCOL_SPC_RGB 
AVCOL_SPC_BT709  also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B
AVCOL_SPC_UNSPECIFIED 
AVCOL_SPC_FCC 
AVCOL_SPC_BT470BG  also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601
AVCOL_SPC_SMPTE170M  also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC / functionally identical to above
AVCOL_SPC_SMPTE240M 
AVCOL_SPC_YCOCG  Used by Dirac / VC-2 and H.264 FRext, see ITU-T SG16.
AVCOL_SPC_NB  Not part of ABI.

Definition at line 519 of file avcodec.h.

Enumerator:
AVCOL_TRC_BT709  also ITU-R BT1361
AVCOL_TRC_UNSPECIFIED 
AVCOL_TRC_GAMMA22  also ITU-R BT470M / ITU-R BT1700 625 PAL & SECAM
AVCOL_TRC_GAMMA28  also ITU-R BT470BG
AVCOL_TRC_SMPTE240M 
AVCOL_TRC_NB  Not part of ABI.

Definition at line 510 of file avcodec.h.

Enumerator:
AV_FIELD_UNKNOWN 
AV_FIELD_PROGRESSIVE 
AV_FIELD_TT 
AV_FIELD_BB 
AV_FIELD_TB 
AV_FIELD_BT 

Definition at line 1298 of file avcodec.h.

Enumerator:
SUBTITLE_NONE 
SUBTITLE_BITMAP  A bitmap, pict will be set.
SUBTITLE_TEXT  Plain text, the text field must be set by the decoder and is authoritative.

ass and pict fields may contain approximations.

SUBTITLE_ASS  Formatted text, the ass field must be set by the decoder and is authoritative.

pict and text fields may contain approximations.

Definition at line 3133 of file avcodec.h.

enum CodecID

Identify the syntax and semantics of the bitstream.

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

If you add a codec ID to this list, add it so that 1. no value of a existing codec ID changes (that would break ABI), 2. Give it a value which when taken as ASCII is recognized uniquely by a human as this specific codec. This ensures that 2 forks can independently add CodecIDs without producing conflicts.

Enumerator:
CODEC_ID_NONE 
CODEC_ID_MPEG1VIDEO 
CODEC_ID_MPEG2VIDEO  preferred ID for MPEG-1/2 video decoding
CODEC_ID_MPEG2VIDEO_XVMC 
CODEC_ID_H261 
CODEC_ID_H263 
CODEC_ID_RV10 
CODEC_ID_RV20 
CODEC_ID_MJPEG 
CODEC_ID_MJPEGB 
CODEC_ID_LJPEG 
CODEC_ID_SP5X 
CODEC_ID_JPEGLS 
CODEC_ID_MPEG4 
CODEC_ID_RAWVIDEO 
CODEC_ID_MSMPEG4V1 
CODEC_ID_MSMPEG4V2 
CODEC_ID_MSMPEG4V3 
CODEC_ID_WMV1 
CODEC_ID_WMV2 
CODEC_ID_H263P 
CODEC_ID_H263I 
CODEC_ID_FLV1 
CODEC_ID_SVQ1 
CODEC_ID_SVQ3 
CODEC_ID_DVVIDEO 
CODEC_ID_HUFFYUV 
CODEC_ID_CYUV 
CODEC_ID_H264 
CODEC_ID_INDEO3 
CODEC_ID_VP3 
CODEC_ID_THEORA 
CODEC_ID_ASV1 
CODEC_ID_ASV2 
CODEC_ID_FFV1 
CODEC_ID_4XM 
CODEC_ID_VCR1 
CODEC_ID_CLJR 
CODEC_ID_MDEC 
CODEC_ID_ROQ 
CODEC_ID_INTERPLAY_VIDEO 
CODEC_ID_XAN_WC3 
CODEC_ID_XAN_WC4 
CODEC_ID_RPZA 
CODEC_ID_CINEPAK 
CODEC_ID_WS_VQA 
CODEC_ID_MSRLE 
CODEC_ID_MSVIDEO1 
CODEC_ID_IDCIN 
CODEC_ID_8BPS 
CODEC_ID_SMC 
CODEC_ID_FLIC 
CODEC_ID_TRUEMOTION1 
CODEC_ID_VMDVIDEO 
CODEC_ID_MSZH 
CODEC_ID_ZLIB 
CODEC_ID_QTRLE 
CODEC_ID_SNOW 
CODEC_ID_TSCC 
CODEC_ID_ULTI 
CODEC_ID_QDRAW 
CODEC_ID_VIXL 
CODEC_ID_QPEG 
CODEC_ID_PNG 
CODEC_ID_PPM 
CODEC_ID_PBM 
CODEC_ID_PGM 
CODEC_ID_PGMYUV 
CODEC_ID_PAM 
CODEC_ID_FFVHUFF 
CODEC_ID_RV30 
CODEC_ID_RV40 
CODEC_ID_VC1 
CODEC_ID_WMV3 
CODEC_ID_LOCO 
CODEC_ID_WNV1 
CODEC_ID_AASC 
CODEC_ID_INDEO2 
CODEC_ID_FRAPS 
CODEC_ID_TRUEMOTION2 
CODEC_ID_BMP 
CODEC_ID_CSCD 
CODEC_ID_MMVIDEO 
CODEC_ID_ZMBV 
CODEC_ID_AVS 
CODEC_ID_SMACKVIDEO 
CODEC_ID_NUV 
CODEC_ID_KMVC 
CODEC_ID_FLASHSV 
CODEC_ID_CAVS 
CODEC_ID_JPEG2000 
CODEC_ID_VMNC 
CODEC_ID_VP5 
CODEC_ID_VP6 
CODEC_ID_VP6F 
CODEC_ID_TARGA 
CODEC_ID_DSICINVIDEO 
CODEC_ID_TIERTEXSEQVIDEO 
CODEC_ID_TIFF 
CODEC_ID_GIF 
CODEC_ID_DXA 
CODEC_ID_DNXHD 
CODEC_ID_THP 
CODEC_ID_SGI 
CODEC_ID_C93 
CODEC_ID_BETHSOFTVID 
CODEC_ID_PTX 
CODEC_ID_TXD 
CODEC_ID_VP6A 
CODEC_ID_AMV 
CODEC_ID_VB 
CODEC_ID_PCX 
CODEC_ID_SUNRAST 
CODEC_ID_INDEO4 
CODEC_ID_INDEO5 
CODEC_ID_MIMIC 
CODEC_ID_RL2 
CODEC_ID_ESCAPE124 
CODEC_ID_DIRAC 
CODEC_ID_BFI 
CODEC_ID_CMV 
CODEC_ID_MOTIONPIXELS 
CODEC_ID_TGV 
CODEC_ID_TGQ 
CODEC_ID_TQI 
CODEC_ID_AURA 
CODEC_ID_AURA2 
CODEC_ID_V210X 
CODEC_ID_TMV 
CODEC_ID_V210 
CODEC_ID_DPX 
CODEC_ID_MAD 
CODEC_ID_FRWU 
CODEC_ID_FLASHSV2 
CODEC_ID_CDGRAPHICS 
CODEC_ID_R210 
CODEC_ID_ANM 
CODEC_ID_BINKVIDEO 
CODEC_ID_IFF_ILBM 
CODEC_ID_IFF_BYTERUN1 
CODEC_ID_KGV1 
CODEC_ID_YOP 
CODEC_ID_VP8 
CODEC_ID_PICTOR 
CODEC_ID_ANSI 
CODEC_ID_A64_MULTI 
CODEC_ID_A64_MULTI5 
CODEC_ID_R10K 
CODEC_ID_MXPEG 
CODEC_ID_LAGARITH 
CODEC_ID_PRORES 
CODEC_ID_JV 
CODEC_ID_DFA 
CODEC_ID_WMV3IMAGE 
CODEC_ID_VC1IMAGE 
CODEC_ID_UTVIDEO 
CODEC_ID_BMV_VIDEO 
CODEC_ID_VBLE 
CODEC_ID_DXTORY 
CODEC_ID_V410 
CODEC_ID_XWD 
CODEC_ID_CDXL 
CODEC_ID_XBM 
CODEC_ID_ZEROCODEC 
CODEC_ID_Y41P 
CODEC_ID_ESCAPE130 
CODEC_ID_EXR 
CODEC_ID_AVRP 
CODEC_ID_G2M 
CODEC_ID_AVUI 
CODEC_ID_AYUV 
CODEC_ID_V308 
CODEC_ID_V408 
CODEC_ID_YUV4 
CODEC_ID_FIRST_AUDIO  A dummy id pointing at the start of audio codecs.
CODEC_ID_PCM_S16LE 
CODEC_ID_PCM_S16BE 
CODEC_ID_PCM_U16LE 
CODEC_ID_PCM_U16BE 
CODEC_ID_PCM_S8 
CODEC_ID_PCM_U8 
CODEC_ID_PCM_MULAW 
CODEC_ID_PCM_ALAW 
CODEC_ID_PCM_S32LE 
CODEC_ID_PCM_S32BE 
CODEC_ID_PCM_U32LE 
CODEC_ID_PCM_U32BE 
CODEC_ID_PCM_S24LE 
CODEC_ID_PCM_S24BE 
CODEC_ID_PCM_U24LE 
CODEC_ID_PCM_U24BE 
CODEC_ID_PCM_S24DAUD 
CODEC_ID_PCM_ZORK 
CODEC_ID_PCM_S16LE_PLANAR 
CODEC_ID_PCM_DVD 
CODEC_ID_PCM_F32BE 
CODEC_ID_PCM_F32LE 
CODEC_ID_PCM_F64BE 
CODEC_ID_PCM_F64LE 
CODEC_ID_PCM_BLURAY 
CODEC_ID_PCM_LXF 
CODEC_ID_S302M 
CODEC_ID_PCM_S8_PLANAR 
CODEC_ID_ADPCM_IMA_QT 
CODEC_ID_ADPCM_IMA_WAV 
CODEC_ID_ADPCM_IMA_DK3 
CODEC_ID_ADPCM_IMA_DK4 
CODEC_ID_ADPCM_IMA_WS 
CODEC_ID_ADPCM_IMA_SMJPEG 
CODEC_ID_ADPCM_MS 
CODEC_ID_ADPCM_4XM 
CODEC_ID_ADPCM_XA 
CODEC_ID_ADPCM_ADX 
CODEC_ID_ADPCM_EA 
CODEC_ID_ADPCM_G726 
CODEC_ID_ADPCM_CT 
CODEC_ID_ADPCM_SWF 
CODEC_ID_ADPCM_YAMAHA 
CODEC_ID_ADPCM_SBPRO_4 
CODEC_ID_ADPCM_SBPRO_3 
CODEC_ID_ADPCM_SBPRO_2 
CODEC_ID_ADPCM_THP 
CODEC_ID_ADPCM_IMA_AMV 
CODEC_ID_ADPCM_EA_R1 
CODEC_ID_ADPCM_EA_R3 
CODEC_ID_ADPCM_EA_R2 
CODEC_ID_ADPCM_IMA_EA_SEAD 
CODEC_ID_ADPCM_IMA_EA_EACS 
CODEC_ID_ADPCM_EA_XAS 
CODEC_ID_ADPCM_EA_MAXIS_XA 
CODEC_ID_ADPCM_IMA_ISS 
CODEC_ID_ADPCM_G722 
CODEC_ID_ADPCM_IMA_APC 
CODEC_ID_AMR_NB 
CODEC_ID_AMR_WB 
CODEC_ID_RA_144 
CODEC_ID_RA_288 
CODEC_ID_ROQ_DPCM 
CODEC_ID_INTERPLAY_DPCM 
CODEC_ID_XAN_DPCM 
CODEC_ID_SOL_DPCM 
CODEC_ID_MP2 
CODEC_ID_MP3  preferred ID for decoding MPEG audio layer 1, 2 or 3
CODEC_ID_AAC 
CODEC_ID_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_FLAC 
CODEC_ID_MP3ADU 
CODEC_ID_MP3ON4 
CODEC_ID_SHORTEN 
CODEC_ID_ALAC 
CODEC_ID_WESTWOOD_SND1 
CODEC_ID_GSM  as in Berlin toast format
CODEC_ID_QDM2 
CODEC_ID_COOK 
CODEC_ID_TRUESPEECH 
CODEC_ID_TTA 
CODEC_ID_SMACKAUDIO 
CODEC_ID_QCELP 
CODEC_ID_WAVPACK 
CODEC_ID_DSICINAUDIO 
CODEC_ID_IMC 
CODEC_ID_MUSEPACK7 
CODEC_ID_MLP 
CODEC_ID_GSM_MS 
CODEC_ID_ATRAC3 
CODEC_ID_VOXWARE 
CODEC_ID_APE 
CODEC_ID_NELLYMOSER 
CODEC_ID_MUSEPACK8 
CODEC_ID_SPEEX 
CODEC_ID_WMAVOICE 
CODEC_ID_WMAPRO 
CODEC_ID_WMALOSSLESS 
CODEC_ID_ATRAC3P 
CODEC_ID_EAC3 
CODEC_ID_SIPR 
CODEC_ID_MP1 
CODEC_ID_TWINVQ 
CODEC_ID_TRUEHD 
CODEC_ID_MP4ALS 
CODEC_ID_ATRAC1 
CODEC_ID_BINKAUDIO_RDFT 
CODEC_ID_BINKAUDIO_DCT 
CODEC_ID_AAC_LATM 
CODEC_ID_QDMC 
CODEC_ID_CELT 
CODEC_ID_G723_1 
CODEC_ID_G729 
CODEC_ID_8SVX_EXP 
CODEC_ID_8SVX_FIB 
CODEC_ID_BMV_AUDIO 
CODEC_ID_RALF 
CODEC_ID_FFWAVESYNTH 
CODEC_ID_8SVX_RAW 
CODEC_ID_SONIC 
CODEC_ID_SONIC_LS 
CODEC_ID_FIRST_SUBTITLE  A dummy ID pointing at the start of subtitle codecs.
CODEC_ID_DVD_SUBTITLE 
CODEC_ID_DVB_SUBTITLE 
CODEC_ID_TEXT  raw UTF-8 text
CODEC_ID_XSUB 
CODEC_ID_SSA 
CODEC_ID_MOV_TEXT 
CODEC_ID_HDMV_PGS_SUBTITLE 
CODEC_ID_DVB_TELETEXT 
CODEC_ID_SRT 
CODEC_ID_MICRODVD 
CODEC_ID_EIA_608 
CODEC_ID_JACOSUB 
CODEC_ID_FIRST_UNKNOWN  A dummy ID pointing at the start of various fake codecs.
CODEC_ID_TTF 
CODEC_ID_BINTEXT 
CODEC_ID_XBIN 
CODEC_ID_IDF 
CODEC_ID_PROBE  codec_id is not known (like CODEC_ID_NONE) but lavf should attempt to identify it
CODEC_ID_MPEG2TS  _FAKE_ codec to indicate a raw MPEG-2 TS stream (only used by libavformat)
CODEC_ID_MPEG4SYSTEMS  _FAKE_ codec to indicate a MPEG-4 Systems stream (only used by libavformat)
CODEC_ID_FFMETADATA  Dummy codec for streams containing only metadata information.

Definition at line 93 of file avcodec.h.


Function Documentation

AVCodec* av_codec_next ( AVCodec c  ) 

If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec after c, or NULL if c is the last one.

Definition at line 105 of file utils.c.

Referenced by codec_child_class_next(), opt_codecs(), and show_codec_opts().

int64_t av_frame_get_best_effort_timestamp ( const AVFrame frame  ) 

Accessors for some AVFrame fields.

The position of these field in the structure is not part of the ABI, they should not be accessed directly outside libavcodec.

Referenced by decode_video(), get_video_frame(), and main().

int64_t av_frame_get_channel_layout ( const AVFrame frame  ) 

int64_t av_frame_get_pkt_pos ( const AVFrame frame  ) 

int av_frame_get_sample_rate ( const AVFrame frame  ) 

void av_frame_set_best_effort_timestamp ( AVFrame frame,
int64_t  val 
)

void av_frame_set_channel_layout ( AVFrame frame,
int64_t  val 
)

void av_frame_set_pkt_pos ( AVFrame frame,
int64_t  val 
)

void av_frame_set_sample_rate ( AVFrame frame,
int  val 
)

attribute_deprecated AVCodecContext* avcodec_alloc_context ( void   ) 

Allocate an AVCodecContext and set its fields to default values.

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

Returns:
An AVCodecContext filled with default values or NULL on failure.
See also:
avcodec_get_context_defaults
Deprecated:
use avcodec_alloc_context3()

Definition at line 166 of file options.c.

Referenced by config(), and vf_open().

attribute_deprecated AVCodecContext* avcodec_alloc_context2 ( enum  AVMediaType  ) 

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

Definition at line 152 of file options.c.

Referenced by avcodec_alloc_context().

AVCodecContext* avcodec_alloc_context3 ( AVCodec codec  ) 

Allocate an AVCodecContext and set its fields to default values.

The resulting struct can be deallocated by calling avcodec_close() on it followed by av_free().

Parameters:
codec if non-NULL, allocate private data and initialize defaults for the given codec. It is illegal to then call avcodec_open2() with a different codec. If NULL, then the codec-specific defaults won't be initialized, which may result in suboptimal default settings (this is important mainly for encoders, e.g. libx264).
Returns:
An AVCodecContext filled with default values or NULL on failure.
See also:
avcodec_get_context_defaults

Definition at line 138 of file options.c.

Referenced by add_av_stream1(), add_codec(), audio_decode_example(), audio_encode_example(), avformat_new_stream(), config_props(), estimate_best_b_count(), ff_mov_init_hinting(), main(), mov_create_chapter_track(), video_decode_example(), and video_encode_example().

AVFrame* avcodec_alloc_frame ( void   ) 

int avcodec_close ( AVCodecContext avctx  ) 

Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext itself).

Calling this function on an AVCodecContext that hasn't been opened will free the codec-specific data allocated in avcodec_alloc_context3() / avcodec_get_context_defaults3() with a non-NULL codec. Subsequent calls will do nothing.

Definition at line 1638 of file utils.c.

Referenced by audio_decode_example(), audio_encode_example(), close_audio(), close_connection(), close_input_file(), close_video(), estimate_best_b_count(), ff_load_image(), main(), movie_common_uninit(), stream_component_close(), transcode(), uninit(), video_decode_example(), and video_encode_example().

const char* avcodec_configuration ( void   ) 

Return the libavcodec build-time configuration.

Definition at line 1910 of file utils.c.

int avcodec_copy_context ( AVCodecContext dest,
const AVCodecContext src 
)

Copy the settings of the source AVCodecContext into the destination AVCodecContext.

The resulting destination codec context will be unopened, i.e. you are required to call avcodec_open2() before you can use this AVCodecContext to decode/encode video/audio data.

Parameters:
dest target codec context, should be initialized with avcodec_alloc_context3(), but otherwise uninitialized
src source codec context
Returns:
AVERROR() on error (e.g. memory allocation error), 0 on success

Definition at line 171 of file options.c.

Referenced by ff_rtp_chain_mux_open(), hls_read_header(), http_receive_data(), read_ffserver_streams(), sap_fetch_packet(), and sap_read_header().

const AVClass* avcodec_get_class ( void   ) 

Get the AVClass for AVCodecContext.

It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.

See also:
av_opt_find().

Definition at line 228 of file options.c.

Referenced by filter_codec_opts(), opt_default(), opt_help(), and show_codec_opts().

attribute_deprecated void avcodec_get_context_defaults ( AVCodecContext s  ) 

Set the fields of the given AVCodecContext to default values.

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

Definition at line 162 of file options.c.

attribute_deprecated void avcodec_get_context_defaults2 ( AVCodecContext s,
enum  AVMediaType 
)

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

Definition at line 79 of file options.c.

Referenced by avcodec_alloc_context2(), and avcodec_get_context_defaults().

int avcodec_get_context_defaults3 ( AVCodecContext s,
AVCodec codec 
)

Set the fields of the given AVCodecContext to default values corresponding to the given codec (defaults may be codec-dependent).

Do not call this function if a non-NULL codec has been passed to avcodec_alloc_context3() that allocated this AVCodecContext. If codec is non-NULL, it is illegal to call avcodec_open2() with a different codec on this AVCodecContext.

Definition at line 86 of file options.c.

Referenced by add_video_stream(), avcodec_alloc_context3(), avcodec_get_context_defaults2(), new_output_stream(), and parse_ffconfig().

const AVClass* avcodec_get_frame_class ( void   ) 

Get the AVClass for AVFrame.

It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.

See also:
av_opt_find().

Definition at line 254 of file options.c.

Referenced by decode_video().

void avcodec_get_frame_defaults ( AVFrame pic  ) 

Set the fields of the given AVFrame to default values.

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

Definition at line 660 of file utils.c.

Referenced by a64multi_init_encoder(), aac_decode_init(), aasc_decode_init(), ac3_decode_init(), adpcm_decode_init(), adx_decode_init(), adx_encode_init(), alac_decode_init(), amrnb_decode_init(), amrwb_decode_init(), ape_decode_init(), atrac1_decode_init(), atrac3_decode_init(), audio_decode_example(), audio_decode_frame(), aura_decode_init(), avcodec_alloc_frame(), avcodec_encode_audio(), avs_decode_init(), bethsoftvid_decode_init(), bfi_decode_init(), bmp_decode_init(), bmp_encode_init(), bmv_aud_decode_init(), cdg_init_frame(), cdxl_decode_init(), cinaudio_decode_init(), cinepak_decode_init(), cinvideo_decode_init(), cmv_decode_init(), common_init(), cook_decode_init(), cyuv_decode_init(), dca_decode_init(), decode_audio(), decode_init(), decode_video(), decoder_init(), dirac_decode_data_unit(), dnxhd_decode_init(), dpcm_decode_init(), dvvideo_decode_frame(), eightsvx_decode_init(), encode_init(), escape124_decode_frame(), escape124_decode_init(), estimate_best_b_count(), ff_mjpeg_decode_init(), ff_MPV_common_init(), ff_pnm_init(), ff_vp56_init(), flac_decode_init(), flashsv_decode_init(), flic_decode_init(), frame_worker_thread(), g722_decode_init(), g723_1_decode_init(), gif_decode_init(), gsm_init(), idcin_decode_init(), imc_decode_init(), ipvideo_decode_init(), ir2_decode_init(), j2kdec_init(), libcelt_dec_init(), libgsm_decode_init(), libopenjpeg_decode_init(), libspeex_decode_init(), mace_decode_init(), main(), mdec_common_init(), mlp_decode_init(), mm_decode_init(), mp_decode_init(), mpc7_decode_init(), mpc8_decode_init(), msrle_decode_init(), msvideo1_decode_init(), pcm_bluray_decode_init(), pcm_decode_init(), pcx_encode_init(), pcx_init(), png_dec_init(), png_enc_init(), poll_filters(), ptx_init(), qcelp_decode_init(), qdm2_decode_init(), qtrle_decode_init(), ra144_decode_init(), ra288_decode_init(), raw_init_encoder(), read_packets(), rl2_decode_init(), roq_decode_init(), rpza_decode_init(), s302m_decode_init(), seqvideo_decode_init(), sgi_init(), shorten_decode_init(), sipr_decoder_init(), smc_decode_init(), smka_decode_init(), sunrast_init(), targa_encode_init(), targa_init(), tgv_decode_init(), tiff_init(), tmv_decode_init(), truemotion1_decode_init(), truespeech_decode_init(), try_decode_frame(), tta_decode_init(), twin_decode_init(), txd_init(), vcr1_common_init(), vmdaudio_decode_init(), vmdvideo_decode_init(), vorbis_decode_init(), vqa_decode_init(), wavesynth_init(), wavpack_decode_init(), wma_decode_init(), wmavoice_decode_init(), ws_snd_decode_init(), xan_decode_init(), and yop_decode_init().

const AVClass* avcodec_get_subtitle_rect_class ( void   ) 

Get the AVClass for AVSubtitleRect.

It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.

See also:
av_opt_find().

Definition at line 278 of file options.c.

const char* avcodec_license ( void   ) 

Return the libavcodec license.

Definition at line 1915 of file utils.c.

attribute_deprecated int avcodec_open ( AVCodecContext avctx,
AVCodec codec 
)

Initialize the AVCodecContext to use the given AVCodec.

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

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

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

 context = avcodec_alloc_context3(codec);

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

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

Definition at line 719 of file utils.c.

Referenced by config().

int avcodec_open2 ( AVCodecContext avctx,
AVCodec codec,
AVDictionary **  options 
)

Initialize the AVCodecContext to use the given AVCodec.

Prior to using this function the context has to be allocated with avcodec_alloc_context3().

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

Warning:
This function is not thread safe!
 avcodec_register_all();
 av_dict_set(&opts, "b", "2.5M", 0);
 codec = avcodec_find_decoder(CODEC_ID_H264);
 if (!codec)
     exit(1);

 context = avcodec_alloc_context3(codec);

 if (avcodec_open2(context, codec, opts) < 0)
     exit(1);

Parameters:
avctx The context to initialize.
codec The codec to open this context for. If a non-NULL codec has been previously passed to avcodec_alloc_context3() or avcodec_get_context_defaults3() for this context, then this parameter MUST be either NULL or equal to the previously passed codec.
options A dictionary filled with AVCodecContext and codec-private options. On return this object will be filled with options that were not found.
Returns:
zero on success, a negative value on error
See also:
avcodec_alloc_context3(), avcodec_find_decoder(), avcodec_find_encoder(), av_dict_set(), av_opt_find().

Definition at line 725 of file utils.c.

Referenced by audio_decode_example(), audio_encode_example(), avcodec_open(), avformat_find_stream_info(), estimate_best_b_count(), ff_load_image(), init_input_stream(), movie_common_init(), open_audio(), open_input_file(), open_video(), stream_component_open(), transcode_init(), try_decode_frame(), video_decode_example(), video_encode_example(), and wrap().

void avcodec_register ( AVCodec codec  ) 

Register the codec codec and initialize libavcodec.

Warning:
either this function or avcodec_register_all() must be called before any other libavcodec functions.
See also:
avcodec_register_all()

Definition at line 131 of file utils.c.

void avcodec_register_all ( void   ) 

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

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

See also:
avcodec_register

av_register_codec_parser

av_register_bitstream_filter

Definition at line 48 of file allcodecs.c.

Referenced by av_register_all(), and main().

unsigned avcodec_version ( void   ) 

Return the LIBAVCODEC_VERSION_INT constant.

Definition at line 1898 of file utils.c.

void avsubtitle_free ( AVSubtitle sub  ) 

Free all allocated data in the given subtitle struct.

Parameters:
sub AVSubtitle to free.

Definition at line 1618 of file utils.c.

Referenced by free_subpicture(), and transcode_subtitles().


Generated on Fri Oct 26 02:48:04 2012 for FFmpeg by  doxygen 1.5.8