#include <errno.h>
#include "libavutil/avutil.h"
Go to the source code of this file.
Data Structures | |
struct | RcOverride |
struct | AVPanScan |
Pan Scan area. More... | |
struct | AVPacket |
struct | AVFrame |
Audio Video Frame. More... | |
struct | AVCodecContext |
main external API structure. More... | |
struct | AVCodec |
AVCodec. More... | |
struct | AVHWAccel |
AVHWAccel. More... | |
struct | AVPicture |
four components are given, that's all. More... | |
struct | AVPaletteControl |
struct | AVSubtitleRect |
struct | AVSubtitle |
struct | AVCodecParserContext |
struct | AVCodecParser |
struct | AVBitStreamFilterContext |
struct | AVBitStreamFilter |
Defines | |
#define | LIBAVCODEC_VERSION_MAJOR 52 |
#define | LIBAVCODEC_VERSION_MINOR 66 |
#define | LIBAVCODEC_VERSION_MICRO 0 |
#define | LIBAVCODEC_VERSION_INT |
#define | LIBAVCODEC_VERSION |
#define | LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT |
#define | LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) |
#define | AV_NOPTS_VALUE INT64_C(0x8000000000000000) |
#define | AV_TIME_BASE 1000000 |
#define | AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} |
#define | CodecType AVMediaType |
#define | CODEC_TYPE_UNKNOWN AVMEDIA_TYPE_UNKNOWN |
#define | CODEC_TYPE_VIDEO AVMEDIA_TYPE_VIDEO |
#define | CODEC_TYPE_AUDIO AVMEDIA_TYPE_AUDIO |
#define | CODEC_TYPE_DATA AVMEDIA_TYPE_DATA |
#define | CODEC_TYPE_SUBTITLE AVMEDIA_TYPE_SUBTITLE |
#define | CODEC_TYPE_ATTACHMENT AVMEDIA_TYPE_ATTACHMENT |
#define | CODEC_TYPE_NB AVMEDIA_TYPE_NB |
#define | CH_FRONT_LEFT 0x00000001 |
#define | CH_FRONT_RIGHT 0x00000002 |
#define | CH_FRONT_CENTER 0x00000004 |
#define | CH_LOW_FREQUENCY 0x00000008 |
#define | CH_BACK_LEFT 0x00000010 |
#define | CH_BACK_RIGHT 0x00000020 |
#define | CH_FRONT_LEFT_OF_CENTER 0x00000040 |
#define | CH_FRONT_RIGHT_OF_CENTER 0x00000080 |
#define | CH_BACK_CENTER 0x00000100 |
#define | CH_SIDE_LEFT 0x00000200 |
#define | CH_SIDE_RIGHT 0x00000400 |
#define | CH_TOP_CENTER 0x00000800 |
#define | CH_TOP_FRONT_LEFT 0x00001000 |
#define | CH_TOP_FRONT_CENTER 0x00002000 |
#define | CH_TOP_FRONT_RIGHT 0x00004000 |
#define | CH_TOP_BACK_LEFT 0x00008000 |
#define | CH_TOP_BACK_CENTER 0x00010000 |
#define | CH_TOP_BACK_RIGHT 0x00020000 |
#define | CH_STEREO_LEFT 0x20000000 |
Stereo downmix. | |
#define | CH_STEREO_RIGHT 0x40000000 |
See CH_STEREO_LEFT. | |
#define | CH_LAYOUT_NATIVE 0x8000000000000000LL |
Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output to be the native codec channel order. | |
#define | CH_LAYOUT_MONO (CH_FRONT_CENTER) |
#define | CH_LAYOUT_STEREO (CH_FRONT_LEFT|CH_FRONT_RIGHT) |
#define | CH_LAYOUT_2_1 (CH_LAYOUT_STEREO|CH_BACK_CENTER) |
#define | CH_LAYOUT_SURROUND (CH_LAYOUT_STEREO|CH_FRONT_CENTER) |
#define | CH_LAYOUT_4POINT0 (CH_LAYOUT_SURROUND|CH_BACK_CENTER) |
#define | CH_LAYOUT_2_2 (CH_LAYOUT_STEREO|CH_SIDE_LEFT|CH_SIDE_RIGHT) |
#define | CH_LAYOUT_QUAD (CH_LAYOUT_STEREO|CH_BACK_LEFT|CH_BACK_RIGHT) |
#define | CH_LAYOUT_5POINT0 (CH_LAYOUT_SURROUND|CH_SIDE_LEFT|CH_SIDE_RIGHT) |
#define | CH_LAYOUT_5POINT1 (CH_LAYOUT_5POINT0|CH_LOW_FREQUENCY) |
#define | CH_LAYOUT_5POINT0_BACK (CH_LAYOUT_SURROUND|CH_BACK_LEFT|CH_BACK_RIGHT) |
#define | CH_LAYOUT_5POINT1_BACK (CH_LAYOUT_5POINT0_BACK|CH_LOW_FREQUENCY) |
#define | CH_LAYOUT_7POINT0 (CH_LAYOUT_5POINT0|CH_BACK_LEFT|CH_BACK_RIGHT) |
#define | CH_LAYOUT_7POINT1 (CH_LAYOUT_5POINT1|CH_BACK_LEFT|CH_BACK_RIGHT) |
#define | CH_LAYOUT_7POINT1_WIDE |
#define | CH_LAYOUT_STEREO_DOWNMIX (CH_STEREO_LEFT|CH_STEREO_RIGHT) |
#define | AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 |
#define | FF_INPUT_BUFFER_PADDING_SIZE 8 |
Required number of additionally allocated bytes at the end of the input bitstream for decoding. | |
#define | FF_MIN_BUFFER_SIZE 16384 |
minimum encoding buffer size Used to avoid some checks during header writing. | |
#define | FF_MAX_B_FRAMES 16 |
#define | CODEC_FLAG_QSCALE 0x0002 |
Use fixed qscale. | |
#define | CODEC_FLAG_4MV 0x0004 |
4 MV per MB allowed / advanced prediction for H.263. | |
#define | CODEC_FLAG_QPEL 0x0010 |
Use qpel MC. | |
#define | CODEC_FLAG_GMC 0x0020 |
Use GMC. | |
#define | CODEC_FLAG_MV0 0x0040 |
Always try a MB with MV=<0,0>. | |
#define | CODEC_FLAG_PART 0x0080 |
Use data partitioning. | |
#define | CODEC_FLAG_INPUT_PRESERVED 0x0100 |
The parent program guarantees that the input for B-frames containing streams is not written to for at least s->max_b_frames+1 frames, if this is not set the input will be copied. | |
#define | CODEC_FLAG_PASS1 0x0200 |
Use internal 2pass ratecontrol in first pass mode. | |
#define | CODEC_FLAG_PASS2 0x0400 |
Use internal 2pass ratecontrol in second pass mode. | |
#define | CODEC_FLAG_EXTERN_HUFF 0x1000 |
Use external Huffman table (for MJPEG). | |
#define | CODEC_FLAG_GRAY 0x2000 |
Only decode/encode grayscale. | |
#define | CODEC_FLAG_EMU_EDGE 0x4000 |
Don't draw edges. | |
#define | CODEC_FLAG_PSNR 0x8000 |
error[?] variables will be set during encoding. | |
#define | CODEC_FLAG_TRUNCATED 0x00010000 |
#define | CODEC_FLAG_NORMALIZE_AQP 0x00020000 |
Normalize adaptive quantization. | |
#define | CODEC_FLAG_INTERLACED_DCT 0x00040000 |
Use interlaced DCT. | |
#define | CODEC_FLAG_LOW_DELAY 0x00080000 |
Force low delay. | |
#define | CODEC_FLAG_ALT_SCAN 0x00100000 |
Use alternate scan. | |
#define | CODEC_FLAG_GLOBAL_HEADER 0x00400000 |
Place global headers in extradata instead of every keyframe. | |
#define | CODEC_FLAG_BITEXACT 0x00800000 |
Use only bitexact stuff (except (I)DCT). | |
#define | CODEC_FLAG_AC_PRED 0x01000000 |
H.263 advanced intra coding / MPEG-4 AC prediction. | |
#define | CODEC_FLAG_H263P_UMV 0x02000000 |
unlimited motion vector | |
#define | CODEC_FLAG_CBP_RD 0x04000000 |
Use rate distortion optimization for cbp. | |
#define | CODEC_FLAG_QP_RD 0x08000000 |
Use rate distortion optimization for qp selectioon. | |
#define | CODEC_FLAG_H263P_AIV 0x00000008 |
H.263 alternative inter VLC. | |
#define | CODEC_FLAG_OBMC 0x00000001 |
OBMC. | |
#define | CODEC_FLAG_LOOP_FILTER 0x00000800 |
loop filter | |
#define | CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000 |
#define | CODEC_FLAG_INTERLACED_ME 0x20000000 |
interlaced motion estimation | |
#define | CODEC_FLAG_SVCD_SCAN_OFFSET 0x40000000 |
Will reserve space for SVCD scan offset user data. | |
#define | CODEC_FLAG_CLOSED_GOP 0x80000000 |
#define | CODEC_FLAG2_FAST 0x00000001 |
Allow non spec compliant speedup tricks. | |
#define | CODEC_FLAG2_STRICT_GOP 0x00000002 |
Strictly enforce GOP size. | |
#define | CODEC_FLAG2_NO_OUTPUT 0x00000004 |
Skip bitstream encoding. | |
#define | CODEC_FLAG2_LOCAL_HEADER 0x00000008 |
Place global headers at every keyframe instead of in extradata. | |
#define | CODEC_FLAG2_BPYRAMID 0x00000010 |
H.264 allow B-frames to be used as references. | |
#define | CODEC_FLAG2_WPRED 0x00000020 |
H.264 weighted biprediction for B-frames. | |
#define | CODEC_FLAG2_MIXED_REFS 0x00000040 |
H.264 one reference per partition, as opposed to one reference per macroblock. | |
#define | CODEC_FLAG2_8X8DCT 0x00000080 |
H.264 high profile 8x8 transform. | |
#define | CODEC_FLAG2_FASTPSKIP 0x00000100 |
H.264 fast pskip. | |
#define | CODEC_FLAG2_AUD 0x00000200 |
H.264 access unit delimiters. | |
#define | CODEC_FLAG2_BRDO 0x00000400 |
B-frame rate-distortion optimization. | |
#define | CODEC_FLAG2_INTRA_VLC 0x00000800 |
Use MPEG-2 intra VLC table. | |
#define | CODEC_FLAG2_MEMC_ONLY 0x00001000 |
Only do ME/MC (I frames -> ref, P frame -> ME+MC). | |
#define | CODEC_FLAG2_DROP_FRAME_TIMECODE 0x00002000 |
timecode is in drop frame format. | |
#define | CODEC_FLAG2_SKIP_RD 0x00004000 |
RD optimal MB level residual skipping. | |
#define | CODEC_FLAG2_CHUNKS 0x00008000 |
Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries. | |
#define | CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000 |
Use MPEG-2 nonlinear quantizer. | |
#define | CODEC_FLAG2_BIT_RESERVOIR 0x00020000 |
Use a bit reservoir when encoding if possible. | |
#define | CODEC_FLAG2_MBTREE 0x00040000 |
Use macroblock tree ratecontrol (x264 only). | |
#define | CODEC_FLAG2_PSY 0x00080000 |
Use psycho visual optimizations. | |
#define | CODEC_FLAG2_SSIM 0x00100000 |
Compute SSIM during encoding, error[] values are undefined. | |
#define | CODEC_CAP_DRAW_HORIZ_BAND 0x0001 |
Decoder can use draw_horiz_band callback. | |
#define | CODEC_CAP_DR1 0x0002 |
Codec uses get_buffer() for allocating buffers and supports custom allocators. | |
#define | CODEC_CAP_PARSE_ONLY 0x0004 |
#define | CODEC_CAP_TRUNCATED 0x0008 |
#define | CODEC_CAP_HWACCEL 0x0010 |
#define | CODEC_CAP_DELAY 0x0020 |
Codec has a nonzero delay and needs to be fed with NULL at the end to get the delayed data. | |
#define | CODEC_CAP_SMALL_LAST_FRAME 0x0040 |
Codec can be fed a final frame with a smaller size. | |
#define | CODEC_CAP_HWACCEL_VDPAU 0x0080 |
Codec can export data for HW decoding (VDPAU). | |
#define | CODEC_CAP_SUBFRAMES 0x0100 |
Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames. | |
#define | MB_TYPE_INTRA4x4 0x0001 |
#define | MB_TYPE_INTRA16x16 0x0002 |
#define | MB_TYPE_INTRA_PCM 0x0004 |
#define | MB_TYPE_16x16 0x0008 |
#define | MB_TYPE_16x8 0x0010 |
#define | MB_TYPE_8x16 0x0020 |
#define | MB_TYPE_8x8 0x0040 |
#define | MB_TYPE_INTERLACED 0x0080 |
#define | MB_TYPE_DIRECT2 0x0100 |
#define | MB_TYPE_ACPRED 0x0200 |
#define | MB_TYPE_GMC 0x0400 |
#define | MB_TYPE_SKIP 0x0800 |
#define | MB_TYPE_P0L0 0x1000 |
#define | MB_TYPE_P1L0 0x2000 |
#define | MB_TYPE_P0L1 0x4000 |
#define | MB_TYPE_P1L1 0x8000 |
#define | MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0) |
#define | MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1) |
#define | MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1) |
#define | MB_TYPE_QUANT 0x00010000 |
#define | MB_TYPE_CBP 0x00020000 |
#define | FF_COMMON_FRAME |
#define | FF_QSCALE_TYPE_MPEG1 0 |
#define | FF_QSCALE_TYPE_MPEG2 1 |
#define | FF_QSCALE_TYPE_H264 2 |
#define | FF_QSCALE_TYPE_VP56 3 |
#define | FF_BUFFER_TYPE_INTERNAL 1 |
#define | FF_BUFFER_TYPE_USER 2 |
direct rendering buffers (image is (de)allocated by user) | |
#define | FF_BUFFER_TYPE_SHARED 4 |
Buffer from somewhere else; don't deallocate image (data/base), all other tables are not shared. | |
#define | FF_BUFFER_TYPE_COPY 8 |
Just a (modified) copy of some other buffer, don't deallocate anything. | |
#define | FF_I_TYPE 1 |
Intra. | |
#define | FF_P_TYPE 2 |
Predicted. | |
#define | FF_B_TYPE 3 |
Bi-dir predicted. | |
#define | FF_S_TYPE 4 |
S(GMC)-VOP MPEG4. | |
#define | FF_SI_TYPE 5 |
Switching Intra. | |
#define | FF_SP_TYPE 6 |
Switching Predicted. | |
#define | FF_BI_TYPE 7 |
#define | FF_BUFFER_HINTS_VALID 0x01 |
#define | FF_BUFFER_HINTS_READABLE 0x02 |
#define | FF_BUFFER_HINTS_PRESERVE 0x04 |
#define | FF_BUFFER_HINTS_REUSABLE 0x08 |
#define | AV_PKT_FLAG_KEY 0x0001 |
#define | PKT_FLAG_KEY AV_PKT_FLAG_KEY |
#define | FF_ASPECT_EXTENDED 15 |
#define | FF_RC_STRATEGY_XVID 1 |
#define | FF_BUG_AUTODETECT 1 |
autodetection | |
#define | FF_BUG_OLD_MSMPEG4 2 |
#define | FF_BUG_XVID_ILACE 4 |
#define | FF_BUG_UMP4 8 |
#define | FF_BUG_NO_PADDING 16 |
#define | FF_BUG_AMV 32 |
#define | FF_BUG_AC_VLC 0 |
Will be removed, libavcodec can now handle these non-compliant files by default. | |
#define | FF_BUG_QPEL_CHROMA 64 |
#define | FF_BUG_STD_QPEL 128 |
#define | FF_BUG_QPEL_CHROMA2 256 |
#define | FF_BUG_DIRECT_BLOCKSIZE 512 |
#define | FF_BUG_EDGE 1024 |
#define | FF_BUG_HPEL_CHROMA 2048 |
#define | FF_BUG_DC_CLIP 4096 |
#define | FF_BUG_MS 8192 |
Work around various bugs in Microsoft's broken decoders. | |
#define | FF_BUG_TRUNCATED 16384 |
#define | FF_COMPLIANCE_VERY_STRICT 2 |
Strictly conform to a older more strict version of the spec or reference software. | |
#define | FF_COMPLIANCE_STRICT 1 |
Strictly conform to all the things in the spec no matter what consequences. | |
#define | FF_COMPLIANCE_NORMAL 0 |
#define | FF_COMPLIANCE_INOFFICIAL -1 |
Allow inofficial extensions. | |
#define | FF_COMPLIANCE_EXPERIMENTAL -2 |
Allow nonstandardized experimental things. | |
#define | FF_ER_CAREFUL 1 |
#define | FF_ER_COMPLIANT 2 |
#define | FF_ER_AGGRESSIVE 3 |
#define | FF_ER_VERY_AGGRESSIVE 4 |
#define | FF_DCT_AUTO 0 |
#define | FF_DCT_FASTINT 1 |
#define | FF_DCT_INT 2 |
#define | FF_DCT_MMX 3 |
#define | FF_DCT_MLIB 4 |
#define | FF_DCT_ALTIVEC 5 |
#define | FF_DCT_FAAN 6 |
#define | FF_IDCT_AUTO 0 |
#define | FF_IDCT_INT 1 |
#define | FF_IDCT_SIMPLE 2 |
#define | FF_IDCT_SIMPLEMMX 3 |
#define | FF_IDCT_LIBMPEG2MMX 4 |
#define | FF_IDCT_PS2 5 |
#define | FF_IDCT_MLIB 6 |
#define | FF_IDCT_ARM 7 |
#define | FF_IDCT_ALTIVEC 8 |
#define | FF_IDCT_SH4 9 |
#define | FF_IDCT_SIMPLEARM 10 |
#define | FF_IDCT_H264 11 |
#define | FF_IDCT_VP3 12 |
#define | FF_IDCT_IPP 13 |
#define | FF_IDCT_XVIDMMX 14 |
#define | FF_IDCT_CAVS 15 |
#define | FF_IDCT_SIMPLEARMV5TE 16 |
#define | FF_IDCT_SIMPLEARMV6 17 |
#define | FF_IDCT_SIMPLEVIS 18 |
#define | FF_IDCT_WMV2 19 |
#define | FF_IDCT_FAAN 20 |
#define | FF_IDCT_EA 21 |
#define | FF_IDCT_SIMPLENEON 22 |
#define | FF_IDCT_SIMPLEALPHA 23 |
#define | FF_IDCT_BINK 24 |
#define | FF_EC_GUESS_MVS 1 |
#define | FF_EC_DEBLOCK 2 |
#define | FF_MM_FORCE 0x80000000 |
#define | FF_MM_MMX 0x0001 |
standard MMX | |
#define | FF_MM_3DNOW 0x0004 |
AMD 3DNOW. | |
#define | FF_MM_MMXEXT 0x0002 |
SSE integer functions or AMD MMX ext. | |
#define | FF_MM_MMX2 0x0002 |
SSE integer functions or AMD MMX ext. | |
#define | FF_MM_SSE 0x0008 |
SSE functions. | |
#define | FF_MM_SSE2 0x0010 |
PIV SSE2 functions. | |
#define | FF_MM_3DNOWEXT 0x0020 |
AMD 3DNowExt. | |
#define | FF_MM_SSE3 0x0040 |
Prescott SSE3 functions. | |
#define | FF_MM_SSSE3 0x0080 |
Conroe SSSE3 functions. | |
#define | FF_MM_SSE4 0x0100 |
Penryn SSE4.1 functions. | |
#define | FF_MM_SSE42 0x0200 |
Nehalem SSE4.2 functions. | |
#define | FF_MM_IWMMXT 0x0100 |
XScale IWMMXT. | |
#define | FF_MM_ALTIVEC 0x0001 |
standard AltiVec | |
#define | FF_PRED_LEFT 0 |
#define | FF_PRED_PLANE 1 |
#define | FF_PRED_MEDIAN 2 |
#define | FF_DEBUG_PICT_INFO 1 |
#define | FF_DEBUG_RC 2 |
#define | FF_DEBUG_BITSTREAM 4 |
#define | FF_DEBUG_MB_TYPE 8 |
#define | FF_DEBUG_QP 16 |
#define | FF_DEBUG_MV 32 |
#define | FF_DEBUG_DCT_COEFF 0x00000040 |
#define | FF_DEBUG_SKIP 0x00000080 |
#define | FF_DEBUG_STARTCODE 0x00000100 |
#define | FF_DEBUG_PTS 0x00000200 |
#define | FF_DEBUG_ER 0x00000400 |
#define | FF_DEBUG_MMCO 0x00000800 |
#define | FF_DEBUG_BUGS 0x00001000 |
#define | FF_DEBUG_VIS_QP 0x00002000 |
#define | FF_DEBUG_VIS_MB_TYPE 0x00004000 |
#define | FF_DEBUG_BUFFERS 0x00008000 |
#define | FF_DEBUG_VIS_MV_P_FOR 0x00000001 |
#define | FF_DEBUG_VIS_MV_B_FOR 0x00000002 |
#define | FF_DEBUG_VIS_MV_B_BACK 0x00000004 |
#define | FF_CMP_SAD 0 |
#define | FF_CMP_SSE 1 |
#define | FF_CMP_SATD 2 |
#define | FF_CMP_DCT 3 |
#define | FF_CMP_PSNR 4 |
#define | FF_CMP_BIT 5 |
#define | FF_CMP_RD 6 |
#define | FF_CMP_ZERO 7 |
#define | FF_CMP_VSAD 8 |
#define | FF_CMP_VSSE 9 |
#define | FF_CMP_NSSE 10 |
#define | FF_CMP_W53 11 |
#define | FF_CMP_W97 12 |
#define | FF_CMP_DCTMAX 13 |
#define | FF_CMP_DCT264 14 |
#define | FF_CMP_CHROMA 256 |
#define | FF_DTG_AFD_SAME 8 |
#define | FF_DTG_AFD_4_3 9 |
#define | FF_DTG_AFD_16_9 10 |
#define | FF_DTG_AFD_14_9 11 |
#define | FF_DTG_AFD_4_3_SP_14_9 13 |
#define | FF_DTG_AFD_16_9_SP_14_9 14 |
#define | FF_DTG_AFD_SP_4_3 15 |
#define | FF_DEFAULT_QUANT_BIAS 999999 |
#define | FF_LAMBDA_SHIFT 7 |
#define | FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT) |
#define | FF_QP2LAMBDA 118 |
factor to convert from H.263 QP to lambda | |
#define | FF_LAMBDA_MAX (256*128-1) |
#define | FF_QUALITY_SCALE FF_LAMBDA_SCALE |
#define | FF_CODER_TYPE_VLC 0 |
#define | FF_CODER_TYPE_AC 1 |
#define | FF_CODER_TYPE_RAW 2 |
#define | FF_CODER_TYPE_RLE 3 |
#define | FF_CODER_TYPE_DEFLATE 4 |
#define | SLICE_FLAG_CODED_ORDER 0x0001 |
draw_horiz_band() is called in coded order instead of display | |
#define | SLICE_FLAG_ALLOW_FIELD 0x0002 |
allow draw_horiz_band() with field slices (MPEG2 field pics) | |
#define | SLICE_FLAG_ALLOW_PLANE 0x0004 |
allow draw_horiz_band() with 1 component at a time (SVQ1) | |
#define | FF_MB_DECISION_SIMPLE 0 |
uses mb_cmp | |
#define | FF_MB_DECISION_BITS 1 |
chooses the one which needs the fewest bits | |
#define | FF_MB_DECISION_RD 2 |
rate distortion | |
#define | FF_AA_AUTO 0 |
#define | FF_AA_FASTINT 1 |
#define | FF_AA_INT 2 |
#define | FF_AA_FLOAT 3 |
#define | FF_PROFILE_UNKNOWN -99 |
#define | FF_PROFILE_AAC_MAIN 0 |
#define | FF_PROFILE_AAC_LOW 1 |
#define | FF_PROFILE_AAC_SSR 2 |
#define | FF_PROFILE_AAC_LTP 3 |
#define | FF_PROFILE_H264_BASELINE 66 |
#define | FF_PROFILE_H264_MAIN 77 |
#define | FF_PROFILE_H264_EXTENDED 88 |
#define | FF_PROFILE_H264_HIGH 100 |
#define | FF_PROFILE_H264_HIGH_10 110 |
#define | FF_PROFILE_H264_HIGH_422 122 |
#define | FF_PROFILE_H264_HIGH_444 244 |
#define | FF_PROFILE_H264_CAVLC_444 44 |
#define | FF_LEVEL_UNKNOWN -99 |
#define | X264_PART_I4X4 0x001 |
#define | X264_PART_I8X8 0x002 |
#define | X264_PART_P8X8 0x010 |
#define | X264_PART_P4X4 0x020 |
#define | X264_PART_B8X8 0x100 |
#define | FF_COMPRESSION_DEFAULT -1 |
#define | AVPALETTE_SIZE 1024 |
AVPaletteControl This structure defines a method for communicating palette changes between and demuxer and a decoder. | |
#define | AVPALETTE_COUNT 256 |
#define | FF_LOSS_RESOLUTION 0x0001 |
loss due to resolution change | |
#define | FF_LOSS_DEPTH 0x0002 |
loss due to color depth change | |
#define | FF_LOSS_COLORSPACE 0x0004 |
loss due to color space conversion | |
#define | FF_LOSS_ALPHA 0x0008 |
loss of alpha bits | |
#define | FF_LOSS_COLORQUANT 0x0010 |
loss due to color quantization | |
#define | FF_LOSS_CHROMA 0x0020 |
loss of chroma (e.g. | |
#define | FF_ALPHA_TRANSP 0x0001 |
#define | FF_ALPHA_SEMI_TRANSP 0x0002 |
#define | AV_PARSER_PTS_NB 4 |
#define | PARSER_FLAG_COMPLETE_FRAMES 0x0001 |
Typedefs | |
typedef struct AVPaletteControl | attribute_deprecated |
typedef struct ReSampleContext | ReSampleContext |
Enumerations | |
enum | CodecID { CODEC_ID_NONE, CODEC_ID_MPEG1VIDEO, CODEC_ID_MPEG2VIDEO, CODEC_ID_MPEG2VIDEO_XVMC, CODEC_ID_H261, CODEC_ID_H263, CODEC_ID_RV10, CODEC_ID_RV20, CODEC_ID_MJPEG, CODEC_ID_MJPEGB, CODEC_ID_LJPEG, CODEC_ID_SP5X, CODEC_ID_JPEGLS, CODEC_ID_MPEG4, CODEC_ID_RAWVIDEO, CODEC_ID_MSMPEG4V1, CODEC_ID_MSMPEG4V2, CODEC_ID_MSMPEG4V3, CODEC_ID_WMV1, CODEC_ID_WMV2, CODEC_ID_H263P, CODEC_ID_H263I, CODEC_ID_FLV1, CODEC_ID_SVQ1, CODEC_ID_SVQ3, CODEC_ID_DVVIDEO, CODEC_ID_HUFFYUV, CODEC_ID_CYUV, CODEC_ID_H264, CODEC_ID_INDEO3, CODEC_ID_VP3, CODEC_ID_THEORA, CODEC_ID_ASV1, CODEC_ID_ASV2, CODEC_ID_FFV1, CODEC_ID_4XM, CODEC_ID_VCR1, CODEC_ID_CLJR, CODEC_ID_MDEC, CODEC_ID_ROQ, CODEC_ID_INTERPLAY_VIDEO, CODEC_ID_XAN_WC3, CODEC_ID_XAN_WC4, CODEC_ID_RPZA, CODEC_ID_CINEPAK, CODEC_ID_WS_VQA, CODEC_ID_MSRLE, CODEC_ID_MSVIDEO1, CODEC_ID_IDCIN, CODEC_ID_8BPS, CODEC_ID_SMC, CODEC_ID_FLIC, CODEC_ID_TRUEMOTION1, CODEC_ID_VMDVIDEO, CODEC_ID_MSZH, CODEC_ID_ZLIB, CODEC_ID_QTRLE, CODEC_ID_SNOW, CODEC_ID_TSCC, CODEC_ID_ULTI, CODEC_ID_QDRAW, CODEC_ID_VIXL, CODEC_ID_QPEG, CODEC_ID_XVID, CODEC_ID_PNG, CODEC_ID_PPM, CODEC_ID_PBM, CODEC_ID_PGM, CODEC_ID_PGMYUV, CODEC_ID_PAM, CODEC_ID_FFVHUFF, CODEC_ID_RV30, CODEC_ID_RV40, CODEC_ID_VC1, CODEC_ID_WMV3, CODEC_ID_LOCO, CODEC_ID_WNV1, CODEC_ID_AASC, CODEC_ID_INDEO2, CODEC_ID_FRAPS, CODEC_ID_TRUEMOTION2, CODEC_ID_BMP, CODEC_ID_CSCD, CODEC_ID_MMVIDEO, CODEC_ID_ZMBV, CODEC_ID_AVS, CODEC_ID_SMACKVIDEO, CODEC_ID_NUV, CODEC_ID_KMVC, CODEC_ID_FLASHSV, CODEC_ID_CAVS, CODEC_ID_JPEG2000, CODEC_ID_VMNC, CODEC_ID_VP5, CODEC_ID_VP6, CODEC_ID_VP6F, CODEC_ID_TARGA, CODEC_ID_DSICINVIDEO, CODEC_ID_TIERTEXSEQVIDEO, CODEC_ID_TIFF, CODEC_ID_GIF, CODEC_ID_FFH264, CODEC_ID_DXA, CODEC_ID_DNXHD, CODEC_ID_THP, CODEC_ID_SGI, CODEC_ID_C93, CODEC_ID_BETHSOFTVID, CODEC_ID_PTX, CODEC_ID_TXD, CODEC_ID_VP6A, CODEC_ID_AMV, CODEC_ID_VB, CODEC_ID_PCX, CODEC_ID_SUNRAST, CODEC_ID_INDEO4, CODEC_ID_INDEO5, CODEC_ID_MIMIC, CODEC_ID_RL2, CODEC_ID_8SVX_EXP, CODEC_ID_8SVX_FIB, CODEC_ID_ESCAPE124, CODEC_ID_DIRAC, CODEC_ID_BFI, CODEC_ID_CMV, CODEC_ID_MOTIONPIXELS, CODEC_ID_TGV, CODEC_ID_TGQ, CODEC_ID_TQI, CODEC_ID_AURA, CODEC_ID_AURA2, CODEC_ID_V210X, CODEC_ID_TMV, CODEC_ID_V210, CODEC_ID_DPX, CODEC_ID_MAD, CODEC_ID_FRWU, CODEC_ID_FLASHSV2, CODEC_ID_CDGRAPHICS, CODEC_ID_R210, CODEC_ID_ANM, CODEC_ID_BINKVIDEO, CODEC_ID_IFF_ILBM, CODEC_ID_IFF_BYTERUN1, CODEC_ID_KGV1, CODEC_ID_YOP, CODEC_ID_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_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_AMR_NB = 0x12000, CODEC_ID_AMR_WB, CODEC_ID_RA_144 = 0x13000, CODEC_ID_RA_288, CODEC_ID_ROQ_DPCM = 0x14000, CODEC_ID_INTERPLAY_DPCM, CODEC_ID_XAN_DPCM, CODEC_ID_SOL_DPCM, CODEC_ID_MP2 = 0x15000, CODEC_ID_MP3, CODEC_ID_AAC, CODEC_ID_AC3, CODEC_ID_DTS, CODEC_ID_VORBIS, CODEC_ID_DVAUDIO, CODEC_ID_WMAV1, CODEC_ID_WMAV2, CODEC_ID_MACE3, CODEC_ID_MACE6, CODEC_ID_VMDAUDIO, CODEC_ID_SONIC, CODEC_ID_SONIC_LS, CODEC_ID_FLAC, CODEC_ID_MP3ADU, CODEC_ID_MP3ON4, CODEC_ID_SHORTEN, CODEC_ID_ALAC, CODEC_ID_WESTWOOD_SND1, CODEC_ID_GSM, CODEC_ID_QDM2, CODEC_ID_COOK, CODEC_ID_TRUESPEECH, CODEC_ID_TTA, CODEC_ID_SMACKAUDIO, CODEC_ID_QCELP, CODEC_ID_WAVPACK, CODEC_ID_DSICINAUDIO, CODEC_ID_IMC, CODEC_ID_MUSEPACK7, CODEC_ID_MLP, CODEC_ID_GSM_MS, CODEC_ID_ATRAC3, CODEC_ID_VOXWARE, CODEC_ID_APE, CODEC_ID_NELLYMOSER, CODEC_ID_MUSEPACK8, CODEC_ID_SPEEX, CODEC_ID_WMAVOICE, CODEC_ID_WMAPRO, CODEC_ID_WMALOSSLESS, CODEC_ID_ATRAC3P, CODEC_ID_EAC3, CODEC_ID_SIPR, CODEC_ID_MP1, CODEC_ID_TWINVQ, CODEC_ID_TRUEHD, CODEC_ID_MP4ALS, CODEC_ID_ATRAC1, CODEC_ID_BINKAUDIO_RDFT, CODEC_ID_BINKAUDIO_DCT, CODEC_ID_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_TTF = 0x18000, CODEC_ID_PROBE = 0x19000, CODEC_ID_MPEG2TS = 0x20000, CODEC_ID_NONE, CODEC_ID_MPEG1VIDEO, CODEC_ID_MPEG2VIDEO, CODEC_ID_MPEG2VIDEO_XVMC, CODEC_ID_H261, CODEC_ID_H263, CODEC_ID_RV10, CODEC_ID_RV20, CODEC_ID_MJPEG, CODEC_ID_MJPEGB, CODEC_ID_LJPEG, CODEC_ID_SP5X, CODEC_ID_JPEGLS, CODEC_ID_MPEG4, CODEC_ID_RAWVIDEO, CODEC_ID_MSMPEG4V1, CODEC_ID_MSMPEG4V2, CODEC_ID_MSMPEG4V3, CODEC_ID_WMV1, CODEC_ID_WMV2, CODEC_ID_H263P, CODEC_ID_H263I, CODEC_ID_FLV1, CODEC_ID_SVQ1, CODEC_ID_SVQ3, CODEC_ID_DVVIDEO, CODEC_ID_HUFFYUV, CODEC_ID_CYUV, CODEC_ID_H264, CODEC_ID_INDEO3, CODEC_ID_VP3, CODEC_ID_THEORA, CODEC_ID_ASV1, CODEC_ID_ASV2, CODEC_ID_FFV1, CODEC_ID_4XM, CODEC_ID_VCR1, CODEC_ID_CLJR, CODEC_ID_MDEC, CODEC_ID_ROQ, CODEC_ID_INTERPLAY_VIDEO, CODEC_ID_XAN_WC3, CODEC_ID_XAN_WC4, CODEC_ID_RPZA, CODEC_ID_CINEPAK, CODEC_ID_WS_VQA, CODEC_ID_MSRLE, CODEC_ID_MSVIDEO1, CODEC_ID_IDCIN, CODEC_ID_8BPS, CODEC_ID_SMC, CODEC_ID_FLIC, CODEC_ID_TRUEMOTION1, CODEC_ID_VMDVIDEO, CODEC_ID_MSZH, CODEC_ID_ZLIB, CODEC_ID_QTRLE, CODEC_ID_SNOW, CODEC_ID_TSCC, CODEC_ID_ULTI, CODEC_ID_QDRAW, CODEC_ID_VIXL, CODEC_ID_QPEG, CODEC_ID_XVID, CODEC_ID_PNG, CODEC_ID_PPM, CODEC_ID_PBM, CODEC_ID_PGM, CODEC_ID_PGMYUV, CODEC_ID_PAM, CODEC_ID_FFVHUFF, CODEC_ID_RV30, CODEC_ID_RV40, CODEC_ID_VC1, CODEC_ID_WMV3, CODEC_ID_LOCO, CODEC_ID_WNV1, CODEC_ID_AASC, CODEC_ID_INDEO2, CODEC_ID_FRAPS, CODEC_ID_TRUEMOTION2, CODEC_ID_BMP, CODEC_ID_CSCD, CODEC_ID_MMVIDEO, CODEC_ID_ZMBV, CODEC_ID_AVS, CODEC_ID_SMACKVIDEO, CODEC_ID_NUV, CODEC_ID_KMVC, CODEC_ID_FLASHSV, CODEC_ID_CAVS, CODEC_ID_JPEG2000, CODEC_ID_VMNC, CODEC_ID_VP5, CODEC_ID_VP6, CODEC_ID_VP6F, CODEC_ID_TARGA, CODEC_ID_DSICINVIDEO, CODEC_ID_TIERTEXSEQVIDEO, CODEC_ID_TIFF, CODEC_ID_GIF, CODEC_ID_FFH264, CODEC_ID_DXA, CODEC_ID_DNXHD, CODEC_ID_THP, CODEC_ID_SGI, CODEC_ID_C93, CODEC_ID_BETHSOFTVID, CODEC_ID_PTX, CODEC_ID_TXD, CODEC_ID_VP6A, CODEC_ID_AMV, CODEC_ID_VB, CODEC_ID_PCX, CODEC_ID_SUNRAST, CODEC_ID_INDEO4, CODEC_ID_INDEO5, CODEC_ID_MIMIC, CODEC_ID_RL2, CODEC_ID_8SVX_EXP, CODEC_ID_8SVX_FIB, CODEC_ID_ESCAPE124, CODEC_ID_DIRAC, CODEC_ID_BFI, CODEC_ID_CMV, CODEC_ID_MOTIONPIXELS, CODEC_ID_TGV, CODEC_ID_TGQ, CODEC_ID_TQI, CODEC_ID_AURA, CODEC_ID_AURA2, CODEC_ID_V210X, CODEC_ID_TMV, CODEC_ID_V210, CODEC_ID_DPX, CODEC_ID_MAD, CODEC_ID_FRWU, CODEC_ID_FLASHSV2, CODEC_ID_CDGRAPHICS, CODEC_ID_R210, CODEC_ID_ANM, CODEC_ID_BINKVIDEO, CODEC_ID_IFF_ILBM, CODEC_ID_IFF_BYTERUN1, CODEC_ID_KGV1, CODEC_ID_YOP, CODEC_ID_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_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_AMR_NB = 0x12000, CODEC_ID_AMR_WB, CODEC_ID_RA_144 = 0x13000, CODEC_ID_RA_288, CODEC_ID_ROQ_DPCM = 0x14000, CODEC_ID_INTERPLAY_DPCM, CODEC_ID_XAN_DPCM, CODEC_ID_SOL_DPCM, CODEC_ID_MP2 = 0x15000, CODEC_ID_MP3, CODEC_ID_AAC, CODEC_ID_AC3, CODEC_ID_DTS, CODEC_ID_VORBIS, CODEC_ID_DVAUDIO, CODEC_ID_WMAV1, CODEC_ID_WMAV2, CODEC_ID_MACE3, CODEC_ID_MACE6, CODEC_ID_VMDAUDIO, CODEC_ID_SONIC, CODEC_ID_SONIC_LS, CODEC_ID_FLAC, CODEC_ID_MP3ADU, CODEC_ID_MP3ON4, CODEC_ID_SHORTEN, CODEC_ID_ALAC, CODEC_ID_WESTWOOD_SND1, CODEC_ID_GSM, CODEC_ID_QDM2, CODEC_ID_COOK, CODEC_ID_TRUESPEECH, CODEC_ID_TTA, CODEC_ID_SMACKAUDIO, CODEC_ID_QCELP, CODEC_ID_WAVPACK, CODEC_ID_DSICINAUDIO, CODEC_ID_IMC, CODEC_ID_MUSEPACK7, CODEC_ID_MLP, CODEC_ID_GSM_MS, CODEC_ID_ATRAC3, CODEC_ID_VOXWARE, CODEC_ID_APE, CODEC_ID_NELLYMOSER, CODEC_ID_MUSEPACK8, CODEC_ID_SPEEX, CODEC_ID_WMAVOICE, CODEC_ID_WMAPRO, CODEC_ID_WMALOSSLESS, CODEC_ID_ATRAC3P, CODEC_ID_EAC3, CODEC_ID_SIPR, CODEC_ID_MP1, CODEC_ID_TWINVQ, CODEC_ID_TRUEHD, CODEC_ID_MP4ALS, CODEC_ID_ATRAC1, CODEC_ID_BINKAUDIO_RDFT, CODEC_ID_BINKAUDIO_DCT, CODEC_ID_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_TTF = 0x18000, CODEC_ID_PROBE = 0x19000, CODEC_ID_MPEG2TS = 0x20000 } |
Identifies the syntax and semantics of the bitstream. More... | |
enum | SampleFormat { SAMPLE_FMT_NONE = -1, SAMPLE_FMT_U8, SAMPLE_FMT_S16, SAMPLE_FMT_S32, SAMPLE_FMT_FLT, SAMPLE_FMT_DBL, SAMPLE_FMT_NB, SAMPLE_FMT_NONE = -1, SAMPLE_FMT_U8, SAMPLE_FMT_S16, SAMPLE_FMT_S32, SAMPLE_FMT_FLT, SAMPLE_FMT_DBL, SAMPLE_FMT_NB } |
all in native-endian format More... | |
enum | Motion_Est_ID { ME_ZERO = 1, ME_FULL, ME_LOG, ME_PHODS, ME_EPZS, ME_X1, ME_HEX, ME_UMH, ME_ITER, ME_TESA, ME_ZERO = 1, ME_FULL, ME_LOG, ME_PHODS, ME_EPZS, ME_X1, ME_HEX, ME_UMH, ME_ITER, ME_TESA } |
motion estimation type. More... | |
enum | AVDiscard { AVDISCARD_NONE = -16, AVDISCARD_DEFAULT = 0, AVDISCARD_NONREF = 8, AVDISCARD_BIDIR = 16, AVDISCARD_NONKEY = 32, AVDISCARD_ALL = 48, AVDISCARD_NONE = -16, AVDISCARD_DEFAULT = 0, AVDISCARD_NONREF = 8, AVDISCARD_BIDIR = 16, AVDISCARD_NONKEY = 32, AVDISCARD_ALL = 48 } |
enum | AVColorPrimaries { AVCOL_PRI_BT709 = 1, AVCOL_PRI_UNSPECIFIED = 2, AVCOL_PRI_BT470M = 4, AVCOL_PRI_BT470BG = 5, AVCOL_PRI_SMPTE170M = 6, AVCOL_PRI_SMPTE240M = 7, AVCOL_PRI_FILM = 8, AVCOL_PRI_NB, AVCOL_PRI_BT709 = 1, AVCOL_PRI_UNSPECIFIED = 2, AVCOL_PRI_BT470M = 4, AVCOL_PRI_BT470BG = 5, AVCOL_PRI_SMPTE170M = 6, AVCOL_PRI_SMPTE240M = 7, AVCOL_PRI_FILM = 8, AVCOL_PRI_NB } |
enum | AVColorTransferCharacteristic { AVCOL_TRC_BT709 = 1, AVCOL_TRC_UNSPECIFIED = 2, AVCOL_TRC_GAMMA22 = 4, AVCOL_TRC_GAMMA28 = 5, AVCOL_TRC_NB, AVCOL_TRC_BT709 = 1, AVCOL_TRC_UNSPECIFIED = 2, AVCOL_TRC_GAMMA22 = 4, AVCOL_TRC_GAMMA28 = 5, AVCOL_TRC_NB } |
enum | AVColorSpace { AVCOL_SPC_RGB = 0, AVCOL_SPC_BT709 = 1, AVCOL_SPC_UNSPECIFIED = 2, AVCOL_SPC_FCC = 4, AVCOL_SPC_BT470BG = 5, AVCOL_SPC_SMPTE170M = 6, AVCOL_SPC_SMPTE240M = 7, AVCOL_SPC_NB, AVCOL_SPC_RGB = 0, AVCOL_SPC_BT709 = 1, AVCOL_SPC_UNSPECIFIED = 2, AVCOL_SPC_FCC = 4, AVCOL_SPC_BT470BG = 5, AVCOL_SPC_SMPTE170M = 6, AVCOL_SPC_SMPTE240M = 7, AVCOL_SPC_NB } |
enum | AVColorRange { AVCOL_RANGE_UNSPECIFIED = 0, AVCOL_RANGE_MPEG = 1, AVCOL_RANGE_JPEG = 2, AVCOL_RANGE_NB, 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, 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 | AVSubtitleType { SUBTITLE_NONE, SUBTITLE_BITMAP, SUBTITLE_TEXT, SUBTITLE_ASS, SUBTITLE_NONE, SUBTITLE_BITMAP, SUBTITLE_TEXT, SUBTITLE_ASS } |
enum | AVLockOp { AV_LOCK_CREATE, AV_LOCK_OBTAIN, AV_LOCK_RELEASE, AV_LOCK_DESTROY, AV_LOCK_CREATE, AV_LOCK_OBTAIN, AV_LOCK_RELEASE, AV_LOCK_DESTROY } |
Lock operation used by lockmgr. More... | |
Functions | |
attribute_deprecated void | av_destruct_packet_nofree (AVPacket *pkt) |
void | av_destruct_packet (AVPacket *pkt) |
Default packet destructor. | |
void | av_init_packet (AVPacket *pkt) |
Initialize optional fields of a packet with default values. | |
int | av_new_packet (AVPacket *pkt, int size) |
Allocate the payload of a packet and initialize its fields with default values. | |
void | av_shrink_packet (AVPacket *pkt, int size) |
Reduce packet size, correctly zeroing padding. | |
int | av_dup_packet (AVPacket *pkt) |
void | av_free_packet (AVPacket *pkt) |
Free a packet. | |
attribute_deprecated ReSampleContext * | audio_resample_init (int output_channels, int input_channels, int output_rate, int input_rate) |
ReSampleContext * | av_audio_resample_init (int output_channels, int input_channels, int output_rate, int input_rate, enum SampleFormat sample_fmt_out, enum SampleFormat sample_fmt_in, int filter_length, int log2_phase_count, int linear, double cutoff) |
Initializes audio resampling context. | |
int | audio_resample (ReSampleContext *s, short *output, short *input, int nb_samples) |
void | audio_resample_close (ReSampleContext *s) |
struct AVResampleContext * | av_resample_init (int out_rate, int in_rate, int filter_length, int log2_phase_count, int linear, double cutoff) |
Initializes an audio resampler. | |
int | av_resample (struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx) |
resamples. | |
void | av_resample_compensate (struct AVResampleContext *c, int sample_delta, int compensation_distance) |
Compensates samplerate/timestamp drift. | |
void | av_resample_close (struct AVResampleContext *c) |
int | avpicture_alloc (AVPicture *picture, enum PixelFormat pix_fmt, int width, int height) |
Allocate memory for a picture. | |
void | avpicture_free (AVPicture *picture) |
Free a picture previously allocated by avpicture_alloc(). | |
int | avpicture_fill (AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int width, int height) |
Fill in the AVPicture fields. | |
int | avpicture_layout (const AVPicture *src, enum PixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size) |
int | avpicture_get_size (enum PixelFormat pix_fmt, int width, int height) |
Calculate the size in bytes that a picture of the given width and height would occupy if stored in the given picture format. | |
void | avcodec_get_chroma_sub_sample (enum PixelFormat pix_fmt, int *h_shift, int *v_shift) |
const char * | avcodec_get_pix_fmt_name (enum PixelFormat pix_fmt) |
void | avcodec_set_dimensions (AVCodecContext *s, int width, int height) |
attribute_deprecated enum PixelFormat | avcodec_get_pix_fmt (const char *name) |
Returns the pixel format corresponding to the name name. | |
unsigned int | avcodec_pix_fmt_to_codec_tag (enum PixelFormat pix_fmt) |
Returns a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found. | |
int | avcodec_get_pix_fmt_loss (enum PixelFormat dst_pix_fmt, enum PixelFormat src_pix_fmt, int has_alpha) |
Computes what kind of losses will occur when converting from one specific pixel format to another. | |
enum PixelFormat | avcodec_find_best_pix_fmt (int64_t pix_fmt_mask, enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) |
Finds the best pixel format to convert to given a certain source pixel format. | |
void | avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt) |
Print in buf the string corresponding to the pixel format with number pix_fmt, or an header if pix_fmt is negative. | |
int | img_get_alpha_info (const AVPicture *src, enum PixelFormat pix_fmt, int width, int height) |
Tell if an image really has transparent alpha values. | |
int | avpicture_deinterlace (AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int width, int height) |
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. | |
unsigned | avcodec_version (void) |
Returns the LIBAVCODEC_VERSION_INT constant. | |
const char * | avcodec_configuration (void) |
Returns the libavcodec build-time configuration. | |
const char * | avcodec_license (void) |
Returns the libavcodec license. | |
void | avcodec_init (void) |
Initializes libavcodec. | |
attribute_deprecated void | register_avcodec (AVCodec *codec) |
void | avcodec_register (AVCodec *codec) |
Register the codec codec and initialize libavcodec. | |
AVCodec * | avcodec_find_encoder (enum CodecID id) |
Finds a registered encoder with a matching codec ID. | |
AVCodec * | avcodec_find_encoder_by_name (const char *name) |
Finds a registered encoder with the specified name. | |
AVCodec * | avcodec_find_decoder (enum CodecID id) |
Finds a registered decoder with a matching codec ID. | |
AVCodec * | avcodec_find_decoder_by_name (const char *name) |
Finds a registered decoder with the specified name. | |
void | avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode) |
void | avcodec_get_context_defaults (AVCodecContext *s) |
Sets the fields of the given AVCodecContext to default values. | |
void | avcodec_get_context_defaults2 (AVCodecContext *s, enum AVMediaType) |
THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times! | |
AVCodecContext * | avcodec_alloc_context (void) |
Allocates an AVCodecContext and sets its fields to default values. | |
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! | |
int | avcodec_copy_context (AVCodecContext *dest, const AVCodecContext *src) |
Copy the settings of the source AVCodecContext into the destination AVCodecContext. | |
void | avcodec_get_frame_defaults (AVFrame *pic) |
Sets the fields of the given AVFrame to default values. | |
AVFrame * | avcodec_alloc_frame (void) |
Allocates an AVFrame and sets its fields to default values. | |
int | avcodec_default_get_buffer (AVCodecContext *s, AVFrame *pic) |
void | avcodec_default_release_buffer (AVCodecContext *s, AVFrame *pic) |
int | avcodec_default_reget_buffer (AVCodecContext *s, AVFrame *pic) |
unsigned | avcodec_get_edge_width (void) |
Returns the amount of padding in pixels which the get_buffer callback must provide around the edge of the image for codecs which do not have the CODEC_FLAG_EMU_EDGE flag. | |
void | avcodec_align_dimensions (AVCodecContext *s, int *width, int *height) |
Modifies width and height values so that they will result in a memory buffer that is acceptable for the codec if you do not use any horizontal padding. | |
void | avcodec_align_dimensions2 (AVCodecContext *s, int *width, int *height, int linesize_align[4]) |
Modifies width and height values so that they will result in a memory buffer that is acceptable for the codec if you also ensure that all line sizes are a multiple of the respective linesize_align[i]. | |
int | avcodec_check_dimensions (void *av_log_ctx, unsigned int w, unsigned int h) |
Checks if the given dimension of a picture is valid, meaning that all bytes of the picture can be addressed with a signed int. | |
enum PixelFormat | avcodec_default_get_format (struct AVCodecContext *s, const enum PixelFormat *fmt) |
int | avcodec_thread_init (AVCodecContext *s, int thread_count) |
void | avcodec_thread_free (AVCodecContext *s) |
Free what has been allocated by avcodec_thread_init(). | |
int | avcodec_default_execute (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size) |
int | avcodec_default_execute2 (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2, int, int), void *arg, int *ret, int count) |
int | avcodec_open (AVCodecContext *avctx, AVCodec *codec) |
Initializes the AVCodecContext to use the given AVCodec. | |
attribute_deprecated int | avcodec_decode_audio2 (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, const uint8_t *buf, int buf_size) |
Decodes an audio frame from buf into samples. | |
int | avcodec_decode_audio3 (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, AVPacket *avpkt) |
Decodes the audio frame of size avpkt->size from avpkt->data into samples. | |
attribute_deprecated int | avcodec_decode_video (AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const uint8_t *buf, int buf_size) |
Decodes a video frame from buf into picture. | |
int | avcodec_decode_video2 (AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt) |
Decodes the video frame of size avpkt->size from avpkt->data into picture. | |
attribute_deprecated int | avcodec_decode_subtitle (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const uint8_t *buf, int buf_size) |
int | avcodec_decode_subtitle2 (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) |
Decodes a subtitle message. | |
int | avcodec_parse_frame (AVCodecContext *avctx, uint8_t **pdata, int *data_size_ptr, uint8_t *buf, int buf_size) |
int | avcodec_encode_audio (AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) |
Encodes an audio frame from samples into buf. | |
int | avcodec_encode_video (AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict) |
Encodes a video frame from pict into buf. | |
int | avcodec_encode_subtitle (AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVSubtitle *sub) |
int | avcodec_close (AVCodecContext *avctx) |
void | avcodec_register_all (void) |
Register all the codecs, parsers and bitstream filters which were enabled at configuration time. | |
void | avcodec_flush_buffers (AVCodecContext *avctx) |
Flush buffers, should be called when seeking or when switching to a different stream. | |
void | avcodec_default_free_buffers (AVCodecContext *s) |
char | av_get_pict_type_char (int pict_type) |
Returns a single letter to describe the given picture type pict_type. | |
int | av_get_bits_per_sample (enum CodecID codec_id) |
Returns codec bits per sample. | |
int | av_get_bits_per_sample_format (enum SampleFormat sample_fmt) |
Returns sample format bits per sample. | |
AVCodecParser * | av_parser_next (AVCodecParser *c) |
void | av_register_codec_parser (AVCodecParser *parser) |
AVCodecParserContext * | av_parser_init (int codec_id) |
attribute_deprecated int | av_parser_parse (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts) |
int | av_parser_parse2 (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos) |
Parse a packet. | |
int | av_parser_change (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe) |
void | av_parser_close (AVCodecParserContext *s) |
void | av_register_bitstream_filter (AVBitStreamFilter *bsf) |
AVBitStreamFilterContext * | av_bitstream_filter_init (const char *name) |
int | av_bitstream_filter_filter (AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe) |
void | av_bitstream_filter_close (AVBitStreamFilterContext *bsf) |
AVBitStreamFilter * | av_bitstream_filter_next (AVBitStreamFilter *f) |
void * | av_fast_realloc (void *ptr, unsigned int *size, unsigned int min_size) |
Reallocates the given block if it is not large enough, otherwise it does nothing. | |
void | av_fast_malloc (void *ptr, unsigned int *size, unsigned int min_size) |
Allocates a buffer, reusing the given one if large enough. | |
void | av_picture_copy (AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int width, int height) |
Copy image 'src' to 'dst'. | |
int | av_picture_crop (AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int top_band, int left_band) |
Crop image top and left side. | |
int | av_picture_pad (AVPicture *dst, const AVPicture *src, int height, int width, enum PixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color) |
Pad image. | |
unsigned int | av_xiphlacing (unsigned char *s, unsigned int v) |
Encodes extradata length to a buffer. | |
int | av_parse_video_frame_size (int *width_ptr, int *height_ptr, const char *str) |
Parses str and put in width_ptr and height_ptr the detected values. | |
int | av_parse_video_frame_rate (AVRational *frame_rate, const char *str) |
Parses str and put in frame_rate the detected values. | |
void | av_log_missing_feature (void *avc, const char *feature, int want_sample) |
Logs a generic warning message about a missing feature. | |
void | av_log_ask_for_sample (void *avc, const char *msg) |
Logs a generic warning message asking for a sample. | |
void | av_register_hwaccel (AVHWAccel *hwaccel) |
Registers the hardware accelerator hwaccel. | |
AVHWAccel * | av_hwaccel_next (AVHWAccel *hwaccel) |
If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL, returns the next registered hardware accelerator after hwaccel, or NULL if hwaccel is the last one. | |
int | av_lockmgr_register (int(*cb)(void **mutex, enum AVLockOp op)) |
Register a user provided lock manager supporting the operations specified by AVLockOp. |
#define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} |
#define AVPALETTE_SIZE 1024 |
AVPaletteControl This structure defines a method for communicating palette changes between and demuxer and a decoder.
#define CH_LAYOUT_2_2 (CH_LAYOUT_STEREO|CH_SIDE_LEFT|CH_SIDE_RIGHT) |
#define CH_LAYOUT_4POINT0 (CH_LAYOUT_SURROUND|CH_BACK_CENTER) |
#define CH_LAYOUT_5POINT0 (CH_LAYOUT_SURROUND|CH_SIDE_LEFT|CH_SIDE_RIGHT) |
#define CH_LAYOUT_5POINT0_BACK (CH_LAYOUT_SURROUND|CH_BACK_LEFT|CH_BACK_RIGHT) |
#define CH_LAYOUT_5POINT1 (CH_LAYOUT_5POINT0|CH_LOW_FREQUENCY) |
#define CH_LAYOUT_5POINT1_BACK (CH_LAYOUT_5POINT0_BACK|CH_LOW_FREQUENCY) |
#define CH_LAYOUT_7POINT0 (CH_LAYOUT_5POINT0|CH_BACK_LEFT|CH_BACK_RIGHT) |
#define CH_LAYOUT_7POINT1 (CH_LAYOUT_5POINT1|CH_BACK_LEFT|CH_BACK_RIGHT) |
#define CH_LAYOUT_7POINT1_WIDE |
Value:
#define CH_LAYOUT_NATIVE 0x8000000000000000LL |
Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output to be the native codec channel order.
#define CH_LAYOUT_QUAD (CH_LAYOUT_STEREO|CH_BACK_LEFT|CH_BACK_RIGHT) |
#define CH_LAYOUT_STEREO_DOWNMIX (CH_STEREO_LEFT|CH_STEREO_RIGHT) |
#define CH_LAYOUT_SURROUND (CH_LAYOUT_STEREO|CH_FRONT_CENTER) |
#define CODEC_CAP_DELAY 0x0020 |
#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.
#define CODEC_CAP_DRAW_HORIZ_BAND 0x0001 |
#define CODEC_CAP_HWACCEL_VDPAU 0x0080 |
#define CODEC_CAP_SMALL_LAST_FRAME 0x0040 |
#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.
#define CODEC_FLAG2_8X8DCT 0x00000080 |
#define CODEC_FLAG2_AUD 0x00000200 |
#define CODEC_FLAG2_BIT_RESERVOIR 0x00020000 |
#define CODEC_FLAG2_BPYRAMID 0x00000010 |
#define CODEC_FLAG2_BRDO 0x00000400 |
#define CODEC_FLAG2_CHUNKS 0x00008000 |
#define CODEC_FLAG2_DROP_FRAME_TIMECODE 0x00002000 |
#define CODEC_FLAG2_FAST 0x00000001 |
#define CODEC_FLAG2_FASTPSKIP 0x00000100 |
#define CODEC_FLAG2_INTRA_VLC 0x00000800 |
#define CODEC_FLAG2_LOCAL_HEADER 0x00000008 |
#define CODEC_FLAG2_MBTREE 0x00040000 |
#define CODEC_FLAG2_MEMC_ONLY 0x00001000 |
#define CODEC_FLAG2_MIXED_REFS 0x00000040 |
#define CODEC_FLAG2_NO_OUTPUT 0x00000004 |
#define CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000 |
#define CODEC_FLAG2_PSY 0x00080000 |
#define CODEC_FLAG2_SKIP_RD 0x00004000 |
#define CODEC_FLAG2_SSIM 0x00100000 |
#define CODEC_FLAG2_STRICT_GOP 0x00000002 |
#define CODEC_FLAG2_WPRED 0x00000020 |
#define CODEC_FLAG_4MV 0x0004 |
#define CODEC_FLAG_AC_PRED 0x01000000 |
#define CODEC_FLAG_ALT_SCAN 0x00100000 |
#define CODEC_FLAG_BITEXACT 0x00800000 |
#define CODEC_FLAG_CBP_RD 0x04000000 |
#define CODEC_FLAG_EXTERN_HUFF 0x1000 |
#define CODEC_FLAG_GLOBAL_HEADER 0x00400000 |
#define CODEC_FLAG_GRAY 0x2000 |
#define CODEC_FLAG_H263P_AIV 0x00000008 |
#define CODEC_FLAG_H263P_UMV 0x02000000 |
#define CODEC_FLAG_INPUT_PRESERVED 0x0100 |
#define CODEC_FLAG_INTERLACED_DCT 0x00040000 |
#define CODEC_FLAG_INTERLACED_ME 0x20000000 |
#define CODEC_FLAG_MV0 0x0040 |
#define CODEC_FLAG_NORMALIZE_AQP 0x00020000 |
#define CODEC_FLAG_PASS1 0x0200 |
#define CODEC_FLAG_PASS2 0x0400 |
#define CODEC_FLAG_PSNR 0x8000 |
#define CODEC_FLAG_QP_RD 0x08000000 |
#define CODEC_FLAG_SVCD_SCAN_OFFSET 0x40000000 |
#define CodecType AVMediaType |
#define FF_BUFFER_TYPE_COPY 8 |
#define FF_BUFFER_TYPE_SHARED 4 |
#define FF_BUFFER_TYPE_USER 2 |
#define FF_BUG_AC_VLC 0 |
#define FF_BUG_MS 8192 |
#define FF_COMPLIANCE_EXPERIMENTAL -2 |
#define FF_COMPLIANCE_INOFFICIAL -1 |
#define FF_COMPLIANCE_STRICT 1 |
#define FF_COMPLIANCE_VERY_STRICT 2 |
#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.
#define FF_LOSS_CHROMA 0x0020 |
#define FF_LOSS_COLORQUANT 0x0010 |
#define FF_LOSS_COLORSPACE 0x0004 |
#define FF_LOSS_DEPTH 0x0002 |
#define FF_LOSS_RESOLUTION 0x0001 |
#define FF_MB_DECISION_BITS 1 |
#define FF_MIN_BUFFER_SIZE 16384 |
#define FF_MM_MMX2 0x0002 |
#define FF_MM_MMXEXT 0x0002 |
#define FF_QP2LAMBDA 118 |
#define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) |
#define LIBAVCODEC_VERSION |
Value:
#define LIBAVCODEC_VERSION_INT |
Value:
#define SLICE_FLAG_ALLOW_FIELD 0x0002 |
#define SLICE_FLAG_ALLOW_PLANE 0x0004 |
#define SLICE_FLAG_CODED_ORDER 0x0001 |
typedef struct AVPaletteControl attribute_deprecated |
typedef struct ReSampleContext ReSampleContext |
enum AVChromaLocation |
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.
enum AVColorPrimaries |
enum AVColorRange |
enum AVColorSpace |
enum AVDiscard |
enum AVLockOp |
Lock operation used by lockmgr.
enum AVSubtitleType |
enum CodecID |
Identifies the syntax and semantics of the bitstream.
The principle is roughly: Two decoders with the same ID can decode the same streams. Two encoders with the same ID can encode compatible streams. There may be slight deviations from the principle due to implementation details.
If you add a codec ID to this list, add it so that 1. no value of a existing codec ID changes (that would break ABI), 2. it is as close as possible to similar codecs.
enum Motion_Est_ID |
motion estimation type.
enum SampleFormat |
all in native-endian format
int audio_resample | ( | ReSampleContext * | s, | |
short * | output, | |||
short * | input, | |||
int | nb_samples | |||
) |
Definition at line 233 of file resample.c.
void audio_resample_close | ( | ReSampleContext * | s | ) |
Definition at line 364 of file resample.c.
attribute_deprecated ReSampleContext* audio_resample_init | ( | int | output_channels, | |
int | input_channels, | |||
int | output_rate, | |||
int | input_rate | |||
) |
Definition at line 221 of file resample.c.
ReSampleContext* av_audio_resample_init | ( | int | output_channels, | |
int | input_channels, | |||
int | output_rate, | |||
int | input_rate, | |||
enum SampleFormat | sample_fmt_out, | |||
enum SampleFormat | sample_fmt_in, | |||
int | filter_length, | |||
int | log2_phase_count, | |||
int | linear, | |||
double | cutoff | |||
) |
Initializes audio resampling context.
output_channels | number of output channels | |
input_channels | number of input channels | |
output_rate | output sample rate | |
input_rate | input sample rate | |
sample_fmt_out | requested output sample format | |
sample_fmt_in | input sample format | |
filter_length | length of each FIR filter in the filterbank relative to the cutoff freq | |
log2_phase_count | log2 of the number of entries in the polyphase filterbank | |
linear | If 1 then the used FIR filter will be linearly interpolated between the 2 closest, if 0 the closest will be used | |
cutoff | cutoff frequency, 1.0 corresponds to half the output sampling rate |
Definition at line 144 of file resample.c.
void av_bitstream_filter_close | ( | AVBitStreamFilterContext * | bsf | ) |
Definition at line 50 of file bitstream_filter.c.
int av_bitstream_filter_filter | ( | AVBitStreamFilterContext * | bsfc, | |
AVCodecContext * | avctx, | |||
const char * | args, | |||
uint8_t ** | poutbuf, | |||
int * | poutbuf_size, | |||
const uint8_t * | buf, | |||
int | buf_size, | |||
int | keyframe | |||
) |
Definition at line 58 of file bitstream_filter.c.
AVBitStreamFilterContext* av_bitstream_filter_init | ( | const char * | name | ) |
Definition at line 35 of file bitstream_filter.c.
AVBitStreamFilter* av_bitstream_filter_next | ( | AVBitStreamFilter * | f | ) |
Definition at line 25 of file bitstream_filter.c.
void av_destruct_packet | ( | AVPacket * | pkt | ) |
attribute_deprecated void av_destruct_packet_nofree | ( | AVPacket * | pkt | ) |
int av_dup_packet | ( | AVPacket * | pkt | ) |
Definition at line 74 of file avpacket.c.
void av_fast_malloc | ( | void * | ptr, | |
unsigned int * | size, | |||
unsigned int | min_size | |||
) |
Allocates a buffer, reusing the given one if large enough.
Contrary to av_fast_realloc the current buffer contents might not be preserved and on error the old buffer is freed, thus no special handling to avoid memleaks is necessary.
ptr | pointer to pointer to already allocated buffer, overwritten with pointer to new buffer | |
size | size of the buffer *ptr points to | |
min_size | minimum size of *ptr buffer after returning, *ptr will be NULL and *size 0 if an error occurred. |
void* av_fast_realloc | ( | void * | ptr, | |
unsigned int * | size, | |||
unsigned int | min_size | |||
) |
Reallocates the given block if it is not large enough, otherwise it does nothing.
void av_free_packet | ( | AVPacket * | pkt | ) |
int av_get_bits_per_sample | ( | enum CodecID | codec_id | ) |
int av_get_bits_per_sample_format | ( | enum SampleFormat | sample_fmt | ) |
char av_get_pict_type_char | ( | int | pict_type | ) |
void av_init_packet | ( | AVPacket * | pkt | ) |
Initialize optional fields of a packet with default values.
pkt | packet |
Definition at line 36 of file avpacket.c.
int av_lockmgr_register | ( | int(*)(void **mutex, enum AVLockOp op) | cb | ) |
Register a user provided lock manager supporting the operations specified by AVLockOp.
mutex points to a (void *) where the lockmgr should store/get a pointer to a user allocated mutex. It's NULL upon AV_LOCK_CREATE and != NULL for all other ops.
cb | User defined callback. Note: FFmpeg may invoke calls to this callback during the call to av_lockmgr_register(). Thus, the application must be prepared to handle that. If cb is set to NULL the lockmgr will be unregistered. Also note that during unregistration the previously registered lockmgr callback may also be invoked. |
void av_log_ask_for_sample | ( | void * | avc, | |
const char * | msg | |||
) |
Logs a generic warning message asking for a sample.
This function is intended to be used internally by FFmpeg (libavcodec, libavformat, etc.) only, and would normally not be used by applications.
[in] | avc | a pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct |
[in] | msg | string containing an optional message, or NULL if no message |
void av_log_missing_feature | ( | void * | avc, | |
const char * | feature, | |||
int | want_sample | |||
) |
Logs a generic warning message about a missing feature.
This function is intended to be used internally by FFmpeg (libavcodec, libavformat, etc.) only, and would normally not be used by applications.
[in] | avc | a pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct |
[in] | feature | string containing the name of the missing feature |
[in] | want_sample | indicates if samples are wanted which exhibit this feature. If want_sample is non-zero, additional verbage will be added to the log message which tells the user how to report samples to the development mailing list. |
int av_new_packet | ( | AVPacket * | pkt, | |
int | size | |||
) |
Allocate the payload of a packet and initialize its fields with default values.
pkt | packet | |
size | wanted payload size |
Definition at line 48 of file avpacket.c.
int av_parse_video_frame_rate | ( | AVRational * | frame_rate, | |
const char * | str | |||
) |
Parses str and put in frame_rate the detected values.
[in] | str | the string to parse: it has to be a string in the format <frame_rate_num>/<frame_rate_den>, a float number or a valid video rate abbreviation |
[in,out] | frame_rate | pointer to the AVRational which will contain the detected frame rate |
int av_parse_video_frame_size | ( | int * | width_ptr, | |
int * | height_ptr, | |||
const char * | str | |||
) |
Parses str and put in width_ptr and height_ptr the detected values.
[in] | str | the string to parse: it has to be a string in the format <width>x<height> or a valid video frame size abbreviation. |
[in,out] | width_ptr | pointer to the variable which will contain the detected frame width value |
[in,out] | height_ptr | pointer to the variable which will contain the detected frame height value |
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 | ) |
AVCodecParserContext* av_parser_init | ( | int | codec_id | ) |
AVCodecParser* av_parser_next | ( | AVCodecParser * | c | ) |
attribute_deprecated int av_parser_parse | ( | AVCodecParserContext * | s, | |
AVCodecContext * | avctx, | |||
uint8_t ** | poutbuf, | |||
int * | poutbuf_size, | |||
const uint8_t * | buf, | |||
int | buf_size, | |||
int64_t | pts, | |||
int64_t | dts | |||
) |
buf | input | |
buf_size | input length, to signal EOF, this should be 0 (so that the last frame can be output) | |
pts | input presentation timestamp | |
dts | input decoding timestamp | |
poutbuf | will contain a pointer to the first byte of the output frame | |
poutbuf_size | will contain the length of the output frame |
while(in_len){ len = av_parser_parse(myparser, AVCodecContext, &data, &size, in_data, in_len, pts, dts); in_data += len; in_len -= len; if(size) decode_frame(data, size); }
int av_parser_parse2 | ( | AVCodecParserContext * | s, | |
AVCodecContext * | avctx, | |||
uint8_t ** | poutbuf, | |||
int * | poutbuf_size, | |||
const uint8_t * | buf, | |||
int | buf_size, | |||
int64_t | pts, | |||
int64_t | dts, | |||
int64_t | pos | |||
) |
Parse a packet.
s | parser context. | |
avctx | codec context. | |
poutbuf | set to pointer to parsed buffer or NULL if not yet finished. | |
poutbuf_size | set to size of parsed buffer or zero if not yet finished. | |
buf | input buffer. | |
buf_size | input length, to signal EOF, this should be 0 (so that the last frame can be output). | |
pts | input presentation timestamp. | |
dts | input decoding timestamp. | |
pos | input byte position in stream. |
while(in_len){ len = av_parser_parse2(myparser, AVCodecContext, &data, &size, in_data, in_len, pts, dts, pos); in_data += len; in_len -= len; if(size) decode_frame(data, size); }
void av_picture_copy | ( | AVPicture * | dst, | |
const AVPicture * | src, | |||
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height | |||
) |
int av_picture_crop | ( | AVPicture * | dst, | |
const AVPicture * | src, | |||
enum PixelFormat | pix_fmt, | |||
int | top_band, | |||
int | left_band | |||
) |
int av_picture_pad | ( | AVPicture * | dst, | |
const AVPicture * | src, | |||
int | height, | |||
int | width, | |||
enum PixelFormat | pix_fmt, | |||
int | padtop, | |||
int | padbottom, | |||
int | padleft, | |||
int | padright, | |||
int * | color | |||
) |
void av_register_bitstream_filter | ( | AVBitStreamFilter * | bsf | ) |
Definition at line 30 of file bitstream_filter.c.
void av_register_codec_parser | ( | AVCodecParser * | parser | ) |
void av_register_hwaccel | ( | AVHWAccel * | hwaccel | ) |
int av_resample | ( | struct AVResampleContext * | c, | |
short * | dst, | |||
short * | src, | |||
int * | consumed, | |||
int | src_size, | |||
int | dst_size, | |||
int | update_ctx | |||
) |
resamples.
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 will not be modified, that way several channels can be resampled with the same context. |
Definition at line 214 of file resample2.c.
void av_resample_close | ( | struct AVResampleContext * | c | ) |
Definition at line 203 of file resample2.c.
void av_resample_compensate | ( | struct 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 occur
compensation_distance | distance in output samples over which the compensation should be performed | |
sample_delta | number of output samples which should be output less |
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 208 of file resample2.c.
struct AVResampleContext* av_resample_init | ( | int | out_rate, | |
int | in_rate, | |||
int | filter_length, | |||
int | log2_phase_count, | |||
int | linear, | |||
double | cutoff | |||
) | [read] |
Initializes an audio resampler.
Note, if either rate is not an integer then simply scale both rates up so they are.
filter_length | length of each FIR filter in the filterbank relative to the cutoff freq | |
log2_phase_count | log2 of the number of entries in the polyphase filterbank | |
linear | If 1 then the used FIR filter will be linearly interpolated between the 2 closest, if 0 the closest will be used | |
cutoff | cutoff frequency, 1.0 corresponds to half the output sampling rate |
Definition at line 181 of file resample2.c.
void av_shrink_packet | ( | AVPacket * | pkt, | |
int | size | |||
) |
Reduce packet size, correctly zeroing padding.
pkt | packet | |
size | new size |
Definition at line 67 of file avpacket.c.
unsigned int av_xiphlacing | ( | unsigned char * | s, | |
unsigned int | v | |||
) |
void avcodec_align_dimensions | ( | AVCodecContext * | s, | |
int * | width, | |||
int * | height | |||
) |
void avcodec_align_dimensions2 | ( | AVCodecContext * | s, | |
int * | width, | |||
int * | height, | |||
int | linesize_align[4] | |||
) |
AVCodecContext* avcodec_alloc_context | ( | void | ) |
Allocates an AVCodecContext and sets its fields to default values.
The resulting struct can be deallocated by simply calling av_free().
AVCodecContext* avcodec_alloc_context2 | ( | enum | AVMediaType | ) |
AVFrame* avcodec_alloc_frame | ( | void | ) |
int avcodec_check_dimensions | ( | void * | av_log_ctx, | |
unsigned int | w, | |||
unsigned int | h | |||
) |
int avcodec_close | ( | AVCodecContext * | avctx | ) |
const char* avcodec_configuration | ( | void | ) |
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_open() before you can use this AVCodecContext to decode/encode video/audio data.
dest | target codec context, should be initialized with avcodec_alloc_context(), but otherwise uninitialized | |
src | source codec context |
attribute_deprecated int avcodec_decode_audio2 | ( | AVCodecContext * | avctx, | |
int16_t * | samples, | |||
int * | frame_size_ptr, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) |
Decodes an audio frame from buf into samples.
Wrapper function which calls avcodec_decode_audio3.
avctx | the codec context | |
[out] | samples | the output buffer |
[in,out] | frame_size_ptr | the output buffer size in bytes |
[in] | buf | the input buffer |
[in] | buf_size | the input buffer size in bytes |
avctx | the codec context | |
[out] | samples | the output buffer |
[in,out] | frame_size_ptr | the output buffer size in bytes |
[in] | buf | the input buffer |
[in] | buf_size | the input buffer size in bytes |
int avcodec_decode_audio3 | ( | AVCodecContext * | avctx, | |
int16_t * | samples, | |||
int * | frame_size_ptr, | |||
AVPacket * | avpkt | |||
) |
Decodes the audio frame of size avpkt->size from avpkt->data into samples.
Some decoders may support multiple frames in a single AVPacket, such decoders would then just decode the first frame. In this case, avcodec_decode_audio3 has to be called again with an AVPacket that contains the remaining data in order to decode the second frame etc. If no frame could be outputted, frame_size_ptr is zero. Otherwise, it is the decompressed frame size in bytes.
The input buffer must be FF_INPUT_BUFFER_PADDING_SIZE larger than the actual read bytes because some optimized bitstream readers read 32 or 64 bits at once and could read over the end.
The end of the input buffer avpkt->data should be set to 0 to ensure that no overreading happens for damaged MPEG streams.
avctx | the codec context | |
[out] | samples | the output buffer, sample type in avctx->sample_fmt |
[in,out] | frame_size_ptr | the output buffer size in bytes |
[in] | avpkt | The input AVPacket containing the input buffer. You can create such packet with av_init_packet() and by then setting data and size, some decoders might in addition need other fields. All decoders are designed to use the least fields possible though. |
attribute_deprecated int avcodec_decode_subtitle | ( | AVCodecContext * | avctx, | |
AVSubtitle * | sub, | |||
int * | got_sub_ptr, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) |
int avcodec_decode_subtitle2 | ( | AVCodecContext * | avctx, | |
AVSubtitle * | sub, | |||
int * | got_sub_ptr, | |||
AVPacket * | avpkt | |||
) |
Decodes a subtitle message.
Returns a negative value on error, otherwise returns the number of bytes used. If no subtitle could be decompressed, got_sub_ptr is zero. Otherwise, the subtitle is stored in *sub.
avctx | the codec context | |
[out] | sub | The AVSubtitle in which the decoded subtitle will be stored. |
[in,out] | got_sub_ptr | Zero if no subtitle could be decompressed, otherwise, it is nonzero. |
[in] | avpkt | The input AVPacket containing the input buffer. |
attribute_deprecated int avcodec_decode_video | ( | AVCodecContext * | avctx, | |
AVFrame * | picture, | |||
int * | got_picture_ptr, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) |
Decodes a video frame from buf into picture.
Wrapper function which calls avcodec_decode_video2.
avctx | the codec context | |
[out] | picture | The AVFrame in which the decoded video frame will be stored. |
[in] | buf | the input buffer |
[in] | buf_size | the size of the input buffer in bytes |
[in,out] | got_picture_ptr | Zero if no frame could be decompressed, otherwise, it is nonzero. |
avctx | the codec context | |
[out] | picture | The AVFrame in which the decoded video frame will be stored. |
[in] | buf | the input buffer |
[in] | buf_size | the size of the input buffer in bytes |
[in,out] | got_picture_ptr | Zero if no frame could be decompressed, otherwise, it is nonzero. |
int avcodec_decode_video2 | ( | AVCodecContext * | avctx, | |
AVFrame * | picture, | |||
int * | got_picture_ptr, | |||
AVPacket * | avpkt | |||
) |
Decodes the video frame of size avpkt->size from avpkt->data into picture.
Some decoders may support multiple frames in a single AVPacket, such decoders would then just decode the first frame.
The end of the input buffer buf should be set to 0 to ensure that no overreading happens for damaged MPEG streams.
avctx | the codec context | |
[out] | picture | The AVFrame in which the decoded video frame will be stored. |
[in] | avpkt | The input AVpacket containing the input buffer. You can create such packet with av_init_packet() and by then setting data and size, some decoders might in addition need other fields like flags&AV_PKT_FLAG_KEY. All decoders are designed to use the least fields possible. |
[in,out] | got_picture_ptr | Zero if no frame could be decompressed, otherwise, it is nonzero. |
int avcodec_default_execute | ( | AVCodecContext * | c, | |
int(*)(AVCodecContext *c2, void *arg2) | func, | |||
void * | arg, | |||
int * | ret, | |||
int | count, | |||
int | size | |||
) |
int avcodec_default_execute2 | ( | AVCodecContext * | c, | |
int(*)(AVCodecContext *c2, void *arg2, int, int) | func, | |||
void * | arg, | |||
int * | ret, | |||
int | count | |||
) |
void avcodec_default_free_buffers | ( | AVCodecContext * | s | ) |
int avcodec_default_get_buffer | ( | AVCodecContext * | s, | |
AVFrame * | pic | |||
) |
enum PixelFormat avcodec_default_get_format | ( | struct AVCodecContext * | s, | |
const enum PixelFormat * | fmt | |||
) |
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 | |||
) |
Encodes an audio frame from samples into buf.
avctx | the codec context | |
[out] | buf | the output buffer |
[in] | buf_size | the output buffer size |
[in] | samples | the input buffer containing the samples The number of samples read from this buffer is frame_size*channels, both of which are defined in avctx. For PCM audio the number of samples read from samples is equal to buf_size * input_sample_size / output_sample_size. |
int avcodec_encode_subtitle | ( | AVCodecContext * | avctx, | |
uint8_t * | buf, | |||
int | buf_size, | |||
const AVSubtitle * | sub | |||
) |
int avcodec_encode_video | ( | AVCodecContext * | avctx, | |
uint8_t * | buf, | |||
int | buf_size, | |||
const AVFrame * | pict | |||
) |
Encodes a video frame from pict into buf.
The input picture should be stored using a specific format, namely avctx.pix_fmt.
avctx | the codec context | |
[out] | buf | the output buffer for the bitstream of encoded frame |
[in] | buf_size | the size of the output buffer in bytes |
[in] | pict | the input picture to encode |
enum PixelFormat avcodec_find_best_pix_fmt | ( | int64_t | pix_fmt_mask, | |
enum PixelFormat | src_pix_fmt, | |||
int | has_alpha, | |||
int * | loss_ptr | |||
) |
Finds the best pixel format to convert to given a certain source pixel format.
When converting from one pixel format to another, information loss may occur. For example, when converting from RGB24 to GRAY, the color information will be lost. Similarly, other losses occur when converting from some formats to other formats. avcodec_find_best_pix_fmt() searches which of the given pixel formats should be used to suffer the least amount of loss. The pixel formats from which it chooses one, are determined by the pix_fmt_mask parameter.
src_pix_fmt = PIX_FMT_YUV420P; pix_fmt_mask = (1 << PIX_FMT_YUV422P) || (1 << PIX_FMT_RGB24); dst_pix_fmt = avcodec_find_best_pix_fmt(pix_fmt_mask, src_pix_fmt, alpha, &loss);
[in] | pix_fmt_mask | bitmask determining which pixel format to choose from |
[in] | src_pix_fmt | source pixel format |
[in] | has_alpha | Whether the source pixel format alpha channel is used. |
[out] | loss_ptr | Combination of flags informing you what kind of losses will occur. |
Definition at line 869 of file imgconvert.c.
AVCodec* avcodec_find_decoder_by_name | ( | const char * | name | ) |
AVCodec* avcodec_find_encoder_by_name | ( | const char * | name | ) |
void avcodec_flush_buffers | ( | AVCodecContext * | avctx | ) |
void avcodec_get_chroma_sub_sample | ( | enum PixelFormat | pix_fmt, | |
int * | h_shift, | |||
int * | v_shift | |||
) |
Definition at line 406 of file imgconvert.c.
void avcodec_get_context_defaults | ( | AVCodecContext * | s | ) |
Sets the fields of the given AVCodecContext to default values.
s | The AVCodecContext of which the fields should be set to default values. |
void avcodec_get_context_defaults2 | ( | AVCodecContext * | s, | |
enum | AVMediaType | |||
) |
unsigned avcodec_get_edge_width | ( | void | ) |
void avcodec_get_frame_defaults | ( | AVFrame * | pic | ) |
attribute_deprecated enum PixelFormat avcodec_get_pix_fmt | ( | const char * | name | ) |
Returns the pixel format corresponding to the name name.
If there is no pixel format with name name, then looks for a pixel format with the name corresponding to the native endian format of name. For example in a little-endian system, first looks for "gray16", then for "gray16le".
Finally if no pixel format has been found, returns PIX_FMT_NONE.
Finally if no pixel format has been found, returns PIX_FMT_NONE.
Definition at line 421 of file imgconvert.c.
int avcodec_get_pix_fmt_loss | ( | enum PixelFormat | dst_pix_fmt, | |
enum PixelFormat | src_pix_fmt, | |||
int | has_alpha | |||
) |
Computes what kind of losses will occur when converting from one specific pixel format to another.
When converting from one pixel format to another, information loss may occur. For example, when converting from RGB24 to GRAY, the color information will be lost. Similarly, other losses occur when converting from some formats to other formats. These losses can involve loss of chroma, but also loss of resolution, loss of color depth, loss due to the color space conversion, loss of the alpha bits or loss due to color quantization. avcodec_get_fix_fmt_loss() informs you about the various types of losses which will occur when converting from one pixel format to another.
[in] | dst_pix_fmt | destination pixel format |
[in] | src_pix_fmt | source pixel format |
[in] | has_alpha | Whether the source pixel format alpha channel is used. |
Definition at line 732 of file imgconvert.c.
const char* avcodec_get_pix_fmt_name | ( | enum PixelFormat | pix_fmt | ) |
Definition at line 412 of file imgconvert.c.
void avcodec_init | ( | void | ) |
const char* avcodec_license | ( | void | ) |
int avcodec_open | ( | AVCodecContext * | avctx, | |
AVCodec * | codec | |||
) |
Initializes the AVCodecContext to use the given AVCodec.
Prior to using this function the context has to be allocated.
The functions avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(), avcodec_find_decoder() and avcodec_find_encoder() provide an easy way for retrieving a codec.
avcodec_register_all(); codec = avcodec_find_decoder(CODEC_ID_H264); if (!codec) exit(1); context = avcodec_alloc_context(); if (avcodec_open(context, codec) < 0) exit(1);
avctx | The context which will be set up to use the given codec. | |
codec | The codec to use within the context. |
int avcodec_parse_frame | ( | AVCodecContext * | avctx, | |
uint8_t ** | pdata, | |||
int * | data_size_ptr, | |||
uint8_t * | buf, | |||
int | buf_size | |||
) |
void avcodec_pix_fmt_string | ( | char * | buf, | |
int | buf_size, | |||
enum PixelFormat | pix_fmt | |||
) |
Print in buf the string corresponding to the pixel format with number pix_fmt, or an header if pix_fmt is negative.
[in] | buf | the buffer where to write the string |
[in] | buf_size | the size of buf |
[in] | pix_fmt | the number of the pixel format to print the corresponding info string, or a negative value to print the corresponding header. Meaningful values for obtaining a pixel format info vary from 0 to PIX_FMT_NB -1. |
Definition at line 427 of file imgconvert.c.
unsigned int avcodec_pix_fmt_to_codec_tag | ( | enum PixelFormat | pix_fmt | ) |
void avcodec_register | ( | AVCodec * | codec | ) |
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.
Definition at line 48 of file allcodecs.c.
void avcodec_set_dimensions | ( | AVCodecContext * | s, | |
int | width, | |||
int | height | |||
) |
void avcodec_string | ( | char * | buf, | |
int | buf_size, | |||
AVCodecContext * | enc, | |||
int | encode | |||
) |
void avcodec_thread_free | ( | AVCodecContext * | s | ) |
Free what has been allocated by avcodec_thread_init().
Must be called after decoding has finished, especially do not call while avcodec_thread_execute() is running.
Free what has been allocated by avcodec_thread_init().
must be called after decoding has finished, especially do not call while avcodec_thread_execute() is running
Must be called after decoding has finished, especially do not call while avcodec_thread_execute() is running.
Free what has been allocated by avcodec_thread_init().
must be called after decoding has finished, especially do not call while avcodec_thread_execute() is running
Definition at line 78 of file beosthread.c.
int avcodec_thread_init | ( | AVCodecContext * | s, | |
int | thread_count | |||
) |
Definition at line 120 of file beosthread.c.
unsigned avcodec_version | ( | void | ) |
int avpicture_alloc | ( | AVPicture * | picture, | |
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height | |||
) |
Allocate memory for a picture.
Call avpicture_free to free it.
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 |
Definition at line 1084 of file imgconvert.c.
int avpicture_deinterlace | ( | AVPicture * | dst, | |
const AVPicture * | src, | |||
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height | |||
) |
Definition at line 1432 of file imgconvert.c.
int avpicture_fill | ( | AVPicture * | picture, | |
uint8_t * | ptr, | |||
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height | |||
) |
Fill in the AVPicture fields.
The fields of the given AVPicture are filled in by using the 'ptr' address which points to the image data buffer. Depending on the specified picture format, one or multiple image data pointers and line sizes will be set. If a planar format is specified, several pointers will be set pointing to the different picture planes and the line sizes of the different planes will be stored in the lines_sizes array. Call with ptr == NULL to get the required size for the ptr buffer.
picture | AVPicture whose fields are to be filled in | |
ptr | Buffer which will contain or contains the actual image data | |
pix_fmt | The format in which the picture data is stored. | |
width | the width of the image in pixels | |
height | the height of the image in pixels |
Definition at line 632 of file imgconvert.c.
void avpicture_free | ( | AVPicture * | picture | ) |
Free a picture previously allocated by avpicture_alloc().
picture | the AVPicture to be freed |
Definition at line 1106 of file imgconvert.c.
int avpicture_get_size | ( | enum PixelFormat | pix_fmt, | |
int | width, | |||
int | height | |||
) |
Calculate the size in bytes that a picture of the given width and height would occupy if stored in the given picture format.
Note that this returns the size of a compact representation as generated by avpicture_layout, which can be smaller than the size required for e.g. avpicture_fill.
pix_fmt | the given picture format | |
width | the width of the image | |
height | the height of the image |
Definition at line 715 of file imgconvert.c.
int avpicture_layout | ( | const AVPicture * | src, | |
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height, | |||
unsigned char * | dest, | |||
int | dest_size | |||
) |
Definition at line 645 of file imgconvert.c.
int img_get_alpha_info | ( | const AVPicture * | src, | |
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height | |||
) |
Tell if an image really has transparent alpha values.
Definition at line 1227 of file imgconvert.c.
attribute_deprecated void register_avcodec | ( | AVCodec * | codec | ) |