16#define AVCODEC_AVCODEC_H
18#define AVUTIL_SAMPLEFMT_H
20#define AVUTIL_AVUTIL_H
42#define FF_LAMBDA_SHIFT 7
43#define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
44#define FF_QP2LAMBDA 118
45#define FF_LAMBDA_MAX (256*128-1)
47#define FF_QUALITY_SCALE FF_LAMBDA_SCALE
49#define AV_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000))
51#define AV_TIME_BASE 1000000
53#define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
68#define AVUTIL_COMMON_H
70#define AVUTIL_ATTRIBUTES_H
72# define AV_GCC_VERSION_AT_LEAST(x,y) 0
73# define AV_GCC_VERSION_AT_MOST(x,y) 0
75# define av_always_inline inline
77# define av_extern_inline inline
79# define av_warn_unused_result
91# define attribute_deprecated
93# define AV_NOWARN_DEPRECATED(code) code
101# define av_uninit(x) x
103# define av_builtin_constant_p(x) 0
104# define av_printf_format(fmtpos, attrpos)
108#define AVUTIL_MACROS_H
110#define AV_STRINGIFY(s) AV_TOSTRING(s)
111#define AV_TOSTRING(s) #s
113#define AV_GLUE(a, b) a ## b
114#define AV_JOIN(a, b) AV_GLUE(a, b)
116#define AV_PRAGMA(s) _Pragma(#s)
118#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1))
120#define AVUTIL_VERSION_H
122#define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
123#define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
124#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
126#define AV_VERSION_MAJOR(a) ((a) >> 16)
127#define AV_VERSION_MINOR(a) (((a) & 0x00FF00) >> 8)
128#define AV_VERSION_MICRO(a) ((a) & 0xFF)
130#define LIBAVUTIL_VERSION_MAJOR 55
131#define LIBAVUTIL_VERSION_MINOR 78
132#define LIBAVUTIL_VERSION_MICRO 100
134#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
135 LIBAVUTIL_VERSION_MINOR, \
136 LIBAVUTIL_VERSION_MICRO)
137#define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_MAJOR, \
138 LIBAVUTIL_VERSION_MINOR, \
139 LIBAVUTIL_VERSION_MICRO)
140#define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
142#define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
144#define FF_API_VDPAU (LIBAVUTIL_VERSION_MAJOR < 56)
145#define FF_API_XVMC (LIBAVUTIL_VERSION_MAJOR < 56)
146#define FF_API_OPT_TYPE_METADATA (LIBAVUTIL_VERSION_MAJOR < 56)
147#define FF_API_DLOG (LIBAVUTIL_VERSION_MAJOR < 56)
148#define FF_API_VAAPI (LIBAVUTIL_VERSION_MAJOR < 56)
149#define FF_API_FRAME_QP (LIBAVUTIL_VERSION_MAJOR < 56)
150#define FF_API_PLUS1_MINUS1 (LIBAVUTIL_VERSION_MAJOR < 56)
151#define FF_API_ERROR_FRAME (LIBAVUTIL_VERSION_MAJOR < 56)
152#define FF_API_CRC_BIG_TABLE (LIBAVUTIL_VERSION_MAJOR < 56)
153#define FF_API_PKT_PTS (LIBAVUTIL_VERSION_MAJOR < 56)
154#define FF_API_CRYPTO_SIZE_T (LIBAVUTIL_VERSION_MAJOR < 56)
156# define AV_NE(be, le) (le)
158#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
160#define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b))
162#define AV_CEIL_RSHIFT(a,b) (!av_builtin_constant_p(b) ? -((-(a)) >> (b)) \
163 : ((a) + (1<<(b)) - 1) >> (b))
165#define FF_CEIL_RSHIFT AV_CEIL_RSHIFT
167#define FFUDIV(a,b) (((a)>0 ?(a):(a)-(b)+1) / (b))
168#define FFUMOD(a,b) ((a)-(b)*FFUDIV(a,b))
170#define FFABS(a) ((a) >= 0 ? (a) : (-(a)))
171#define FFSIGN(a) ((a) > 0 ? 1 : -1)
173#define FFNABS(a) ((a) <= 0 ? (a) : (-(a)))
175#define FFDIFFSIGN(x,y) (((x)>(y)) - ((x)<(y)))
177#define FFMAX(a,b) ((a) > (b) ? (a) : (b))
178#define FFMAX3(a,b,c) FFMAX(FFMAX(a,b),c)
179#define FFMIN(a,b) ((a) > (b) ? (b) : (a))
180#define FFMIN3(a,b,c) FFMIN(FFMIN(a,b),c)
182#define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
183#define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
185# define av_ceil_log2 av_ceil_log2_c
186# define av_clip av_clip_c
187# define av_clip64 av_clip64_c
188# define av_clip_uint8 av_clip_uint8_c
189# define av_clip_int8 av_clip_int8_c
190# define av_clip_uint16 av_clip_uint16_c
191# define av_clip_int16 av_clip_int16_c
192# define av_clipl_int32 av_clipl_int32_c
193# define av_clip_intp2 av_clip_intp2_c
194# define av_clip_uintp2 av_clip_uintp2_c
195# define av_mod_uintp2 av_mod_uintp2_c
196# define av_sat_add32 av_sat_add32_c
197# define av_sat_dadd32 av_sat_dadd32_c
198# define av_clipf av_clipf_c
199# define av_clipd av_clipd_c
200# define av_popcount av_popcount_c
201# define av_popcount64 av_popcount64_c
202# define av_parity av_parity_c
210 if (a < amin)
return amin;
211 else if (a > amax)
return amax;
217 if (a < amin)
return amin;
218 else if (a > amax)
return amax;
224 if (a&(~0xFF))
return (~a)>>31;
230 if ((a+0x80U) & ~0xFF)
return (a>>31) ^ 0x7F;
236 if (a&(~0xFFFF))
return (~a)>>31;
242 if ((a+0x8000U) & ~0xFFFF)
return (a>>31) ^ 0x7FFF;
248 if ((a+0x80000000u) & ~UINT64_C(0xFFFFFFFF))
return (int32_t)((a>>63) ^ 0x7FFFFFFF);
249 else return (int32_t)a;
254 if (((
unsigned)a + (1 << p)) & ~((2 << p) - 1))
255 return (a >> 31) ^ ((1 << p) - 1);
262 if (a & ~((1<<p) - 1))
return (~a) >> 31 & ((1<<p) - 1);
268 return a & ((1 << p) - 1);
283 if (a < amin)
return amin;
284 else if (a > amax)
return amax;
290 if (a < amin)
return amin;
291 else if (a > amax)
return amax;
302 x -= (x >> 1) & 0x55555555;
303 x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
304 x = (x + (x >> 4)) & 0x0F0F0F0F;
306 return (x + (x >> 16)) & 0x3F;
319#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24))
320#define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((unsigned)(a) << 24))
322#define GET_UTF8(val, GET_BYTE, ERROR)\
325 uint32_t top = (val & 128) >> 1;\
326 if ((val & 0xc0) == 0x80 || val >= 0xFE)\
329 int tmp= (GET_BYTE) - 128;\
332 val= (val<<6) + tmp;\
335 val &= (top << 1) - 1;\
338#define GET_UTF16(val, GET_16BIT, ERROR)\
341 unsigned int hi = val - 0xD800;\
343 val = GET_16BIT - 0xDC00;\
344 if (val > 0x3FFU || hi > 0x3FFU)\
346 val += (hi<<10) + 0x10000;\
350#define PUT_UTF8(val, tmp, PUT_BYTE)\
358 bytes = (av_log2(in) + 4) / 5;\
359 shift = (bytes - 1) * 6;\
360 tmp = (256 - (256 >> bytes)) | (in >> shift);\
362 while (shift >= 6) {\
364 tmp = 0x80 | ((in >> shift) & 0x3f);\
370#define PUT_UTF16(val, tmp, PUT_16BIT)\
377 tmp = 0xD800 | ((in - 0x10000) >> 10);\
379 tmp = 0xDC00 | ((in - 0x10000) & 0x3FF);\
386#define AVUTIL_ERROR_H
388#define AVERROR(e) (e)
389#define AVUNERROR(e) (e)
391#define FFERRTAG(a, b, c, d) (-(int)MKTAG(a, b, c, d))
393#define AVERROR_BSF_NOT_FOUND FFERRTAG(0xF8,'B','S','F')
394#define AVERROR_BUG FFERRTAG( 'B','U','G','!')
395#define AVERROR_BUFFER_TOO_SMALL FFERRTAG( 'B','U','F','S')
396#define AVERROR_DECODER_NOT_FOUND FFERRTAG(0xF8,'D','E','C')
397#define AVERROR_DEMUXER_NOT_FOUND FFERRTAG(0xF8,'D','E','M')
398#define AVERROR_ENCODER_NOT_FOUND FFERRTAG(0xF8,'E','N','C')
399#define AVERROR_EOF FFERRTAG( 'E','O','F',' ')
400#define AVERROR_EXIT FFERRTAG( 'E','X','I','T')
401#define AVERROR_EXTERNAL FFERRTAG( 'E','X','T',' ')
402#define AVERROR_FILTER_NOT_FOUND FFERRTAG(0xF8,'F','I','L')
403#define AVERROR_INVALIDDATA FFERRTAG( 'I','N','D','A')
404#define AVERROR_MUXER_NOT_FOUND FFERRTAG(0xF8,'M','U','X')
405#define AVERROR_OPTION_NOT_FOUND FFERRTAG(0xF8,'O','P','T')
406#define AVERROR_PATCHWELCOME FFERRTAG( 'P','A','W','E')
407#define AVERROR_PROTOCOL_NOT_FOUND FFERRTAG(0xF8,'P','R','O')
409#define AVERROR_STREAM_NOT_FOUND FFERRTAG(0xF8,'S','T','R')
411#define AVERROR_BUG2 FFERRTAG( 'B','U','G',' ')
412#define AVERROR_UNKNOWN FFERRTAG( 'U','N','K','N')
413#define AVERROR_EXPERIMENTAL (-0x2bb2afa8)
414#define AVERROR_INPUT_CHANGED (-0x636e6701)
415#define AVERROR_OUTPUT_CHANGED (-0x636e6702)
417#define AVERROR_HTTP_BAD_REQUEST FFERRTAG(0xF8,'4','0','0')
418#define AVERROR_HTTP_UNAUTHORIZED FFERRTAG(0xF8,'4','0','1')
419#define AVERROR_HTTP_FORBIDDEN FFERRTAG(0xF8,'4','0','3')
420#define AVERROR_HTTP_NOT_FOUND FFERRTAG(0xF8,'4','0','4')
421#define AVERROR_HTTP_OTHER_4XX FFERRTAG(0xF8,'4','X','X')
422#define AVERROR_HTTP_SERVER_ERROR FFERRTAG(0xF8,'5','X','X')
424#define AV_ERROR_MAX_STRING_SIZE 64
434#define av_err2str(errnum) \
435 av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
437 #define DECLARE_ALIGNED(n,t,v) t v
438 #define DECLARE_ASM_CONST(n,t,v) static const t v
440 #define av_malloc_attrib
442 #define av_alloc_size(...)
499 const uint8_t *elem_data);
505 if ((a | b) >= ((
size_t)1 << (
sizeof(
size_t) * 4)) && a && t / a != b)
513#define AVUTIL_RATIONAL_H
527 const int64_t tmp= a.
num * (int64_t)b.
den - b.
num * (int64_t)a.
den;
529 if(tmp)
return (
int)((tmp ^ a.
den ^ b.
den)>>63)|1;
530 else if(b.
den && a.
den)
return 0;
531 else if(a.
num && b.
num)
return (a.
num>>31) - (b.
num>>31);
536 return a.
num / (double) a.
den;
539int av_reduce(
int *dst_num,
int *dst_den, int64_t num, int64_t den, int64_t max);
563#define AVUTIL_MATHEMATICS_H
565#define AVUTIL_INTFLOAT_H
605#define M_E 2.7182818284590452354
606#define M_LN2 0.69314718055994530942
607#define M_LN10 2.30258509299404568402
608#define M_LOG2_10 3.32192809488736234787
609#define M_PHI 1.61803398874989484820
610#define M_PI 3.14159265358979323846
611#define M_PI_2 1.57079632679489661923
612#define M_SQRT1_2 0.70710678118654752440
613#define M_SQRT2 1.41421356237309504880
614#define NAN av_int2float(0x7fc00000)
615#define INFINITY av_int2float(0x7f800000)
669#define AV_IS_INPUT_DEVICE(category) \
670 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT) || \
671 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT) || \
672 ((category) == AV_CLASS_CATEGORY_DEVICE_INPUT))
674#define AV_IS_OUTPUT_DEVICE(category) \
675 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT) || \
676 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT) || \
677 ((category) == AV_CLASS_CATEGORY_DEVICE_OUTPUT))
679struct AVOptionRanges;
685 const char* (*item_name)(
void* ctx);
687 const struct AVOption *
option;
695 void* (*child_next)(
void *obj,
void *prev);
697 const struct AVClass* (*child_class_next)(
const struct AVClass *prev);
703 int (*
query_ranges)(
struct AVOptionRanges **,
void *obj,
const char *
key,
int flags);
706#define AV_LOG_QUIET -8
708#define AV_LOG_PANIC 0
710#define AV_LOG_FATAL 8
712#define AV_LOG_ERROR 16
714#define AV_LOG_WARNING 24
716#define AV_LOG_INFO 32
718#define AV_LOG_VERBOSE 40
720#define AV_LOG_DEBUG 48
722#define AV_LOG_TRACE 56
724#define AV_LOG_MAX_OFFSET (AV_LOG_TRACE - AV_LOG_QUIET)
726#define AV_LOG_C(x) ((x) << 8)
730void av_vlog(
void *avcl,
int level, const
char *fmt, va_list vl);
745 char *line,
int line_size,
int *print_prefix);
748 char *line,
int line_size,
int *print_prefix);
750# define av_dlog(pctx, ...) do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
752#define AV_LOG_SKIP_REPEATED 1
754#define AV_LOG_PRINT_LEVEL 2
759#define AVUTIL_PIXFMT_H
761#define AVPALETTE_SIZE 1024
762#define AVPALETTE_COUNT 256
1002# define AV_PIX_FMT_NE(be, le) AV_PIX_FMT_##le
1004#define AV_PIX_FMT_RGB32 AV_PIX_FMT_NE(ARGB, BGRA)
1005#define AV_PIX_FMT_RGB32_1 AV_PIX_FMT_NE(RGBA, ABGR)
1006#define AV_PIX_FMT_BGR32 AV_PIX_FMT_NE(ABGR, RGBA)
1007#define AV_PIX_FMT_BGR32_1 AV_PIX_FMT_NE(BGRA, ARGB)
1008#define AV_PIX_FMT_0RGB32 AV_PIX_FMT_NE(0RGB, BGR0)
1009#define AV_PIX_FMT_0BGR32 AV_PIX_FMT_NE(0BGR, RGB0)
1011#define AV_PIX_FMT_GRAY9 AV_PIX_FMT_NE(GRAY9BE, GRAY9LE)
1012#define AV_PIX_FMT_GRAY10 AV_PIX_FMT_NE(GRAY10BE, GRAY10LE)
1013#define AV_PIX_FMT_GRAY12 AV_PIX_FMT_NE(GRAY12BE, GRAY12LE)
1014#define AV_PIX_FMT_GRAY16 AV_PIX_FMT_NE(GRAY16BE, GRAY16LE)
1015#define AV_PIX_FMT_YA16 AV_PIX_FMT_NE(YA16BE, YA16LE)
1016#define AV_PIX_FMT_RGB48 AV_PIX_FMT_NE(RGB48BE, RGB48LE)
1017#define AV_PIX_FMT_RGB565 AV_PIX_FMT_NE(RGB565BE, RGB565LE)
1018#define AV_PIX_FMT_RGB555 AV_PIX_FMT_NE(RGB555BE, RGB555LE)
1019#define AV_PIX_FMT_RGB444 AV_PIX_FMT_NE(RGB444BE, RGB444LE)
1020#define AV_PIX_FMT_RGBA64 AV_PIX_FMT_NE(RGBA64BE, RGBA64LE)
1021#define AV_PIX_FMT_BGR48 AV_PIX_FMT_NE(BGR48BE, BGR48LE)
1022#define AV_PIX_FMT_BGR565 AV_PIX_FMT_NE(BGR565BE, BGR565LE)
1023#define AV_PIX_FMT_BGR555 AV_PIX_FMT_NE(BGR555BE, BGR555LE)
1024#define AV_PIX_FMT_BGR444 AV_PIX_FMT_NE(BGR444BE, BGR444LE)
1025#define AV_PIX_FMT_BGRA64 AV_PIX_FMT_NE(BGRA64BE, BGRA64LE)
1027#define AV_PIX_FMT_YUV420P9 AV_PIX_FMT_NE(YUV420P9BE , YUV420P9LE)
1028#define AV_PIX_FMT_YUV422P9 AV_PIX_FMT_NE(YUV422P9BE , YUV422P9LE)
1029#define AV_PIX_FMT_YUV444P9 AV_PIX_FMT_NE(YUV444P9BE , YUV444P9LE)
1030#define AV_PIX_FMT_YUV420P10 AV_PIX_FMT_NE(YUV420P10BE, YUV420P10LE)
1031#define AV_PIX_FMT_YUV422P10 AV_PIX_FMT_NE(YUV422P10BE, YUV422P10LE)
1032#define AV_PIX_FMT_YUV440P10 AV_PIX_FMT_NE(YUV440P10BE, YUV440P10LE)
1033#define AV_PIX_FMT_YUV444P10 AV_PIX_FMT_NE(YUV444P10BE, YUV444P10LE)
1034#define AV_PIX_FMT_YUV420P12 AV_PIX_FMT_NE(YUV420P12BE, YUV420P12LE)
1035#define AV_PIX_FMT_YUV422P12 AV_PIX_FMT_NE(YUV422P12BE, YUV422P12LE)
1036#define AV_PIX_FMT_YUV440P12 AV_PIX_FMT_NE(YUV440P12BE, YUV440P12LE)
1037#define AV_PIX_FMT_YUV444P12 AV_PIX_FMT_NE(YUV444P12BE, YUV444P12LE)
1038#define AV_PIX_FMT_YUV420P14 AV_PIX_FMT_NE(YUV420P14BE, YUV420P14LE)
1039#define AV_PIX_FMT_YUV422P14 AV_PIX_FMT_NE(YUV422P14BE, YUV422P14LE)
1040#define AV_PIX_FMT_YUV444P14 AV_PIX_FMT_NE(YUV444P14BE, YUV444P14LE)
1041#define AV_PIX_FMT_YUV420P16 AV_PIX_FMT_NE(YUV420P16BE, YUV420P16LE)
1042#define AV_PIX_FMT_YUV422P16 AV_PIX_FMT_NE(YUV422P16BE, YUV422P16LE)
1043#define AV_PIX_FMT_YUV444P16 AV_PIX_FMT_NE(YUV444P16BE, YUV444P16LE)
1045#define AV_PIX_FMT_GBRP9 AV_PIX_FMT_NE(GBRP9BE , GBRP9LE)
1046#define AV_PIX_FMT_GBRP10 AV_PIX_FMT_NE(GBRP10BE, GBRP10LE)
1047#define AV_PIX_FMT_GBRP12 AV_PIX_FMT_NE(GBRP12BE, GBRP12LE)
1048#define AV_PIX_FMT_GBRP14 AV_PIX_FMT_NE(GBRP14BE, GBRP14LE)
1049#define AV_PIX_FMT_GBRP16 AV_PIX_FMT_NE(GBRP16BE, GBRP16LE)
1050#define AV_PIX_FMT_GBRAP10 AV_PIX_FMT_NE(GBRAP10BE, GBRAP10LE)
1051#define AV_PIX_FMT_GBRAP12 AV_PIX_FMT_NE(GBRAP12BE, GBRAP12LE)
1052#define AV_PIX_FMT_GBRAP16 AV_PIX_FMT_NE(GBRAP16BE, GBRAP16LE)
1054#define AV_PIX_FMT_BAYER_BGGR16 AV_PIX_FMT_NE(BAYER_BGGR16BE, BAYER_BGGR16LE)
1055#define AV_PIX_FMT_BAYER_RGGB16 AV_PIX_FMT_NE(BAYER_RGGB16BE, BAYER_RGGB16LE)
1056#define AV_PIX_FMT_BAYER_GBRG16 AV_PIX_FMT_NE(BAYER_GBRG16BE, BAYER_GBRG16LE)
1057#define AV_PIX_FMT_BAYER_GRBG16 AV_PIX_FMT_NE(BAYER_GRBG16BE, BAYER_GRBG16LE)
1059#define AV_PIX_FMT_GBRPF32 AV_PIX_FMT_NE(GBRPF32BE, GBRPF32LE)
1060#define AV_PIX_FMT_GBRAPF32 AV_PIX_FMT_NE(GBRAPF32BE, GBRAPF32LE)
1062#define AV_PIX_FMT_YUVA420P9 AV_PIX_FMT_NE(YUVA420P9BE , YUVA420P9LE)
1063#define AV_PIX_FMT_YUVA422P9 AV_PIX_FMT_NE(YUVA422P9BE , YUVA422P9LE)
1064#define AV_PIX_FMT_YUVA444P9 AV_PIX_FMT_NE(YUVA444P9BE , YUVA444P9LE)
1065#define AV_PIX_FMT_YUVA420P10 AV_PIX_FMT_NE(YUVA420P10BE, YUVA420P10LE)
1066#define AV_PIX_FMT_YUVA422P10 AV_PIX_FMT_NE(YUVA422P10BE, YUVA422P10LE)
1067#define AV_PIX_FMT_YUVA444P10 AV_PIX_FMT_NE(YUVA444P10BE, YUVA444P10LE)
1068#define AV_PIX_FMT_YUVA420P16 AV_PIX_FMT_NE(YUVA420P16BE, YUVA420P16LE)
1069#define AV_PIX_FMT_YUVA422P16 AV_PIX_FMT_NE(YUVA422P16BE, YUVA422P16LE)
1070#define AV_PIX_FMT_YUVA444P16 AV_PIX_FMT_NE(YUVA444P16BE, YUVA444P16LE)
1072#define AV_PIX_FMT_XYZ12 AV_PIX_FMT_NE(XYZ12BE, XYZ12LE)
1073#define AV_PIX_FMT_NV20 AV_PIX_FMT_NE(NV20BE, NV20LE)
1074#define AV_PIX_FMT_AYUV64 AV_PIX_FMT_NE(AYUV64BE, AYUV64LE)
1075#define AV_PIX_FMT_P010 AV_PIX_FMT_NE(P010BE, P010LE)
1076#define AV_PIX_FMT_P016 AV_PIX_FMT_NE(P016BE, P016LE)
1163 return (
void *)(intptr_t)(p ? p : x);
1167 const void *list, uint64_t term)
av_pure;
1169#define av_int_list_length(list, term) \
1170 av_int_list_length_for_size(sizeof(*(list)), list, term)
1176#define AV_FOURCC_MAX_STRING_SIZE 32
1178#define av_fourcc2str(fourcc) av_fourcc_make_string((char[AV_FOURCC_MAX_STRING_SIZE]){0}, fourcc)
1222 int nb_channels,
int nb_samples,
1232 int src_offset,
int nb_samples,
int nb_channels,
1238#define AVUTIL_BUFFER_H
1254#define AV_BUFFER_FLAG_READONLY (1 << 0)
1257 void (*
free)(
void *opaque, uint8_t *data),
1258 void *opaque,
int flags);
1282 void (*pool_free)(
void *opaque));
1290#define AV_CPU_FLAG_FORCE 0x80000000
1292#define AV_CPU_FLAG_MMX 0x0001
1293#define AV_CPU_FLAG_MMXEXT 0x0002
1294#define AV_CPU_FLAG_MMX2 0x0002
1295#define AV_CPU_FLAG_3DNOW 0x0004
1296#define AV_CPU_FLAG_SSE 0x0008
1297#define AV_CPU_FLAG_SSE2 0x0010
1298#define AV_CPU_FLAG_SSE2SLOW 0x40000000
1300#define AV_CPU_FLAG_3DNOWEXT 0x0020
1301#define AV_CPU_FLAG_SSE3 0x0040
1302#define AV_CPU_FLAG_SSE3SLOW 0x20000000
1304#define AV_CPU_FLAG_SSSE3 0x0080
1305#define AV_CPU_FLAG_SSSE3SLOW 0x4000000
1306#define AV_CPU_FLAG_ATOM 0x10000000
1307#define AV_CPU_FLAG_SSE4 0x0100
1308#define AV_CPU_FLAG_SSE42 0x0200
1309#define AV_CPU_FLAG_AESNI 0x80000
1310#define AV_CPU_FLAG_AVX 0x4000
1311#define AV_CPU_FLAG_AVXSLOW 0x8000000
1312#define AV_CPU_FLAG_XOP 0x0400
1313#define AV_CPU_FLAG_FMA4 0x0800
1314#define AV_CPU_FLAG_CMOV 0x1000
1315#define AV_CPU_FLAG_AVX2 0x8000
1316#define AV_CPU_FLAG_FMA3 0x10000
1317#define AV_CPU_FLAG_BMI1 0x20000
1318#define AV_CPU_FLAG_BMI2 0x40000
1320#define AV_CPU_FLAG_ALTIVEC 0x0001
1321#define AV_CPU_FLAG_VSX 0x0002
1322#define AV_CPU_FLAG_POWER8 0x0004
1324#define AV_CPU_FLAG_ARMV5TE (1 << 0)
1325#define AV_CPU_FLAG_ARMV6 (1 << 1)
1326#define AV_CPU_FLAG_ARMV6T2 (1 << 2)
1327#define AV_CPU_FLAG_VFP (1 << 3)
1328#define AV_CPU_FLAG_VFPV3 (1 << 4)
1329#define AV_CPU_FLAG_NEON (1 << 5)
1330#define AV_CPU_FLAG_ARMV8 (1 << 6)
1331#define AV_CPU_FLAG_VFP_VM (1 << 7)
1332#define AV_CPU_FLAG_SETEND (1 <<16)
1349#define AVUTIL_CHANNEL_LAYOUT_H
1351#define AV_CH_FRONT_LEFT 0x00000001
1352#define AV_CH_FRONT_RIGHT 0x00000002
1353#define AV_CH_FRONT_CENTER 0x00000004
1354#define AV_CH_LOW_FREQUENCY 0x00000008
1355#define AV_CH_BACK_LEFT 0x00000010
1356#define AV_CH_BACK_RIGHT 0x00000020
1357#define AV_CH_FRONT_LEFT_OF_CENTER 0x00000040
1358#define AV_CH_FRONT_RIGHT_OF_CENTER 0x00000080
1359#define AV_CH_BACK_CENTER 0x00000100
1360#define AV_CH_SIDE_LEFT 0x00000200
1361#define AV_CH_SIDE_RIGHT 0x00000400
1362#define AV_CH_TOP_CENTER 0x00000800
1363#define AV_CH_TOP_FRONT_LEFT 0x00001000
1364#define AV_CH_TOP_FRONT_CENTER 0x00002000
1365#define AV_CH_TOP_FRONT_RIGHT 0x00004000
1366#define AV_CH_TOP_BACK_LEFT 0x00008000
1367#define AV_CH_TOP_BACK_CENTER 0x00010000
1368#define AV_CH_TOP_BACK_RIGHT 0x00020000
1369#define AV_CH_STEREO_LEFT 0x20000000
1370#define AV_CH_STEREO_RIGHT 0x40000000
1371#define AV_CH_WIDE_LEFT 0x0000000080000000ULL
1372#define AV_CH_WIDE_RIGHT 0x0000000100000000ULL
1373#define AV_CH_SURROUND_DIRECT_LEFT 0x0000000200000000ULL
1374#define AV_CH_SURROUND_DIRECT_RIGHT 0x0000000400000000ULL
1375#define AV_CH_LOW_FREQUENCY_2 0x0000000800000000ULL
1377#define AV_CH_LAYOUT_NATIVE 0x8000000000000000ULL
1379#define AV_CH_LAYOUT_MONO (AV_CH_FRONT_CENTER)
1380#define AV_CH_LAYOUT_STEREO (AV_CH_FRONT_LEFT|AV_CH_FRONT_RIGHT)
1381#define AV_CH_LAYOUT_2POINT1 (AV_CH_LAYOUT_STEREO|AV_CH_LOW_FREQUENCY)
1382#define AV_CH_LAYOUT_2_1 (AV_CH_LAYOUT_STEREO|AV_CH_BACK_CENTER)
1383#define AV_CH_LAYOUT_SURROUND (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER)
1384#define AV_CH_LAYOUT_3POINT1 (AV_CH_LAYOUT_SURROUND|AV_CH_LOW_FREQUENCY)
1385#define AV_CH_LAYOUT_4POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_CENTER)
1386#define AV_CH_LAYOUT_4POINT1 (AV_CH_LAYOUT_4POINT0|AV_CH_LOW_FREQUENCY)
1387#define AV_CH_LAYOUT_2_2 (AV_CH_LAYOUT_STEREO|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT)
1388#define AV_CH_LAYOUT_QUAD (AV_CH_LAYOUT_STEREO|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
1389#define AV_CH_LAYOUT_5POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT)
1390#define AV_CH_LAYOUT_5POINT1 (AV_CH_LAYOUT_5POINT0|AV_CH_LOW_FREQUENCY)
1391#define AV_CH_LAYOUT_5POINT0_BACK (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
1392#define AV_CH_LAYOUT_5POINT1_BACK (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_LOW_FREQUENCY)
1393#define AV_CH_LAYOUT_6POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER)
1394#define AV_CH_LAYOUT_6POINT0_FRONT (AV_CH_LAYOUT_2_2|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
1395#define AV_CH_LAYOUT_HEXAGONAL (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_BACK_CENTER)
1396#define AV_CH_LAYOUT_6POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_CENTER)
1397#define AV_CH_LAYOUT_6POINT1_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_BACK_CENTER)
1398#define AV_CH_LAYOUT_6POINT1_FRONT (AV_CH_LAYOUT_6POINT0_FRONT|AV_CH_LOW_FREQUENCY)
1399#define AV_CH_LAYOUT_7POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
1400#define AV_CH_LAYOUT_7POINT0_FRONT (AV_CH_LAYOUT_5POINT0|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
1401#define AV_CH_LAYOUT_7POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
1402#define AV_CH_LAYOUT_7POINT1_WIDE (AV_CH_LAYOUT_5POINT1|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
1403#define AV_CH_LAYOUT_7POINT1_WIDE_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
1404#define AV_CH_LAYOUT_OCTAGONAL (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_CENTER|AV_CH_BACK_RIGHT)
1405#define AV_CH_LAYOUT_HEXADECAGONAL (AV_CH_LAYOUT_OCTAGONAL|AV_CH_WIDE_LEFT|AV_CH_WIDE_RIGHT|AV_CH_TOP_BACK_LEFT|AV_CH_TOP_BACK_RIGHT|AV_CH_TOP_BACK_CENTER|AV_CH_TOP_FRONT_CENTER|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT)
1406#define AV_CH_LAYOUT_STEREO_DOWNMIX (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT)
1445#define AVUTIL_DICT_H
1447#define AV_DICT_MATCH_CASE 1
1448#define AV_DICT_IGNORE_SUFFIX 2
1450#define AV_DICT_DONT_STRDUP_KEY 4
1452#define AV_DICT_DONT_STRDUP_VAL 8
1454#define AV_DICT_DONT_OVERWRITE 16
1455#define AV_DICT_APPEND 32
1457#define AV_DICT_MULTIKEY 64
1476 const char *key_val_sep,
const char *pairs_sep,
1484 const char key_val_sep,
const char pairs_sep);
1486#define AVUTIL_FRAME_H
1542#define AV_NUM_DATA_POINTERS 8
1603#define AV_FRAME_FLAG_CORRUPT (1 << 0)
1605#define AV_FRAME_FLAG_DISCARD (1 << 2)
1628#define FF_DECODE_ERROR_INVALID_BITSTREAM 1
1629#define FF_DECODE_ERROR_MISSING_REFERENCE 2
1727#define AVCODEC_VERSION_H
1729#define LIBAVCODEC_VERSION_MAJOR 57
1730#define LIBAVCODEC_VERSION_MINOR 107
1731#define LIBAVCODEC_VERSION_MICRO 100
1733#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
1734 LIBAVCODEC_VERSION_MINOR, \
1735 LIBAVCODEC_VERSION_MICRO)
1736#define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \
1737 LIBAVCODEC_VERSION_MINOR, \
1738 LIBAVCODEC_VERSION_MICRO)
1739#define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
1741#define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
1743#define FF_API_VIMA_DECODER (LIBAVCODEC_VERSION_MAJOR < 58)
1744#define FF_API_AUDIO_CONVERT (LIBAVCODEC_VERSION_MAJOR < 58)
1745#define FF_API_AVCODEC_RESAMPLE FF_API_AUDIO_CONVERT
1746#define FF_API_MISSING_SAMPLE (LIBAVCODEC_VERSION_MAJOR < 58)
1747#define FF_API_LOWRES (LIBAVCODEC_VERSION_MAJOR < 58)
1748#define FF_API_CAP_VDPAU (LIBAVCODEC_VERSION_MAJOR < 58)
1749#define FF_API_BUFS_VDPAU (LIBAVCODEC_VERSION_MAJOR < 58)
1750#define FF_API_VOXWARE (LIBAVCODEC_VERSION_MAJOR < 58)
1751#define FF_API_SET_DIMENSIONS (LIBAVCODEC_VERSION_MAJOR < 58)
1752#define FF_API_DEBUG_MV (LIBAVCODEC_VERSION_MAJOR < 58)
1753#define FF_API_AC_VLC (LIBAVCODEC_VERSION_MAJOR < 58)
1754#define FF_API_OLD_MSMPEG4 (LIBAVCODEC_VERSION_MAJOR < 58)
1755#define FF_API_ASPECT_EXTENDED (LIBAVCODEC_VERSION_MAJOR < 58)
1756#define FF_API_ARCH_ALPHA (LIBAVCODEC_VERSION_MAJOR < 58)
1757#define FF_API_ERROR_RATE (LIBAVCODEC_VERSION_MAJOR < 58)
1758#define FF_API_QSCALE_TYPE (LIBAVCODEC_VERSION_MAJOR < 58)
1759#define FF_API_MB_TYPE (LIBAVCODEC_VERSION_MAJOR < 58)
1760#define FF_API_MAX_BFRAMES (LIBAVCODEC_VERSION_MAJOR < 58)
1761#define FF_API_NEG_LINESIZES (LIBAVCODEC_VERSION_MAJOR < 58)
1762#define FF_API_EMU_EDGE (LIBAVCODEC_VERSION_MAJOR < 58)
1763#define FF_API_ARCH_SH4 (LIBAVCODEC_VERSION_MAJOR < 58)
1764#define FF_API_ARCH_SPARC (LIBAVCODEC_VERSION_MAJOR < 58)
1765#define FF_API_UNUSED_MEMBERS (LIBAVCODEC_VERSION_MAJOR < 58)
1766#define FF_API_IDCT_XVIDMMX (LIBAVCODEC_VERSION_MAJOR < 58)
1767#define FF_API_INPUT_PRESERVED (LIBAVCODEC_VERSION_MAJOR < 58)
1768#define FF_API_NORMALIZE_AQP (LIBAVCODEC_VERSION_MAJOR < 58)
1769#define FF_API_GMC (LIBAVCODEC_VERSION_MAJOR < 58)
1770#define FF_API_MV0 (LIBAVCODEC_VERSION_MAJOR < 58)
1771#define FF_API_CODEC_NAME (LIBAVCODEC_VERSION_MAJOR < 58)
1772#define FF_API_AFD (LIBAVCODEC_VERSION_MAJOR < 58)
1774#define FF_API_VISMV (LIBAVCODEC_VERSION_MAJOR < 58)
1775#define FF_API_AUDIOENC_DELAY (LIBAVCODEC_VERSION_MAJOR < 58)
1776#define FF_API_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 58)
1777#define FF_API_MERGE_SD (LIBAVCODEC_VERSION_MAJOR < 58)
1778#define FF_API_AVCTX_TIMEBASE (LIBAVCODEC_VERSION_MAJOR < 59)
1779#define FF_API_MPV_OPT (LIBAVCODEC_VERSION_MAJOR < 59)
1780#define FF_API_STREAM_CODEC_TAG (LIBAVCODEC_VERSION_MAJOR < 59)
1781#define FF_API_QUANT_BIAS (LIBAVCODEC_VERSION_MAJOR < 59)
1782#define FF_API_RC_STRATEGY (LIBAVCODEC_VERSION_MAJOR < 59)
1783#define FF_API_CODED_FRAME (LIBAVCODEC_VERSION_MAJOR < 59)
1784#define FF_API_MOTION_EST (LIBAVCODEC_VERSION_MAJOR < 59)
1785#define FF_API_WITHOUT_PREFIX (LIBAVCODEC_VERSION_MAJOR < 59)
1786#define FF_API_SIDEDATA_ONLY_PKT (LIBAVCODEC_VERSION_MAJOR < 59)
1787#define FF_API_VDPAU_PROFILE (LIBAVCODEC_VERSION_MAJOR < 59)
1788#define FF_API_CONVERGENCE_DURATION (LIBAVCODEC_VERSION_MAJOR < 59)
1789#define FF_API_AVPICTURE (LIBAVCODEC_VERSION_MAJOR < 59)
1790#define FF_API_AVPACKET_OLD_API (LIBAVCODEC_VERSION_MAJOR < 59)
1791#define FF_API_RTP_CALLBACK (LIBAVCODEC_VERSION_MAJOR < 59)
1792#define FF_API_VBV_DELAY (LIBAVCODEC_VERSION_MAJOR < 59)
1793#define FF_API_CODER_TYPE (LIBAVCODEC_VERSION_MAJOR < 59)
1794#define FF_API_STAT_BITS (LIBAVCODEC_VERSION_MAJOR < 59)
1795#define FF_API_PRIVATE_OPT (LIBAVCODEC_VERSION_MAJOR < 59)
1796#define FF_API_ASS_TIMING (LIBAVCODEC_VERSION_MAJOR < 59)
1797#define FF_API_OLD_BSF (LIBAVCODEC_VERSION_MAJOR < 59)
1798#define FF_API_COPY_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
1799#define FF_API_GET_CONTEXT_DEFAULTS (LIBAVCODEC_VERSION_MAJOR < 59)
1800#define FF_API_NVENC_OLD_NAME (LIBAVCODEC_VERSION_MAJOR < 59)
1801#define FF_API_STRUCT_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
1802#define FF_API_MERGE_SD_API (LIBAVCODEC_VERSION_MAJOR < 59)
1803#define FF_API_TAG_STRING (LIBAVCODEC_VERSION_MAJOR < 59)
1804#define FF_API_GETCHROMA (LIBAVCODEC_VERSION_MAJOR < 59)
1946#define AV_CODEC_ID_IFF_BYTERUN1 AV_CODEC_ID_IFF_ILBM
1984#define AV_CODEC_ID_H265 AV_CODEC_ID_HEVC
2289#define AV_CODEC_PROP_INTRA_ONLY (1 << 0)
2291#define AV_CODEC_PROP_LOSSY (1 << 1)
2293#define AV_CODEC_PROP_LOSSLESS (1 << 2)
2295#define AV_CODEC_PROP_REORDER (1 << 3)
2297#define AV_CODEC_PROP_BITMAP_SUB (1 << 16)
2299#define AV_CODEC_PROP_TEXT_SUB (1 << 17)
2301#define AV_INPUT_BUFFER_PADDING_SIZE 32
2303#define AV_INPUT_BUFFER_MIN_SIZE 16384
2305#define FF_INPUT_BUFFER_PADDING_SIZE 32
2307#define FF_MIN_BUFFER_SIZE 16384
2353#define FF_MAX_B_FRAMES 16
2355#define AV_CODEC_FLAG_UNALIGNED (1 << 0)
2357#define AV_CODEC_FLAG_QSCALE (1 << 1)
2359#define AV_CODEC_FLAG_4MV (1 << 2)
2361#define AV_CODEC_FLAG_OUTPUT_CORRUPT (1 << 3)
2363#define AV_CODEC_FLAG_QPEL (1 << 4)
2365#define AV_CODEC_FLAG_PASS1 (1 << 9)
2367#define AV_CODEC_FLAG_PASS2 (1 << 10)
2369#define AV_CODEC_FLAG_LOOP_FILTER (1 << 11)
2371#define AV_CODEC_FLAG_GRAY (1 << 13)
2373#define AV_CODEC_FLAG_PSNR (1 << 15)
2375#define AV_CODEC_FLAG_TRUNCATED (1 << 16)
2377#define AV_CODEC_FLAG_INTERLACED_DCT (1 << 18)
2379#define AV_CODEC_FLAG_LOW_DELAY (1 << 19)
2381#define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22)
2383#define AV_CODEC_FLAG_BITEXACT (1 << 23)
2385#define AV_CODEC_FLAG_AC_PRED (1 << 24)
2387#define AV_CODEC_FLAG_INTERLACED_ME (1 << 29)
2388#define AV_CODEC_FLAG_CLOSED_GOP (1U << 31)
2390#define AV_CODEC_FLAG2_FAST (1 << 0)
2392#define AV_CODEC_FLAG2_NO_OUTPUT (1 << 2)
2394#define AV_CODEC_FLAG2_LOCAL_HEADER (1 << 3)
2396#define AV_CODEC_FLAG2_DROP_FRAME_TIMECODE (1 << 13)
2398#define AV_CODEC_FLAG2_CHUNKS (1 << 15)
2400#define AV_CODEC_FLAG2_IGNORE_CROP (1 << 16)
2402#define AV_CODEC_FLAG2_SHOW_ALL (1 << 22)
2404#define AV_CODEC_FLAG2_EXPORT_MVS (1 << 28)
2406#define AV_CODEC_FLAG2_SKIP_MANUAL (1 << 29)
2408#define AV_CODEC_FLAG2_RO_FLUSH_NOOP (1 << 30)
2410#define AV_CODEC_CAP_DRAW_HORIZ_BAND (1 << 0)
2412#define AV_CODEC_CAP_DR1 (1 << 1)
2413#define AV_CODEC_CAP_TRUNCATED (1 << 3)
2415#define AV_CODEC_CAP_DELAY (1 << 5)
2417#define AV_CODEC_CAP_SMALL_LAST_FRAME (1 << 6)
2419#define AV_CODEC_CAP_HWACCEL_VDPAU (1 << 7)
2421#define AV_CODEC_CAP_SUBFRAMES (1 << 8)
2423#define AV_CODEC_CAP_EXPERIMENTAL (1 << 9)
2425#define AV_CODEC_CAP_CHANNEL_CONF (1 << 10)
2427#define AV_CODEC_CAP_FRAME_THREADS (1 << 12)
2429#define AV_CODEC_CAP_SLICE_THREADS (1 << 13)
2431#define AV_CODEC_CAP_PARAM_CHANGE (1 << 14)
2433#define AV_CODEC_CAP_AUTO_THREADS (1 << 15)
2435#define AV_CODEC_CAP_VARIABLE_FRAME_SIZE (1 << 16)
2437#define AV_CODEC_CAP_AVOID_PROBING (1 << 17)
2439#define AV_CODEC_CAP_INTRA_ONLY 0x40000000
2441#define AV_CODEC_CAP_LOSSLESS 0x80000000
2443#define CODEC_FLAG_UNALIGNED AV_CODEC_FLAG_UNALIGNED
2444#define CODEC_FLAG_QSCALE AV_CODEC_FLAG_QSCALE
2445#define CODEC_FLAG_4MV AV_CODEC_FLAG_4MV
2446#define CODEC_FLAG_OUTPUT_CORRUPT AV_CODEC_FLAG_OUTPUT_CORRUPT
2447#define CODEC_FLAG_QPEL AV_CODEC_FLAG_QPEL
2449#define CODEC_FLAG_GMC 0x0020
2451#define CODEC_FLAG_MV0 0x0040
2453#define CODEC_FLAG_INPUT_PRESERVED 0x0100
2454#define CODEC_FLAG_PASS1 AV_CODEC_FLAG_PASS1
2455#define CODEC_FLAG_PASS2 AV_CODEC_FLAG_PASS2
2456#define CODEC_FLAG_GRAY AV_CODEC_FLAG_GRAY
2458#define CODEC_FLAG_EMU_EDGE 0x4000
2459#define CODEC_FLAG_PSNR AV_CODEC_FLAG_PSNR
2460#define CODEC_FLAG_TRUNCATED AV_CODEC_FLAG_TRUNCATED
2462#define CODEC_FLAG_NORMALIZE_AQP 0x00020000
2463#define CODEC_FLAG_INTERLACED_DCT AV_CODEC_FLAG_INTERLACED_DCT
2464#define CODEC_FLAG_LOW_DELAY AV_CODEC_FLAG_LOW_DELAY
2465#define CODEC_FLAG_GLOBAL_HEADER AV_CODEC_FLAG_GLOBAL_HEADER
2466#define CODEC_FLAG_BITEXACT AV_CODEC_FLAG_BITEXACT
2467#define CODEC_FLAG_AC_PRED AV_CODEC_FLAG_AC_PRED
2468#define CODEC_FLAG_LOOP_FILTER AV_CODEC_FLAG_LOOP_FILTER
2469#define CODEC_FLAG_INTERLACED_ME AV_CODEC_FLAG_INTERLACED_ME
2470#define CODEC_FLAG_CLOSED_GOP AV_CODEC_FLAG_CLOSED_GOP
2471#define CODEC_FLAG2_FAST AV_CODEC_FLAG2_FAST
2472#define CODEC_FLAG2_NO_OUTPUT AV_CODEC_FLAG2_NO_OUTPUT
2473#define CODEC_FLAG2_LOCAL_HEADER AV_CODEC_FLAG2_LOCAL_HEADER
2474#define CODEC_FLAG2_DROP_FRAME_TIMECODE AV_CODEC_FLAG2_DROP_FRAME_TIMECODE
2475#define CODEC_FLAG2_IGNORE_CROP AV_CODEC_FLAG2_IGNORE_CROP
2477#define CODEC_FLAG2_CHUNKS AV_CODEC_FLAG2_CHUNKS
2478#define CODEC_FLAG2_SHOW_ALL AV_CODEC_FLAG2_SHOW_ALL
2479#define CODEC_FLAG2_EXPORT_MVS AV_CODEC_FLAG2_EXPORT_MVS
2480#define CODEC_FLAG2_SKIP_MANUAL AV_CODEC_FLAG2_SKIP_MANUAL
2482#define CODEC_CAP_DRAW_HORIZ_BAND AV_CODEC_CAP_DRAW_HORIZ_BAND
2484#define CODEC_CAP_DR1 AV_CODEC_CAP_DR1
2485#define CODEC_CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
2487#define CODEC_CAP_HWACCEL 0x0010
2489#define CODEC_CAP_DELAY AV_CODEC_CAP_DELAY
2491#define CODEC_CAP_SMALL_LAST_FRAME AV_CODEC_CAP_SMALL_LAST_FRAME
2493#define CODEC_CAP_HWACCEL_VDPAU AV_CODEC_CAP_HWACCEL_VDPAU
2495#define CODEC_CAP_SUBFRAMES AV_CODEC_CAP_SUBFRAMES
2497#define CODEC_CAP_EXPERIMENTAL AV_CODEC_CAP_EXPERIMENTAL
2499#define CODEC_CAP_CHANNEL_CONF AV_CODEC_CAP_CHANNEL_CONF
2501#define CODEC_CAP_NEG_LINESIZES 0x0800
2503#define CODEC_CAP_FRAME_THREADS AV_CODEC_CAP_FRAME_THREADS
2505#define CODEC_CAP_SLICE_THREADS AV_CODEC_CAP_SLICE_THREADS
2507#define CODEC_CAP_PARAM_CHANGE AV_CODEC_CAP_PARAM_CHANGE
2509#define CODEC_CAP_AUTO_THREADS AV_CODEC_CAP_AUTO_THREADS
2511#define CODEC_CAP_VARIABLE_FRAME_SIZE AV_CODEC_CAP_VARIABLE_FRAME_SIZE
2513#define CODEC_CAP_INTRA_ONLY AV_CODEC_CAP_INTRA_ONLY
2515#define CODEC_CAP_LOSSLESS AV_CODEC_CAP_LOSSLESS
2517#define HWACCEL_CODEC_CAP_EXPERIMENTAL 0x0200
2519#define MB_TYPE_INTRA4x4 0x0001
2520#define MB_TYPE_INTRA16x16 0x0002
2521#define MB_TYPE_INTRA_PCM 0x0004
2522#define MB_TYPE_16x16 0x0008
2523#define MB_TYPE_16x8 0x0010
2524#define MB_TYPE_8x16 0x0020
2525#define MB_TYPE_8x8 0x0040
2526#define MB_TYPE_INTERLACED 0x0080
2527#define MB_TYPE_DIRECT2 0x0100
2528#define MB_TYPE_ACPRED 0x0200
2529#define MB_TYPE_GMC 0x0400
2530#define MB_TYPE_SKIP 0x0800
2531#define MB_TYPE_P0L0 0x1000
2532#define MB_TYPE_P1L0 0x2000
2533#define MB_TYPE_P0L1 0x4000
2534#define MB_TYPE_P1L1 0x8000
2535#define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0)
2536#define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1)
2537#define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1)
2538#define MB_TYPE_QUANT 0x00010000
2539#define MB_TYPE_CBP 0x00020000
2564#define FF_QSCALE_TYPE_MPEG1 0
2565#define FF_QSCALE_TYPE_MPEG2 1
2566#define FF_QSCALE_TYPE_H264 2
2567#define FF_QSCALE_TYPE_VP56 3
2569#define AV_GET_BUFFER_FLAG_REF (1 << 0)
2624#define AV_PKT_DATA_QUALITY_FACTOR AV_PKT_DATA_QUALITY_STATS
2655#define AV_PKT_FLAG_KEY 0x0001
2656#define AV_PKT_FLAG_CORRUPT 0x0002
2658#define AV_PKT_FLAG_DISCARD 0x0004
2660#define AV_PKT_FLAG_TRUSTED 0x0008
2669struct AVCodecInternal;
2710#define FF_COMPRESSION_DEFAULT -1
2729#define FF_ASPECT_EXTENDED 15
2739 int y,
int type,
int height);
2748#define FF_RC_STRATEGY_XVID 1
2778#define FF_PRED_LEFT 0
2779#define FF_PRED_PLANE 1
2780#define FF_PRED_MEDIAN 2
2795#define FF_CMP_SATD 2
2797#define FF_CMP_PSNR 4
2800#define FF_CMP_ZERO 7
2801#define FF_CMP_VSAD 8
2802#define FF_CMP_VSSE 9
2803#define FF_CMP_NSSE 10
2804#define FF_CMP_W53 11
2805#define FF_CMP_W97 12
2806#define FF_CMP_DCTMAX 13
2807#define FF_CMP_DCT264 14
2808#define FF_CMP_MEDIAN_SAD 15
2809#define FF_CMP_CHROMA 256
2825#define FF_DTG_AFD_SAME 8
2826#define FF_DTG_AFD_4_3 9
2827#define FF_DTG_AFD_16_9 10
2828#define FF_DTG_AFD_14_9 11
2829#define FF_DTG_AFD_4_3_SP_14_9 13
2830#define FF_DTG_AFD_16_9_SP_14_9 14
2831#define FF_DTG_AFD_SP_4_3 15
2836#define FF_DEFAULT_QUANT_BIAS 999999
2841#define SLICE_FLAG_CODED_ORDER 0x0001
2842#define SLICE_FLAG_ALLOW_FIELD 0x0002
2843#define SLICE_FLAG_ALLOW_PLANE 0x0004
2848#define FF_MB_DECISION_SIMPLE 0
2849#define FF_MB_DECISION_BITS 1
2850#define FF_MB_DECISION_RD 2
2984#define FF_CODER_TYPE_VLC 0
2985#define FF_CODER_TYPE_AC 1
2986#define FF_CODER_TYPE_RAW 2
2987#define FF_CODER_TYPE_RLE 3
2988#define FF_CODER_TYPE_DEFLATE 4
3056#define FF_BUG_AUTODETECT 1
3057#define FF_BUG_OLD_MSMPEG4 2
3058#define FF_BUG_XVID_ILACE 4
3059#define FF_BUG_UMP4 8
3060#define FF_BUG_NO_PADDING 16
3061#define FF_BUG_AMV 32
3062#define FF_BUG_AC_VLC 0
3063#define FF_BUG_QPEL_CHROMA 64
3064#define FF_BUG_STD_QPEL 128
3065#define FF_BUG_QPEL_CHROMA2 256
3066#define FF_BUG_DIRECT_BLOCKSIZE 512
3067#define FF_BUG_EDGE 1024
3068#define FF_BUG_HPEL_CHROMA 2048
3069#define FF_BUG_DC_CLIP 4096
3070#define FF_BUG_MS 8192
3071#define FF_BUG_TRUNCATED 16384
3072#define FF_BUG_IEDGE 32768
3075#define FF_COMPLIANCE_VERY_STRICT 2
3076#define FF_COMPLIANCE_STRICT 1
3077#define FF_COMPLIANCE_NORMAL 0
3078#define FF_COMPLIANCE_UNOFFICIAL -1
3079#define FF_COMPLIANCE_EXPERIMENTAL -2
3082#define FF_EC_GUESS_MVS 1
3083#define FF_EC_DEBLOCK 2
3084#define FF_EC_FAVOR_INTER 256
3087#define FF_DEBUG_PICT_INFO 1
3088#define FF_DEBUG_RC 2
3089#define FF_DEBUG_BITSTREAM 4
3090#define FF_DEBUG_MB_TYPE 8
3091#define FF_DEBUG_QP 16
3093#define FF_DEBUG_MV 32
3094#define FF_DEBUG_DCT_COEFF 0x00000040
3095#define FF_DEBUG_SKIP 0x00000080
3096#define FF_DEBUG_STARTCODE 0x00000100
3097#define FF_DEBUG_PTS 0x00000200
3098#define FF_DEBUG_ER 0x00000400
3099#define FF_DEBUG_MMCO 0x00000800
3100#define FF_DEBUG_BUGS 0x00001000
3101#define FF_DEBUG_VIS_QP 0x00002000
3102#define FF_DEBUG_VIS_MB_TYPE 0x00004000
3103#define FF_DEBUG_BUFFERS 0x00008000
3104#define FF_DEBUG_THREADS 0x00010000
3105#define FF_DEBUG_GREEN_MD 0x00800000
3106#define FF_DEBUG_NOMC 0x01000000
3109#define FF_DEBUG_VIS_MV_P_FOR 0x00000001
3110#define FF_DEBUG_VIS_MV_B_FOR 0x00000002
3111#define FF_DEBUG_VIS_MV_B_BACK 0x00000004
3115#define AV_EF_CRCCHECK (1<<0)
3116#define AV_EF_BITSTREAM (1<<1)
3117#define AV_EF_BUFFER (1<<2)
3118#define AV_EF_EXPLODE (1<<3)
3120#define AV_EF_IGNORE_ERR (1<<15)
3121#define AV_EF_CAREFUL (1<<16)
3122#define AV_EF_COMPLIANT (1<<17)
3123#define AV_EF_AGGRESSIVE (1<<18)
3134#define FF_DCT_AUTO 0
3135#define FF_DCT_FASTINT 1
3138#define FF_DCT_ALTIVEC 5
3139#define FF_DCT_FAAN 6
3142#define FF_IDCT_AUTO 0
3143#define FF_IDCT_INT 1
3144#define FF_IDCT_SIMPLE 2
3145#define FF_IDCT_SIMPLEMMX 3
3146#define FF_IDCT_ARM 7
3147#define FF_IDCT_ALTIVEC 8
3148#define FF_IDCT_SH4 9
3149#define FF_IDCT_SIMPLEARM 10
3150#define FF_IDCT_IPP 13
3151#define FF_IDCT_XVID 14
3152#define FF_IDCT_XVIDMMX 14
3153#define FF_IDCT_SIMPLEARMV5TE 16
3154#define FF_IDCT_SIMPLEARMV6 17
3155#define FF_IDCT_SIMPLEVIS 18
3156#define FF_IDCT_FAAN 20
3157#define FF_IDCT_SIMPLENEON 22
3158#define FF_IDCT_SIMPLEALPHA 23
3159#define FF_IDCT_NONE 24
3160#define FF_IDCT_SIMPLEAUTO 128
3173#define FF_THREAD_FRAME 1
3174#define FF_THREAD_SLICE 2
3187#define FF_PROFILE_UNKNOWN -99
3188#define FF_PROFILE_RESERVED -100
3190#define FF_PROFILE_AAC_MAIN 0
3191#define FF_PROFILE_AAC_LOW 1
3192#define FF_PROFILE_AAC_SSR 2
3193#define FF_PROFILE_AAC_LTP 3
3194#define FF_PROFILE_AAC_HE 4
3195#define FF_PROFILE_AAC_HE_V2 28
3196#define FF_PROFILE_AAC_LD 22
3197#define FF_PROFILE_AAC_ELD 38
3198#define FF_PROFILE_MPEG2_AAC_LOW 128
3199#define FF_PROFILE_MPEG2_AAC_HE 131
3201#define FF_PROFILE_DNXHD 0
3202#define FF_PROFILE_DNXHR_LB 1
3203#define FF_PROFILE_DNXHR_SQ 2
3204#define FF_PROFILE_DNXHR_HQ 3
3205#define FF_PROFILE_DNXHR_HQX 4
3206#define FF_PROFILE_DNXHR_444 5
3208#define FF_PROFILE_DTS 20
3209#define FF_PROFILE_DTS_ES 30
3210#define FF_PROFILE_DTS_96_24 40
3211#define FF_PROFILE_DTS_HD_HRA 50
3212#define FF_PROFILE_DTS_HD_MA 60
3213#define FF_PROFILE_DTS_EXPRESS 70
3215#define FF_PROFILE_MPEG2_422 0
3216#define FF_PROFILE_MPEG2_HIGH 1
3217#define FF_PROFILE_MPEG2_SS 2
3218#define FF_PROFILE_MPEG2_SNR_SCALABLE 3
3219#define FF_PROFILE_MPEG2_MAIN 4
3220#define FF_PROFILE_MPEG2_SIMPLE 5
3222#define FF_PROFILE_H264_CONSTRAINED (1<<9)
3223#define FF_PROFILE_H264_INTRA (1<<11)
3225#define FF_PROFILE_H264_BASELINE 66
3226#define FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED)
3227#define FF_PROFILE_H264_MAIN 77
3228#define FF_PROFILE_H264_EXTENDED 88
3229#define FF_PROFILE_H264_HIGH 100
3230#define FF_PROFILE_H264_HIGH_10 110
3231#define FF_PROFILE_H264_HIGH_10_INTRA (110|FF_PROFILE_H264_INTRA)
3232#define FF_PROFILE_H264_MULTIVIEW_HIGH 118
3233#define FF_PROFILE_H264_HIGH_422 122
3234#define FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA)
3235#define FF_PROFILE_H264_STEREO_HIGH 128
3236#define FF_PROFILE_H264_HIGH_444 144
3237#define FF_PROFILE_H264_HIGH_444_PREDICTIVE 244
3238#define FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA)
3239#define FF_PROFILE_H264_CAVLC_444 44
3241#define FF_PROFILE_VC1_SIMPLE 0
3242#define FF_PROFILE_VC1_MAIN 1
3243#define FF_PROFILE_VC1_COMPLEX 2
3244#define FF_PROFILE_VC1_ADVANCED 3
3246#define FF_PROFILE_MPEG4_SIMPLE 0
3247#define FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1
3248#define FF_PROFILE_MPEG4_CORE 2
3249#define FF_PROFILE_MPEG4_MAIN 3
3250#define FF_PROFILE_MPEG4_N_BIT 4
3251#define FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5
3252#define FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6
3253#define FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7
3254#define FF_PROFILE_MPEG4_HYBRID 8
3255#define FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9
3256#define FF_PROFILE_MPEG4_CORE_SCALABLE 10
3257#define FF_PROFILE_MPEG4_ADVANCED_CODING 11
3258#define FF_PROFILE_MPEG4_ADVANCED_CORE 12
3259#define FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13
3260#define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14
3261#define FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15
3263#define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0 1
3264#define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1 2
3265#define FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION 32768
3266#define FF_PROFILE_JPEG2000_DCINEMA_2K 3
3267#define FF_PROFILE_JPEG2000_DCINEMA_4K 4
3269#define FF_PROFILE_VP9_0 0
3270#define FF_PROFILE_VP9_1 1
3271#define FF_PROFILE_VP9_2 2
3272#define FF_PROFILE_VP9_3 3
3274#define FF_PROFILE_HEVC_MAIN 1
3275#define FF_PROFILE_HEVC_MAIN_10 2
3276#define FF_PROFILE_HEVC_MAIN_STILL_PICTURE 3
3277#define FF_PROFILE_HEVC_REXT 4
3280#define FF_LEVEL_UNKNOWN -99
3318#define FF_SUB_CHARENC_MODE_DO_NOTHING -1
3319#define FF_SUB_CHARENC_MODE_AUTOMATIC 0
3320#define FF_SUB_CHARENC_MODE_PRE_DECODER 1
3333#define FF_CODEC_PROPERTY_LOSSLESS 0x00000001
3334#define FF_CODEC_PROPERTY_CLOSED_CAPTIONS 0x00000002
3342#define FF_SUB_TEXT_FMT_ASS 0
3343#define FF_SUB_TEXT_FMT_ASS_WITH_TIMINGS 1
3416 int *got_packet_ptr);
3434struct MpegEncContext;
3460 void (*
decode_mb)(
struct MpegEncContext *s);
3471#define AV_HWACCEL_CODEC_CAP_EXPERIMENTAL 0x0200
3473#define AV_HWACCEL_FLAG_IGNORE_LEVEL (1 << 0)
3475#define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (1 << 1)
3477#define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2)
3496#define AV_SUBTITLE_FLAG_FORCED 0x00000001
3661 uint8_t *data,
size_t size);
3713 int *got_frame_ptr,
const AVPacket *avpkt);
3717 int *got_picture_ptr,
3757#define AV_PARSER_PTS_NB 4
3764#define PARSER_FLAG_COMPLETE_FRAMES 0x0001
3765#define PARSER_FLAG_ONCE 0x0002
3767#define PARSER_FLAG_FETCHED_OFFSET 0x0004
3768#define PARSER_FLAG_USE_CODEC_TS 0x1000
3814 const uint8_t **poutbuf,
int *poutbuf_size,
3815 const uint8_t *buf,
int buf_size);
3828 uint8_t **poutbuf,
int *poutbuf_size,
3829 const uint8_t *buf,
int buf_size,
3830 int64_t pts, int64_t dts,
3835 uint8_t **poutbuf,
int *poutbuf_size,
3836 const uint8_t *buf,
int buf_size,
int keyframe);
3845 const AVFrame *frame,
int *got_packet_ptr);
3849 const AVFrame *frame,
int *got_packet_ptr);
3855struct AVResampleContext;
3861 int output_rate,
int input_rate,
3864 int filter_length,
int log2_phase_count,
3865 int linear,
double cutoff);
3874struct AVResampleContext *
av_resample_init(
int out_rate,
int in_rate,
int filter_length,
int log2_phase_count,
int linear,
double cutoff);
3877int av_resample(
struct AVResampleContext *c,
short *dst,
short *src,
int *consumed,
int src_size,
int dst_size,
int update_ctx);
3896 int width,
int height,
3897 unsigned char *dest,
int dest_size);
3912 int padtop,
int padbottom,
int padleft,
int padright,
int *color);
3924 int has_alpha,
int *loss_ptr);
3927 enum AVPixelFormat src_pix_fmt,
int has_alpha,
int *loss_ptr);
3931 enum AVPixelFormat src_pix_fmt,
int has_alpha,
int *loss_ptr);
3952 int buf_size,
int align);
4018 uint8_t **poutbuf,
int *poutbuf_size,
4019 const uint8_t *buf,
int buf_size,
int keyframe);
4102#define AVFORMAT_AVFORMAT_H
4104#define AVFORMAT_AVIO_H
4106#define AVFORMAT_VERSION_H
4108#define LIBAVFORMAT_VERSION_MAJOR 57
4109#define LIBAVFORMAT_VERSION_MINOR 83
4110#define LIBAVFORMAT_VERSION_MICRO 100
4112#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
4113 LIBAVFORMAT_VERSION_MINOR, \
4114 LIBAVFORMAT_VERSION_MICRO)
4115#define LIBAVFORMAT_VERSION AV_VERSION(LIBAVFORMAT_VERSION_MAJOR, \
4116 LIBAVFORMAT_VERSION_MINOR, \
4117 LIBAVFORMAT_VERSION_MICRO)
4118#define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT
4120#define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
4122#define FF_API_LAVF_BITEXACT (LIBAVFORMAT_VERSION_MAJOR < 58)
4123#define FF_API_LAVF_FRAC (LIBAVFORMAT_VERSION_MAJOR < 58)
4124#define FF_API_LAVF_CODEC_TB (LIBAVFORMAT_VERSION_MAJOR < 58)
4125#define FF_API_URL_FEOF (LIBAVFORMAT_VERSION_MAJOR < 58)
4126#define FF_API_LAVF_FMT_RAWPICTURE (LIBAVFORMAT_VERSION_MAJOR < 58)
4127#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 58)
4128#define FF_API_OLD_OPEN_CALLBACKS (LIBAVFORMAT_VERSION_MAJOR < 58)
4129#define FF_API_LAVF_AVCTX (LIBAVFORMAT_VERSION_MAJOR < 58)
4130#define FF_API_NOCONST_GET_SIDE_DATA (LIBAVFORMAT_VERSION_MAJOR < 58)
4131#define FF_API_HTTP_USER_AGENT (LIBAVFORMAT_VERSION_MAJOR < 58)
4132#define FF_API_HLS_WRAP (LIBAVFORMAT_VERSION_MAJOR < 58)
4133#define FF_API_LAVF_MERGE_SD (LIBAVFORMAT_VERSION_MAJOR < 58)
4134#define FF_API_LAVF_KEEPSIDE_FLAG (LIBAVFORMAT_VERSION_MAJOR < 58)
4135#define FF_API_OLD_ROTATE_API (LIBAVFORMAT_VERSION_MAJOR < 58)
4137#define FF_API_R_FRAME_RATE 1
4139#define AVIO_SEEKABLE_NORMAL (1 << 0)
4141#define AVIO_SEEKABLE_TIME (1 << 1)
4211 int64_t (*
seek)(
void *
opaque, int64_t offset,
int whence);
4225 int64_t timestamp,
int flags);
4281 unsigned char *buffer,
4285 int (*read_packet)(
void *opaque, uint8_t *buf,
int buf_size),
4286 int (*write_packet)(
void *opaque, uint8_t *buf,
int buf_size),
4287 int64_t (*seek)(
void *opaque, int64_t offset,
int whence));
4310#define AVSEEK_SIZE 0x10000
4312#define AVSEEK_FORCE 0x20000
4353#define AVIO_FLAG_READ 1
4354#define AVIO_FLAG_WRITE 2
4355#define AVIO_FLAG_READ_WRITE (AVIO_FLAG_READ|AVIO_FLAG_WRITE)
4357#define AVIO_FLAG_NONBLOCK 8
4359#define AVIO_FLAG_DIRECT 0x8000
4381 int64_t timestamp,
int flags);
4393struct AVDeviceInfoList;
4394struct AVDeviceCapabilitiesQuery;
4413#define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
4414#define AVPROBE_SCORE_STREAM_RETRY (AVPROBE_SCORE_MAX/4-1)
4416#define AVPROBE_SCORE_EXTENSION 50
4417#define AVPROBE_SCORE_MIME 75
4418#define AVPROBE_SCORE_MAX 100
4420#define AVPROBE_PADDING_SIZE 32
4422#define AVFMT_NOFILE 0x0001
4423#define AVFMT_NEEDNUMBER 0x0002
4424#define AVFMT_SHOW_IDS 0x0008
4425#define AVFMT_RAWPICTURE 0x0020
4427#define AVFMT_GLOBALHEADER 0x0040
4428#define AVFMT_NOTIMESTAMPS 0x0080
4429#define AVFMT_GENERIC_INDEX 0x0100
4430#define AVFMT_TS_DISCONT 0x0200
4431#define AVFMT_VARIABLE_FPS 0x0400
4432#define AVFMT_NODIMENSIONS 0x0800
4433#define AVFMT_NOSTREAMS 0x1000
4434#define AVFMT_NOBINSEARCH 0x2000
4435#define AVFMT_NOGENSEARCH 0x4000
4436#define AVFMT_NO_BYTE_SEEK 0x8000
4437#define AVFMT_ALLOW_FLUSH 0x10000
4438#define AVFMT_TS_NONSTRICT 0x20000
4440#define AVFMT_TS_NEGATIVE 0x40000
4442#define AVFMT_SEEK_TO_PTS 0x4000000
4457 const struct AVCodecTag *
const *
codec_tag;
4476 int64_t *dts, int64_t *wall);
4479 void *data,
size_t data_size);
4508 const struct AVCodecTag *
const *
codec_tag;
4529 int stream_index, int64_t timestamp,
int flags);
4532 int64_t *pos, int64_t pos_limit);
4561#define AVINDEX_KEYFRAME 0x0001
4562#define AVINDEX_DISCARD_FRAME 0x0002
4569#define AV_DISPOSITION_DEFAULT 0x0001
4570#define AV_DISPOSITION_DUB 0x0002
4571#define AV_DISPOSITION_ORIGINAL 0x0004
4572#define AV_DISPOSITION_COMMENT 0x0008
4573#define AV_DISPOSITION_LYRICS 0x0010
4574#define AV_DISPOSITION_KARAOKE 0x0020
4576#define AV_DISPOSITION_FORCED 0x0040
4577#define AV_DISPOSITION_HEARING_IMPAIRED 0x0080
4578#define AV_DISPOSITION_VISUAL_IMPAIRED 0x0100
4579#define AV_DISPOSITION_CLEAN_EFFECTS 0x0200
4581#define AV_DISPOSITION_ATTACHED_PIC 0x0400
4583#define AV_DISPOSITION_TIMED_THUMBNAILS 0x0800
4587#define AV_DISPOSITION_CAPTIONS 0x10000
4588#define AV_DISPOSITION_DESCRIPTIONS 0x20000
4589#define AV_DISPOSITION_METADATA 0x40000
4591#define AV_PTS_WRAP_IGNORE 0
4592#define AV_PTS_WRAP_ADD_OFFSET 1
4593#define AV_PTS_WRAP_SUB_OFFSET -1
4632#define AVSTREAM_EVENT_FLAG_METADATA_UPDATED 0x0001
4634#define MAX_STD_TIMEBASES (30*12+30+3+6)
4671#define MAX_REORDER_DELAY 16
4736#define AV_PROGRAM_RUNNING 1
4757#define AVFMTCTX_NOHEADER 0x0001
4767 void *data,
size_t data_size);
4810#define AVFMT_FLAG_GENPTS 0x0001
4811#define AVFMT_FLAG_IGNIDX 0x0002
4812#define AVFMT_FLAG_NONBLOCK 0x0004
4813#define AVFMT_FLAG_IGNDTS 0x0008
4814#define AVFMT_FLAG_NOFILLIN 0x0010
4815#define AVFMT_FLAG_NOPARSE 0x0020
4816#define AVFMT_FLAG_NOBUFFER 0x0040
4817#define AVFMT_FLAG_CUSTOM_IO 0x0080
4818#define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
4819#define AVFMT_FLAG_FLUSH_PACKETS 0x0200
4821#define AVFMT_FLAG_BITEXACT 0x0400
4822#define AVFMT_FLAG_MP4A_LATM 0x8000
4823#define AVFMT_FLAG_SORT_DTS 0x10000
4824#define AVFMT_FLAG_PRIV_OPT 0x20000
4825#define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
4826#define AVFMT_FLAG_FAST_SEEK 0x80000
4827#define AVFMT_FLAG_SHORTEST 0x100000
4828#define AVFMT_FLAG_AUTO_BSF 0x200000
4864#define FF_FDEBUG_TS 0x0001
4871#define AVFMT_EVENT_FLAG_METADATA_UPDATED 0x0001
4876#define AVFMT_AVOID_NEG_TS_AUTO -1
4877#define AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE 1
4878#define AVFMT_AVOID_NEG_TS_MAKE_ZERO 2
5004 uint8_t *data,
size_t size);
5015 const char *format_name,
const char *filename);
5026 const char *url,
void *logctx,
5027 unsigned int offset,
unsigned int max_probe_size);
5030 const char *url,
void *logctx,
5031 unsigned int offset,
unsigned int max_probe_size);
5046 int wanted_stream_nb,
5066#define AVSEEK_FLAG_BACKWARD 1
5067#define AVSEEK_FLAG_BYTE 2
5068#define AVSEEK_FLAG_ANY 4
5069#define AVSEEK_FLAG_FRAME 8
5071#define AVSTREAM_INIT_IN_WRITE_HEADER 0
5072#define AVSTREAM_INIT_IN_INIT_OUTPUT 1
5095 const char *filename,
5096 const char *mime_type);
5099 const char *filename,
const char *mime_type,
5103 int64_t *dts, int64_t *wall);
5126 int size,
int distance,
int flags);
5129 char *authorization,
int authorization_size,
5130 char *hostname,
int hostname_size,
5132 char *path,
int path_size,
5140#define AV_FRAME_FILENAME_FLAGS_MULTIPLE 1
5143 const char *path,
int number,
int flags);
5146 const char *path,
int number);
5155 int std_compliance);
5191#define AVUTIL_FIFO_H
5229 uint8_t *ptr = f->
rptr + offs;
5232 else if (ptr < f->buffer)
struct AVDictionary AVDictionary
static ProjectFileIORegistry::AttributeWriterEntry entry
const TranslatableString desc
const struct AVBitStreamFilter * filter
AVCodecParameters * par_in
AVCodecParameters * par_out
AVCodecParserContext * parser
const struct AVBitStreamFilter * filter
struct AVBitStreamFilterContext * next
int(* init)(AVBSFContext *ctx)
const AVClass * priv_class
enum AVCodecID * codec_ids
void(* close)(AVBitStreamFilterContext *bsfc)
int(* filter)(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
const struct AVOption * option
int(* query_ranges)(struct AVOptionRanges **, void *obj, const char *key, int flags)
AVClassCategory(* get_category)(void *ctx)
int parent_log_context_offset
int log_level_offset_offset
attribute_deprecated int brd_scale
float rc_max_available_vbv_use
struct AVCodecInternal * internal
enum AVPixelFormat pix_fmt
AVPacketSideData * coded_side_data
attribute_deprecated int pre_me
int64_t pts_correction_last_dts
int(* execute)(struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg), void *arg2, int *ret, int count, int size)
attribute_deprecated int min_prediction_order
int64_t pts_correction_num_faulty_dts
attribute_deprecated int i_count
attribute_deprecated int header_bits
uint64_t error[AV_NUM_DATA_POINTERS]
int64_t pts_correction_last_pts
attribute_deprecated int refcounted_frames
enum AVSampleFormat sample_fmt
enum AVPixelFormat sw_pix_fmt
const AVCodecDescriptor * codec_descriptor
attribute_deprecated float rc_qmod_amp
attribute_deprecated int coder_type
attribute_deprecated int scenechange_threshold
enum AVColorRange color_range
int strict_std_compliance
attribute_deprecated int frame_bits
attribute_deprecated int chromaoffset
attribute_deprecated int mv_bits
attribute_deprecated int xvmc_acceleration
attribute_deprecated float border_masking
enum AVAudioServiceType audio_service_type
enum AVColorPrimaries color_primaries
enum AVMediaType codec_type
attribute_deprecated int b_sensitivity
attribute_deprecated int lmax
AVBufferRef * hw_frames_ctx
AVRational sample_aspect_ratio
int bits_per_coded_sample
uint16_t * chroma_intra_matrix
attribute_deprecated AVFrame * coded_frame
attribute_deprecated int max_prediction_order
int thread_safe_callbacks
enum AVFieldOrder field_order
attribute_deprecated int misc_bits
attribute_deprecated int frame_skip_threshold
enum AVDiscard skip_loop_filter
int64_t pts_correction_num_faulty_pts
attribute_deprecated int lmin
int rc_initial_buffer_occupancy
attribute_deprecated int frame_skip_cmp
attribute_deprecated int p_count
attribute_deprecated int scenechange_factor
int(* get_buffer2)(struct AVCodecContext *s, AVFrame *frame, int flags)
attribute_deprecated int me_threshold
attribute_deprecated int dtg_active_format
uint8_t * subtitle_header
enum AVColorSpace colorspace
struct AVHWAccel * hwaccel
const struct AVCodec * codec
enum AVSampleFormat request_sample_fmt
attribute_deprecated int mpeg_quant
float temporal_cplx_masking
attribute_deprecated int64_t timecode_frame_start
uint64_t request_channel_layout
attribute_deprecated int inter_quant_bias
attribute_deprecated int rtp_payload_size
attribute_deprecated int me_penalty_compensation
void(* draw_horiz_band)(struct AVCodecContext *s, const AVFrame *src, int offset[AV_NUM_DATA_POINTERS], int y, int type, int height)
attribute_deprecated int me_method
attribute_deprecated float rc_buffer_aggressivity
attribute_deprecated unsigned int stream_codec_tag
attribute_deprecated const char * rc_eq
void(* rtp_callback)(struct AVCodecContext *avctx, void *data, int size, int mb_nb)
attribute_deprecated int rc_qmod_freq
enum AVColorTransferCharacteristic color_trc
float rc_min_vbv_overflow_use
attribute_deprecated int i_tex_bits
attribute_deprecated float rc_initial_cplx
attribute_deprecated int frame_skip_exp
attribute_deprecated int prediction_method
enum AVChromaLocation chroma_sample_location
attribute_deprecated int rc_strategy
attribute_deprecated int p_tex_bits
attribute_deprecated int context_model
AVBufferRef * hw_device_ctx
attribute_deprecated int noise_reduction
attribute_deprecated int side_data_only_packets
attribute_deprecated int skip_count
attribute_deprecated char codec_name[32]
attribute_deprecated int b_frame_strategy
int(* execute2)(struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg, int jobnr, int threadnr), void *arg2, int *ret, int count)
attribute_deprecated int frame_skip_factor
attribute_deprecated int error_rate
attribute_deprecated float rc_qsquish
enum AVPixelFormat(* get_format)(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
attribute_deprecated uint64_t vbv_delay
attribute_deprecated int intra_quant_bias
attribute_deprecated int mb_threshold
float spatial_cplx_masking
enum AVDiscard skip_frame
const struct AVProfile * profiles
const char *const * mime_types
int(* receive_frame)(AVCodecContext *avctx, AVFrame *frame)
int(* init)(AVCodecContext *)
const uint64_t * channel_layouts
const int * supported_samplerates
int(* receive_packet)(AVCodecContext *avctx, AVPacket *avpkt)
int(* encode2)(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
const AVRational * supported_framerates
int(* send_frame)(AVCodecContext *avctx, const AVFrame *frame)
void(* init_static_data)(struct AVCodec *codec)
int(* update_thread_context)(AVCodecContext *dst, const AVCodecContext *src)
int(* close)(AVCodecContext *)
int(* init_thread_copy)(AVCodecContext *)
const AVClass * priv_class
int(* encode_sub)(AVCodecContext *, uint8_t *buf, int buf_size, const struct AVSubtitle *sub)
const AVProfile * profiles
int(* decode)(AVCodecContext *, void *outdata, int *outdata_size, AVPacket *avpkt)
enum AVPixelFormat * pix_fmts
enum AVSampleFormat * sample_fmts
void(* flush)(AVCodecContext *)
const AVCodecDefault * defaults
enum AVColorSpace color_space
enum AVFieldOrder field_order
int bits_per_coded_sample
enum AVMediaType codec_type
AVRational sample_aspect_ratio
enum AVColorPrimaries color_primaries
enum AVColorTransferCharacteristic color_trc
enum AVChromaLocation chroma_location
enum AVColorRange color_range
int64_t cur_frame_end[AV_PARSER_PTS_NB]
int64_t cur_frame_offset[AV_PARSER_PTS_NB]
int64_t cur_frame_dts[AV_PARSER_PTS_NB]
enum AVFieldOrder field_order
int64_t cur_frame_pos[AV_PARSER_PTS_NB]
enum AVPictureStructure picture_structure
attribute_deprecated int64_t convergence_duration
int output_picture_number
int64_t cur_frame_pts[AV_PARSER_PTS_NB]
int64_t next_frame_offset
struct AVCodecParser * parser
int cur_frame_start_index
int(* parser_init)(AVCodecParserContext *s)
int(* parser_parse)(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
void(* parser_close)(AVCodecParserContext *s)
struct AVCodecParser * next
int(* split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
int64_t max_interleave_delta
AVFormatInternal * internal
char * protocol_whitelist
enum AVCodecID audio_codec_id
enum AVCodecID data_codec_id
void(* io_close)(struct AVFormatContext *s, AVIOContext *pb)
int64_t max_analyze_duration
int strict_std_compliance
struct AVOutputFormat * oformat
AVIOInterruptCB interrupt_callback
struct AVInputFormat * iformat
char * protocol_blacklist
int metadata_header_padding
int(* io_open)(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options)
attribute_deprecated int(* open_cb)(struct AVFormatContext *s, AVIOContext **p, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options)
int use_wallclock_as_timestamps
enum AVDurationEstimationMethod duration_estimation_method
int64_t start_time_realtime
unsigned int max_index_size
enum AVCodecID video_codec_id
av_format_control_message control_message_cb
enum AVCodecID subtitle_codec_id
int64_t skip_initial_bytes
unsigned int max_picture_buffer
unsigned int correct_ts_overflow
int64_t best_effort_timestamp
attribute_deprecated int8_t * qscale_table
int display_picture_number
enum AVChromaLocation chroma_location
AVBufferRef ** extended_buf
attribute_deprecated int64_t pkt_pts
enum AVColorPrimaries color_primaries
uint64_t error[AV_NUM_DATA_POINTERS]
AVRational sample_aspect_ratio
AVBufferRef * buf[AV_NUM_DATA_POINTERS]
enum AVColorRange color_range
AVFrameSideData ** side_data
enum AVColorSpace colorspace
enum AVColorTransferCharacteristic color_trc
int linesize[AV_NUM_DATA_POINTERS]
attribute_deprecated int qstride
AVBufferRef * hw_frames_ctx
AVBufferRef * qp_table_buf
uint8_t * data[AV_NUM_DATA_POINTERS]
enum AVPictureType pict_type
attribute_deprecated int qscale_type
enum AVFrameSideDataType type
int(* uninit)(AVCodecContext *avctx)
int(* decode_slice)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
int(* alloc_frame)(AVCodecContext *avctx, AVFrame *frame)
enum AVPixelFormat pix_fmt
int(* start_frame)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
void(* decode_mb)(struct MpegEncContext *s)
int(* init)(AVCodecContext *avctx)
int(* end_frame)(AVCodecContext *avctx)
int64_t(* seek)(void *opaque, int64_t offset, int whence)
unsigned long(* update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size)
unsigned char * buf_ptr_max
int(* write_packet)(void *opaque, uint8_t *buf, int buf_size)
int ignore_boundary_point
const char * protocol_blacklist
enum AVIODataMarkerType current_type
unsigned char * checksum_ptr
int(* read_packet)(void *opaque, uint8_t *buf, int buf_size)
int64_t(* read_seek)(void *opaque, int stream_index, int64_t timestamp, int flags)
int(* short_seek_get)(void *opaque)
int(* write_data_type)(void *opaque, uint8_t *buf, int buf_size, enum AVIODataMarkerType type, int64_t time)
int(* read_pause)(void *opaque, int pause)
const char * protocol_whitelist
struct URLContext * url_context
int64_t status_change_timestamp
int64_t modification_timestamp
attribute_deprecated int64_t convergence_duration
AVPacketSideData * side_data
struct AVPacketList * next
enum AVPacketSideDataType type
int linesize[AV_NUM_DATA_POINTERS]
uint8_t * data[AV_NUM_DATA_POINTERS]
unsigned int nb_stream_indexes
int64_t pts_wrap_reference
unsigned int * stream_index
attribute_deprecated struct AVFrac pts
unsigned int index_entries_allocated_size
AVStreamInternal * internal
AVRational display_aspect_ratio
AVRational sample_aspect_ratio
double(* duration_error)[2][MAX_STD_TIMEBASES]
int64_t pts_wrap_reference
int64_t codec_info_duration
int64_t interleaver_chunk_duration
AVIndexEntry * index_entries
int64_t codec_info_duration_fields
int64_t pts_buffer[MAX_REORDER_DELAY+1]
int64_t start_skip_samples
AVPacketSideData * side_data
int update_initial_durations_done
struct AVCodecParserContext * parser
AVRational avg_frame_rate
char * recommended_encoder_configuration
int64_t last_discard_sample
int64_t pts_reorder_error[MAX_REORDER_DELAY+1]
attribute_deprecated AVCodecContext * codec
int inject_global_side_data
uint8_t pts_reorder_error_count[MAX_REORDER_DELAY+1]
struct AVPacketList * last_in_packet_buffer
enum AVStreamParseType need_parsing
AVCodecParameters * codecpar
int64_t first_discard_sample
int64_t last_dts_for_order_check
int64_t interleaver_chunk_size
struct AVStream::@149 * info
int64_t rfps_duration_sum
uint32_t start_display_time
uint32_t end_display_time
attribute_deprecated AVPicture pict