#include <errno.h>
#include "libavutil/samplefmt.h"
#include "libavutil/avutil.h"
#include "libavutil/cpu.h"
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"
#include "libavcodec/version.h"
#include "libavutil/audioconvert.h"
Go to the source code of this file.
Data Structures | |
struct | RcOverride |
struct | AVPanScan |
Pan Scan area. More... | |
struct | AVPacket |
struct | AVFrame |
Audio Video Frame. More... | |
struct | AVCodecContext |
main external API structure. More... | |
struct | AVProfile |
AVProfile. More... | |
struct | AVCodec |
AVCodec. More... | |
struct | AVHWAccel |
AVHWAccel. More... | |
struct | AVPicture |
four components are given, that's all. More... | |
struct | AVPaletteControl |
AVPaletteControl This structure defines a method for communicating palette changes between and demuxer and a decoder. More... | |
struct | AVSubtitleRect |
struct | AVSubtitle |
struct | AVCodecParserContext |
struct | AVCodecParser |
struct | AVBitStreamFilterContext |
struct | AVBitStreamFilter |
Defines | |
#define | SampleFormat AVSampleFormat |
#define | SAMPLE_FMT_NONE AV_SAMPLE_FMT_NONE |
#define | SAMPLE_FMT_U8 AV_SAMPLE_FMT_U8 |
#define | SAMPLE_FMT_S16 AV_SAMPLE_FMT_S16 |
#define | SAMPLE_FMT_S32 AV_SAMPLE_FMT_S32 |
#define | SAMPLE_FMT_FLT AV_SAMPLE_FMT_FLT |
#define | SAMPLE_FMT_DBL AV_SAMPLE_FMT_DBL |
#define | SAMPLE_FMT_NB AV_SAMPLE_FMT_NB |
#define | CH_FRONT_LEFT AV_CH_FRONT_LEFT |
#define | CH_FRONT_RIGHT AV_CH_FRONT_RIGHT |
#define | CH_FRONT_CENTER AV_CH_FRONT_CENTER |
#define | CH_LOW_FREQUENCY AV_CH_LOW_FREQUENCY |
#define | CH_BACK_LEFT AV_CH_BACK_LEFT |
#define | CH_BACK_RIGHT AV_CH_BACK_RIGHT |
#define | CH_FRONT_LEFT_OF_CENTER AV_CH_FRONT_LEFT_OF_CENTER |
#define | CH_FRONT_RIGHT_OF_CENTER AV_CH_FRONT_RIGHT_OF_CENTER |
#define | CH_BACK_CENTER AV_CH_BACK_CENTER |
#define | CH_SIDE_LEFT AV_CH_SIDE_LEFT |
#define | CH_SIDE_RIGHT AV_CH_SIDE_RIGHT |
#define | CH_TOP_CENTER AV_CH_TOP_CENTER |
#define | CH_TOP_FRONT_LEFT AV_CH_TOP_FRONT_LEFT |
#define | CH_TOP_FRONT_CENTER AV_CH_TOP_FRONT_CENTER |
#define | CH_TOP_FRONT_RIGHT AV_CH_TOP_FRONT_RIGHT |
#define | CH_TOP_BACK_LEFT AV_CH_TOP_BACK_LEFT |
#define | CH_TOP_BACK_CENTER AV_CH_TOP_BACK_CENTER |
#define | CH_TOP_BACK_RIGHT AV_CH_TOP_BACK_RIGHT |
#define | CH_STEREO_LEFT AV_CH_STEREO_LEFT |
#define | CH_STEREO_RIGHT AV_CH_STEREO_RIGHT |
#define | CH_LAYOUT_NATIVE AV_CH_LAYOUT_NATIVE |
Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output to be the native codec channel order. | |
#define | CH_LAYOUT_MONO AV_CH_LAYOUT_MONO |
#define | CH_LAYOUT_STEREO AV_CH_LAYOUT_STEREO |
#define | CH_LAYOUT_2_1 AV_CH_LAYOUT_2_1 |
#define | CH_LAYOUT_SURROUND AV_CH_LAYOUT_SURROUND |
#define | CH_LAYOUT_4POINT0 AV_CH_LAYOUT_4POINT0 |
#define | CH_LAYOUT_2_2 AV_CH_LAYOUT_2_2 |
#define | CH_LAYOUT_QUAD AV_CH_LAYOUT_QUAD |
#define | CH_LAYOUT_5POINT0 AV_CH_LAYOUT_5POINT0 |
#define | CH_LAYOUT_5POINT1 AV_CH_LAYOUT_5POINT1 |
#define | CH_LAYOUT_5POINT0_BACK AV_CH_LAYOUT_5POINT0_BACK |
#define | CH_LAYOUT_5POINT1_BACK AV_CH_LAYOUT_5POINT1_BACK |
#define | CH_LAYOUT_7POINT0 AV_CH_LAYOUT_7POINT0 |
#define | CH_LAYOUT_7POINT1 AV_CH_LAYOUT_7POINT1 |
#define | CH_LAYOUT_7POINT1_WIDE AV_CH_LAYOUT_7POINT1_WIDE |
#define | CH_LAYOUT_STEREO_DOWNMIX AV_CH_LAYOUT_STEREO_DOWNMIX |
#define | AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 |
#define | FF_INPUT_BUFFER_PADDING_SIZE 16 |
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_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_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_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_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_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_FLAG_OBMC 0x00000001 |
OBMC. | |
#define | CODEC_FLAG_H263P_AIV 0x00000008 |
H.263 alternative inter VLC. | |
#define | CODEC_FLAG_PART 0x0080 |
Use data partitioning. | |
#define | CODEC_FLAG_ALT_SCAN 0x00100000 |
Use alternate scan. | |
#define | CODEC_FLAG_H263P_UMV 0x02000000 |
unlimited motion vector | |
#define | CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000 |
#define | CODEC_FLAG_SVCD_SCAN_OFFSET 0x40000000 |
Will reserve space for SVCD scan offset user data. | |
#define | CODEC_FLAG2_INTRA_VLC 0x00000800 |
Use MPEG-2 intra VLC table. | |
#define | CODEC_FLAG2_DROP_FRAME_TIMECODE 0x00002000 |
timecode is in drop frame format. | |
#define | CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000 |
Use MPEG-2 nonlinear quantizer. | |
#define | CODEC_FLAG_EXTERN_HUFF 0x1000 |
Use external Huffman table (for MJPEG). | |
#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_MBTREE 0x00040000 |
Use macroblock tree ratecontrol (x264 only). | |
#define | CODEC_FLAG2_PSY 0x00080000 |
Use psycho visual optimizations. | |
#define | CODEC_FLAG2_SSIM 0x00100000 |
Compute SSIM during encoding, error[] values are undefined. | |
#define | CODEC_FLAG2_INTRA_REFRESH 0x00200000 |
Use periodic insertion of intra blocks instead of keyframes. | |
#define | CODEC_FLAG2_MEMC_ONLY 0x00001000 |
Only do ME/MC (I frames -> ref, P frame -> ME+MC). | |
#define | CODEC_FLAG2_BIT_RESERVOIR 0x00020000 |
Use a bit reservoir when encoding if possible. | |
#define | CODEC_CAP_DRAW_HORIZ_BAND 0x0001 |
#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 |
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_I_TYPE AV_PICTURE_TYPE_I |
Intra. | |
#define | FF_P_TYPE AV_PICTURE_TYPE_P |
Predicted. | |
#define | FF_B_TYPE AV_PICTURE_TYPE_B |
Bi-dir predicted. | |
#define | FF_S_TYPE AV_PICTURE_TYPE_S |
S(GMC)-VOP MPEG4. | |
#define | FF_SI_TYPE AV_PICTURE_TYPE_SI |
Switching Intra. | |
#define | FF_SP_TYPE AV_PICTURE_TYPE_SP |
Switching Predicted. | |
#define | FF_BI_TYPE AV_PICTURE_TYPE_BI |
#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 |
The packet contains a keyframe. | |
#define | AV_PKT_FLAG_CORRUPT 0x0002 |
The packet content is corrupted. | |
#define | AV_NUM_DATA_POINTERS 4 |
#define | FF_ASPECT_EXTENDED 15 |
#define | FF_RC_STRATEGY_XVID 1 |
#define | FF_BUG_AUTODETECT 1 |
autodetection | |
#define | FF_BUG_OLD_MSMPEG4 2 |
#define | FF_BUG_XVID_ILACE 4 |
#define | FF_BUG_UMP4 8 |
#define | FF_BUG_NO_PADDING 16 |
#define | FF_BUG_AMV 32 |
#define | FF_BUG_AC_VLC 0 |
Will be removed, libavcodec can now handle these non-compliant files by default. | |
#define | FF_BUG_QPEL_CHROMA 64 |
#define | FF_BUG_STD_QPEL 128 |
#define | FF_BUG_QPEL_CHROMA2 256 |
#define | FF_BUG_DIRECT_BLOCKSIZE 512 |
#define | FF_BUG_EDGE 1024 |
#define | FF_BUG_HPEL_CHROMA 2048 |
#define | FF_BUG_DC_CLIP 4096 |
#define | FF_BUG_MS 8192 |
Work around various bugs in Microsoft's broken decoders. | |
#define | FF_BUG_TRUNCATED 16384 |
#define | FF_COMPLIANCE_VERY_STRICT 2 |
Strictly conform to an older more strict version of the spec or reference software. | |
#define | FF_COMPLIANCE_STRICT 1 |
Strictly conform to all the things in the spec no matter what consequences. | |
#define | FF_COMPLIANCE_NORMAL 0 |
#define | FF_COMPLIANCE_UNOFFICIAL -1 |
Allow unofficial extensions. | |
#define | FF_COMPLIANCE_EXPERIMENTAL -2 |
Allow nonstandardized experimental things. | |
#define | FF_ER_CAREFUL 1 |
#define | FF_ER_COMPLIANT 2 |
#define | FF_ER_AGGRESSIVE 3 |
#define | FF_ER_VERY_AGGRESSIVE 4 |
#define | FF_ER_EXPLODE 5 |
#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_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_THREADS 0x00010000 |
#define | FF_DEBUG_VIS_MV_P_FOR 0x00000001 |
#define | FF_DEBUG_VIS_MV_B_FOR 0x00000002 |
#define | FF_DEBUG_VIS_MV_B_BACK 0x00000004 |
#define | FF_CMP_SAD 0 |
#define | FF_CMP_SSE 1 |
#define | FF_CMP_SATD 2 |
#define | FF_CMP_DCT 3 |
#define | FF_CMP_PSNR 4 |
#define | FF_CMP_BIT 5 |
#define | FF_CMP_RD 6 |
#define | FF_CMP_ZERO 7 |
#define | FF_CMP_VSAD 8 |
#define | FF_CMP_VSSE 9 |
#define | FF_CMP_NSSE 10 |
#define | FF_CMP_W53 11 |
#define | FF_CMP_W97 12 |
#define | FF_CMP_DCTMAX 13 |
#define | FF_CMP_DCT264 14 |
#define | FF_CMP_CHROMA 256 |
#define | FF_DTG_AFD_SAME 8 |
#define | FF_DTG_AFD_4_3 9 |
#define | FF_DTG_AFD_16_9 10 |
#define | FF_DTG_AFD_14_9 11 |
#define | FF_DTG_AFD_4_3_SP_14_9 13 |
#define | FF_DTG_AFD_16_9_SP_14_9 14 |
#define | FF_DTG_AFD_SP_4_3 15 |
#define | FF_DEFAULT_QUANT_BIAS 999999 |
#define | FF_CODER_TYPE_VLC 0 |
#define | FF_CODER_TYPE_AC 1 |
#define | FF_CODER_TYPE_RAW 2 |
#define | FF_CODER_TYPE_RLE 3 |
#define | FF_CODER_TYPE_DEFLATE 4 |
#define | SLICE_FLAG_CODED_ORDER 0x0001 |
draw_horiz_band() is called in coded order instead of display | |
#define | SLICE_FLAG_ALLOW_FIELD 0x0002 |
allow draw_horiz_band() with field slices (MPEG2 field pics) | |
#define | SLICE_FLAG_ALLOW_PLANE 0x0004 |
allow draw_horiz_band() with 1 component at a time (SVQ1) | |
#define | FF_MB_DECISION_SIMPLE 0 |
uses mb_cmp | |
#define | FF_MB_DECISION_BITS 1 |
chooses the one which needs the fewest bits | |
#define | FF_MB_DECISION_RD 2 |
rate distortion | |
#define | FF_AA_AUTO 0 |
#define | FF_AA_FASTINT 1 |
#define | FF_AA_INT 2 |
#define | FF_AA_FLOAT 3 |
#define | FF_PROFILE_UNKNOWN -99 |
#define | FF_PROFILE_RESERVED -100 |
#define | FF_PROFILE_AAC_MAIN 0 |
#define | FF_PROFILE_AAC_LOW 1 |
#define | FF_PROFILE_AAC_SSR 2 |
#define | FF_PROFILE_AAC_LTP 3 |
#define | FF_PROFILE_DTS 20 |
#define | FF_PROFILE_DTS_ES 30 |
#define | FF_PROFILE_DTS_96_24 40 |
#define | FF_PROFILE_DTS_HD_HRA 50 |
#define | FF_PROFILE_DTS_HD_MA 60 |
#define | FF_PROFILE_MPEG2_422 0 |
#define | FF_PROFILE_MPEG2_HIGH 1 |
#define | FF_PROFILE_MPEG2_SS 2 |
#define | FF_PROFILE_MPEG2_SNR_SCALABLE 3 |
#define | FF_PROFILE_MPEG2_MAIN 4 |
#define | FF_PROFILE_MPEG2_SIMPLE 5 |
#define | FF_PROFILE_H264_CONSTRAINED (1<<9) |
#define | FF_PROFILE_H264_INTRA (1<<11) |
#define | FF_PROFILE_H264_BASELINE 66 |
#define | FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED) |
#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_10_INTRA (110|FF_PROFILE_H264_INTRA) |
#define | FF_PROFILE_H264_HIGH_422 122 |
#define | FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA) |
#define | FF_PROFILE_H264_HIGH_444 144 |
#define | FF_PROFILE_H264_HIGH_444_PREDICTIVE 244 |
#define | FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA) |
#define | FF_PROFILE_H264_CAVLC_444 44 |
#define | FF_PROFILE_VC1_SIMPLE 0 |
#define | FF_PROFILE_VC1_MAIN 1 |
#define | FF_PROFILE_VC1_COMPLEX 2 |
#define | FF_PROFILE_VC1_ADVANCED 3 |
#define | FF_PROFILE_MPEG4_SIMPLE 0 |
#define | FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1 |
#define | FF_PROFILE_MPEG4_CORE 2 |
#define | FF_PROFILE_MPEG4_MAIN 3 |
#define | FF_PROFILE_MPEG4_N_BIT 4 |
#define | FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5 |
#define | FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6 |
#define | FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7 |
#define | FF_PROFILE_MPEG4_HYBRID 8 |
#define | FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9 |
#define | FF_PROFILE_MPEG4_CORE_SCALABLE 10 |
#define | FF_PROFILE_MPEG4_ADVANCED_CODING 11 |
#define | FF_PROFILE_MPEG4_ADVANCED_CORE 12 |
#define | FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13 |
#define | FF_PROFILE_MPEG4_SIMPLE_STUDIO 14 |
#define | FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15 |
#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 | FF_THREAD_FRAME 1 |
Decode more than one frame at once. | |
#define | FF_THREAD_SLICE 2 |
Decode more than one part of a single frame at once. | |
#define | AV_EF_CRCCHECK (1<<0) |
#define | AV_EF_BITSTREAM (1<<1) |
#define | AV_EF_BUFFER (1<<2) |
#define | AV_EF_EXPLODE (1<<3) |
#define | AV_EF_CAREFUL (1<<16) |
#define | AV_EF_COMPLIANT (1<<17) |
#define | AV_EF_AGGRESSIVE (1<<18) |
#define | AVPALETTE_SIZE 1024 |
#define | AVPALETTE_COUNT 256 |
#define | FF_LOSS_RESOLUTION 0x0001 |
loss due to resolution change | |
#define | FF_LOSS_DEPTH 0x0002 |
loss due to color depth change | |
#define | FF_LOSS_COLORSPACE 0x0004 |
loss due to color space conversion | |
#define | FF_LOSS_ALPHA 0x0008 |
loss of alpha bits | |
#define | FF_LOSS_COLORQUANT 0x0010 |
loss due to color quantization | |
#define | FF_LOSS_CHROMA 0x0020 |
loss of chroma (e.g. | |
#define | FF_ALPHA_TRANSP 0x0001 |
#define | FF_ALPHA_SEMI_TRANSP 0x0002 |
#define | AV_PARSER_PTS_NB 4 |
#define | PARSER_FLAG_COMPLETE_FRAMES 0x0001 |
#define | PARSER_FLAG_ONCE 0x0002 |
#define | PARSER_FLAG_FETCHED_OFFSET 0x0004 |
Set if the parser has a valid file offset. | |
Typedefs | |
typedef struct AVCodecDefault | AVCodecDefault |
typedef struct AVPaletteControl | attribute_deprecated |
AVPaletteControl This structure defines a method for communicating palette changes between and demuxer and a decoder. | |
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_PNG, CODEC_ID_PPM, CODEC_ID_PBM, CODEC_ID_PGM, CODEC_ID_PGMYUV, CODEC_ID_PAM, CODEC_ID_FFVHUFF, CODEC_ID_RV30, CODEC_ID_RV40, CODEC_ID_VC1, CODEC_ID_WMV3, CODEC_ID_LOCO, CODEC_ID_WNV1, CODEC_ID_AASC, CODEC_ID_INDEO2, CODEC_ID_FRAPS, CODEC_ID_TRUEMOTION2, CODEC_ID_BMP, CODEC_ID_CSCD, CODEC_ID_MMVIDEO, CODEC_ID_ZMBV, CODEC_ID_AVS, CODEC_ID_SMACKVIDEO, CODEC_ID_NUV, CODEC_ID_KMVC, CODEC_ID_FLASHSV, CODEC_ID_CAVS, CODEC_ID_JPEG2000, CODEC_ID_VMNC, CODEC_ID_VP5, CODEC_ID_VP6, CODEC_ID_VP6F, CODEC_ID_TARGA, CODEC_ID_DSICINVIDEO, CODEC_ID_TIERTEXSEQVIDEO, CODEC_ID_TIFF, CODEC_ID_GIF, CODEC_ID_FFH264, CODEC_ID_DXA, CODEC_ID_DNXHD, CODEC_ID_THP, CODEC_ID_SGI, CODEC_ID_C93, CODEC_ID_BETHSOFTVID, CODEC_ID_PTX, CODEC_ID_TXD, CODEC_ID_VP6A, CODEC_ID_AMV, CODEC_ID_VB, CODEC_ID_PCX, CODEC_ID_SUNRAST, CODEC_ID_INDEO4, CODEC_ID_INDEO5, CODEC_ID_MIMIC, CODEC_ID_RL2, CODEC_ID_8SVX_EXP, CODEC_ID_8SVX_FIB, CODEC_ID_ESCAPE124, CODEC_ID_DIRAC, CODEC_ID_BFI, CODEC_ID_CMV, CODEC_ID_MOTIONPIXELS, CODEC_ID_TGV, CODEC_ID_TGQ, CODEC_ID_TQI, CODEC_ID_AURA, CODEC_ID_AURA2, CODEC_ID_V210X, CODEC_ID_TMV, CODEC_ID_V210, CODEC_ID_DPX, CODEC_ID_MAD, CODEC_ID_FRWU, CODEC_ID_FLASHSV2, CODEC_ID_CDGRAPHICS, CODEC_ID_R210, CODEC_ID_ANM, CODEC_ID_BINKVIDEO, CODEC_ID_IFF_ILBM, CODEC_ID_IFF_BYTERUN1, CODEC_ID_KGV1, CODEC_ID_YOP, CODEC_ID_VP8, CODEC_ID_PICTOR, CODEC_ID_ANSI, CODEC_ID_A64_MULTI, CODEC_ID_A64_MULTI5, CODEC_ID_R10K, CODEC_ID_MXPEG, CODEC_ID_LAGARITH, CODEC_ID_PRORES, CODEC_ID_JV, CODEC_ID_DFA, CODEC_ID_WMV3IMAGE, CODEC_ID_VC1IMAGE, CODEC_ID_G723_1_DEPRECATED, CODEC_ID_G729_DEPRECATED, CODEC_ID_UTVIDEO_DEPRECATED, CODEC_ID_BMV_VIDEO, CODEC_ID_VBLE, CODEC_ID_DXTORY, CODEC_ID_V410, CODEC_ID_XWD, CODEC_ID_Y41P = MKBETAG('Y','4','1','P'), CODEC_ID_UTVIDEO = 0x800, CODEC_ID_ESCAPE130 = MKBETAG('E','1','3','0'), CODEC_ID_AVRP = MKBETAG('A','V','R','P'), CODEC_ID_G2M = MKBETAG( 0 ,'G','2','M'), CODEC_ID_V308 = MKBETAG('V','3','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_SONIC, CODEC_ID_SONIC_LS, CODEC_ID_FLAC, CODEC_ID_MP3ADU, CODEC_ID_MP3ON4, CODEC_ID_SHORTEN, CODEC_ID_ALAC, CODEC_ID_WESTWOOD_SND1, CODEC_ID_GSM, CODEC_ID_QDM2, CODEC_ID_COOK, CODEC_ID_TRUESPEECH, CODEC_ID_TTA, CODEC_ID_SMACKAUDIO, CODEC_ID_QCELP, CODEC_ID_WAVPACK, CODEC_ID_DSICINAUDIO, CODEC_ID_IMC, CODEC_ID_MUSEPACK7, CODEC_ID_MLP, CODEC_ID_GSM_MS, CODEC_ID_ATRAC3, CODEC_ID_VOXWARE, CODEC_ID_APE, CODEC_ID_NELLYMOSER, CODEC_ID_MUSEPACK8, CODEC_ID_SPEEX, CODEC_ID_WMAVOICE, CODEC_ID_WMAPRO, CODEC_ID_WMALOSSLESS, CODEC_ID_ATRAC3P, CODEC_ID_EAC3, CODEC_ID_SIPR, CODEC_ID_MP1, CODEC_ID_TWINVQ, CODEC_ID_TRUEHD, CODEC_ID_MP4ALS, CODEC_ID_ATRAC1, CODEC_ID_BINKAUDIO_RDFT, CODEC_ID_BINKAUDIO_DCT, CODEC_ID_AAC_LATM, CODEC_ID_QDMC, CODEC_ID_CELT, CODEC_ID_BMV_AUDIO, CODEC_ID_G729 = 0x15800, CODEC_ID_G723_1 = 0x15801, CODEC_ID_FFWAVESYNTH = MKBETAG('F','F','W','S'), CODEC_ID_8SVX_RAW = MKBETAG('8','S','V','X'), 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_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 | Motion_Est_ID { ME_ZERO = 1, ME_FULL, ME_LOG, ME_PHODS, ME_EPZS, ME_X1, ME_HEX, ME_UMH, ME_ITER, ME_TESA } |
motion estimation type. More... | |
enum | AVDiscard { AVDISCARD_NONE = -16, AVDISCARD_DEFAULT = 0, AVDISCARD_NONREF = 8, AVDISCARD_BIDIR = 16, AVDISCARD_NONKEY = 32, AVDISCARD_ALL = 48 } |
enum | AVColorPrimaries { AVCOL_PRI_BT709 = 1, AVCOL_PRI_UNSPECIFIED = 2, AVCOL_PRI_BT470M = 4, AVCOL_PRI_BT470BG = 5, AVCOL_PRI_SMPTE170M = 6, AVCOL_PRI_SMPTE240M = 7, AVCOL_PRI_FILM = 8, AVCOL_PRI_NB } |
enum | AVColorTransferCharacteristic { AVCOL_TRC_BT709 = 1, AVCOL_TRC_UNSPECIFIED = 2, AVCOL_TRC_GAMMA22 = 4, AVCOL_TRC_GAMMA28 = 5, AVCOL_TRC_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_YCGCO = 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 | AVLPCType { AV_LPC_TYPE_DEFAULT = -1, AV_LPC_TYPE_NONE = 0, AV_LPC_TYPE_FIXED = 1, AV_LPC_TYPE_LEVINSON = 2, AV_LPC_TYPE_CHOLESKY = 3, AV_LPC_TYPE_NB } |
LPC analysis type. More... | |
enum | 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 | AVPacketSideDataType { AV_PKT_DATA_PALETTE, AV_PKT_DATA_NEW_EXTRADATA, AV_PKT_DATA_PARAM_CHANGE } |
enum | AVSideDataParamChangeFlags { AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT = 0x0001, AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT = 0x0002, AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE = 0x0004, AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS = 0x0008 } |
An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows: u32le param_flags if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT) s32le channel_count if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT) u64le channel_layout if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE) s32le sample_rate if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS) s32le width s32le height. More... | |
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 } |
enum | AVLockOp { AV_LOCK_CREATE, AV_LOCK_OBTAIN, AV_LOCK_RELEASE, AV_LOCK_DESTROY } |
Lock operation used by lockmgr. More... | |
Functions | |
attribute_deprecated void | av_destruct_packet_nofree (AVPacket *pkt) |
void | av_destruct_packet (AVPacket *pkt) |
Default packet destructor. | |
void | av_init_packet (AVPacket *pkt) |
Initialize optional fields of a packet with default values. | |
int | av_new_packet (AVPacket *pkt, int size) |
Allocate the payload of a packet and initialize its fields with default values. | |
void | av_shrink_packet (AVPacket *pkt, int size) |
Reduce packet size, correctly zeroing padding. | |
int | av_grow_packet (AVPacket *pkt, int grow_by) |
Increase packet size, correctly zeroing padding. | |
int | av_dup_packet (AVPacket *pkt) |
void | av_free_packet (AVPacket *pkt) |
Free a packet. | |
uint8_t * | av_packet_new_side_data (AVPacket *pkt, enum AVPacketSideDataType type, int size) |
Allocate new information of a packet. | |
uint8_t * | av_packet_get_side_data (AVPacket *pkt, enum AVPacketSideDataType type, int *size) |
Get side information from packet. | |
int | av_packet_merge_side_data (AVPacket *pkt) |
int | av_packet_split_side_data (AVPacket *pkt) |
ReSampleContext * | av_audio_resample_init (int output_channels, int input_channels, int output_rate, int input_rate, enum AVSampleFormat sample_fmt_out, enum AVSampleFormat sample_fmt_in, int filter_length, int log2_phase_count, int linear, double cutoff) |
Initialize audio resampling context. | |
int | audio_resample (ReSampleContext *s, short *output, short *input, int nb_samples) |
void | audio_resample_close (ReSampleContext *s) |
Free resample context. | |
struct AVResampleContext * | av_resample_init (int out_rate, int in_rate, int filter_length, int log2_phase_count, int linear, double cutoff) |
Initialize an audio resampler. | |
int | av_resample (struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx) |
Resample an array of samples using a previously configured context. | |
void | av_resample_compensate (struct AVResampleContext *c, int sample_delta, int compensation_distance) |
Compensate samplerate/timestamp drift. | |
void | av_resample_close (struct AVResampleContext *c) |
int | avpicture_alloc (AVPicture *picture, enum PixelFormat pix_fmt, int width, int height) |
Allocate memory for a picture. | |
void | avpicture_free (AVPicture *picture) |
Free a picture previously allocated by avpicture_alloc(). | |
int | avpicture_fill (AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int width, int height) |
Fill in the AVPicture fields. | |
int | avpicture_layout (const AVPicture *src, enum PixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size) |
Copy pixel data from an AVPicture into a buffer. | |
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_name (enum CodecID id) |
Get the name of a codec. | |
attribute_deprecated const char * | avcodec_get_pix_fmt_name (enum PixelFormat pix_fmt) |
Return the short name for a pixel format. | |
void | avcodec_set_dimensions (AVCodecContext *s, int width, int height) |
unsigned int | avcodec_pix_fmt_to_codec_tag (enum PixelFormat pix_fmt) |
Return a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found. | |
size_t | av_get_codec_tag_string (char *buf, size_t buf_size, unsigned int codec_tag) |
Put a string representing the codec tag codec_tag in buf. | |
int | avcodec_get_pix_fmt_loss (enum PixelFormat dst_pix_fmt, enum PixelFormat src_pix_fmt, int has_alpha) |
Compute what kind of losses will occur when converting from one specific pixel format to another. | |
enum PixelFormat | avcodec_find_best_pix_fmt (int64_t pix_fmt_mask, enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) |
Find the best pixel format to convert to given a certain source pixel format. | |
enum PixelFormat | avcodec_find_best_pix_fmt2 (enum PixelFormat dst_pix_fmt1, enum PixelFormat dst_pix_fmt2, enum PixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) |
Find the best pixel format to convert to given a certain source pixel format and a selection of two destination pixel formats. | |
attribute_deprecated 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) |
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. | |
attribute_deprecated void | avcodec_init (void) |
void | avcodec_register (AVCodec *codec) |
Register the codec codec and initialize libavcodec. | |
AVCodec * | avcodec_find_encoder (enum CodecID id) |
Find a registered encoder with a matching codec ID. | |
AVCodec * | avcodec_find_encoder_by_name (const char *name) |
Find a registered encoder with the specified name. | |
AVCodec * | avcodec_find_decoder (enum CodecID id) |
Find a registered decoder with a matching codec ID. | |
AVCodec * | avcodec_find_decoder_by_name (const char *name) |
Find a registered decoder with the specified name. | |
void | avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode) |
const char * | av_get_profile_name (const AVCodec *codec, int profile) |
Return a name for the specified profile, if available. | |
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! | |
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). | |
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! | |
AVCodecContext * | avcodec_alloc_context3 (AVCodec *codec) |
Allocate an AVCodecContext and set its fields to default values. | |
int | avcodec_copy_context (AVCodecContext *dest, const AVCodecContext *src) |
Copy the settings of the source AVCodecContext into the destination AVCodecContext. | |
void | avcodec_get_frame_defaults (AVFrame *pic) |
Set the fields of the given AVFrame to default values. | |
AVFrame * | avcodec_alloc_frame (void) |
Allocate an AVFrame and set its fields to default values. | |
int | avcodec_default_get_buffer (AVCodecContext *s, AVFrame *pic) |
void | avcodec_default_release_buffer (AVCodecContext *s, AVFrame *pic) |
int | avcodec_default_reget_buffer (AVCodecContext *s, AVFrame *pic) |
unsigned | avcodec_get_edge_width (void) |
Return the amount of padding in pixels which the get_buffer callback must provide around the edge of the image for codecs which do not have the CODEC_FLAG_EMU_EDGE flag. | |
void | avcodec_align_dimensions (AVCodecContext *s, int *width, int *height) |
Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you do not use any horizontal padding. | |
void | avcodec_align_dimensions2 (AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POINTERS]) |
Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you also ensure that all line sizes are a multiple of the respective linesize_align[i]. | |
enum PixelFormat | avcodec_default_get_format (struct AVCodecContext *s, const enum PixelFormat *fmt) |
attribute_deprecated int | avcodec_thread_init (AVCodecContext *s, int thread_count) |
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) |
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. | |
attribute_deprecated int | avcodec_decode_audio3 (AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, AVPacket *avpkt) |
Wrapper function which calls avcodec_decode_audio4. | |
int | avcodec_decode_audio4 (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
Decode the audio frame of size avpkt->size from avpkt->data into frame. | |
int | avcodec_decode_video2 (AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const AVPacket *avpkt) |
Decode the video frame of size avpkt->size from avpkt->data into picture. | |
int | avcodec_decode_subtitle2 (AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) |
Decode a subtitle message. | |
void | avsubtitle_free (AVSubtitle *sub) |
Free all allocated data in the given subtitle struct. | |
int attribute_deprecated | avcodec_encode_audio (AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) |
Encode an audio frame from samples into buf. | |
int | avcodec_encode_audio2 (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Encode a frame of audio. | |
int | avcodec_fill_audio_frame (AVFrame *frame, int nb_channels, enum AVSampleFormat sample_fmt, const uint8_t *buf, int buf_size, int align) |
Fill audio frame data and linesize. | |
int | avcodec_encode_video (AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict) |
Encode a video frame from pict into buf. | |
int | avcodec_encode_subtitle (AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVSubtitle *sub) |
int | avcodec_close (AVCodecContext *avctx) |
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext itself). | |
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) |
attribute_deprecated char | av_get_pict_type_char (int pict_type) |
Return a single letter to describe the given picture type pict_type. | |
int | av_get_bits_per_sample (enum CodecID codec_id) |
Return codec bits per sample. | |
attribute_deprecated int | av_get_bits_per_sample_format (enum AVSampleFormat sample_fmt) |
AVCodecParser * | av_parser_next (AVCodecParser *c) |
void | av_register_codec_parser (AVCodecParser *parser) |
AVCodecParserContext * | av_parser_init (int codec_id) |
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, size_t min_size) |
Reallocate the given block if it is not large enough, otherwise do nothing. | |
void | av_fast_malloc (void *ptr, unsigned int *size, size_t min_size) |
Allocate a buffer, reusing the given one if large enough. | |
void | av_fast_padded_malloc (void *ptr, unsigned int *size, size_t min_size) |
Same behaviour av_fast_malloc but the buffer has additional FF_INPUT_PADDING_SIZE at the end which will will always be 0. | |
void | av_picture_copy (AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int width, int height) |
Copy image src to dst. | |
int | av_picture_crop (AVPicture *dst, const AVPicture *src, enum PixelFormat pix_fmt, int top_band, int left_band) |
Crop image top and left side. | |
int | av_picture_pad (AVPicture *dst, const AVPicture *src, int height, int width, enum PixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color) |
Pad image. | |
unsigned int | av_xiphlacing (unsigned char *s, unsigned int v) |
Encode extradata length to a buffer. | |
void | av_log_missing_feature (void *avc, const char *feature, int want_sample) |
Log a generic warning message about a missing feature. | |
void | av_log_ask_for_sample (void *avc, const char *msg,...) av_printf_format(2 |
Log a generic warning message asking for a sample. | |
void void | av_register_hwaccel (AVHWAccel *hwaccel) |
Register 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. | |
enum AVMediaType | avcodec_get_type (enum CodecID codec_id) |
Get the type of the given codec. | |
const AVClass * | avcodec_get_class (void) |
Get the AVClass for AVCodecContext. | |
const AVClass * | avcodec_get_frame_class (void) |
Get the AVClass for AVFrame. | |
int | avcodec_is_open (AVCodecContext *s) |
Definition in file avcodec.h.
#define AV_EF_AGGRESSIVE (1<<18) |
Definition at line 3218 of file avcodec.h.
Referenced by avcodec_open2(), decode_slice(), ff_mpeg4_pred_dc(), huffman_decode(), mpeg4_decode_block(), and mpeg_decode_slice().
#define AV_EF_BITSTREAM (1<<1) |
Definition at line 3212 of file avcodec.h.
Referenced by ff_mpeg4_pred_dc(), ff_msmpeg4_decode_block(), h261_decode_gob_header(), h263_decode_block(), huffman_decode(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg4_decode_block(), mpeg4_decode_dc(), and mpeg_decode_slice().
#define AV_EF_BUFFER (1<<2) |
#define AV_EF_CAREFUL (1<<16) |
Definition at line 3216 of file avcodec.h.
Referenced by ac3_decode_frame(), avcodec_open2(), decode_frame(), decode_init(), and read_specific_config().
#define AV_EF_COMPLIANT (1<<17) |
Definition at line 3217 of file avcodec.h.
Referenced by avcodec_open2(), ff_msmpeg4_decode_block(), h261_decode_gob_header(), h263_decode_block(), huffman_decode(), mpeg1_decode_picture(), mpeg1_decode_sequence(), and mpeg4_decode_dc().
#define AV_EF_CRCCHECK (1<<0) |
Definition at line 3211 of file avcodec.h.
Referenced by ac3_decode_frame(), decode_frame(), decode_init(), read_specific_config(), tta_decode_frame(), and tta_decode_init().
#define AV_EF_EXPLODE (1<<3) |
Definition at line 3214 of file avcodec.h.
Referenced by aac_decode_init(), avcodec_open2(), avi_read_header(), decode_chunks(), decode_slice_header(), ff_er_frame_end(), ff_h263_decode_frame(), ff_h264_execute_ref_pic_marking(), ff_mjpeg_decode_frame(), mjpegb_decode_frame(), mpeg_decode_frame(), mxpeg_decode_frame(), and slice_decode_thread().
#define AV_NUM_DATA_POINTERS 4 |
Definition at line 1018 of file avcodec.h.
Referenced by avcodec_align_dimensions(), avcodec_default_reget_buffer(), avcodec_default_release_buffer(), avcodec_fill_audio_frame(), ff_draw_horiz_band(), video_get_buffer(), and vp3_draw_horiz_band().
#define AV_PARSER_PTS_NB 4 |
Definition at line 4560 of file avcodec.h.
Referenced by av_parser_parse2(), and ff_fetch_timestamp().
#define AV_PKT_FLAG_CORRUPT 0x0002 |
The packet content is corrupted.
Definition at line 983 of file avcodec.h.
Referenced by av_read_packet(), handle_packet(), new_pes_packet(), and read_packet().
#define AV_PKT_FLAG_KEY 0x0001 |
The packet contains a keyframe.
Definition at line 982 of file avcodec.h.
Referenced by applehttp_read_packet(), asf_read_pts(), asf_write_packet(), avi_write_packet(), avpriv_dv_produce_packet(), avs_read_audio_packet(), avs_read_video_packet(), compute_pkt_fields(), dc1394_read_header(), decode_frame(), dirac_gptopts(), do_streamcopy(), do_video_out(), dv_extract_audio_info(), ea_read_packet(), ff_asf_parse_packet(), ff_mov_add_hinted_packet(), ff_rm_parse_packet(), ff_rm_retrieve_cache(), ffm_read_packet(), ffm_write_packet(), flashsv_decode_frame(), flush_encoders(), flv_read_packet(), flv_write_packet(), get_needed_flags(), http_prepare_data(), iff_read_packet(), lmlm4_read_packet(), lxf_read_packet(), main(), matroska_parse_block(), microdvd_read_packet(), mkv_write_packet(), mkv_write_packet_internal(), modplug_read_packet(), mov_create_chapter_track(), mov_read_packet(), mov_write_packet_internal(), mpeg_mux_write_packet(), mpegts_write_end(), mpegts_write_packet(), msnwc_tcp_read_packet(), nsv_read_chunk(), nut_read_packet(), nut_write_packet(), nuv_packet(), ogg_read_packet(), ogg_read_timestamp(), ogg_write_packet(), ogm_packet(), old_dirac_gptopts(), pkt_dump_internal(), prepare_packet(), put_payload_header(), qt_rtp_parse_packet(), read_frame_internal(), read_packet(), rm_write_audio(), rm_write_video(), rpl_read_packet(), search_hi_lo_keyframes(), seek_frame_generic(), seg_write_packet(), show_packet(), siff_read_packet(), srt_read_packet(), Stagefright_decode_frame(), theora_gptopts(), tmv_read_packet(), vc1t_read_packet(), vc1test_write_packet(), write_audio_frame(), write_frame(), write_timestamp(), write_video_frame(), xmv_fetch_video_packet(), and yop_read_packet().
#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 |
#define AVPALETTE_COUNT 256 |
Definition at line 3443 of file avcodec.h.
Referenced by cmv_process_header(), decode_frame(), rl2_decode_init(), tgv_decode_frame(), and xan_decode_frame().
#define AVPALETTE_SIZE 1024 |
Definition at line 3442 of file avcodec.h.
Referenced by asf_read_stream_properties(), cinepak_decode_frame(), cmv_decode_frame(), decode_dvd_subtitles(), decode_frame(), display_end_segment(), dvbsub_display_end_segment(), ff_asf_parse_packet(), flic_decode_frame_8BPP(), idcin_decode_frame(), idcin_read_packet(), ipvideo_decode_frame(), ipvideo_decode_opcodes(), load_ipmovie_packet(), mm_decode_frame(), mov_read_packet(), msrle_decode_frame(), msvideo1_decode_8bit(), msvideo1_decode_frame(), qtrle_decode_frame(), raw_decode(), rl2_decode_frame(), smc_decode_frame(), smc_decode_stream(), tgv_decode_frame(), and xan_decode_frame().
#define CH_BACK_CENTER AV_CH_BACK_CENTER |
#define CH_BACK_RIGHT AV_CH_BACK_RIGHT |
#define CH_FRONT_CENTER AV_CH_FRONT_CENTER |
#define CH_FRONT_LEFT_OF_CENTER AV_CH_FRONT_LEFT_OF_CENTER |
#define CH_FRONT_RIGHT AV_CH_FRONT_RIGHT |
#define CH_FRONT_RIGHT_OF_CENTER AV_CH_FRONT_RIGHT_OF_CENTER |
#define CH_LAYOUT_NATIVE AV_CH_LAYOUT_NATIVE |
Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output to be the native codec channel order.
#define CH_LAYOUT_STEREO_DOWNMIX AV_CH_LAYOUT_STEREO_DOWNMIX |
#define CH_LOW_FREQUENCY AV_CH_LOW_FREQUENCY |
#define CH_SIDE_RIGHT AV_CH_SIDE_RIGHT |
#define CH_STEREO_RIGHT AV_CH_STEREO_RIGHT |
#define CODEC_CAP_AUTO_THREADS 0x8000 |
Codec supports avctx->thread_count == 0 (auto).
Definition at line 824 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 802 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 772 of file avcodec.h.
Referenced by audio_decode_frame(), avcodec_decode_audio4(), avcodec_decode_video2(), avcodec_encode_audio2(), avcodec_encode_video(), 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 741 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 735 of file avcodec.h.
Referenced by 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 798 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 812 of file avcodec.h.
Referenced by validate_thread_parameters().
#define CODEC_CAP_HWACCEL_VDPAU 0x0080 |
Codec can export data for HW decoding (VDPAU).
Definition at line 781 of file avcodec.h.
Referenced by decode_nal_units(), execute_decode_slices(), ff_draw_horiz_band(), ff_er_frame_end(), ff_h263_decode_frame(), field_end(), MPV_frame_end(), and vc1_decode_frame().
#define CODEC_CAP_LOSSLESS 0x80000000 |
#define CODEC_CAP_NEG_LINESIZES 0x0800 |
#define CODEC_CAP_PARAM_CHANGE 0x4000 |
Codec supports changed parameters at any point.
Definition at line 820 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 816 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 777 of file avcodec.h.
Referenced by avcodec_encode_audio2(), and flush_encoders().
#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_CAP_TRUNCATED 0x0008 |
#define CODEC_CAP_VARIABLE_FRAME_SIZE 0x10000 |
Audio encoder supports receiving a different number of samples in each call.
Definition at line 828 of file avcodec.h.
Referenced by avcodec_encode_audio2().
#define CODEC_FLAG2_CHUNKS 0x00008000 |
Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries.
Definition at line 683 of file avcodec.h.
Referenced by decode_frame(), decode_nal_units(), and validate_thread_parameters().
#define CODEC_FLAG2_FAST 0x00000001 |
Allow non spec compliant speedup tricks.
Definition at line 678 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 681 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 680 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 684 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 682 of file avcodec.h.
Referenced by encode_thread().
#define CODEC_FLAG2_STRICT_GOP 0x00000002 |
Strictly enforce GOP size.
Definition at line 679 of file avcodec.h.
Referenced by select_input_picture().
#define CODEC_FLAG_4MV 0x0004 |
4 MV per MB allowed / advanced prediction for H.263.
Definition at line 649 of file avcodec.h.
Referenced by check_input_motion(), config(), ff_estimate_p_frame_motion(), ff_fix_long_p_mvs(), MPV_encode_init(), and parse_ffconfig().
#define CODEC_FLAG_AC_PRED 0x01000000 |
H.263 advanced intra coding / MPEG-4 AC prediction.
Definition at line 672 of file avcodec.h.
Referenced by mpeg4_encode_mb(), and MPV_encode_init().
#define CODEC_FLAG_BITEXACT 0x00800000 |
Use only bitexact stuff (except (I)DCT).
Definition at line 670 of file avcodec.h.
Referenced by aac_encode_frame(), ac3_decode_init(), avformat_write_header(), dsputil_init_mmx(), dsputil_init_pix_mmx(), dsputilenc_init_mmx(), encode_block(), encode_frame(), ff_ac3_encode_init(), ff_dct_common_init(), ff_fmt_convert_init_altivec(), ff_fmt_convert_init_arm(), ff_fmt_convert_init_x86(), ff_proresdsp_x86_init(), flac_write_header(), float_init_altivec(), jpeg_put_comments(), mkv_write_header(), mov_write_udta_tag(), mpeg4_encode_vol_header(), MPV_common_init_mmx(), mxf_write_header(), mxf_write_identification(), ogg_write_header(), and parse_ffconfig().
#define CODEC_FLAG_CBP_RD 0x04000000 |
Use rate distortion optimization for cbp.
Definition at line 673 of file avcodec.h.
Referenced by encode_mb_internal(), get_b_cbp(), get_p_cbp(), and MPV_encode_init().
#define CODEC_FLAG_CLOSED_GOP 0x80000000 |
Definition at line 677 of file avcodec.h.
Referenced by libschroedinger_encode_init(), mpeg1_encode_sequence_header(), mpeg4_encode_gop_header(), MPV_encode_init(), and select_input_picture().
#define CODEC_FLAG_EMU_EDGE 0x4000 |
Don't draw edges.
Definition at line 662 of file avcodec.h.
Referenced by add_input_streams(), alloc_buffer(), amv_encode_picture(), chroma_4mv_motion(), chroma_4mv_motion_lowres(), decode_frame(), decode_init(), decode_slice_header(), dirac_decode_init(), ff_draw_horiz_band(), ff_mspel_motion(), ff_rv34_decode_init(), ff_snow_frame_start(), gmc1_motion(), hpel_motion(), intra_predict(), load_input_picture(), mjpeg_decode_scan(), MPV_frame_end(), MPV_motion_internal(), stream_component_open(), svq3_mc_dir_part(), vc1_decode_init(), video_get_buffer(), and vp8_decode_frame().
#define CODEC_FLAG_GLOBAL_HEADER 0x00400000 |
Place global headers in extradata instead of every keyframe.
Definition at line 669 of file avcodec.h.
Referenced by aac_encode_init(), aacPlus_encode_init(), add_audio_stream(), add_video_stream(), av_parser_change(), avformat_write_header(), encode_init(), Faac_encode_init(), ffm_read_header(), ffm_write_header(), mpeg4_encode_picture_header(), new_output_stream(), remove_extradata(), X264_init(), and XAVS_init().
#define CODEC_FLAG_GRAY 0x2000 |
Only decode/encode grayscale.
Definition at line 661 of file avcodec.h.
Referenced by backup_mb_border(), comp_block(), dct_get(), decode_slice(), decode_slice_thread(), dnxhd_decode_macroblock(), encode_mb_internal(), encode_slice_data(), ff_h264_filter_mb(), ff_mspel_motion(), ff_wmv2_add_mb(), ff_xvmc_decode_mb(), gmc1_motion(), gmc_motion(), h264_filter_mb_fast_internal(), hl_decode_mb_444_internal(), hl_decode_mb_internal(), idct_put(), mc_dir_part(), mpeg_motion_internal(), mpeg_motion_lowres(), MPV_decode_mb_internal(), MPV_motion_internal(), MPV_motion_lowres(), qpel_motion(), render_slice(), svq1_decode_frame(), svq3_mc_dir_part(), tgq_idct_put_mb(), tgq_idct_put_mb_dconly(), tqi_idct_put(), unpack_dct_coeffs(), vble_decode_frame(), vc1_decode_b_mb(), vc1_decode_b_mb_intfi(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_init(), vc1_decode_p_mb(), vc1_decode_p_mb_intfi(), vc1_decode_p_mb_intfr(), vc1_interp_mc(), vc1_mc_1mv(), vc1_mc_4mv_chroma(), vc1_mc_4mv_chroma4(), vc1_smooth_overlap_filter_iblk(), and xchg_mb_border().
#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 658 of file avcodec.h.
Referenced by estimate_best_b_count(), and load_input_picture().
#define CODEC_FLAG_INTERLACED_DCT 0x00040000 |
Use interlaced DCT.
Definition at line 667 of file avcodec.h.
Referenced by dnxhd_encode_init(), do_video_out(), dv_guess_dct_mode(), encode_frame(), encode_mb_internal(), ff_dnxhd_find_cid(), MPV_encode_init(), X264_init(), and XAVS_init().
#define CODEC_FLAG_INTERLACED_ME 0x20000000 |
interlaced motion estimation
Definition at line 676 of file avcodec.h.
Referenced by check_input_motion(), do_video_out(), encode_picture(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), libdirac_encode_init(), libschroedinger_encode_init(), MPV_common_init(), and MPV_encode_init().
#define CODEC_FLAG_LOOP_FILTER 0x00000800 |
loop filter
Definition at line 675 of file avcodec.h.
Referenced by MPV_encode_init(), and X264_init().
#define CODEC_FLAG_LOW_DELAY 0x00080000 |
Force low delay.
Definition at line 668 of file avcodec.h.
Referenced by config(), decode_nal_units(), decode_vop_header(), ff_mpeg4_decode_picture_header(), mpeg1_decode_sequence(), mpeg_decode_sequence_extension(), MPV_encode_init(), validate_thread_parameters(), and vc1_decode_frame().
#define CODEC_FLAG_MV0 0x0040 |
Always try a MB with MV=<0,0>.
Definition at line 652 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 666 of file avcodec.h.
Referenced by adaptive_quantization().
#define CODEC_FLAG_PASS1 0x0200 |
Use internal 2pass ratecontrol in first pass mode.
Definition at line 659 of file avcodec.h.
Referenced by avcodec_string(), encode_bgra_bitstream(), encode_frame(), encode_init(), encode_thread(), ff_h263_encode_mb(), mpeg4_encode_mb(), MPV_encode_picture(), new_video_stream(), transcode_init(), vp8_encode(), vp8_init(), write_slice_end(), X264_init(), and XAVS_init().
#define CODEC_FLAG_PASS2 0x0400 |
Use internal 2pass ratecontrol in second pass mode.
Definition at line 660 of file avcodec.h.
Referenced by avcodec_string(), encode_frame(), encode_init(), encode_picture(), ff_rate_control_init(), ff_rate_control_uninit(), ff_rate_estimate_qscale(), MPV_encode_init(), new_video_stream(), select_input_picture(), transcode_init(), vp8_init(), X264_init(), and XAVS_init().
#define CODEC_FLAG_PSNR 0x8000 |
error[?] variables will be set during encoding.
Definition at line 663 of file avcodec.h.
Referenced by do_video_stats(), 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 674 of file avcodec.h.
Referenced by encode_mb_internal(), encode_thread(), and MPV_encode_init().
#define CODEC_FLAG_QPEL 0x0010 |
Use qpel MC.
Definition at line 650 of file avcodec.h.
Referenced by config(), estimate_best_b_count(), ff_init_me(), get_flags(), and MPV_encode_init().
#define CODEC_FLAG_QSCALE 0x0002 |
Use fixed qscale.
Definition at line 648 of file avcodec.h.
Referenced by aac_encode_frame(), config(), encode_init(), encode_picture(), estimate_best_b_count(), Faac_encode_init(), lame_window_init(), libdirac_encode_init(), libschroedinger_encode_init(), MP3lame_encode_init(), MPV_encode_init(), new_output_stream(), oggvorbis_init_encoder(), parse_ffconfig(), and vorbis_encode_init().
#define CODEC_FLAG_TRUNCATED 0x00010000 |
Definition at line 664 of file avcodec.h.
Referenced by ff_h263_decode_frame(), get_consumed_bytes(), mpeg_decode_frame(), validate_thread_parameters(), and video_decode_example().
#define FF_ALPHA_SEMI_TRANSP 0x0002 |
Definition at line 3886 of file avcodec.h.
Referenced by get_alpha_info_pal8(), and img_get_alpha_info().
#define FF_ALPHA_TRANSP 0x0001 |
Definition at line 3885 of file avcodec.h.
Referenced by get_alpha_info_pal8(), and img_get_alpha_info().
#define FF_ASPECT_EXTENDED 15 |
Definition at line 1462 of file avcodec.h.
Referenced by decode_vol_header(), ff_h263_aspect_to_info(), ff_h263_decode_picture_header(), ff_h263_encode_picture_header(), and mpeg4_encode_vol_header().
#define FF_BUFFER_HINTS_PRESERVE 0x04 |
Definition at line 910 of file avcodec.h.
Referenced by aasc_decode_frame(), bethsoftvid_decode_init(), cdg_init_frame(), cinepak_decode_frame(), cinvideo_decode_frame(), cmv_decode_frame(), copy_frame(), decode_frame(), flashsv_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), ir2_decode_frame(), mp_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), rpza_decode_frame(), seqvideo_decode_frame(), smc_decode_frame(), truemotion1_decode_frame(), ulti_decode_frame(), and xan_decode_frame().
#define FF_BUFFER_HINTS_READABLE 0x02 |
Definition at line 909 of file avcodec.h.
Referenced by avcodec_default_reget_buffer(), cdg_init_frame(), cmv_decode_frame(), decode_frame(), qtrle_decode_frame(), and smc_decode_frame().
#define FF_BUFFER_HINTS_REUSABLE 0x08 |
Definition at line 911 of file avcodec.h.
Referenced by aasc_decode_frame(), bethsoftvid_decode_init(), cdg_init_frame(), cinepak_decode_frame(), cinvideo_decode_frame(), copy_frame(), decode_frame(), flashsv_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), ir2_decode_frame(), mp_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), rpza_decode_frame(), seqvideo_decode_frame(), smc_decode_frame(), truemotion1_decode_frame(), ulti_decode_frame(), and xan_decode_frame().
#define FF_BUFFER_HINTS_VALID 0x01 |
Definition at line 908 of file avcodec.h.
Referenced by aasc_decode_frame(), aura_decode_frame(), bethsoftvid_decode_init(), cdg_init_frame(), cinepak_decode_frame(), cinvideo_decode_frame(), cmv_decode_frame(), copy_frame(), cyuv_decode_frame(), decode_frame(), flashsv_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), ir2_decode_frame(), mp_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), rpza_decode_frame(), seqvideo_decode_frame(), smc_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), truemotion1_decode_frame(), ulti_decode_frame(), and xan_decode_frame().
#define FF_BUFFER_TYPE_COPY 8 |
Just a (modified) copy of some other buffer, don't deallocate anything.
Definition at line 895 of file avcodec.h.
Referenced by ff_copy_picture(), ff_print_debug_info(), and update_frames().
#define FF_BUFFER_TYPE_INTERNAL 1 |
Definition at line 892 of file avcodec.h.
Referenced by audio_get_buffer(), avcodec_default_reget_buffer(), avcodec_default_release_buffer(), ff_mpeg_flush(), select_input_picture(), and video_get_buffer().
#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 894 of file avcodec.h.
Referenced by estimate_best_b_count(), ff_alloc_picture(), free_picture(), mpeg4_encode_mb(), select_input_picture(), and skip_check().
#define FF_BUFFER_TYPE_USER 2 |
direct rendering buffers (image is (de)allocated by user)
Definition at line 893 of file avcodec.h.
Referenced by codec_get_buffer(), codec_release_buffer(), ff_mpeg_flush(), select_input_picture(), and transcode_video().
#define FF_BUG_AC_VLC 0 |
#define FF_BUG_AUTODETECT 1 |
autodetection
Definition at line 1652 of file avcodec.h.
Referenced by decode_nal_units(), decode_slice(), and ff_h263_decode_frame().
#define FF_BUG_DC_CLIP 4096 |
Definition at line 1665 of file avcodec.h.
Referenced by ff_h263_decode_frame(), and ff_mpeg4_pred_dc().
#define FF_BUG_DIRECT_BLOCKSIZE 512 |
Definition at line 1662 of file avcodec.h.
Referenced by ff_h263_decode_frame(), and ff_mpeg4_set_direct_mv().
#define FF_BUG_EDGE 1024 |
Definition at line 1663 of file avcodec.h.
Referenced by decode_vop_header(), and ff_h263_decode_frame().
#define FF_BUG_HPEL_CHROMA 2048 |
Definition at line 1664 of file avcodec.h.
Referenced by ff_h263_decode_frame(), and mpeg_motion_internal().
#define FF_BUG_MS 8192 |
Work around various bugs in Microsoft's broken decoders.
Definition at line 1666 of file avcodec.h.
Referenced by encode_init(), mpeg4_encode_picture_header(), and mpeg4_encode_vol_header().
#define FF_BUG_NO_PADDING 16 |
Definition at line 1656 of file avcodec.h.
Referenced by decode_slice(), ff_h263_decode_frame(), and mpeg4_is_resync().
#define FF_BUG_QPEL_CHROMA 64 |
#define FF_BUG_QPEL_CHROMA2 256 |
#define FF_BUG_STD_QPEL 128 |
#define FF_BUG_TRUNCATED 16384 |
#define FF_BUG_UMP4 8 |
Definition at line 1655 of file avcodec.h.
Referenced by decode_vop_header(), and ff_h263_decode_frame().
#define FF_BUG_XVID_ILACE 4 |
Definition at line 1654 of file avcodec.h.
Referenced by ff_h263_decode_frame(), and mpeg4_decode_mb().
#define FF_CMP_BIT 5 |
#define FF_CMP_CHROMA 256 |
Definition at line 2136 of file avcodec.h.
Referenced by check_bidir_mv(), ff_init_me(), h263_mv4_search(), X264_init(), and XAVS_init().
#define FF_CMP_DCT 3 |
#define FF_CMP_DCT264 14 |
#define FF_CMP_DCTMAX 13 |
#define FF_CMP_NSSE 10 |
Definition at line 2131 of file avcodec.h.
Referenced by ff_set_cmp(), get_penalty_factor(), and sse_mb().
#define FF_CMP_PSNR 4 |
#define FF_CMP_RD 6 |
Definition at line 2127 of file avcodec.h.
Referenced by ff_set_cmp(), get_penalty_factor(), h263_mv4_search(), and interlaced_search().
#define FF_CMP_SAD 0 |
Definition at line 2121 of file avcodec.h.
Referenced by config(), ff_init_me(), ff_set_cmp(), filter(), and get_penalty_factor().
#define FF_CMP_SATD 2 |
#define FF_CMP_SSE 1 |
Definition at line 2122 of file avcodec.h.
Referenced by config(), ff_estimate_p_frame_motion(), ff_set_cmp(), and get_penalty_factor().
#define FF_CMP_VSAD 8 |
#define FF_CMP_VSSE 9 |
#define FF_CMP_W53 11 |
#define FF_CMP_W97 12 |
#define FF_CMP_ZERO 7 |
#define FF_CODER_TYPE_AC 1 |
#define FF_CODER_TYPE_RAW 2 |
#define FF_CODER_TYPE_VLC 0 |
Definition at line 2264 of file avcodec.h.
Referenced by libdirac_encode_init(), and libschroedinger_encode_init().
#define FF_COMPLIANCE_EXPERIMENTAL -2 |
Allow nonstandardized experimental things.
Definition at line 1701 of file avcodec.h.
Referenced by assert_codec_experimental(), avcodec_open2(), config(), encode_init(), mp3_header_compress(), and MPV_encode_init().
#define FF_COMPLIANCE_NORMAL 0 |
Definition at line 1699 of file avcodec.h.
Referenced by encode_init(), ff_fix_long_p_mvs(), ff_get_best_fcode(), mkv_query_codec(), mov_get_codec_tag(), and validate_codec_tag().
#define FF_COMPLIANCE_STRICT 1 |
Strictly conform to all the things in the spec no matter what consequences.
Definition at line 1698 of file avcodec.h.
Referenced by decode_postinit().
#define FF_COMPLIANCE_UNOFFICIAL -1 |
Allow unofficial extensions.
Definition at line 1700 of file avcodec.h.
Referenced by choose_pixel_fmt(), find_frame_rate_index(), libgsm_encode_init(), and MPV_encode_init().
#define FF_COMPLIANCE_VERY_STRICT 2 |
Strictly conform to an older more strict version of the spec or reference software.
Definition at line 1697 of file avcodec.h.
Referenced by mpeg4_encode_picture_header().
#define FF_COMPRESSION_DEFAULT -1 |
Definition at line 2824 of file avcodec.h.
Referenced by alac_encode_init(), encode_frame(), encode_init(), and MP3lame_encode_init().
#define FF_DCT_ALTIVEC 5 |
Definition at line 1921 of file avcodec.h.
Referenced by dsputil_init_ppc(), and MPV_common_init_altivec().
#define FF_DCT_AUTO 0 |
Definition at line 1916 of file avcodec.h.
Referenced by dsputil_init_bfin(), dsputil_init_ppc(), dsputilenc_init_mmx(), MPV_common_init_altivec(), MPV_common_init_mlib(), and MPV_common_init_mmx().
#define FF_DCT_FAAN 6 |
#define FF_DCT_FASTINT 1 |
#define FF_DCT_MLIB 4 |
#define FF_DCT_MMX 3 |
Definition at line 1919 of file avcodec.h.
Referenced by dsputilenc_init_mmx(), and MPV_common_init_mmx().
#define FF_DEBUG_BITSTREAM 4 |
Definition at line 2064 of file avcodec.h.
Referenced by decode_init(), and pcm_bluray_decode_frame().
#define FF_DEBUG_BUFFERS 0x00008000 |
Definition at line 2077 of file avcodec.h.
Referenced by audio_get_buffer(), avcodec_default_release_buffer(), ff_thread_release_buffer(), and video_get_buffer().
#define FF_DEBUG_BUGS 0x00001000 |
Definition at line 2074 of file avcodec.h.
Referenced by decode_unregistered_user_data(), and ff_h263_decode_frame().
#define FF_DEBUG_DCT_COEFF 0x00000040 |
Definition at line 2068 of file avcodec.h.
Referenced by ff_alloc_picture(), MPV_decode_mb_internal(), and transcode().
#define FF_DEBUG_ER 0x00000400 |
#define FF_DEBUG_MB_TYPE 8 |
#define FF_DEBUG_MMCO 0x00000800 |
Definition at line 2073 of file avcodec.h.
Referenced by ff_h264_execute_ref_pic_marking(), find_short(), print_long_term(), print_short_term(), and remove_short().
#define FF_DEBUG_MV 32 |
#define FF_DEBUG_PICT_INFO 1 |
Definition at line 2062 of file avcodec.h.
Referenced by decode_ext_header(), decode_frame(), decode_init(), decode_picture_timing(), decode_slice_header(), decode_vol_header(), decode_vop_header(), ff_flv_decode_picture_header(), ff_h263_show_pict_info(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_seq_parameter_set(), ff_mjpeg_decode_sos(), ff_wmv2_decode_secondary_picture_header(), mjpeg_decode_app(), mjpeg_decode_com(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg_decode_gop(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), msmpeg4_decode_picture_header(), pcm_bluray_parse_header(), rv10_decode_init(), rv20_decode_picture_header(), svq3_decode_frame(), and truemotion1_decode_header().
#define FF_DEBUG_PTS 0x00000200 |
#define FF_DEBUG_QP 16 |
Definition at line 2066 of file avcodec.h.
Referenced by ff_mjpeg_decode_frame(), ff_print_debug_info(), and mjpegb_decode_frame().
#define FF_DEBUG_RC 2 |
Definition at line 2063 of file avcodec.h.
Referenced by ff_rate_estimate_qscale(), ff_vbv_update(), and modify_qscale().
#define FF_DEBUG_SKIP 0x00000080 |
#define FF_DEBUG_STARTCODE 0x00000100 |
Definition at line 2070 of file avcodec.h.
Referenced by decode_chunks(), decode_codestream(), decode_frame(), decode_nal_units(), ff_h264_decode_sei(), ff_mjpeg_decode_frame(), ff_mpeg4_decode_picture_header(), and mjpeg_decode_app().
#define FF_DEBUG_THREADS 0x00010000 |
Definition at line 2078 of file avcodec.h.
Referenced by ff_thread_await_progress(), and ff_thread_report_progress().
#define FF_DEBUG_VIS_MB_TYPE 0x00004000 |
Definition at line 2076 of file avcodec.h.
Referenced by ff_print_debug_info(), frame_thread_init(), and transcode().
#define FF_DEBUG_VIS_MV_B_BACK 0x00000004 |
#define FF_DEBUG_VIS_MV_B_FOR 0x00000002 |
#define FF_DEBUG_VIS_MV_P_FOR 0x00000001 |
#define FF_DEBUG_VIS_QP 0x00002000 |
Definition at line 2075 of file avcodec.h.
Referenced by ff_print_debug_info(), frame_thread_init(), and transcode().
#define FF_DEFAULT_QUANT_BIAS 999999 |
Definition at line 2223 of file avcodec.h.
Referenced by dnxhd_encode_init(), and MPV_encode_init().
#define FF_EC_DEBLOCK 2 |
#define FF_EC_GUESS_MVS 1 |
#define FF_ER_AGGRESSIVE 3 |
#define FF_ER_CAREFUL 1 |
#define FF_ER_COMPLIANT 2 |
#define FF_ER_EXPLODE 5 |
#define FF_ER_VERY_AGGRESSIVE 4 |
#define FF_IDCT_ALTIVEC 8 |
#define FF_IDCT_ARM 7 |
#define FF_IDCT_AUTO 0 |
Definition at line 1965 of file avcodec.h.
Referenced by decode_init(), dsputil_init_alpha(), dsputil_init_arm(), dsputil_init_bfin(), dsputil_init_mmi(), dsputil_init_mmx(), dsputil_init_ppc(), dsputil_init_sh4(), ff_dsputil_init_armv5te(), ff_dsputil_init_armv6(), ff_dsputil_init_neon(), ff_h263_decode_frame(), ff_vp56_init(), tgq_decode_init(), tqi_decode_init(), vc1_decode_init(), vcr2_init_sequence(), vp3_decode_init(), and wmv2_decode_init().
#define FF_IDCT_BINK 24 |
#define FF_IDCT_CAVS 15 |
#define FF_IDCT_EA 21 |
Definition at line 1986 of file avcodec.h.
Referenced by calc_intra_matrix(), decode_init(), dsputil_init(), tgq_calculate_qtable(), tgq_decode_init(), tqi_calculate_qtable(), and tqi_decode_init().
#define FF_IDCT_FAAN 20 |
#define FF_IDCT_INT 1 |
#define FF_IDCT_LIBMPEG2MMX 4 |
#define FF_IDCT_MLIB 6 |
#define FF_IDCT_PS2 5 |
#define FF_IDCT_SH4 9 |
#define FF_IDCT_SIMPLE 2 |
Definition at line 1967 of file avcodec.h.
Referenced by decode_init(), parse_ffconfig(), and vcr2_init_sequence().
#define FF_IDCT_SIMPLEALPHA 23 |
#define FF_IDCT_SIMPLEARM 10 |
#define FF_IDCT_SIMPLEARMV5TE 16 |
#define FF_IDCT_SIMPLEARMV6 17 |
#define FF_IDCT_SIMPLEMMX 3 |
#define FF_IDCT_SIMPLENEON 22 |
#define FF_IDCT_SIMPLEVIS 18 |
#define FF_IDCT_VP3 12 |
Definition at line 1977 of file avcodec.h.
Referenced by dsputil_init(), dsputil_init_bfin(), dsputil_init_mmx(), dsputil_init_ppc(), ff_dsputil_init_neon(), ff_vp56_init(), render_slice(), and vp3_decode_init().
#define FF_IDCT_WMV2 19 |
Definition at line 1984 of file avcodec.h.
Referenced by dsputil_init(), vc1_decode_init(), and wmv2_decode_init().
#define FF_IDCT_XVIDMMX 14 |
Definition at line 1979 of file avcodec.h.
Referenced by dsputil_init_mmx(), and ff_h263_decode_frame().
#define FF_INPUT_BUFFER_PADDING_SIZE 16 |
Required number of additionally allocated bytes at the end of the input bitstream for decoding.
This is mainly needed because some optimized bitstream readers read 32 or 64 bit at once and could read over the end.
Note: If the first 23 bits of the additional bytes are not 0, then damaged MPEG bitstreams could cause overread and segfault.
Definition at line 516 of file avcodec.h.
Referenced by a64multi_init_encoder(), aac_adtstoasc_filter(), aac_decode_frame(), aac_encode_init(), aacPlus_encode_init(), adx_read_header(), aiff_read_header(), alloc_buffers(), apc_read_header(), asf_read_stream_properties(), atrac3_decode_init(), audio_decode_example(), av_fast_padded_malloc(), av_grow_packet(), av_new_packet(), av_packet_merge_side_data(), av_packet_new_side_data(), av_packet_split_side_data(), av_parser_change(), av_parser_parse2(), av_shrink_packet(), avcodec_copy_context(), avformat_find_stream_info(), avi_read_header(), avio_close_dyn_buf(), avisynth_read_header(), celt_header(), cook_decode_init(), decode_frame(), decode_i_frame(), decode_init(), decode_p_frame(), decode_plane(), decode_stream_header(), dshow_add_device(), dump_extradata(), dv_decode_video_segment(), encode_init(), extract_header(), Faac_encode_init(), ff_alloc_packet(), ff_asf_parse_packet(), ff_combine_frame(), ff_h263_decode_frame(), ff_h264_decode_nal(), ff_mp4_read_dec_config_descr(), ff_mpeg_update_thread_context(), ff_parse_mpeg2_descriptor(), fixup_vorbis_headers(), flac_header(), flac_read_header(), flic_decode_frame_8BPP(), flv_get_extradata(), flv_queue_extradata(), h264_mp4toannexb_filter(), h264_new_context(), handle_packets(), iff_read_header(), imx_dump_header(), latm_decode_audio_specific_config(), matroska_fix_ass_packet(), matroska_read_header(), mjpega_dump_header(), mov2textsub(), mov_read_extradata(), mov_read_glbl(), mov_read_smi(), mov_read_strf(), mov_read_stsz(), mov_read_wave(), mp3_header_compress(), mp3_header_decompress(), mp_decode_frame(), mpc8_parse_seektable(), mpc8_read_header(), mpc_read_header(), mpegts_push_data(), mxf_read_generic_descriptor(), mxg_update_cache(), new_pes_packet(), noise(), oggvorbis_encode_init(), oma_read_header(), parse_fmtp_config(), parse_packed_headers(), qdm2_parse_config(), qt_rtp_parse_packet(), rdt_parse_b64buf(), read_header(), read_kuki_chunk(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_extradata(), sdp_parse_fmtp_config_h264(), spdif_write_packet(), speex_header(), Stagefright_init(), submit_packet(), svq3_decode_frame(), svq3_parse_packet(), text2movsub(), theora_header(), tiff_unpack_strip(), transcode_init(), tta_read_header(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_headers(), vfw_read_header(), video_decode_example(), vmd_read_header(), vqf_read_header(), wma_decode_superframe(), wsvqa_read_header(), wv_get_value_float(), xmv_process_packet_header(), xwma_read_header(), and yop_read_header().
#define FF_LEVEL_UNKNOWN -99 |
Definition at line 2583 of file avcodec.h.
Referenced by encode_init(), and mpeg4_encode_visual_object_header().
#define FF_LOSS_ALPHA 0x0008 |
loss of alpha bits
Definition at line 3799 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt2(), and avcodec_get_pix_fmt_loss().
#define FF_LOSS_CHROMA 0x0020 |
loss of chroma (e.g.
RGB to gray conversion)
Definition at line 3801 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt2(), and avcodec_get_pix_fmt_loss().
#define FF_LOSS_COLORQUANT 0x0010 |
loss due to color quantization
Definition at line 3800 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt2(), and avcodec_get_pix_fmt_loss().
#define FF_LOSS_COLORSPACE 0x0004 |
loss due to color space conversion
Definition at line 3798 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt2(), and avcodec_get_pix_fmt_loss().
#define FF_LOSS_DEPTH 0x0002 |
loss due to color depth change
Definition at line 3797 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt2(), and avcodec_get_pix_fmt_loss().
#define FF_LOSS_RESOLUTION 0x0001 |
loss due to resolution change
Definition at line 3796 of file avcodec.h.
Referenced by avcodec_find_best_pix_fmt2(), and avcodec_get_pix_fmt_loss().
#define FF_MAX_B_FRAMES 16 |
#define FF_MB_DECISION_BITS 1 |
chooses the one which needs the fewest bits
Definition at line 2315 of file avcodec.h.
Referenced by encode_thread(), and parse_ffconfig().
#define FF_MB_DECISION_RD 2 |
rate distortion
Definition at line 2316 of file avcodec.h.
Referenced by dnxhd_calc_bits_thread(), dnxhd_encode_picture(), dnxhd_init_rc(), encode_mb_hq(), MPV_decode_mb_internal(), and MPV_encode_init().
#define FF_MB_DECISION_SIMPLE 0 |
uses mb_cmp
Definition at line 2314 of file avcodec.h.
Referenced by clip_coeffs(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), and MPV_encode_init().
#define FF_MIN_BUFFER_SIZE 16384 |
minimum encoding buffer size Used to avoid some checks during header writing.
Definition at line 522 of file avcodec.h.
Referenced by avcodec_encode_video().
#define FF_PROFILE_AAC_LOW 1 |
Definition at line 2521 of file avcodec.h.
Referenced by aac_encode_init(), aacPlus_encode_init(), and Faac_encode_init().
#define FF_PROFILE_AAC_LTP 3 |
#define FF_PROFILE_AAC_MAIN 0 |
#define FF_PROFILE_AAC_SSR 2 |
#define FF_PROFILE_DTS 20 |
#define FF_PROFILE_DTS_96_24 40 |
#define FF_PROFILE_DTS_ES 30 |
#define FF_PROFILE_DTS_HD_HRA 50 |
#define FF_PROFILE_DTS_HD_MA 60 |
#define FF_PROFILE_H264_BASELINE 66 |
#define FF_PROFILE_H264_CONSTRAINED (1<<9) |
#define FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED) |
#define FF_PROFILE_H264_HIGH_10 110 |
#define FF_PROFILE_H264_HIGH_10_INTRA (110|FF_PROFILE_H264_INTRA) |
#define FF_PROFILE_H264_HIGH_422 122 |
#define FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA) |
#define FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA) |
#define FF_PROFILE_H264_HIGH_444_PREDICTIVE 244 |
#define FF_PROFILE_H264_INTRA (1<<11) |
#define FF_PROFILE_UNKNOWN -99 |
Definition at line 2517 of file avcodec.h.
Referenced by aac_encode_init(), aacPlus_encode_init(), av_get_profile_name(), avcodec_string(), encode_init(), Faac_encode_init(), mpeg4_encode_visual_object_header(), prores_encode_init(), and vp8_init().
#define FF_QSCALE_TYPE_H264 2 |
#define FF_QSCALE_TYPE_MPEG2 1 |
#define FF_QSCALE_TYPE_VP56 3 |
#define FF_RC_STRATEGY_XVID 1 |
Definition at line 1579 of file avcodec.h.
Referenced by ff_rate_control_init(), ff_rate_control_uninit(), and ff_rate_estimate_qscale().
#define FF_SP_TYPE AV_PICTURE_TYPE_SP |
#define FF_THREAD_FRAME 1 |
Decode more than one frame at once.
Definition at line 3162 of file avcodec.h.
Referenced by avcodec_decode_video2(), avcodec_flush_buffers(), avcodec_open2(), await_reference_mb_row(), decode_nal_units(), decode_slice_header(), ff_h263_decode_frame(), ff_rv34_decode_frame(), ff_thread_finish_setup(), ff_thread_free(), ff_thread_get_buffer(), ff_thread_init(), ff_thread_release_buffer(), field_end(), finish_frame(), hl_motion(), mimic_decode_frame(), mpeg_field_start(), MPV_common_end(), MPV_decode_mb_internal(), MPV_frame_start(), render_slice(), rv34_decode_mv(), rv34_decode_slice(), rv34_mc(), slice_end(), validate_thread_parameters(), video_get_buffer(), and vp3_draw_horiz_band().
#define FF_THREAD_SLICE 2 |
Decode more than one part of a single frame at once.
Definition at line 3163 of file avcodec.h.
Referenced by avcodec_thread_execute(), decode_chunks(), decode_slice_header(), ff_thread_init(), MPV_common_init(), and validate_thread_parameters().
#define MB_TYPE_16x16 0x0008 |
Definition at line 838 of file avcodec.h.
Referenced by decode_mb_skip(), ff_er_frame_end(), ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_mpeg4_set_direct_mv(), fill_decode_caches(), filter_mb_dir(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), pred_spatial_direct_motion(), pred_temp_direct_motion(), preview_obmc(), svq3_decode_mb(), vc1_decode_b_mb_intfi(), vc1_decode_p_mb(), and vc1_decode_p_mb_intfi().
#define MB_TYPE_16x8 0x0010 |
Definition at line 839 of file avcodec.h.
Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_mpeg4_set_direct_mv(), fill_decode_caches(), get_dct8x8_allowed(), mpeg4_decode_mb(), mpeg_decode_mb(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
#define MB_TYPE_8x16 0x0020 |
Definition at line 840 of file avcodec.h.
Referenced by filter_mb_dir(), get_dct8x8_allowed(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
#define MB_TYPE_8x8 0x0040 |
Definition at line 841 of file avcodec.h.
Referenced by ff_h263_decode_mb(), ff_h263_update_motion_val(), ff_mpeg4_set_direct_mv(), fill_decode_caches(), get_dct8x8_allowed(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), pred_spatial_direct_motion(), pred_temp_direct_motion(), and preview_obmc().
#define MB_TYPE_ACPRED 0x0200 |
Definition at line 844 of file avcodec.h.
Referenced by ff_h263_decode_mb(), mpeg4_decode_mb(), and mpeg4_decode_partition_b().
#define MB_TYPE_CBP 0x00020000 |
#define MB_TYPE_DIRECT2 0x0100 |
Definition at line 843 of file avcodec.h.
Referenced by decode_cabac_mb_ref(), decode_mb_skip(), ff_mpeg4_set_direct_mv(), fill_decode_caches(), get_dct8x8_allowed(), mpeg4_decode_mb(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
#define MB_TYPE_GMC 0x0400 |
Definition at line 845 of file avcodec.h.
Referenced by mpeg4_decode_mb(), and mpeg4_decode_partition_a().
#define MB_TYPE_INTERLACED 0x0080 |
Definition at line 842 of file avcodec.h.
Referenced by decode_mb_skip(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_mpeg4_set_direct_mv(), mpeg4_decode_mb(), mpeg_decode_mb(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
#define MB_TYPE_INTRA16x16 0x0002 |
Definition at line 836 of file avcodec.h.
Referenced by decode_cabac_intra_mb_type(), rv34_decode_intra_mb_header(), and svq3_decode_mb().
#define MB_TYPE_INTRA4x4 0x0001 |
#define MB_TYPE_INTRA_PCM 0x0004 |
#define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0) |
Definition at line 851 of file avcodec.h.
Referenced by ff_er_frame_end(), ff_h263_decode_mb(), ff_h263_update_motion_val(), h261_decode_mb(), h261_decode_mb_skipped(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), pred_spatial_direct_motion(), preview_obmc(), and rv34_pred_mv_b().
#define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1) |
Definition at line 853 of file avcodec.h.
Referenced by decode_mb_skip(), ff_mpeg4_set_direct_mv(), mpeg4_decode_mb(), mpeg_decode_mb(), pred_spatial_direct_motion(), and pred_temp_direct_motion().
#define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1) |
#define MB_TYPE_P0L0 0x1000 |
Definition at line 847 of file avcodec.h.
Referenced by decode_mb_skip(), and pred_temp_direct_motion().
#define MB_TYPE_P0L1 0x4000 |
#define MB_TYPE_P1L0 0x2000 |
Definition at line 848 of file avcodec.h.
Referenced by decode_mb_skip(), and pred_spatial_direct_motion().
#define MB_TYPE_P1L1 0x8000 |
#define MB_TYPE_QUANT 0x00010000 |
#define MB_TYPE_SKIP 0x0800 |
Definition at line 846 of file avcodec.h.
Referenced by decode_mb_skip(), ff_h263_decode_mb(), ff_h264_decode_mb_cabac(), fill_decode_caches(), h261_decode_mb_skipped(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg_decode_mb(), msmpeg4v34_decode_mb(), parse_mb_skip(), preview_obmc(), svq3_decode_mb(), vc1_decode_p_mb(), and vc1_decode_p_mb_intfr().
#define PARSER_FLAG_COMPLETE_FRAMES 0x0001 |
Definition at line 4567 of file avcodec.h.
Referenced by avformat_find_stream_info(), cavsvideo_parse(), dca_parse(), dirac_parse(), dnxhd_parse(), flac_parse(), h261_parse(), h263_parse(), h264_parse(), init(), jpeg_parse(), latm_parse(), mpeg4video_parse(), mpegvideo_parse(), read_frame_internal(), and vc1_parse().
#define PARSER_FLAG_FETCHED_OFFSET 0x0004 |
Set if the parser has a valid file offset.
Definition at line 4570 of file avcodec.h.
Referenced by av_parser_parse2().
#define PARSER_FLAG_ONCE 0x0002 |
#define SAMPLE_FMT_U8 AV_SAMPLE_FMT_U8 |
#define SampleFormat AVSampleFormat |
#define SLICE_FLAG_ALLOW_FIELD 0x0002 |
allow draw_horiz_band() with field slices (MPEG2 field pics)
Definition at line 2298 of file avcodec.h.
Referenced by ff_draw_horiz_band().
#define SLICE_FLAG_ALLOW_PLANE 0x0004 |
#define SLICE_FLAG_CODED_ORDER 0x0001 |
draw_horiz_band() is called in coded order instead of display
Definition at line 2297 of file avcodec.h.
Referenced by ff_draw_horiz_band().
#define X264_PART_B8X8 0x100 |
#define X264_PART_I4X4 0x001 |
#define X264_PART_I8X8 0x002 |
#define X264_PART_P4X4 0x020 |
#define X264_PART_P8X8 0x010 |
typedef struct AVPaletteControl attribute_deprecated |
AVPaletteControl This structure defines a method for communicating palette changes between and demuxer and a decoder.
typedef struct AVCodecDefault AVCodecDefault |
typedef struct ReSampleContext ReSampleContext |
enum AVAudioServiceType |
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 AVFieldOrder |
enum AVLockOp |
enum AVLPCType |
LPC analysis type.
enum AVPacketSideDataType |
An AV_PKT_DATA_PARAM_CHANGE side data packet is laid out as follows: u32le param_flags if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT) s32le channel_count if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT) u64le channel_layout if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE) s32le sample_rate if (param_flags & AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS) s32le width s32le height.
enum AVSubtitleType |
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 independantly add CodecIDs without producing conflicts.
enum Motion_Est_ID |
motion estimation type.
int audio_resample | ( | ReSampleContext * | s, | |
short * | output, | |||
short * | input, | |||
int | nb_samples | |||
) |
Definition at line 279 of file resample.c.
void audio_resample_close | ( | ReSampleContext * | s | ) |
Free resample context.
s | a non-NULL pointer to a resample context previously created with av_audio_resample_init() |
Definition at line 415 of file resample.c.
ReSampleContext* av_audio_resample_init | ( | int | output_channels, | |
int | input_channels, | |||
int | output_rate, | |||
int | input_rate, | |||
enum AVSampleFormat | sample_fmt_out, | |||
enum AVSampleFormat | sample_fmt_in, | |||
int | filter_length, | |||
int | log2_phase_count, | |||
int | linear, | |||
double | cutoff | |||
) |
Initialize audio resampling context.
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 frequency | |
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 198 of file resample.c.
void av_bitstream_filter_close | ( | AVBitStreamFilterContext * | bsf | ) |
Definition at line 50 of file bitstream_filter.c.
Referenced by exit_program(), Stagefright_close(), Stagefright_init(), and uninit().
int av_bitstream_filter_filter | ( | AVBitStreamFilterContext * | bsfc, | |
AVCodecContext * | avctx, | |||
const char * | args, | |||
uint8_t ** | poutbuf, | |||
int * | poutbuf_size, | |||
const uint8_t * | buf, | |||
int | buf_size, | |||
int | keyframe | |||
) |
Definition at line 58 of file bitstream_filter.c.
Referenced by decode(), init(), Stagefright_decode_frame(), and write_frame().
AVBitStreamFilterContext* av_bitstream_filter_init | ( | const char * | name | ) |
Definition at line 35 of file bitstream_filter.c.
Referenced by init(), new_output_stream(), and Stagefright_init().
AVBitStreamFilter* av_bitstream_filter_next | ( | AVBitStreamFilter * | f | ) |
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().
void av_destruct_packet | ( | AVPacket * | pkt | ) |
Default packet destructor.
Definition at line 43 of file avpacket.c.
Referenced by a64_write_trailer(), av_dup_packet(), av_new_packet(), av_packet_merge_side_data(), do_streamcopy(), dshow_read_close(), matroska_merge_packets(), mkv_write_trailer(), new_pes_packet(), prepare_packet(), qt_rtp_parse_packet(), read_packet(), svq3_parse_packet(), vfw_read_close(), write_frame(), and xiph_handle_packet().
attribute_deprecated void av_destruct_packet_nofree | ( | AVPacket * | pkt | ) |
Definition at line 27 of file avpacket.c.
Referenced by av_dup_packet().
int av_dup_packet | ( | AVPacket * | pkt | ) |
Definition at line 126 of file avpacket.c.
Referenced by av_read_frame(), avformat_find_stream_info(), ff_interleave_add_packet(), and packet_queue_put().
void av_fast_malloc | ( | void * | ptr, | |
unsigned int * | size, | |||
size_t | min_size | |||
) |
Allocate 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. |
Definition at line 85 of file utils.c.
Referenced by codec_reinit(), decode_frame(), decode_i_frame(), decode_p_frame(), do_audio_out(), ff_h263_decode_frame(), ff_h264_decode_nal(), ff_id3v2_parse(), ff_mpeg_update_thread_context(), ljpeg_decode_rgb_scan(), mp_decode_frame(), parse_picture_segment(), pmp_packet(), spdif_header_dts4(), spdif_write_packet(), submit_packet(), svq3_decode_frame(), truemotion1_decode_header(), and truemotion1_decode_init().
void av_fast_padded_malloc | ( | void * | ptr, | |
unsigned int * | size, | |||
size_t | min_size | |||
) |
Same behaviour av_fast_malloc but the buffer has additional FF_INPUT_PADDING_SIZE at the end which will will always be 0.
In addition the whole buffer will initially and after resizes be 0-initialized so that no uninitialized data will ever appear.
Definition at line 90 of file utils.c.
Referenced by decode_frame(), ff_mjpeg_find_marker(), mimic_decode_frame(), mpc7_decode_frame(), and tqi_decode_frame().
void* av_fast_realloc | ( | void * | ptr, | |
unsigned int * | size, | |||
size_t | min_size | |||
) |
Reallocate the given block if it is not large enough, otherwise do nothing.
Definition at line 56 of file utils.c.
Referenced by caf_write_packet(), commit_slices(), decode_frame(), decode_slice(), dirac_combine_frame(), ff_add_index_entry(), ff_combine_frame(), ff_mms_asf_header_parser(), ff_vaapi_alloc_slice(), ff_vdpau_add_data_chunk(), flac_fifo_read_wrap(), get_stats(), mkv_copy_packet(), mxg_update_cache(), read_frame(), read_header(), shorten_decode_frame(), and spdif_header_eac3().
void av_free_packet | ( | AVPacket * | pkt | ) |
Free a packet.
pkt | packet to free |
Definition at line 156 of file avpacket.c.
Referenced by adx_read_packet(), amr_read_packet(), applehttp_read_seek(), asf_read_header(), asf_read_pts(), asf_reset_header(), asfrtp_parse_packet(), audio_decode_frame(), audio_read_packet(), av_get_packet(), av_interleaved_write_frame(), av_packet_merge_side_data(), av_read_packet(), av_write_trailer(), avformat_free_context(), avi_read_close(), avs_read_video_packet(), cin_read_packet(), dfa_read_packet(), do_streamcopy(), dxa_read_packet(), encode_audio_frame(), estimate_timings_from_pts(), extract_mpeg4_header(), ff_asf_parse_packet(), ff_free_parser_state(), ff_raw_read_partial_packet(), ff_read_frame_flush(), ff_rm_free_rmstream(), ffm_read_packet(), flic_read_packet(), flush_packet_queue(), fourxm_read_packet(), free_packet_list(), free_pkt_fifo(), free_variant_list(), g723_1_read_packet(), gsm_read_packet(), http_prepare_data(), ingenient_read_packet(), interleave_packet(), load_ipmovie_packet(), lxf_read_packet(), main(), matroska_clear_queue(), mmf_read_packet(), modplug_read_packet(), mpc_read_packet(), mpc_read_seek(), mpegts_get_dts(), mpegts_raw_read_packet(), mxf_interleave_get_packet(), nc_read_packet(), nsv_read_close(), nuv_packet(), packet_queue_flush(), pulse_read_packet(), qt_rtp_parse_packet(), read_frame_internal(), read_packet(), read_thread(), rl2_read_packet(), rm_assemble_video_frame(), rm_read_packet(), rpl_read_packet(), sap_fetch_packet(), search_hi_lo_keyframes(), seek_frame_generic(), seek_subtitle(), show_packets(), spdif_read_packet(), str_read_close(), str_read_packet(), stream_component_close(), subtitle_thread(), thp_read_packet(), transcode(), vid_read_packet(), video_thread(), vmd_read_packet(), vqf_read_packet(), wc3_read_close(), write_frame(), wv_read_packet(), wv_read_seek(), xiph_handle_packet(), yop_read_close(), yop_read_packet(), and yop_read_seek().
int av_get_bits_per_sample | ( | enum CodecID | codec_id | ) |
Return codec bits per sample.
[in] | codec_id | the codec |
Definition at line 1794 of file utils.c.
Referenced by adpcm_encode_init(), aiff_write_header(), au_read_header(), au_read_packet(), avcodec_encode_audio(), avformat_write_header(), caf_write_header(), ff_alsa_open(), ff_audio_interleave_init(), ff_mov_read_stsd_entries(), ff_raw_read_header(), get_aiff_header(), get_audio_frame_size(), get_bit_rate(), gxf_packet(), mkv_write_tracks(), mov_get_codec_tag(), mov_write_audio_tag(), mov_write_header(), mxf_write_generic_sound_common(), oma_read_header(), pcm_decode_frame(), pcm_decode_init(), pcm_encode_frame(), pcm_encode_init(), pcm_read_seek(), pulse_read_header(), raw_read_packet(), read_header(), rso_read_header(), rso_read_packet(), show_stream(), smjpeg_write_header(), and voc_get_packet().
attribute_deprecated int av_get_bits_per_sample_format | ( | enum AVSampleFormat | sample_fmt | ) |
size_t av_get_codec_tag_string | ( | char * | buf, | |
size_t | buf_size, | |||
unsigned int | codec_tag | |||
) |
Put a string representing the codec tag codec_tag in buf.
buf_size | size in bytes of buf |
Definition at line 1581 of file utils.c.
Referenced by avcodec_string(), avformat_write_header(), and show_stream().
attribute_deprecated char av_get_pict_type_char | ( | int | pict_type | ) |
Return a single letter to describe the given picture type pict_type.
[in] | pict_type | the picture type |
const char* av_get_profile_name | ( | const AVCodec * | codec, | |
int | profile | |||
) |
Return a name for the specified profile, if available.
codec | the codec that is searched for the given profile | |
profile | the profile value for which a name is requested |
Definition at line 1690 of file utils.c.
Referenced by avcodec_string().
int av_grow_packet | ( | AVPacket * | pkt, | |
int | grow_by | |||
) |
Increase packet size, correctly zeroing padding.
pkt | packet | |
grow_by | number of bytes by which to increase the size of the packet |
Definition at line 91 of file avpacket.c.
Referenced by av_append_packet().
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.
Definition at line 1911 of file utils.c.
Referenced by ff_find_hwaccel().
void av_init_packet | ( | AVPacket * | pkt | ) |
Initialize optional fields of a packet with default values.
pkt | packet |
Definition at line 51 of file avpacket.c.
Referenced by audio_decode_example(), av_interleave_packet_per_dts(), av_new_packet(), av_read_packet(), avcodec_encode_audio(), avcodec_encode_audio2(), avi_write_packet(), avpriv_dv_produce_packet(), dc1394_read_header(), do_streamcopy(), do_subtitle_out(), do_video_out(), dv_extract_audio_info(), encode_audio_frame(), ff_alloc_packet(), ff_mov_add_hinted_packet(), ff_store_parser_state(), flush_encoders(), main(), mkv_write_header(), mpegts_get_dts(), mxf_interleave_get_packet(), new_pes_packet(), output_packet(), prepare_packet(), qt_rtp_parse_packet(), read_frame_internal(), read_thread(), reset_packet(), show_packets(), sp5x_decode_frame(), svq3_parse_packet(), v4l2_read_packet(), video_decode_example(), wc3_read_header(), write_audio_frame(), write_video_frame(), x11grab_read_packet(), and xiph_handle_packet().
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, | |||
... | ||||
) |
Log 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 |
Referenced by alac_decode_init(), au_read_header(), av_log_missing_feature(), avpriv_adx_decode_header(), cinaudio_decode_init(), cinepak_decode(), cook_decode_init(), dca_exss_parse_header(), decode_band_hdr(), decode_bytes(), decode_channel_transform(), decode_frame(), decode_frame_headers(), decode_init(), decode_scalefactors(), decode_slice_header(), decode_subframe(), determine_bitrate(), execute_code(), ff_mov_read_chan(), ff_parse_mpeg2_descriptor(), imc_decode_init(), mov_read_mdhd(), mpc7_decode_init(), mtv_read_header(), mxf_read_primer_pack(), oma_read_header(), ptx_decode_frame(), read_header(), read_major_sync(), rso_read_header(), save_bits(), smjpeg_read_header(), spdif_header_dts(), spdif_header_truehd(), spdif_read_packet(), truemotion1_decode_header(), truespeech_decode_init(), ws_snd_decode_init(), wsaud_read_header(), wsvqa_read_header(), xmv_read_header(), xwd_decode_frame(), and xwma_read_header().
void av_log_missing_feature | ( | void * | avc, | |
const char * | feature, | |||
int | want_sample | |||
) |
Log 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. |
Definition at line 1875 of file utils.c.
Referenced by aac_adtstoasc_filter(), amrnb_decode_frame(), amrwb_decode_frame(), decode_audio_block(), decode_frame_header(), decode_ga_specific_config(), decode_ics(), decode_seq_header(), decode_slice_header(), decode_subframe(), ff_eac3_parse_header(), ff_h263_decode_frame(), ff_rv34_decode_frame(), flashsv_decode_frame(), latm_decode_audio_specific_config(), mpc8_decode_init(), parse_adts_frame_header(), parse_fmtp(), parse_MP4SLDescrTag(), qt_rtp_parse_packet(), read_sbr_extension(), read_stream_mux_config(), rv10_decode_init(), smc_decode_stream(), spdif_get_offset_and_codec(), spdif_read_packet(), synth_superframe(), tta_decode_init(), vc1_parse_frame_header_adv(), and video_get_buffer().
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 65 of file avpacket.c.
Referenced by a64_write_packet(), aac_parse_packet(), amr_handle_packet(), amr_read_packet(), ape_read_packet(), audio_read_packet(), av_get_packet(), av_grow_packet(), avisynth_read_packet(), avs_read_video_packet(), bmv_read_packet(), callback(), cin_read_packet(), decode_frame(), dxa_read_packet(), fbdev_read_packet(), ff_alloc_packet(), ff_asf_parse_packet(), ff_interleave_new_audio_packet(), ff_raw_read_partial_packet(), ff_rm_retrieve_cache(), ffm_read_packet(), film_read_packet(), flic_read_packet(), fourxm_read_packet(), g723_1_read_packet(), grab_read_packet(), h263_handle_packet(), h264_handle_packet(), iff_read_packet(), ingenient_read_packet(), latm_parse_packet(), lavfi_read_packet(), load_ipmovie_packet(), lxf_read_packet(), matroska_parse_block(), microdvd_read_packet(), mmf_read_packet(), modplug_read_packet(), mpc_read_packet(), mpegts_raw_read_packet(), nut_read_packet(), nuv_packet(), ogg_read_packet(), pulse_read_packet(), qdm2_restore_block(), qt_rtp_parse_packet(), read_frame(), read_packet(), return_stored_frame(), rm_assemble_video_frame(), rm_read_audio_stream_info(), roq_read_packet(), rtp_parse_packet_internal(), sbg_read_packet(), seq_read_packet(), siff_read_packet(), smacker_read_packet(), spdif_read_packet(), srt_read_packet(), store_packet(), str_read_packet(), supply_new_packets(), swf_read_packet(), videostream_cb(), vmd_read_packet(), vqf_read_packet(), wsaud_read_packet(), wv_read_packet(), xiph_handle_packet(), and yop_read_packet().
uint8_t* av_packet_get_side_data | ( | AVPacket * | pkt, | |
enum AVPacketSideDataType | type, | |||
int * | size | |||
) |
Get side information from packet.
pkt | packet | |
type | desired side information type | |
size | pointer for side information size to store (optional) |
Definition at line 190 of file avpacket.c.
Referenced by aac_decode_frame(), apply_param_change(), cinepak_decode_frame(), decode_frame(), decode_tag(), idcin_decode_frame(), ipvideo_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), raw_decode(), and smc_decode_frame().
int av_packet_merge_side_data | ( | AVPacket * | pkt | ) |
uint8_t* av_packet_new_side_data | ( | AVPacket * | pkt, | |
enum AVPacketSideDataType | type, | |||
int | size | |||
) |
Allocate new information of a packet.
pkt | packet | |
type | side information type | |
size | side information size |
Definition at line 166 of file avpacket.c.
Referenced by ff_add_param_change(), ff_asf_parse_packet(), flv_read_packet(), idcin_read_packet(), load_ipmovie_packet(), and mov_read_packet().
int av_packet_split_side_data | ( | AVPacket * | pkt | ) |
Definition at line 241 of file avpacket.c.
Referenced by avcodec_decode_audio4(), and avcodec_decode_video2().
int av_parser_change | ( | AVCodecParserContext * | s, | |
AVCodecContext * | avctx, | |||
uint8_t ** | poutbuf, | |||
int * | poutbuf_size, | |||
const uint8_t * | buf, | |||
int | buf_size, | |||
int | keyframe | |||
) |
Definition at line 171 of file parser.c.
Referenced by do_streamcopy().
void av_parser_close | ( | AVCodecParserContext * | s | ) |
Definition at line 204 of file parser.c.
Referenced by av_bitstream_filter_close(), avformat_free_context(), estimate_timings_from_pts(), ff_free_parser_state(), ff_read_frame_flush(), and uninit().
AVCodecParserContext* av_parser_init | ( | int | codec_id | ) |
Definition at line 38 of file parser.c.
Referenced by avformat_find_stream_info(), init(), read_frame_internal(), and remove_extradata().
AVCodecParser* av_parser_next | ( | AVCodecParser * | c | ) |
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); }
Definition at line 108 of file parser.c.
Referenced by decode(), and read_frame_internal().
void av_picture_copy | ( | AVPicture * | dst, | |
const AVPicture * | src, | |||
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height | |||
) |
Copy image src to dst.
Wraps av_picture_data_copy() above.
Definition at line 531 of file imgconvert.c.
Referenced by avcodec_default_reget_buffer(), copy_frame(), qtrle_encode_frame(), queue_picture(), and roq_decode_frame().
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 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 | |||
) |
Resample an array of samples using a previously configured context.
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 234 of file resample2.c.
Referenced by audio_resample(), and filter_samples().
void av_resample_close | ( | struct AVResampleContext * | c | ) |
void av_resample_compensate | ( | struct AVResampleContext * | c, | |
int | sample_delta, | |||
int | compensation_distance | |||
) |
Compensate 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 228 of file resample2.c.
Referenced by av_resample(), and swri_resample().
struct AVResampleContext* av_resample_init | ( | int | out_rate, | |
int | in_rate, | |||
int | filter_length, | |||
int | log2_phase_count, | |||
int | linear, | |||
double | cutoff | |||
) | [read] |
Initialize 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 189 of file resample2.c.
Referenced by av_audio_resample_init(), and config_output().
void av_shrink_packet | ( | AVPacket * | pkt, | |
int | size | |||
) |
Reduce packet size, correctly zeroing padding.
pkt | packet | |
size | new size |
Definition at line 84 of file avpacket.c.
Referenced by av_append_packet(), av_get_packet(), cin_read_packet(), ff_asf_parse_packet(), ff_raw_read_partial_packet(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), nuv_packet(), and yop_read_packet().
unsigned int av_xiphlacing | ( | unsigned char * | s, | |
unsigned int | v | |||
) |
Encode extradata length to a buffer.
Used by xiph codecs.
s | buffer to write to; must be at least (v/255+1) bytes long | |
v | size of extradata in bytes |
Definition at line 1855 of file utils.c.
Referenced by fixup_vorbis_headers(), oggvorbis_encode_init(), parse_packed_headers(), and put_main_header().
void avcodec_align_dimensions | ( | AVCodecContext * | s, | |
int * | width, | |||
int * | height | |||
) |
Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you do not use any horizontal padding.
May only be used if a codec with CODEC_CAP_DR1 has been opened. If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased according to avcodec_get_edge_width() before.
Definition at line 264 of file utils.c.
Referenced by alloc_buffer().
void avcodec_align_dimensions2 | ( | AVCodecContext * | s, | |
int * | width, | |||
int * | height, | |||
int | linesize_align[AV_NUM_DATA_POINTERS] | |||
) |
Modify width and height values so that they will result in a memory buffer that is acceptable for the codec if you also ensure that all line sizes are a multiple of the respective linesize_align[i].
May only be used if a codec with CODEC_CAP_DR1 has been opened. If CODEC_FLAG_EMU_EDGE is not set, the dimensions must have been increased according to avcodec_get_edge_width() before.
Definition at line 161 of file utils.c.
Referenced by avcodec_align_dimensions(), and video_get_buffer().
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().
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 627 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().
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. |
Definition at line 613 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 | ) |
Allocate an AVFrame and set its fields to default values.
The resulting struct can be deallocated by simply calling av_free().
Definition at line 678 of file utils.c.
Referenced by aac_encode_init(), aacPlus_encode_init(), adpcm_encode_init(), adx_encode_init(), alac_encode_init(), alloc_picture(), amr_wb_encode_init(), audio_decode_example(), audio_decode_frame(), config(), decode_init(), encode_audio_frame(), encode_init(), Faac_encode_init(), ff_ac3_encode_init(), flac_encode_init(), libgsm_encode_init(), libopenjpeg_encode_init(), movie_common_init(), MP3lame_encode_init(), MPA_encode_init(), oggvorbis_encode_init(), pcm_encode_init(), prores_encode_init(), roq_dpcm_encode_init(), transcode_audio(), transcode_video(), utvideo_decode_init(), v308_decode_init(), v308_encode_init(), v410_decode_init(), v410_encode_init(), vble_decode_init(), video_decode_example(), video_encode_example(), video_thread(), vorbis_encode_init(), vp8_init(), xwd_decode_init(), xwd_encode_init(), y41p_decode_init(), y41p_encode_init(), yuv4_decode_init(), and yuv4_encode_init().
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 1425 of file utils.c.
Referenced by audio_decode_example(), audio_encode_example(), close_audio(), close_connection(), close_video(), estimate_best_b_count(), main(), movie_common_uninit(), probe_file(), stream_component_close(), transcode(), uninit(), video_decode_example(), and video_encode_example().
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_open2() before you can use this AVCodecContext to decode/encode video/audio data.
dest | target codec context, should be initialized with avcodec_alloc_context3(), but otherwise uninitialized | |
src | source codec context |
Definition at line 646 of file options.c.
Referenced by applehttp_read_header(), ff_rtp_chain_mux_open(), http_receive_data(), read_ffserver_streams(), sap_fetch_packet(), and sap_read_header().
attribute_deprecated int avcodec_decode_audio3 | ( | AVCodecContext * | avctx, | |
int16_t * | samples, | |||
int * | frame_size_ptr, | |||
AVPacket * | avpkt | |||
) |
Wrapper function which calls avcodec_decode_audio4.
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.
You must not provide a custom get_buffer() when using avcodec_decode_audio3(). Doing so will override it with avcodec_default_get_buffer. Use avcodec_decode_audio4() instead, which does allow the application to provide a custom get_buffer().
avctx | the codec context | |
[out] | samples | the output buffer, sample type in avctx->sample_fmt If the sample format is planar, each channel plane will be the same size, with no padding between channels. |
[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. |
int avcodec_decode_audio4 | ( | AVCodecContext * | avctx, | |
AVFrame * | frame, | |||
int * | got_frame_ptr, | |||
AVPacket * | avpkt | |||
) |
Decode the audio frame of size avpkt->size from avpkt->data into frame.
Some decoders may support multiple frames in a single AVPacket. Such decoders would then just decode the first frame. In this case, avcodec_decode_audio4 has to be called again with an AVPacket containing the remaining data in order to decode the second frame, etc... Even if no frames are returned, the packet needs to be fed to the decoder with remaining data until it is completely consumed or an error occurs.
avctx | the codec context | |
[out] | frame | The AVFrame in which to store decoded audio samples. Decoders request a buffer of a particular size by setting AVFrame.nb_samples prior to calling get_buffer(). The decoder may, however, only utilize part of the buffer by setting AVFrame.nb_samples to a smaller value in the output frame. |
[out] | got_frame_ptr | Zero if no frame could be decoded, otherwise it is non-zero. |
[in] | avpkt | The input AVPacket containing the input buffer. At least avpkt->data and avpkt->size should be set. Some decoders might also require additional fields to be set. |
Definition at line 1360 of file utils.c.
Referenced by audio_decode_example(), audio_decode_frame(), avcodec_decode_audio3(), get_decoded_frame(), transcode_audio(), and try_decode_frame().
int avcodec_decode_subtitle2 | ( | AVCodecContext * | avctx, | |
AVSubtitle * | sub, | |||
int * | got_sub_ptr, | |||
AVPacket * | avpkt | |||
) |
Decode a subtitle message.
Return a negative value on error, otherwise return the number of bytes used. If no subtitle could be decompressed, got_sub_ptr is zero. Otherwise, the subtitle is stored in *sub. Note that CODEC_CAP_DR1 is not available for subtitle codecs. This is for simplicity, because the performance difference is expect to be negligible and reusing a get_buffer written for video codecs would probably perform badly due to a potentially very different allocation pattern.
avctx | the codec context | |
[out] | sub | The AVSubtitle in which the decoded subtitle will be stored, must be freed with avsubtitle_free if *got_sub_ptr is set. |
[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. |
Definition at line 1390 of file utils.c.
Referenced by subtitle_thread(), and transcode_subtitles().
int avcodec_decode_video2 | ( | AVCodecContext * | avctx, | |
AVFrame * | picture, | |||
int * | got_picture_ptr, | |||
const AVPacket * | avpkt | |||
) |
Decode 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. Use avcodec_alloc_frame to get an AVFrame, the codec will allocate memory for the actual bitmap. with default get/release_buffer(), the decoder frees/reuses the bitmap as it sees fit. with overridden get/release_buffer() (needs CODEC_CAP_DR1) the user decides into what buffer the decoder decodes and the decoder tells the user once it does not need the data anymore, the user app can at this point free/reuse/keep the memory as it sees fit. |
[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. |
Definition at line 1256 of file utils.c.
Referenced by get_decoded_frame(), get_video_frame(), main(), transcode_video(), try_decode_frame(), and video_decode_example().
int avcodec_default_execute | ( | AVCodecContext * | c, | |
int(*)(AVCodecContext *c2, void *arg2) | func, | |||
void * | arg, | |||
int * | ret, | |||
int | count, | |||
int | size | |||
) |
Definition at line 642 of file utils.c.
Referenced by avcodec_get_context_defaults3(), and avcodec_thread_execute().
int avcodec_default_execute2 | ( | AVCodecContext * | c, | |
int(*)(AVCodecContext *c2, void *arg2, int, int) | func, | |||
void * | arg, | |||
int * | ret, | |||
int | count | |||
) |
Referenced by avcodec_get_context_defaults3().
void avcodec_default_free_buffers | ( | AVCodecContext * | s | ) |
Definition at line 1774 of file utils.c.
Referenced by avcodec_close(), frame_thread_free(), and MPV_common_end().
int avcodec_default_get_buffer | ( | AVCodecContext * | s, | |
AVFrame * | pic | |||
) |
Definition at line 551 of file utils.c.
Referenced by alloc_frame_buffer(), avcodec_decode_audio3(), avcodec_get_context_defaults3(), ff_thread_get_buffer(), frame_worker_thread(), and submit_packet().
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 | |||
) |
Definition at line 563 of file utils.c.
Referenced by avcodec_decode_audio3(), avcodec_get_context_defaults3(), codec_release_buffer(), and free_frame_buffer().
int attribute_deprecated avcodec_encode_audio | ( | AVCodecContext * | avctx, | |
uint8_t * | buf, | |||
int | buf_size, | |||
const short * | samples | |||
) |
Encode 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 codecs which have avctx->frame_size equal to 0 (e.g. PCM) the number of samples read from samples is equal to: buf_size * 8 / (avctx->channels * av_get_bits_per_sample(avctx->codec_id)) This also implies that av_get_bits_per_sample() must not return 0 for these codecs. |
Definition at line 1073 of file utils.c.
Referenced by audio_encode_example(), and write_audio_frame().
int avcodec_encode_audio2 | ( | AVCodecContext * | avctx, | |
AVPacket * | avpkt, | |||
const AVFrame * | frame, | |||
int * | got_packet_ptr | |||
) |
Encode a frame of audio.
Takes input samples from frame and writes the next output packet, if available, to avpkt. The output packet does not necessarily contain data for the most recent frame, as encoders can delay, split, and combine input frames internally as needed.
avctx | codec context | |
avpkt | output AVPacket. The user can supply an output buffer by setting avpkt->data and avpkt->size prior to calling the function, but if the size of the user-provided data is not large enough, encoding will fail. All other AVPacket fields will be reset by the encoder using av_init_packet(). If avpkt->data is NULL, the encoder will allocate it. The encoder will set avpkt->size to the size of the output packet. | |
[in] | frame | AVFrame containing the raw audio data to be encoded. May be NULL when flushing an encoder that has the CODEC_CAP_DELAY capability set. There are 2 codec capabilities that affect the allowed values of frame->nb_samples. If CODEC_CAP_SMALL_LAST_FRAME is set, then only the final frame may be smaller than avctx->frame_size, and all other frames must be equal to avctx->frame_size. If CODEC_CAP_VARIABLE_FRAME_SIZE is set, then each frame can have any number of samples. If neither is set, frame->nb_samples must be equal to avctx->frame_size for all frames. |
[out] | got_packet_ptr | This field is set to 1 by libavcodec if the output packet is non-empty, and to 0 if it is empty. If the function returns an error, the packet can be assumed to be invalid, and the value of got_packet_ptr is undefined and should not be used. |
Definition at line 957 of file utils.c.
Referenced by encode_audio_frame().
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 | |||
) |
Encode 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 |
Definition at line 1149 of file utils.c.
Referenced by do_video_out(), estimate_best_b_count(), filter(), flush_encoders(), video_encode_example(), write_png(), and write_video_frame().
int avcodec_fill_audio_frame | ( | AVFrame * | frame, | |
int | nb_channels, | |||
enum AVSampleFormat | sample_fmt, | |||
const uint8_t * | buf, | |||
int | buf_size, | |||
int | align | |||
) |
Fill audio frame data and linesize.
AVFrame extended_data channel pointers are allocated if necessary for planar audio.
frame | the AVFrame frame->nb_samples must be set prior to calling the function. This function fills in frame->data, frame->extended_data, frame->linesize[0]. | |
nb_channels | channel count | |
sample_fmt | sample format | |
buf | buffer to use for frame data | |
buf_size | size of buffer | |
align | plane size sample alignment |
Definition at line 292 of file utils.c.
Referenced by audio_get_buffer(), avcodec_encode_audio(), and encode_audio_frame().
enum PixelFormat avcodec_find_best_pix_fmt | ( | int64_t | pix_fmt_mask, | |
enum PixelFormat | src_pix_fmt, | |||
int | has_alpha, | |||
int * | loss_ptr | |||
) |
Find the best pixel format to convert to given a certain source pixel format.
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.
Note, only the first 64 pixel formats will fit in pix_fmt_mask.
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 474 of file imgconvert.c.
enum PixelFormat avcodec_find_best_pix_fmt2 | ( | enum PixelFormat | dst_pix_fmt1, | |
enum PixelFormat | dst_pix_fmt2, | |||
enum PixelFormat | src_pix_fmt, | |||
int | has_alpha, | |||
int * | loss_ptr | |||
) |
Find the best pixel format to convert to given a certain source pixel format and a selection of two destination pixel formats.
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_fmt2() selects which of the given pixel formats should be used to suffer the least amount of loss.
If one of the destination formats is PIX_FMT_NONE the other pixel format (if valid) will be returned.
src_pix_fmt = PIX_FMT_YUV420P; dst_pix_fmt1= PIX_FMT_RGB24; dst_pix_fmt2= PIX_FMT_GRAY8; dst_pix_fmt3= PIX_FMT_RGB8; loss= FF_LOSS_CHROMA; // don't care about chroma loss, so chroma loss will be ignored. dst_pix_fmt = avcodec_find_best_pix_fmt2(dst_pix_fmt1, dst_pix_fmt2, src_pix_fmt, alpha, &loss); dst_pix_fmt = avcodec_find_best_pix_fmt2(dst_pix_fmt, dst_pix_fmt3, src_pix_fmt, alpha, &loss);
[in] | dst_pix_fmt1 | One of the two destination pixel formats to choose from |
[in] | dst_pix_fmt2 | The other of the two destination pixel formats to choose from |
[in] | src_pix_fmt | Source pixel format |
[in] | has_alpha | Whether the source pixel format alpha channel is used. |
[in,out] | loss_ptr | Combination of loss flags. In: selects which of the losses to ignore, i.e. NULL or value of zero means we care about all losses. Out: the loss that occurs when converting from src to selected dst pixel format. |
Definition at line 491 of file imgconvert.c.
Referenced by avcodec_find_best_pix_fmt(), and choose_pixel_fmt().
Find a registered decoder with a matching codec ID.
id | CodecID of the requested decoder |
Definition at line 1508 of file utils.c.
Referenced by add_input_streams(), assert_codec_experimental(), audio_decode_example(), av_find_best_stream(), avcodec_get_name(), avcodec_get_type(), avcodec_string(), avformat_find_stream_info(), choose_decoder(), movie_common_init(), open_input_file(), setup_find_stream_info_opts(), stream_component_open(), try_decode_frame(), and video_decode_example().
AVCodec* avcodec_find_decoder_by_name | ( | const char * | name | ) |
Find a registered decoder with the specified name.
name | name of the requested decoder |
Definition at line 1525 of file utils.c.
Referenced by find_codec_or_die(), stream_component_open(), and v4l2_read_header().
Find a registered encoder with a matching codec ID.
id | CodecID of the requested encoder |
Definition at line 1477 of file utils.c.
Referenced by add_video_stream(), asf_write_header1(), assert_codec_experimental(), audio_encode_example(), avcodec_get_name(), avcodec_get_type(), avcodec_string(), choose_encoder(), compute_status(), config(), estimate_best_b_count(), ffserver_opt_preset(), list_formats(), open_audio(), open_video(), read_ffserver_streams(), transcode_init(), vf_open(), and video_encode_example().
AVCodec* avcodec_find_encoder_by_name | ( | const char * | name | ) |
Find a registered encoder with the specified name.
name | name of the requested encoder |
Definition at line 1494 of file utils.c.
Referenced by find_codec_or_die(), opt_audio_codec(), and opt_video_codec().
void avcodec_flush_buffers | ( | AVCodecContext * | avctx | ) |
Flush buffers, should be called when seeking or when switching to a different stream.
Definition at line 1726 of file utils.c.
Referenced by audio_decode_frame(), get_video_frame(), and subtitle_thread().
void avcodec_get_chroma_sub_sample | ( | enum PixelFormat | pix_fmt, | |
int * | h_shift, | |||
int * | v_shift | |||
) |
Definition at line 286 of file imgconvert.c.
Referenced by alloc_buffer(), dirac_decode_data_unit(), encode_init(), ff_print_debug_info(), j2kenc_init(), load_input_picture(), MPV_common_init(), MPV_encode_init(), video_get_buffer(), and vp3_decode_init().
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.
Definition at line 703 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.
s | The AVCodecContext of which the fields should be set 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!
Definition at line 554 of file options.c.
Referenced by avcodec_alloc_context2(), avcodec_get_context_defaults(), and parse_ffconfig().
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 561 of file options.c.
Referenced by add_video_stream(), avcodec_alloc_context3(), avcodec_get_context_defaults2(), and new_output_stream().
unsigned avcodec_get_edge_width | ( | void | ) |
const AVClass* avcodec_get_frame_class | ( | void | ) |
It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
Definition at line 727 of file options.c.
Referenced by get_video_frame(), and transcode_video().
void avcodec_get_frame_defaults | ( | AVFrame * | pic | ) |
Set the fields of the given AVFrame to default values.
pic | The AVFrame of which the fields should be set to default values. |
Definition at line 668 of file utils.c.
Referenced by a64multi_init_encoder(), aac_decode_init(), aasc_decode_init(), ac3_decode_init(), adpcm_decode_init(), adx_decode_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(), cinaudio_decode_init(), cinepak_decode_init(), cinvideo_decode_init(), cmv_decode_init(), common_init(), cook_decode_init(), cyuv_decode_init(), dca_decode_init(), decode_init(), decoder_init(), dirac_decode_data_unit(), dnxhd_decode_init(), do_video_resample(), dpcm_decode_init(), eightsvx_decode_init(), encode_audio_frame(), encode_init(), escape124_decode_frame(), escape124_decode_init(), estimate_best_b_count(), ff_mjpeg_decode_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(), MPV_common_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(), ptx_init(), qcelp_decode_init(), qdm2_decode_init(), qtrle_decode_init(), ra144_decode_init(), ra288_decode_init(), rl2_decode_init(), roq_decode_init(), rpza_decode_init(), s302m_decode_init(), seqvideo_decode_init(), sgi_init(), shorten_decode_init(), show_packets(), sipr_decoder_init(), smc_decode_init(), smka_decode_init(), sunrast_init(), targa_encode_init(), targa_init(), tgv_decode_init(), tiff_init(), tmv_decode_init(), transcode_audio(), transcode_video(), truemotion1_decode_init(), truespeech_decode_init(), try_decode_frame(), tta_decode_init(), twin_decode_init(), txd_init(), ulti_decode_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 char* avcodec_get_name | ( | enum CodecID | id | ) |
Get the name of a codec.
Definition at line 1562 of file utils.c.
Referenced by avcodec_string(), flv_write_packet(), init_input_stream(), read_frame_internal(), rtp_write_header(), and transcode_init().
int avcodec_get_pix_fmt_loss | ( | enum PixelFormat | dst_pix_fmt, | |
enum PixelFormat | src_pix_fmt, | |||
int | has_alpha | |||
) |
Compute what kind of losses will occur when converting from one specific pixel format to another.
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 396 of file imgconvert.c.
Referenced by avcodec_find_best_pix_fmt2().
attribute_deprecated const char* avcodec_get_pix_fmt_name | ( | enum PixelFormat | pix_fmt | ) |
Return the short name for a pixel format.
Definition at line 293 of file imgconvert.c.
enum AVMediaType avcodec_get_type | ( | enum CodecID | codec_id | ) |
Get the type of the given codec.
Definition at line 2012 of file utils.c.
Referenced by mkv_query_codec().
attribute_deprecated void avcodec_init | ( | void | ) |
Definition at line 113 of file utils.c.
Referenced by avcodec_register(), and main().
int avcodec_is_open | ( | AVCodecContext * | s | ) |
Definition at line 2032 of file utils.c.
Referenced by avcodec_close(), avcodec_copy_context(), avcodec_open2(), and try_decode_frame().
const char* avcodec_license | ( | void | ) |
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.
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);
avctx | The context which will be set up to use the given codec. | |
codec | The codec to use within the context. |
Definition at line 695 of file utils.c.
Referenced by audio_decode_example(), audio_encode_example(), config(), open_audio(), open_input_file(), open_video(), vf_open(), video_decode_example(), and video_encode_example().
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.
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);
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. |
Definition at line 701 of file utils.c.
Referenced by avcodec_open(), avformat_find_stream_info(), estimate_best_b_count(), init_input_stream(), movie_common_init(), open_input_file(), stream_component_open(), transcode_init(), and try_decode_frame().
unsigned int avcodec_pix_fmt_to_codec_tag | ( | enum PixelFormat | pix_fmt | ) |
Return a value representing the fourCC code associated to the pixel format pix_fmt, or 0 if no associated fourCC code can be found.
Definition at line 151 of file raw.c.
Referenced by raw_init_encoder(), and v4l2_read_header().
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.
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.
Referenced by av_register_all(), main(), and vf_open().
void avcodec_set_dimensions | ( | AVCodecContext * | s, | |
int | width, | |||
int | height | |||
) |
Definition at line 152 of file utils.c.
Referenced by apply_param_change(), av_mpeg4_decode_header(), avcodec_open2(), avpriv_dirac_parse_sequence_header(), avs_decode_init(), cmv_process_header(), decode_frame(), decode_frame_headers(), decode_init(), decode_sequence_header_adv(), decode_slice_header(), dnxhd_decode_frame(), execute_code(), ff_h263_decode_frame(), ff_ivi_decode_frame(), ff_mjpeg_decode_sof(), ff_rv34_decode_frame(), ff_vp56_decode_frame(), gif_decode_frame(), h261_decode_frame(), init_image(), libopenjpeg_decode_frame(), mpeg_decode_postinit(), mpegvideo_extract_headers(), parse_presentation_segment(), pcx_decode_frame(), ptx_decode_frame(), rv20_decode_picture_header(), sunrast_decode_frame(), svq1_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), theora_header(), tqi_decode_frame(), truemotion1_decode_header(), txd_decode_frame(), update_dimensions(), vc1_decode_entry_point(), vc1_decode_sequence_header(), vp56_size_changed(), vp5_parse_header(), vp6_parse_header(), and vp8_decode().
void avcodec_string | ( | char * | buf, | |
int | buf_size, | |||
AVCodecContext * | enc, | |||
int | encode | |||
) |
attribute_deprecated int avcodec_thread_init | ( | AVCodecContext * | s, | |
int | thread_count | |||
) |
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 625 of file imgconvert.c.
Referenced by do_video_resample(), ff_create_schro_frame(), libschroedinger_handle_first_access_unit(), and qtrle_encode_init().
int avpicture_deinterlace | ( | AVPicture * | dst, | |
const AVPicture * | src, | |||
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height | |||
) |
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.
To allocate the buffer and fill in the AVPicture fields in one call, use avpicture_alloc().
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 304 of file imgconvert.c.
Referenced by alloc_picture(), avpicture_get_size(), copy_frame(), do_streamcopy(), libdirac_decode_frame(), libschroedinger_decode_frame(), pre_process_video_frame(), raw_decode(), and sdl_write_packet().
void avpicture_free | ( | AVPicture * | picture | ) |
Free a picture previously allocated by avpicture_alloc().
The data buffer used by the AVPicture is freed, but the AVPicture structure itself is not.
picture | the AVPicture to be freed |
Definition at line 638 of file imgconvert.c.
Referenced by FreeSchroFrame(), libschroedinger_decode_close(), and qtrle_encode_end().
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 361 of file imgconvert.c.
Referenced by alloc_picture(), avpicture_layout(), dc1394_read_header(), lavfi_read_packet(), libdirac_decode_frame(), libdirac_encode_init(), libschroedinger_encode_init(), pam_encode_frame(), pnm_encode_frame(), pnm_parse(), pre_process_video_frame(), raw_init_decoder(), rawvideo_read_packet(), targa_encode_frame(), utvideo_decode_init(), v4l2_read_header(), vble_decode_init(), and yuv4_read_packet().
int avpicture_layout | ( | const AVPicture * | src, | |
enum PixelFormat | pix_fmt, | |||
int | width, | |||
int | height, | |||
unsigned char * | dest, | |||
int | dest_size | |||
) |
Copy pixel data from an AVPicture into a buffer.
The data is stored compactly, without any gaps for alignment or padding which may be applied by avpicture_fill().
[in] | src | AVPicture containing image data |
[in] | pix_fmt | The format in which the picture data is stored. |
[in] | width | the width of the image in pixels. |
[in] | height | the height of the image in pixels. |
[out] | dest | A buffer into which picture data will be copied. |
[in] | dest_size | The size of 'dest'. |
Definition at line 318 of file imgconvert.c.
Referenced by encode_frame(), lavfi_read_packet(), libdirac_encode_frame(), libschroedinger_frame_from_data(), and raw_encode().
void avsubtitle_free | ( | AVSubtitle * | sub | ) |
Free all allocated data in the given subtitle struct.
sub | AVSubtitle to free. |
Definition at line 1405 of file utils.c.
Referenced by free_subpicture(), and transcode_subtitles().
attribute_deprecated 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 783 of file imgconvert.c.