16#define AVCODEC_AVCODEC_H
18#define AVUTIL_SAMPLEFMT_H
60 int nb_channels,
int nb_samples,
70 int src_offset,
int nb_samples,
int nb_channels,
76#define AVUTIL_ATTRIBUTES_H
78# define AV_GCC_VERSION_AT_LEAST(x,y) 0
79# define AV_GCC_VERSION_AT_MOST(x,y) 0
81# define AV_HAS_BUILTIN(x) 0
83# define av_always_inline inline
85# define av_extern_inline inline
87# define av_warn_unused_result
99# define attribute_deprecated
101# define AV_NOWARN_DEPRECATED(code) code
109# define av_uninit(x) x
111# define av_builtin_constant_p(x) 0
112# define av_printf_format(fmtpos, attrpos)
116#define AVUTIL_AVUTIL_H
138#define FF_LAMBDA_SHIFT 7
139#define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
140#define FF_QP2LAMBDA 118
141#define FF_LAMBDA_MAX (256*128-1)
143#define FF_QUALITY_SCALE FF_LAMBDA_SCALE
145#define AV_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000))
147#define AV_TIME_BASE 1000000
149#define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
164#define AVUTIL_COMMON_H
166#define AVUTIL_MACROS_H
168# define AV_NE(be, le) (le)
170#define FFDIFFSIGN(x,y) (((x)>(y)) - ((x)<(y)))
172#define FFMAX(a,b) ((a) > (b) ? (a) : (b))
173#define FFMAX3(a,b,c) FFMAX(FFMAX(a,b),c)
174#define FFMIN(a,b) ((a) > (b) ? (b) : (a))
175#define FFMIN3(a,b,c) FFMIN(FFMIN(a,b),c)
177#define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
178#define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
180#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24))
181#define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((unsigned)(a) << 24))
183#define AV_STRINGIFY(s) AV_TOSTRING(s)
184#define AV_TOSTRING(s) #s
186#define AV_GLUE(a, b) a ## b
187#define AV_JOIN(a, b) AV_GLUE(a, b)
189#define AV_PRAGMA(s) _Pragma(#s)
191#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1))
193#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
195#define ROUNDED_DIV(a,b) (((a)>=0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b))
197#define AV_CEIL_RSHIFT(a,b) (!av_builtin_constant_p(b) ? -((-(a)) >> (b)) \
198 : ((a) + (1<<(b)) - 1) >> (b))
200#define FF_CEIL_RSHIFT AV_CEIL_RSHIFT
202#define FFUDIV(a,b) (((a)>0 ?(a):(a)-(b)+1) / (b))
203#define FFUMOD(a,b) ((a)-(b)*FFUDIV(a,b))
205#define FFABS(a) ((a) >= 0 ? (a) : (-(a)))
206#define FFSIGN(a) ((a) > 0 ? 1 : -1)
208#define FFNABS(a) ((a) <= 0 ? (a) : (-(a)))
210#define FFABSU(a) ((a) <= 0 ? -(unsigned)(a) : (unsigned)(a))
211#define FFABS64U(a) ((a) <= 0 ? -(uint64_t)(a) : (uint64_t)(a))
213# define av_ceil_log2 av_ceil_log2_c
214# define av_clip av_clip_c
215# define av_clip64 av_clip64_c
216# define av_clip_uint8 av_clip_uint8_c
217# define av_clip_int8 av_clip_int8_c
218# define av_clip_uint16 av_clip_uint16_c
219# define av_clip_int16 av_clip_int16_c
220# define av_clipl_int32 av_clipl_int32_c
221# define av_clip_intp2 av_clip_intp2_c
222# define av_clip_uintp2 av_clip_uintp2_c
223# define av_mod_uintp2 av_mod_uintp2_c
224# define av_sat_add32 av_sat_add32_c
225# define av_sat_dadd32 av_sat_dadd32_c
226# define av_sat_sub32 av_sat_sub32_c
227# define av_sat_dsub32 av_sat_dsub32_c
228# define av_sat_add64 av_sat_add64_c
229# define av_sat_sub64 av_sat_sub64_c
230# define av_clipf av_clipf_c
231# define av_clipd av_clipd_c
232# define av_popcount av_popcount_c
233# define av_popcount64 av_popcount64_c
234# define av_parity av_parity_c
242 if (a < amin)
return amin;
243 else if (a > amax)
return amax;
249 if (a < amin)
return amin;
250 else if (a > amax)
return amax;
256 if (a&(~0xFF))
return (~a)>>31;
262 if ((a+0x80U) & ~0xFF)
return (a>>31) ^ 0x7F;
268 if (a&(~0xFFFF))
return (~a)>>31;
274 if ((a+0x8000U) & ~0xFFFF)
return (a>>31) ^ 0x7FFF;
280 if ((a+0x80000000u) & ~UINT64_C(0xFFFFFFFF))
return (int32_t)((a>>63) ^ 0x7FFFFFFF);
281 else return (int32_t)a;
286 if (((
unsigned)a + (1 << p)) & ~((2 << p) - 1))
287 return (a >> 31) ^ ((1 << p) - 1);
294 if (a & ~((1<<p) - 1))
return (~a) >> 31 & ((1<<p) - 1);
300 return a & ((1U << p) - 1);
324 int64_t s = a+(uint64_t)b;
325 if ((int64_t)(a^b | ~s^b) >= 0)
326 return INT64_MAX ^ (b >> 63);
331 if (b <= 0 && a >= INT64_MAX + b)
333 if (b >= 0 && a <= INT64_MIN + b)
355 x -= (x >> 1) & 0x55555555;
356 x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
357 x = (x + (x >> 4)) & 0x0F0F0F0F;
359 return (x + (x >> 16)) & 0x3F;
372#define GET_UTF8(val, GET_BYTE, ERROR)\
375 uint32_t top = (val & 128) >> 1;\
376 if ((val & 0xc0) == 0x80 || val >= 0xFE)\
379 unsigned int tmp = (GET_BYTE) - 128;\
382 val= (val<<6) + tmp;\
385 val &= (top << 1) - 1;\
388#define GET_UTF16(val, GET_16BIT, ERROR)\
391 unsigned int hi = val - 0xD800;\
393 val = (GET_16BIT) - 0xDC00;\
394 if (val > 0x3FFU || hi > 0x3FFU)\
396 val += (hi<<10) + 0x10000;\
400#define PUT_UTF8(val, tmp, PUT_BYTE)\
408 bytes = (av_log2(in) + 4) / 5;\
409 shift = (bytes - 1) * 6;\
410 tmp = (256 - (256 >> bytes)) | (in >> shift);\
412 while (shift >= 6) {\
414 tmp = 0x80 | ((in >> shift) & 0x3f);\
420#define PUT_UTF16(val, tmp, PUT_16BIT)\
427 tmp = 0xD800 | ((in - 0x10000) >> 10);\
429 tmp = 0xDC00 | ((in - 0x10000) & 0x3FF);\
436#define AVUTIL_VERSION_H
438#define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
439#define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
440#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
442#define AV_VERSION_MAJOR(a) ((a) >> 16)
443#define AV_VERSION_MINOR(a) (((a) & 0x00FF00) >> 8)
444#define AV_VERSION_MICRO(a) ((a) & 0xFF)
446#define LIBAVUTIL_VERSION_MAJOR 58
447#define LIBAVUTIL_VERSION_MINOR 2
448#define LIBAVUTIL_VERSION_MICRO 100
450#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
451 LIBAVUTIL_VERSION_MINOR, \
452 LIBAVUTIL_VERSION_MICRO)
453#define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_MAJOR, \
454 LIBAVUTIL_VERSION_MINOR, \
455 LIBAVUTIL_VERSION_MICRO)
456#define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
458#define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
460#define FF_API_FIFO_PEEK2 (LIBAVUTIL_VERSION_MAJOR < 59)
461#define FF_API_FIFO_OLD_API (LIBAVUTIL_VERSION_MAJOR < 59)
462#define FF_API_XVMC (LIBAVUTIL_VERSION_MAJOR < 59)
463#define FF_API_OLD_CHANNEL_LAYOUT (LIBAVUTIL_VERSION_MAJOR < 59)
464#define FF_API_AV_FOPEN_UTF8 (LIBAVUTIL_VERSION_MAJOR < 59)
465#define FF_API_PKT_DURATION (LIBAVUTIL_VERSION_MAJOR < 59)
466#define FF_API_REORDERED_OPAQUE (LIBAVUTIL_VERSION_MAJOR < 59)
467#define FF_API_FRAME_PICTURE_NUMBER (LIBAVUTIL_VERSION_MAJOR < 59)
469 #define av_malloc_attrib
471 #define av_alloc_size(...)
516 const uint8_t *elem_data);
522#define AVUTIL_ERROR_H
524#define AVERROR(e) (e)
525#define AVUNERROR(e) (e)
527#define FFERRTAG(a, b, c, d) (-(int)MKTAG(a, b, c, d))
529#define AVERROR_BSF_NOT_FOUND FFERRTAG(0xF8,'B','S','F')
530#define AVERROR_BUG FFERRTAG( 'B','U','G','!')
531#define AVERROR_BUFFER_TOO_SMALL FFERRTAG( 'B','U','F','S')
532#define AVERROR_DECODER_NOT_FOUND FFERRTAG(0xF8,'D','E','C')
533#define AVERROR_DEMUXER_NOT_FOUND FFERRTAG(0xF8,'D','E','M')
534#define AVERROR_ENCODER_NOT_FOUND FFERRTAG(0xF8,'E','N','C')
535#define AVERROR_EOF FFERRTAG( 'E','O','F',' ')
536#define AVERROR_EXIT FFERRTAG( 'E','X','I','T')
537#define AVERROR_EXTERNAL FFERRTAG( 'E','X','T',' ')
538#define AVERROR_FILTER_NOT_FOUND FFERRTAG(0xF8,'F','I','L')
539#define AVERROR_INVALIDDATA FFERRTAG( 'I','N','D','A')
540#define AVERROR_MUXER_NOT_FOUND FFERRTAG(0xF8,'M','U','X')
541#define AVERROR_OPTION_NOT_FOUND FFERRTAG(0xF8,'O','P','T')
542#define AVERROR_PATCHWELCOME FFERRTAG( 'P','A','W','E')
543#define AVERROR_PROTOCOL_NOT_FOUND FFERRTAG(0xF8,'P','R','O')
545#define AVERROR_STREAM_NOT_FOUND FFERRTAG(0xF8,'S','T','R')
547#define AVERROR_BUG2 FFERRTAG( 'B','U','G',' ')
548#define AVERROR_UNKNOWN FFERRTAG( 'U','N','K','N')
549#define AVERROR_EXPERIMENTAL (-0x2bb2afa8)
550#define AVERROR_INPUT_CHANGED (-0x636e6701)
551#define AVERROR_OUTPUT_CHANGED (-0x636e6702)
553#define AVERROR_HTTP_BAD_REQUEST FFERRTAG(0xF8,'4','0','0')
554#define AVERROR_HTTP_UNAUTHORIZED FFERRTAG(0xF8,'4','0','1')
555#define AVERROR_HTTP_FORBIDDEN FFERRTAG(0xF8,'4','0','3')
556#define AVERROR_HTTP_NOT_FOUND FFERRTAG(0xF8,'4','0','4')
557#define AVERROR_HTTP_OTHER_4XX FFERRTAG(0xF8,'4','X','X')
558#define AVERROR_HTTP_SERVER_ERROR FFERRTAG(0xF8,'5','X','X')
560#define AV_ERROR_MAX_STRING_SIZE 64
570#define av_err2str(errnum) \
571 av_make_error_string((char[AV_ERROR_MAX_STRING_SIZE]){0}, AV_ERROR_MAX_STRING_SIZE, errnum)
573#define AVUTIL_RATIONAL_H
587 const int64_t tmp= a.
num * (int64_t)b.
den - b.
num * (int64_t)a.
den;
589 if(tmp)
return (
int)((tmp ^ a.
den ^ b.
den)>>63)|1;
590 else if(b.
den && a.
den)
return 0;
591 else if(a.
num && b.
num)
return (a.
num>>31) - (b.
num>>31);
596 return a.
num / (double) a.
den;
599int av_reduce(
int *dst_num,
int *dst_den, int64_t num, int64_t den, int64_t max);
625#define AVUTIL_MATHEMATICS_H
627#define AVUTIL_INTFLOAT_H
667#define M_E 2.7182818284590452354
668#define M_LN2 0.69314718055994530942
669#define M_LN10 2.30258509299404568402
670#define M_LOG2_10 3.32192809488736234787
671#define M_PHI 1.61803398874989484820
672#define M_PI 3.14159265358979323846
673#define M_PI_2 1.57079632679489661923
674#define M_SQRT1_2 0.70710678118654752440
675#define M_SQRT2 1.41421356237309504880
676#define NAN av_int2float(0x7fc00000)
677#define INFINITY av_int2float(0x7f800000)
731#define AV_IS_INPUT_DEVICE(category) \
732 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT) || \
733 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT) || \
734 ((category) == AV_CLASS_CATEGORY_DEVICE_INPUT))
736#define AV_IS_OUTPUT_DEVICE(category) \
737 (((category) == AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT) || \
738 ((category) == AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT) || \
739 ((category) == AV_CLASS_CATEGORY_DEVICE_OUTPUT))
741struct AVOptionRanges;
747 const char* (*item_name)(
void* ctx);
749 const struct AVOption *
option;
761 int (*
query_ranges)(
struct AVOptionRanges **,
void *obj,
const char *
key,
int flags);
763 void* (*child_next)(
void *obj,
void *prev);
765 const struct AVClass* (*child_class_iterate)(
void **iter);
768#define AV_LOG_QUIET -8
770#define AV_LOG_PANIC 0
772#define AV_LOG_FATAL 8
774#define AV_LOG_ERROR 16
776#define AV_LOG_WARNING 24
778#define AV_LOG_INFO 32
780#define AV_LOG_VERBOSE 40
782#define AV_LOG_DEBUG 48
784#define AV_LOG_TRACE 56
786#define AV_LOG_MAX_OFFSET (AV_LOG_TRACE - AV_LOG_QUIET)
788#define AV_LOG_C(x) ((x) << 8)
794void av_vlog(
void *avcl,
int level, const
char *fmt, va_list vl);
809 char *line,
int line_size,
int *print_prefix);
812 char *line,
int line_size,
int *print_prefix);
814#define AV_LOG_SKIP_REPEATED 1
816#define AV_LOG_PRINT_LEVEL 2
821#define AVUTIL_PIXFMT_H
823#define AVPALETTE_SIZE 1024
824#define AVPALETTE_COUNT 256
1114# define AV_PIX_FMT_NE(be, le) AV_PIX_FMT_##le
1116#define AV_PIX_FMT_RGB32 AV_PIX_FMT_NE(ARGB, BGRA)
1117#define AV_PIX_FMT_RGB32_1 AV_PIX_FMT_NE(RGBA, ABGR)
1118#define AV_PIX_FMT_BGR32 AV_PIX_FMT_NE(ABGR, RGBA)
1119#define AV_PIX_FMT_BGR32_1 AV_PIX_FMT_NE(BGRA, ARGB)
1120#define AV_PIX_FMT_0RGB32 AV_PIX_FMT_NE(0RGB, BGR0)
1121#define AV_PIX_FMT_0BGR32 AV_PIX_FMT_NE(0BGR, RGB0)
1123#define AV_PIX_FMT_GRAY9 AV_PIX_FMT_NE(GRAY9BE, GRAY9LE)
1124#define AV_PIX_FMT_GRAY10 AV_PIX_FMT_NE(GRAY10BE, GRAY10LE)
1125#define AV_PIX_FMT_GRAY12 AV_PIX_FMT_NE(GRAY12BE, GRAY12LE)
1126#define AV_PIX_FMT_GRAY14 AV_PIX_FMT_NE(GRAY14BE, GRAY14LE)
1127#define AV_PIX_FMT_GRAY16 AV_PIX_FMT_NE(GRAY16BE, GRAY16LE)
1128#define AV_PIX_FMT_YA16 AV_PIX_FMT_NE(YA16BE, YA16LE)
1129#define AV_PIX_FMT_RGB48 AV_PIX_FMT_NE(RGB48BE, RGB48LE)
1130#define AV_PIX_FMT_RGB565 AV_PIX_FMT_NE(RGB565BE, RGB565LE)
1131#define AV_PIX_FMT_RGB555 AV_PIX_FMT_NE(RGB555BE, RGB555LE)
1132#define AV_PIX_FMT_RGB444 AV_PIX_FMT_NE(RGB444BE, RGB444LE)
1133#define AV_PIX_FMT_RGBA64 AV_PIX_FMT_NE(RGBA64BE, RGBA64LE)
1134#define AV_PIX_FMT_BGR48 AV_PIX_FMT_NE(BGR48BE, BGR48LE)
1135#define AV_PIX_FMT_BGR565 AV_PIX_FMT_NE(BGR565BE, BGR565LE)
1136#define AV_PIX_FMT_BGR555 AV_PIX_FMT_NE(BGR555BE, BGR555LE)
1137#define AV_PIX_FMT_BGR444 AV_PIX_FMT_NE(BGR444BE, BGR444LE)
1138#define AV_PIX_FMT_BGRA64 AV_PIX_FMT_NE(BGRA64BE, BGRA64LE)
1140#define AV_PIX_FMT_YUV420P9 AV_PIX_FMT_NE(YUV420P9BE , YUV420P9LE)
1141#define AV_PIX_FMT_YUV422P9 AV_PIX_FMT_NE(YUV422P9BE , YUV422P9LE)
1142#define AV_PIX_FMT_YUV444P9 AV_PIX_FMT_NE(YUV444P9BE , YUV444P9LE)
1143#define AV_PIX_FMT_YUV420P10 AV_PIX_FMT_NE(YUV420P10BE, YUV420P10LE)
1144#define AV_PIX_FMT_YUV422P10 AV_PIX_FMT_NE(YUV422P10BE, YUV422P10LE)
1145#define AV_PIX_FMT_YUV440P10 AV_PIX_FMT_NE(YUV440P10BE, YUV440P10LE)
1146#define AV_PIX_FMT_YUV444P10 AV_PIX_FMT_NE(YUV444P10BE, YUV444P10LE)
1147#define AV_PIX_FMT_YUV420P12 AV_PIX_FMT_NE(YUV420P12BE, YUV420P12LE)
1148#define AV_PIX_FMT_YUV422P12 AV_PIX_FMT_NE(YUV422P12BE, YUV422P12LE)
1149#define AV_PIX_FMT_YUV440P12 AV_PIX_FMT_NE(YUV440P12BE, YUV440P12LE)
1150#define AV_PIX_FMT_YUV444P12 AV_PIX_FMT_NE(YUV444P12BE, YUV444P12LE)
1151#define AV_PIX_FMT_YUV420P14 AV_PIX_FMT_NE(YUV420P14BE, YUV420P14LE)
1152#define AV_PIX_FMT_YUV422P14 AV_PIX_FMT_NE(YUV422P14BE, YUV422P14LE)
1153#define AV_PIX_FMT_YUV444P14 AV_PIX_FMT_NE(YUV444P14BE, YUV444P14LE)
1154#define AV_PIX_FMT_YUV420P16 AV_PIX_FMT_NE(YUV420P16BE, YUV420P16LE)
1155#define AV_PIX_FMT_YUV422P16 AV_PIX_FMT_NE(YUV422P16BE, YUV422P16LE)
1156#define AV_PIX_FMT_YUV444P16 AV_PIX_FMT_NE(YUV444P16BE, YUV444P16LE)
1158#define AV_PIX_FMT_GBRP9 AV_PIX_FMT_NE(GBRP9BE , GBRP9LE)
1159#define AV_PIX_FMT_GBRP10 AV_PIX_FMT_NE(GBRP10BE, GBRP10LE)
1160#define AV_PIX_FMT_GBRP12 AV_PIX_FMT_NE(GBRP12BE, GBRP12LE)
1161#define AV_PIX_FMT_GBRP14 AV_PIX_FMT_NE(GBRP14BE, GBRP14LE)
1162#define AV_PIX_FMT_GBRP16 AV_PIX_FMT_NE(GBRP16BE, GBRP16LE)
1163#define AV_PIX_FMT_GBRAP10 AV_PIX_FMT_NE(GBRAP10BE, GBRAP10LE)
1164#define AV_PIX_FMT_GBRAP12 AV_PIX_FMT_NE(GBRAP12BE, GBRAP12LE)
1165#define AV_PIX_FMT_GBRAP16 AV_PIX_FMT_NE(GBRAP16BE, GBRAP16LE)
1167#define AV_PIX_FMT_BAYER_BGGR16 AV_PIX_FMT_NE(BAYER_BGGR16BE, BAYER_BGGR16LE)
1168#define AV_PIX_FMT_BAYER_RGGB16 AV_PIX_FMT_NE(BAYER_RGGB16BE, BAYER_RGGB16LE)
1169#define AV_PIX_FMT_BAYER_GBRG16 AV_PIX_FMT_NE(BAYER_GBRG16BE, BAYER_GBRG16LE)
1170#define AV_PIX_FMT_BAYER_GRBG16 AV_PIX_FMT_NE(BAYER_GRBG16BE, BAYER_GRBG16LE)
1172#define AV_PIX_FMT_GBRPF32 AV_PIX_FMT_NE(GBRPF32BE, GBRPF32LE)
1173#define AV_PIX_FMT_GBRAPF32 AV_PIX_FMT_NE(GBRAPF32BE, GBRAPF32LE)
1175#define AV_PIX_FMT_GRAYF32 AV_PIX_FMT_NE(GRAYF32BE, GRAYF32LE)
1177#define AV_PIX_FMT_YUVA420P9 AV_PIX_FMT_NE(YUVA420P9BE , YUVA420P9LE)
1178#define AV_PIX_FMT_YUVA422P9 AV_PIX_FMT_NE(YUVA422P9BE , YUVA422P9LE)
1179#define AV_PIX_FMT_YUVA444P9 AV_PIX_FMT_NE(YUVA444P9BE , YUVA444P9LE)
1180#define AV_PIX_FMT_YUVA420P10 AV_PIX_FMT_NE(YUVA420P10BE, YUVA420P10LE)
1181#define AV_PIX_FMT_YUVA422P10 AV_PIX_FMT_NE(YUVA422P10BE, YUVA422P10LE)
1182#define AV_PIX_FMT_YUVA444P10 AV_PIX_FMT_NE(YUVA444P10BE, YUVA444P10LE)
1183#define AV_PIX_FMT_YUVA422P12 AV_PIX_FMT_NE(YUVA422P12BE, YUVA422P12LE)
1184#define AV_PIX_FMT_YUVA444P12 AV_PIX_FMT_NE(YUVA444P12BE, YUVA444P12LE)
1185#define AV_PIX_FMT_YUVA420P16 AV_PIX_FMT_NE(YUVA420P16BE, YUVA420P16LE)
1186#define AV_PIX_FMT_YUVA422P16 AV_PIX_FMT_NE(YUVA422P16BE, YUVA422P16LE)
1187#define AV_PIX_FMT_YUVA444P16 AV_PIX_FMT_NE(YUVA444P16BE, YUVA444P16LE)
1189#define AV_PIX_FMT_XYZ12 AV_PIX_FMT_NE(XYZ12BE, XYZ12LE)
1190#define AV_PIX_FMT_NV20 AV_PIX_FMT_NE(NV20BE, NV20LE)
1191#define AV_PIX_FMT_AYUV64 AV_PIX_FMT_NE(AYUV64BE, AYUV64LE)
1192#define AV_PIX_FMT_P010 AV_PIX_FMT_NE(P010BE, P010LE)
1193#define AV_PIX_FMT_P012 AV_PIX_FMT_NE(P012BE, P012LE)
1194#define AV_PIX_FMT_P016 AV_PIX_FMT_NE(P016BE, P016LE)
1196#define AV_PIX_FMT_Y210 AV_PIX_FMT_NE(Y210BE, Y210LE)
1197#define AV_PIX_FMT_Y212 AV_PIX_FMT_NE(Y212BE, Y212LE)
1198#define AV_PIX_FMT_XV30 AV_PIX_FMT_NE(XV30BE, XV30LE)
1199#define AV_PIX_FMT_XV36 AV_PIX_FMT_NE(XV36BE, XV36LE)
1200#define AV_PIX_FMT_X2RGB10 AV_PIX_FMT_NE(X2RGB10BE, X2RGB10LE)
1201#define AV_PIX_FMT_X2BGR10 AV_PIX_FMT_NE(X2BGR10BE, X2BGR10LE)
1203#define AV_PIX_FMT_P210 AV_PIX_FMT_NE(P210BE, P210LE)
1204#define AV_PIX_FMT_P410 AV_PIX_FMT_NE(P410BE, P410LE)
1205#define AV_PIX_FMT_P216 AV_PIX_FMT_NE(P216BE, P216LE)
1206#define AV_PIX_FMT_P416 AV_PIX_FMT_NE(P416BE, P416LE)
1208#define AV_PIX_FMT_RGBAF16 AV_PIX_FMT_NE(RGBAF16BE, RGBAF16LE)
1210#define AV_PIX_FMT_RGBF32 AV_PIX_FMT_NE(RGBF32BE, RGBF32LE)
1211#define AV_PIX_FMT_RGBAF32 AV_PIX_FMT_NE(RGBAF32BE, RGBAF32LE)
1301 return (
void *)(intptr_t)(p ? p : x);
1305 const void *list, uint64_t term)
av_pure;
1307#define av_int_list_length(list, term) \
1308 av_int_list_length_for_size(sizeof(*(list)), list, term)
1315#define AV_FOURCC_MAX_STRING_SIZE 32
1317#define av_fourcc2str(fourcc) av_fourcc_make_string((char[AV_FOURCC_MAX_STRING_SIZE]){0}, fourcc)
1321#define AVUTIL_BUFFER_H
1337#define AV_BUFFER_FLAG_READONLY (1 << 0)
1340 void (*
free)(
void *opaque, uint8_t *data),
1341 void *opaque,
int flags);
1367 void (*pool_free)(
void *opaque));
1375#define AVUTIL_DICT_H
1377#define AV_DICT_MATCH_CASE 1
1378#define AV_DICT_IGNORE_SUFFIX 2
1380#define AV_DICT_DONT_STRDUP_KEY 4
1382#define AV_DICT_DONT_STRDUP_VAL 8
1384#define AV_DICT_DONT_OVERWRITE 16
1385#define AV_DICT_APPEND 32
1387#define AV_DICT_MULTIKEY 64
1409 const char *key_val_sep,
const char *pairs_sep,
1417 const char key_val_sep,
const char pairs_sep);
1419#define AVUTIL_FRAME_H
1421#define AVUTIL_CHANNEL_LAYOUT_H
1479#define AV_CH_FRONT_LEFT (1ULL << AV_CHAN_FRONT_LEFT )
1480#define AV_CH_FRONT_RIGHT (1ULL << AV_CHAN_FRONT_RIGHT )
1481#define AV_CH_FRONT_CENTER (1ULL << AV_CHAN_FRONT_CENTER )
1482#define AV_CH_LOW_FREQUENCY (1ULL << AV_CHAN_LOW_FREQUENCY )
1483#define AV_CH_BACK_LEFT (1ULL << AV_CHAN_BACK_LEFT )
1484#define AV_CH_BACK_RIGHT (1ULL << AV_CHAN_BACK_RIGHT )
1485#define AV_CH_FRONT_LEFT_OF_CENTER (1ULL << AV_CHAN_FRONT_LEFT_OF_CENTER )
1486#define AV_CH_FRONT_RIGHT_OF_CENTER (1ULL << AV_CHAN_FRONT_RIGHT_OF_CENTER)
1487#define AV_CH_BACK_CENTER (1ULL << AV_CHAN_BACK_CENTER )
1488#define AV_CH_SIDE_LEFT (1ULL << AV_CHAN_SIDE_LEFT )
1489#define AV_CH_SIDE_RIGHT (1ULL << AV_CHAN_SIDE_RIGHT )
1490#define AV_CH_TOP_CENTER (1ULL << AV_CHAN_TOP_CENTER )
1491#define AV_CH_TOP_FRONT_LEFT (1ULL << AV_CHAN_TOP_FRONT_LEFT )
1492#define AV_CH_TOP_FRONT_CENTER (1ULL << AV_CHAN_TOP_FRONT_CENTER )
1493#define AV_CH_TOP_FRONT_RIGHT (1ULL << AV_CHAN_TOP_FRONT_RIGHT )
1494#define AV_CH_TOP_BACK_LEFT (1ULL << AV_CHAN_TOP_BACK_LEFT )
1495#define AV_CH_TOP_BACK_CENTER (1ULL << AV_CHAN_TOP_BACK_CENTER )
1496#define AV_CH_TOP_BACK_RIGHT (1ULL << AV_CHAN_TOP_BACK_RIGHT )
1497#define AV_CH_STEREO_LEFT (1ULL << AV_CHAN_STEREO_LEFT )
1498#define AV_CH_STEREO_RIGHT (1ULL << AV_CHAN_STEREO_RIGHT )
1499#define AV_CH_WIDE_LEFT (1ULL << AV_CHAN_WIDE_LEFT )
1500#define AV_CH_WIDE_RIGHT (1ULL << AV_CHAN_WIDE_RIGHT )
1501#define AV_CH_SURROUND_DIRECT_LEFT (1ULL << AV_CHAN_SURROUND_DIRECT_LEFT )
1502#define AV_CH_SURROUND_DIRECT_RIGHT (1ULL << AV_CHAN_SURROUND_DIRECT_RIGHT)
1503#define AV_CH_LOW_FREQUENCY_2 (1ULL << AV_CHAN_LOW_FREQUENCY_2 )
1504#define AV_CH_TOP_SIDE_LEFT (1ULL << AV_CHAN_TOP_SIDE_LEFT )
1505#define AV_CH_TOP_SIDE_RIGHT (1ULL << AV_CHAN_TOP_SIDE_RIGHT )
1506#define AV_CH_BOTTOM_FRONT_CENTER (1ULL << AV_CHAN_BOTTOM_FRONT_CENTER )
1507#define AV_CH_BOTTOM_FRONT_LEFT (1ULL << AV_CHAN_BOTTOM_FRONT_LEFT )
1508#define AV_CH_BOTTOM_FRONT_RIGHT (1ULL << AV_CHAN_BOTTOM_FRONT_RIGHT )
1510#define AV_CH_LAYOUT_NATIVE 0x8000000000000000ULL
1512#define AV_CH_LAYOUT_MONO (AV_CH_FRONT_CENTER)
1513#define AV_CH_LAYOUT_STEREO (AV_CH_FRONT_LEFT|AV_CH_FRONT_RIGHT)
1514#define AV_CH_LAYOUT_2POINT1 (AV_CH_LAYOUT_STEREO|AV_CH_LOW_FREQUENCY)
1515#define AV_CH_LAYOUT_2_1 (AV_CH_LAYOUT_STEREO|AV_CH_BACK_CENTER)
1516#define AV_CH_LAYOUT_SURROUND (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER)
1517#define AV_CH_LAYOUT_3POINT1 (AV_CH_LAYOUT_SURROUND|AV_CH_LOW_FREQUENCY)
1518#define AV_CH_LAYOUT_4POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_CENTER)
1519#define AV_CH_LAYOUT_4POINT1 (AV_CH_LAYOUT_4POINT0|AV_CH_LOW_FREQUENCY)
1520#define AV_CH_LAYOUT_2_2 (AV_CH_LAYOUT_STEREO|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT)
1521#define AV_CH_LAYOUT_QUAD (AV_CH_LAYOUT_STEREO|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
1522#define AV_CH_LAYOUT_5POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT)
1523#define AV_CH_LAYOUT_5POINT1 (AV_CH_LAYOUT_5POINT0|AV_CH_LOW_FREQUENCY)
1524#define AV_CH_LAYOUT_5POINT0_BACK (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
1525#define AV_CH_LAYOUT_5POINT1_BACK (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_LOW_FREQUENCY)
1526#define AV_CH_LAYOUT_6POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER)
1527#define AV_CH_LAYOUT_6POINT0_FRONT (AV_CH_LAYOUT_2_2|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
1528#define AV_CH_LAYOUT_HEXAGONAL (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_BACK_CENTER)
1529#define AV_CH_LAYOUT_6POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_CENTER)
1530#define AV_CH_LAYOUT_6POINT1_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_BACK_CENTER)
1531#define AV_CH_LAYOUT_6POINT1_FRONT (AV_CH_LAYOUT_6POINT0_FRONT|AV_CH_LOW_FREQUENCY)
1532#define AV_CH_LAYOUT_7POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
1533#define AV_CH_LAYOUT_7POINT0_FRONT (AV_CH_LAYOUT_5POINT0|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
1534#define AV_CH_LAYOUT_7POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
1535#define AV_CH_LAYOUT_7POINT1_WIDE (AV_CH_LAYOUT_5POINT1|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
1536#define AV_CH_LAYOUT_7POINT1_WIDE_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
1537#define AV_CH_LAYOUT_7POINT1_TOP_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT)
1538#define AV_CH_LAYOUT_OCTAGONAL (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_CENTER|AV_CH_BACK_RIGHT)
1539#define AV_CH_LAYOUT_CUBE (AV_CH_LAYOUT_QUAD|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT|AV_CH_TOP_BACK_LEFT|AV_CH_TOP_BACK_RIGHT)
1540#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)
1541#define AV_CH_LAYOUT_STEREO_DOWNMIX (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT)
1542#define AV_CH_LAYOUT_22POINT2 (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER|AV_CH_BACK_CENTER|AV_CH_LOW_FREQUENCY_2|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT|AV_CH_TOP_FRONT_CENTER|AV_CH_TOP_CENTER|AV_CH_TOP_BACK_LEFT|AV_CH_TOP_BACK_RIGHT|AV_CH_TOP_SIDE_LEFT|AV_CH_TOP_SIDE_RIGHT|AV_CH_TOP_BACK_CENTER|AV_CH_BOTTOM_FRONT_CENTER|AV_CH_BOTTOM_FRONT_LEFT|AV_CH_BOTTOM_FRONT_RIGHT)
1577#define AV_CHANNEL_LAYOUT_MASK(nb, m) \
1578 { .order = AV_CHANNEL_ORDER_NATIVE, .nb_channels = (nb), .u = { .mask = (m) }}
1580#define AV_CHANNEL_LAYOUT_MONO AV_CHANNEL_LAYOUT_MASK(1, AV_CH_LAYOUT_MONO)
1581#define AV_CHANNEL_LAYOUT_STEREO AV_CHANNEL_LAYOUT_MASK(2, AV_CH_LAYOUT_STEREO)
1582#define AV_CHANNEL_LAYOUT_2POINT1 AV_CHANNEL_LAYOUT_MASK(3, AV_CH_LAYOUT_2POINT1)
1583#define AV_CHANNEL_LAYOUT_2_1 AV_CHANNEL_LAYOUT_MASK(3, AV_CH_LAYOUT_2_1)
1584#define AV_CHANNEL_LAYOUT_SURROUND AV_CHANNEL_LAYOUT_MASK(3, AV_CH_LAYOUT_SURROUND)
1585#define AV_CHANNEL_LAYOUT_3POINT1 AV_CHANNEL_LAYOUT_MASK(4, AV_CH_LAYOUT_3POINT1)
1586#define AV_CHANNEL_LAYOUT_4POINT0 AV_CHANNEL_LAYOUT_MASK(4, AV_CH_LAYOUT_4POINT0)
1587#define AV_CHANNEL_LAYOUT_4POINT1 AV_CHANNEL_LAYOUT_MASK(5, AV_CH_LAYOUT_4POINT1)
1588#define AV_CHANNEL_LAYOUT_2_2 AV_CHANNEL_LAYOUT_MASK(4, AV_CH_LAYOUT_2_2)
1589#define AV_CHANNEL_LAYOUT_QUAD AV_CHANNEL_LAYOUT_MASK(4, AV_CH_LAYOUT_QUAD)
1590#define AV_CHANNEL_LAYOUT_5POINT0 AV_CHANNEL_LAYOUT_MASK(5, AV_CH_LAYOUT_5POINT0)
1591#define AV_CHANNEL_LAYOUT_5POINT1 AV_CHANNEL_LAYOUT_MASK(6, AV_CH_LAYOUT_5POINT1)
1592#define AV_CHANNEL_LAYOUT_5POINT0_BACK AV_CHANNEL_LAYOUT_MASK(5, AV_CH_LAYOUT_5POINT0_BACK)
1593#define AV_CHANNEL_LAYOUT_5POINT1_BACK AV_CHANNEL_LAYOUT_MASK(6, AV_CH_LAYOUT_5POINT1_BACK)
1594#define AV_CHANNEL_LAYOUT_6POINT0 AV_CHANNEL_LAYOUT_MASK(6, AV_CH_LAYOUT_6POINT0)
1595#define AV_CHANNEL_LAYOUT_6POINT0_FRONT AV_CHANNEL_LAYOUT_MASK(6, AV_CH_LAYOUT_6POINT0_FRONT)
1596#define AV_CHANNEL_LAYOUT_HEXAGONAL AV_CHANNEL_LAYOUT_MASK(6, AV_CH_LAYOUT_HEXAGONAL)
1597#define AV_CHANNEL_LAYOUT_6POINT1 AV_CHANNEL_LAYOUT_MASK(7, AV_CH_LAYOUT_6POINT1)
1598#define AV_CHANNEL_LAYOUT_6POINT1_BACK AV_CHANNEL_LAYOUT_MASK(7, AV_CH_LAYOUT_6POINT1_BACK)
1599#define AV_CHANNEL_LAYOUT_6POINT1_FRONT AV_CHANNEL_LAYOUT_MASK(7, AV_CH_LAYOUT_6POINT1_FRONT)
1600#define AV_CHANNEL_LAYOUT_7POINT0 AV_CHANNEL_LAYOUT_MASK(7, AV_CH_LAYOUT_7POINT0)
1601#define AV_CHANNEL_LAYOUT_7POINT0_FRONT AV_CHANNEL_LAYOUT_MASK(7, AV_CH_LAYOUT_7POINT0_FRONT)
1602#define AV_CHANNEL_LAYOUT_7POINT1 AV_CHANNEL_LAYOUT_MASK(8, AV_CH_LAYOUT_7POINT1)
1603#define AV_CHANNEL_LAYOUT_7POINT1_WIDE AV_CHANNEL_LAYOUT_MASK(8, AV_CH_LAYOUT_7POINT1_WIDE)
1604#define AV_CHANNEL_LAYOUT_7POINT1_WIDE_BACK AV_CHANNEL_LAYOUT_MASK(8, AV_CH_LAYOUT_7POINT1_WIDE_BACK)
1605#define AV_CHANNEL_LAYOUT_7POINT1_TOP_BACK AV_CHANNEL_LAYOUT_MASK(8, AV_CH_LAYOUT_7POINT1_TOP_BACK)
1606#define AV_CHANNEL_LAYOUT_OCTAGONAL AV_CHANNEL_LAYOUT_MASK(8, AV_CH_LAYOUT_OCTAGONAL)
1607#define AV_CHANNEL_LAYOUT_CUBE AV_CHANNEL_LAYOUT_MASK(8, AV_CH_LAYOUT_CUBE)
1608#define AV_CHANNEL_LAYOUT_HEXADECAGONAL AV_CHANNEL_LAYOUT_MASK(16, AV_CH_LAYOUT_HEXADECAGONAL)
1609#define AV_CHANNEL_LAYOUT_STEREO_DOWNMIX AV_CHANNEL_LAYOUT_MASK(2, AV_CH_LAYOUT_STEREO_DOWNMIX)
1610#define AV_CHANNEL_LAYOUT_22POINT2 AV_CHANNEL_LAYOUT_MASK(24, AV_CH_LAYOUT_22POINT2)
1611#define AV_CHANNEL_LAYOUT_AMBISONIC_FIRST_ORDER \
1612 { .order = AV_CHANNEL_ORDER_AMBISONIC, .nb_channels = 4, .u = { .mask = 0 }}
1675 char *buf,
size_t buf_size);
1678 struct AVBPrint *bp);
1788#define AV_NUM_DATA_POINTERS 8
1849#define AV_FRAME_FLAG_CORRUPT (1 << 0)
1851#define AV_FRAME_FLAG_DISCARD (1 << 2)
1875#define FF_DECODE_ERROR_INVALID_BITSTREAM 1
1876#define FF_DECODE_ERROR_MISSING_REFERENCE 2
1877#define FF_DECODE_ERROR_CONCEALMENT_ACTIVE 4
1878#define FF_DECODE_ERROR_DECODE_SLICES 8
1947#define AVCODEC_CODEC_H
1949#define AVUTIL_HWCONTEXT_H
2069 const void *hwconfig);
2092#define AVCODEC_CODEC_ID_H
2094#define AVCODEC_VERSION_MAJOR_H
2096#define LIBAVCODEC_VERSION_MAJOR 60
2098#define FF_API_INIT_PACKET (LIBAVCODEC_VERSION_MAJOR < 61)
2099#define FF_API_IDCT_NONE (LIBAVCODEC_VERSION_MAJOR < 61)
2100#define FF_API_SVTAV1_OPTS (LIBAVCODEC_VERSION_MAJOR < 61)
2101#define FF_API_AYUV_CODECID (LIBAVCODEC_VERSION_MAJOR < 61)
2102#define FF_API_VT_OUTPUT_CALLBACK (LIBAVCODEC_VERSION_MAJOR < 61)
2103#define FF_API_AVCODEC_CHROMA_POS (LIBAVCODEC_VERSION_MAJOR < 61)
2104#define FF_API_VT_HWACCEL_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 61)
2105#define FF_API_AVCTX_FRAME_NUMBER (LIBAVCODEC_VERSION_MAJOR < 61)
2107#define FF_CODEC_CRYSTAL_HD (LIBAVCODEC_VERSION_MAJOR < 61)
2248#define AV_CODEC_ID_IFF_BYTERUN1 AV_CODEC_ID_IFF_ILBM
2286#define AV_CODEC_ID_H265 AV_CODEC_ID_HEVC
2310#define AV_CODEC_ID_H266 AV_CODEC_ID_VVC
2661#define AV_CODEC_CAP_DRAW_HORIZ_BAND (1 << 0)
2663#define AV_CODEC_CAP_DR1 (1 << 1)
2665#define AV_CODEC_CAP_DELAY (1 << 5)
2667#define AV_CODEC_CAP_SMALL_LAST_FRAME (1 << 6)
2669#define AV_CODEC_CAP_SUBFRAMES (1 << 8)
2671#define AV_CODEC_CAP_EXPERIMENTAL (1 << 9)
2673#define AV_CODEC_CAP_CHANNEL_CONF (1 << 10)
2675#define AV_CODEC_CAP_FRAME_THREADS (1 << 12)
2677#define AV_CODEC_CAP_SLICE_THREADS (1 << 13)
2679#define AV_CODEC_CAP_PARAM_CHANGE (1 << 14)
2681#define AV_CODEC_CAP_OTHER_THREADS (1 << 15)
2683#define AV_CODEC_CAP_VARIABLE_FRAME_SIZE (1 << 16)
2685#define AV_CODEC_CAP_AVOID_PROBING (1 << 17)
2687#define AV_CODEC_CAP_HARDWARE (1 << 18)
2689#define AV_CODEC_CAP_HYBRID (1 << 19)
2691#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE (1 << 20)
2693#define AV_CODEC_CAP_ENCODER_FLUSH (1 << 21)
2695#define AV_CODEC_CAP_ENCODER_RECON_FRAME (1 << 22)
2765#define AVCODEC_CODEC_DESC_H
2782#define AV_CODEC_PROP_INTRA_ONLY (1 << 0)
2784#define AV_CODEC_PROP_LOSSY (1 << 1)
2786#define AV_CODEC_PROP_LOSSLESS (1 << 2)
2788#define AV_CODEC_PROP_REORDER (1 << 3)
2790#define AV_CODEC_PROP_BITMAP_SUB (1 << 16)
2792#define AV_CODEC_PROP_TEXT_SUB (1 << 17)
2800#define AVCODEC_CODEC_PAR_H
2878#define AVCODEC_DEFS_H
2880#define AV_INPUT_BUFFER_PADDING_SIZE 64
2882#define AV_EF_CRCCHECK (1<<0)
2883#define AV_EF_BITSTREAM (1<<1)
2884#define AV_EF_BUFFER (1<<2)
2885#define AV_EF_EXPLODE (1<<3)
2887#define AV_EF_IGNORE_ERR (1<<15)
2888#define AV_EF_CAREFUL (1<<16)
2889#define AV_EF_COMPLIANT (1<<17)
2890#define AV_EF_AGGRESSIVE (1<<18)
2892#define FF_COMPLIANCE_VERY_STRICT 2
2893#define FF_COMPLIANCE_STRICT 1
2894#define FF_COMPLIANCE_NORMAL 0
2895#define FF_COMPLIANCE_UNOFFICIAL -1
2896#define FF_COMPLIANCE_EXPERIMENTAL -2
2955#define AVCODEC_PACKET_H
3026#define AV_PKT_DATA_QUALITY_FACTOR AV_PKT_DATA_QUALITY_STATS
3067#define AV_PKT_FLAG_KEY 0x0001
3068#define AV_PKT_FLAG_CORRUPT 0x0002
3070#define AV_PKT_FLAG_DISCARD 0x0004
3072#define AV_PKT_FLAG_TRUSTED 0x0008
3074#define AV_PKT_FLAG_DISPOSABLE 0x0010
3105 uint8_t *data,
size_t size);
3136#define AVCODEC_VERSION_H
3138#define LIBAVCODEC_VERSION_MINOR 3
3139#define LIBAVCODEC_VERSION_MICRO 100
3141#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
3142 LIBAVCODEC_VERSION_MINOR, \
3143 LIBAVCODEC_VERSION_MICRO)
3144#define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \
3145 LIBAVCODEC_VERSION_MINOR, \
3146 LIBAVCODEC_VERSION_MICRO)
3147#define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
3149#define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
3151#define AV_INPUT_BUFFER_MIN_SIZE 16384
3160#define AV_CODEC_FLAG_UNALIGNED (1 << 0)
3162#define AV_CODEC_FLAG_QSCALE (1 << 1)
3164#define AV_CODEC_FLAG_4MV (1 << 2)
3166#define AV_CODEC_FLAG_OUTPUT_CORRUPT (1 << 3)
3168#define AV_CODEC_FLAG_QPEL (1 << 4)
3170#define AV_CODEC_FLAG_DROPCHANGED (1 << 5)
3172#define AV_CODEC_FLAG_RECON_FRAME (1 << 6)
3174#define AV_CODEC_FLAG_COPY_OPAQUE (1 << 7)
3176#define AV_CODEC_FLAG_FRAME_DURATION (1 << 8)
3178#define AV_CODEC_FLAG_PASS1 (1 << 9)
3180#define AV_CODEC_FLAG_PASS2 (1 << 10)
3182#define AV_CODEC_FLAG_LOOP_FILTER (1 << 11)
3184#define AV_CODEC_FLAG_GRAY (1 << 13)
3186#define AV_CODEC_FLAG_PSNR (1 << 15)
3188#define AV_CODEC_FLAG_INTERLACED_DCT (1 << 18)
3190#define AV_CODEC_FLAG_LOW_DELAY (1 << 19)
3192#define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22)
3194#define AV_CODEC_FLAG_BITEXACT (1 << 23)
3196#define AV_CODEC_FLAG_AC_PRED (1 << 24)
3198#define AV_CODEC_FLAG_INTERLACED_ME (1 << 29)
3199#define AV_CODEC_FLAG_CLOSED_GOP (1U << 31)
3201#define AV_CODEC_FLAG2_FAST (1 << 0)
3203#define AV_CODEC_FLAG2_NO_OUTPUT (1 << 2)
3205#define AV_CODEC_FLAG2_LOCAL_HEADER (1 << 3)
3207#define AV_CODEC_FLAG2_CHUNKS (1 << 15)
3209#define AV_CODEC_FLAG2_IGNORE_CROP (1 << 16)
3211#define AV_CODEC_FLAG2_SHOW_ALL (1 << 22)
3213#define AV_CODEC_FLAG2_EXPORT_MVS (1 << 28)
3215#define AV_CODEC_FLAG2_SKIP_MANUAL (1 << 29)
3217#define AV_CODEC_FLAG2_RO_FLUSH_NOOP (1 << 30)
3219#define AV_CODEC_FLAG2_ICC_PROFILES (1U << 31)
3221#define AV_CODEC_EXPORT_DATA_MVS (1 << 0)
3223#define AV_CODEC_EXPORT_DATA_PRFT (1 << 1)
3225#define AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS (1 << 2)
3227#define AV_CODEC_EXPORT_DATA_FILM_GRAIN (1 << 3)
3229#define AV_GET_BUFFER_FLAG_REF (1 << 0)
3231#define AV_GET_ENCODE_BUFFER_FLAG_REF (1 << 0)
3233struct AVCodecInternal;
3259#define FF_COMPRESSION_DEFAULT -1
3284 int y,
int type,
int height);
3325#define FF_CMP_SATD 2
3327#define FF_CMP_PSNR 4
3330#define FF_CMP_ZERO 7
3331#define FF_CMP_VSAD 8
3332#define FF_CMP_VSSE 9
3333#define FF_CMP_NSSE 10
3334#define FF_CMP_W53 11
3335#define FF_CMP_W97 12
3336#define FF_CMP_DCTMAX 13
3337#define FF_CMP_DCT264 14
3338#define FF_CMP_MEDIAN_SAD 15
3339#define FF_CMP_CHROMA 256
3354#define SLICE_FLAG_CODED_ORDER 0x0001
3355#define SLICE_FLAG_ALLOW_FIELD 0x0002
3356#define SLICE_FLAG_ALLOW_PLANE 0x0004
3359#define FF_MB_DECISION_SIMPLE 0
3360#define FF_MB_DECISION_BITS 1
3361#define FF_MB_DECISION_RD 2
3458#define FF_BUG_AUTODETECT 1
3459#define FF_BUG_XVID_ILACE 4
3460#define FF_BUG_UMP4 8
3461#define FF_BUG_NO_PADDING 16
3462#define FF_BUG_AMV 32
3463#define FF_BUG_QPEL_CHROMA 64
3464#define FF_BUG_STD_QPEL 128
3465#define FF_BUG_QPEL_CHROMA2 256
3466#define FF_BUG_DIRECT_BLOCKSIZE 512
3467#define FF_BUG_EDGE 1024
3468#define FF_BUG_HPEL_CHROMA 2048
3469#define FF_BUG_DC_CLIP 4096
3470#define FF_BUG_MS 8192
3471#define FF_BUG_TRUNCATED 16384
3472#define FF_BUG_IEDGE 32768
3477#define FF_EC_GUESS_MVS 1
3478#define FF_EC_DEBLOCK 2
3479#define FF_EC_FAVOR_INTER 256
3482#define FF_DEBUG_PICT_INFO 1
3483#define FF_DEBUG_RC 2
3484#define FF_DEBUG_BITSTREAM 4
3485#define FF_DEBUG_MB_TYPE 8
3486#define FF_DEBUG_QP 16
3487#define FF_DEBUG_DCT_COEFF 0x00000040
3488#define FF_DEBUG_SKIP 0x00000080
3489#define FF_DEBUG_STARTCODE 0x00000100
3490#define FF_DEBUG_ER 0x00000400
3491#define FF_DEBUG_MMCO 0x00000800
3492#define FF_DEBUG_BUGS 0x00001000
3493#define FF_DEBUG_BUFFERS 0x00008000
3494#define FF_DEBUG_THREADS 0x00010000
3495#define FF_DEBUG_GREEN_MD 0x00800000
3496#define FF_DEBUG_NOMC 0x01000000
3510#define FF_DCT_AUTO 0
3511#define FF_DCT_FASTINT 1
3514#define FF_DCT_ALTIVEC 5
3515#define FF_DCT_FAAN 6
3518#define FF_IDCT_AUTO 0
3519#define FF_IDCT_INT 1
3520#define FF_IDCT_SIMPLE 2
3521#define FF_IDCT_SIMPLEMMX 3
3522#define FF_IDCT_ARM 7
3523#define FF_IDCT_ALTIVEC 8
3524#define FF_IDCT_SIMPLEARM 10
3525#define FF_IDCT_XVID 14
3526#define FF_IDCT_SIMPLEARMV5TE 16
3527#define FF_IDCT_SIMPLEARMV6 17
3528#define FF_IDCT_FAAN 20
3529#define FF_IDCT_SIMPLENEON 22
3531#define FF_IDCT_NONE 24
3532#define FF_IDCT_SIMPLEAUTO 128
3543#define FF_THREAD_FRAME 1
3544#define FF_THREAD_SLICE 2
3555#define FF_PROFILE_UNKNOWN -99
3556#define FF_PROFILE_RESERVED -100
3558#define FF_PROFILE_AAC_MAIN 0
3559#define FF_PROFILE_AAC_LOW 1
3560#define FF_PROFILE_AAC_SSR 2
3561#define FF_PROFILE_AAC_LTP 3
3562#define FF_PROFILE_AAC_HE 4
3563#define FF_PROFILE_AAC_HE_V2 28
3564#define FF_PROFILE_AAC_LD 22
3565#define FF_PROFILE_AAC_ELD 38
3566#define FF_PROFILE_MPEG2_AAC_LOW 128
3567#define FF_PROFILE_MPEG2_AAC_HE 131
3569#define FF_PROFILE_DNXHD 0
3570#define FF_PROFILE_DNXHR_LB 1
3571#define FF_PROFILE_DNXHR_SQ 2
3572#define FF_PROFILE_DNXHR_HQ 3
3573#define FF_PROFILE_DNXHR_HQX 4
3574#define FF_PROFILE_DNXHR_444 5
3576#define FF_PROFILE_DTS 20
3577#define FF_PROFILE_DTS_ES 30
3578#define FF_PROFILE_DTS_96_24 40
3579#define FF_PROFILE_DTS_HD_HRA 50
3580#define FF_PROFILE_DTS_HD_MA 60
3581#define FF_PROFILE_DTS_EXPRESS 70
3583#define FF_PROFILE_MPEG2_422 0
3584#define FF_PROFILE_MPEG2_HIGH 1
3585#define FF_PROFILE_MPEG2_SS 2
3586#define FF_PROFILE_MPEG2_SNR_SCALABLE 3
3587#define FF_PROFILE_MPEG2_MAIN 4
3588#define FF_PROFILE_MPEG2_SIMPLE 5
3590#define FF_PROFILE_H264_CONSTRAINED (1<<9)
3591#define FF_PROFILE_H264_INTRA (1<<11)
3593#define FF_PROFILE_H264_BASELINE 66
3594#define FF_PROFILE_H264_CONSTRAINED_BASELINE (66|FF_PROFILE_H264_CONSTRAINED)
3595#define FF_PROFILE_H264_MAIN 77
3596#define FF_PROFILE_H264_EXTENDED 88
3597#define FF_PROFILE_H264_HIGH 100
3598#define FF_PROFILE_H264_HIGH_10 110
3599#define FF_PROFILE_H264_HIGH_10_INTRA (110|FF_PROFILE_H264_INTRA)
3600#define FF_PROFILE_H264_MULTIVIEW_HIGH 118
3601#define FF_PROFILE_H264_HIGH_422 122
3602#define FF_PROFILE_H264_HIGH_422_INTRA (122|FF_PROFILE_H264_INTRA)
3603#define FF_PROFILE_H264_STEREO_HIGH 128
3604#define FF_PROFILE_H264_HIGH_444 144
3605#define FF_PROFILE_H264_HIGH_444_PREDICTIVE 244
3606#define FF_PROFILE_H264_HIGH_444_INTRA (244|FF_PROFILE_H264_INTRA)
3607#define FF_PROFILE_H264_CAVLC_444 44
3609#define FF_PROFILE_VC1_SIMPLE 0
3610#define FF_PROFILE_VC1_MAIN 1
3611#define FF_PROFILE_VC1_COMPLEX 2
3612#define FF_PROFILE_VC1_ADVANCED 3
3614#define FF_PROFILE_MPEG4_SIMPLE 0
3615#define FF_PROFILE_MPEG4_SIMPLE_SCALABLE 1
3616#define FF_PROFILE_MPEG4_CORE 2
3617#define FF_PROFILE_MPEG4_MAIN 3
3618#define FF_PROFILE_MPEG4_N_BIT 4
3619#define FF_PROFILE_MPEG4_SCALABLE_TEXTURE 5
3620#define FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION 6
3621#define FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE 7
3622#define FF_PROFILE_MPEG4_HYBRID 8
3623#define FF_PROFILE_MPEG4_ADVANCED_REAL_TIME 9
3624#define FF_PROFILE_MPEG4_CORE_SCALABLE 10
3625#define FF_PROFILE_MPEG4_ADVANCED_CODING 11
3626#define FF_PROFILE_MPEG4_ADVANCED_CORE 12
3627#define FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE 13
3628#define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14
3629#define FF_PROFILE_MPEG4_ADVANCED_SIMPLE 15
3631#define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0 1
3632#define FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1 2
3633#define FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION 32768
3634#define FF_PROFILE_JPEG2000_DCINEMA_2K 3
3635#define FF_PROFILE_JPEG2000_DCINEMA_4K 4
3637#define FF_PROFILE_VP9_0 0
3638#define FF_PROFILE_VP9_1 1
3639#define FF_PROFILE_VP9_2 2
3640#define FF_PROFILE_VP9_3 3
3642#define FF_PROFILE_HEVC_MAIN 1
3643#define FF_PROFILE_HEVC_MAIN_10 2
3644#define FF_PROFILE_HEVC_MAIN_STILL_PICTURE 3
3645#define FF_PROFILE_HEVC_REXT 4
3647#define FF_PROFILE_VVC_MAIN_10 1
3648#define FF_PROFILE_VVC_MAIN_10_444 33
3650#define FF_PROFILE_AV1_MAIN 0
3651#define FF_PROFILE_AV1_HIGH 1
3652#define FF_PROFILE_AV1_PROFESSIONAL 2
3654#define FF_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT 0xc0
3655#define FF_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT 0xc1
3656#define FF_PROFILE_MJPEG_HUFFMAN_PROGRESSIVE_DCT 0xc2
3657#define FF_PROFILE_MJPEG_HUFFMAN_LOSSLESS 0xc3
3658#define FF_PROFILE_MJPEG_JPEG_LS 0xf7
3660#define FF_PROFILE_SBC_MSBC 1
3662#define FF_PROFILE_PRORES_PROXY 0
3663#define FF_PROFILE_PRORES_LT 1
3664#define FF_PROFILE_PRORES_STANDARD 2
3665#define FF_PROFILE_PRORES_HQ 3
3666#define FF_PROFILE_PRORES_4444 4
3667#define FF_PROFILE_PRORES_XQ 5
3669#define FF_PROFILE_ARIB_PROFILE_A 0
3670#define FF_PROFILE_ARIB_PROFILE_C 1
3672#define FF_PROFILE_KLVA_SYNC 0
3673#define FF_PROFILE_KLVA_ASYNC 1
3676#define FF_LEVEL_UNKNOWN -99
3705#define FF_SUB_CHARENC_MODE_DO_NOTHING -1
3706#define FF_SUB_CHARENC_MODE_AUTOMATIC 0
3707#define FF_SUB_CHARENC_MODE_PRE_DECODER 1
3708#define FF_SUB_CHARENC_MODE_IGNORE 2
3721#define FF_CODEC_PROPERTY_LOSSLESS 0x00000001
3722#define FF_CODEC_PROPERTY_CLOSED_CAPTIONS 0x00000002
3723#define FF_CODEC_PROPERTY_FILM_GRAIN 0x00000004
3790#define AV_HWACCEL_CODEC_CAP_EXPERIMENTAL 0x0200
3792#define AV_HWACCEL_FLAG_IGNORE_LEVEL (1 << 0)
3794#define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (1 << 1)
3796#define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2)
3798#define AV_HWACCEL_FLAG_UNSAFE_OUTPUT (1 << 3)
3810#define AV_SUBTITLE_FLAG_FORCED 0x00000001
3882 int *got_sub_ptr,
const AVPacket *avpkt);
3922#define AV_PARSER_PTS_NB 4
3929#define PARSER_FLAG_COMPLETE_FRAMES 0x0001
3930#define PARSER_FLAG_ONCE 0x0002
3932#define PARSER_FLAG_FETCHED_OFFSET 0x0004
3933#define PARSER_FLAG_USE_CODEC_TS 0x1000
3976 const uint8_t **poutbuf,
int *poutbuf_size,
3977 const uint8_t *buf,
int buf_size);
3988 uint8_t **poutbuf,
int *poutbuf_size,
3989 const uint8_t *buf,
int buf_size,
3990 int64_t pts, int64_t dts,
4002 int has_alpha,
int *loss_ptr);
4013 int buf_size,
int align);
4025#define AVFORMAT_AVFORMAT_H
4027#define AVFORMAT_AVIO_H
4029#define AVFORMAT_VERSION_MAJOR_H
4031#define LIBAVFORMAT_VERSION_MAJOR 60
4033#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 61)
4034#define FF_API_GET_END_PTS (LIBAVFORMAT_VERSION_MAJOR < 61)
4035#define FF_API_AVIODIRCONTEXT (LIBAVFORMAT_VERSION_MAJOR < 61)
4036#define FF_API_AVFORMAT_IO_CLOSE (LIBAVFORMAT_VERSION_MAJOR < 61)
4038#define FF_API_R_FRAME_RATE 1
4040#define AVIO_SEEKABLE_NORMAL (1 << 0)
4042#define AVIO_SEEKABLE_TIME (1 << 1)
4112 int64_t (*
seek)(
void *
opaque, int64_t offset,
int whence);
4127 int64_t timestamp,
int flags);
4162 unsigned char *buffer,
4166 int (*read_packet)(
void *opaque, uint8_t *buf,
int buf_size),
4167 int (*write_packet)(
void *opaque, uint8_t *buf,
int buf_size),
4168 int64_t (*seek)(
void *opaque, int64_t offset,
int whence));
4191#define AVSEEK_SIZE 0x10000
4193#define AVSEEK_FORCE 0x20000
4214#define avio_print(s, ...) \
4215 avio_print_string_array(s, (const char*[]){__VA_ARGS__, NULL})
4238#define AVIO_FLAG_READ 1
4239#define AVIO_FLAG_WRITE 2
4240#define AVIO_FLAG_READ_WRITE (AVIO_FLAG_READ|AVIO_FLAG_WRITE)
4242#define AVIO_FLAG_NONBLOCK 8
4244#define AVIO_FLAG_DIRECT 0x8000
4268 int64_t timestamp,
int flags);
4278#define AVFORMAT_VERSION_H
4280#define LIBAVFORMAT_VERSION_MINOR 3
4281#define LIBAVFORMAT_VERSION_MICRO 100
4283#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
4284 LIBAVFORMAT_VERSION_MINOR, \
4285 LIBAVFORMAT_VERSION_MICRO)
4286#define LIBAVFORMAT_VERSION AV_VERSION(LIBAVFORMAT_VERSION_MAJOR, \
4287 LIBAVFORMAT_VERSION_MINOR, \
4288 LIBAVFORMAT_VERSION_MICRO)
4289#define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT
4291#define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
4295struct AVDeviceInfoList;
4310#define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
4311#define AVPROBE_SCORE_STREAM_RETRY (AVPROBE_SCORE_MAX/4-1)
4313#define AVPROBE_SCORE_EXTENSION 50
4314#define AVPROBE_SCORE_MIME 75
4315#define AVPROBE_SCORE_MAX 100
4317#define AVPROBE_PADDING_SIZE 32
4319#define AVFMT_NOFILE 0x0001
4320#define AVFMT_NEEDNUMBER 0x0002
4322#define AVFMT_EXPERIMENTAL 0x0004
4323#define AVFMT_SHOW_IDS 0x0008
4324#define AVFMT_GLOBALHEADER 0x0040
4325#define AVFMT_NOTIMESTAMPS 0x0080
4326#define AVFMT_GENERIC_INDEX 0x0100
4327#define AVFMT_TS_DISCONT 0x0200
4328#define AVFMT_VARIABLE_FPS 0x0400
4329#define AVFMT_NODIMENSIONS 0x0800
4330#define AVFMT_NOSTREAMS 0x1000
4331#define AVFMT_NOBINSEARCH 0x2000
4332#define AVFMT_NOGENSEARCH 0x4000
4333#define AVFMT_NO_BYTE_SEEK 0x8000
4334#define AVFMT_ALLOW_FLUSH 0x10000
4335#define AVFMT_TS_NONSTRICT 0x20000
4337#define AVFMT_TS_NEGATIVE 0x40000
4339#define AVFMT_SEEK_TO_PTS 0x4000000
4354 const struct AVCodecTag *
const *
codec_tag;
4369 const struct AVCodecTag *
const *
codec_tag;
4390 int stream_index, int64_t timestamp,
int flags);
4393 int64_t *pos, int64_t pos_limit);
4419#define AVINDEX_KEYFRAME 0x0001
4420#define AVINDEX_DISCARD_FRAME 0x0002
4427#define AV_DISPOSITION_DEFAULT (1 << 0)
4429#define AV_DISPOSITION_DUB (1 << 1)
4431#define AV_DISPOSITION_ORIGINAL (1 << 2)
4433#define AV_DISPOSITION_COMMENT (1 << 3)
4435#define AV_DISPOSITION_LYRICS (1 << 4)
4437#define AV_DISPOSITION_KARAOKE (1 << 5)
4439#define AV_DISPOSITION_FORCED (1 << 6)
4441#define AV_DISPOSITION_HEARING_IMPAIRED (1 << 7)
4443#define AV_DISPOSITION_VISUAL_IMPAIRED (1 << 8)
4445#define AV_DISPOSITION_CLEAN_EFFECTS (1 << 9)
4447#define AV_DISPOSITION_ATTACHED_PIC (1 << 10)
4449#define AV_DISPOSITION_TIMED_THUMBNAILS (1 << 11)
4451#define AV_DISPOSITION_NON_DIEGETIC (1 << 12)
4453#define AV_DISPOSITION_CAPTIONS (1 << 16)
4455#define AV_DISPOSITION_DESCRIPTIONS (1 << 17)
4457#define AV_DISPOSITION_METADATA (1 << 18)
4459#define AV_DISPOSITION_DEPENDENT (1 << 19)
4461#define AV_DISPOSITION_STILL_IMAGE (1 << 20)
4467#define AV_PTS_WRAP_IGNORE 0
4468#define AV_PTS_WRAP_ADD_OFFSET 1
4469#define AV_PTS_WRAP_SUB_OFFSET -1
4509#define AVSTREAM_EVENT_FLAG_METADATA_UPDATED 0x0001
4511#define AVSTREAM_EVENT_FLAG_NEW_PACKETS (1 << 1)
4523#define AV_PROGRAM_RUNNING 1
4545#define AVFMTCTX_NOHEADER 0x0001
4547#define AVFMTCTX_UNSEEKABLE 0x0002
4557 void *data,
size_t data_size);
4598#define AVFMT_FLAG_GENPTS 0x0001
4599#define AVFMT_FLAG_IGNIDX 0x0002
4600#define AVFMT_FLAG_NONBLOCK 0x0004
4601#define AVFMT_FLAG_IGNDTS 0x0008
4602#define AVFMT_FLAG_NOFILLIN 0x0010
4603#define AVFMT_FLAG_NOPARSE 0x0020
4604#define AVFMT_FLAG_NOBUFFER 0x0040
4605#define AVFMT_FLAG_CUSTOM_IO 0x0080
4606#define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
4607#define AVFMT_FLAG_FLUSH_PACKETS 0x0200
4609#define AVFMT_FLAG_BITEXACT 0x0400
4610#define AVFMT_FLAG_SORT_DTS 0x10000
4611#define AVFMT_FLAG_FAST_SEEK 0x80000
4612#define AVFMT_FLAG_SHORTEST 0x100000
4613#define AVFMT_FLAG_AUTO_BSF 0x200000
4649#define FF_FDEBUG_TS 0x0001
4657#define AVFMT_EVENT_FLAG_METADATA_UPDATED 0x0001
4662#define AVFMT_AVOID_NEG_TS_AUTO -1
4663#define AVFMT_AVOID_NEG_TS_DISABLED 0
4664#define AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE 1
4665#define AVFMT_AVOID_NEG_TS_MAKE_ZERO 2
4767 uint8_t *data,
size_t size);
4778 const char *format_name,
const char *
filename);
4785 int is_opened,
int *score_max);
4788 int is_opened,
int *score_ret);
4791 const char *
url,
void *logctx,
4792 unsigned int offset,
unsigned int max_probe_size);
4795 const char *
url,
void *logctx,
4796 unsigned int offset,
unsigned int max_probe_size);
4809 int wanted_stream_nb,
4829#define AVSEEK_FLAG_BACKWARD 1
4830#define AVSEEK_FLAG_BYTE 2
4831#define AVSEEK_FLAG_ANY 4
4832#define AVSEEK_FLAG_FRAME 8
4834#define AVSTREAM_INIT_IN_WRITE_HEADER 0
4835#define AVSTREAM_INIT_IN_INIT_OUTPUT 1
4859 const char *mime_type);
4862 const char *
filename,
const char *mime_type,
4866 int64_t *dts, int64_t *wall);
4893 int64_t wanted_timestamp,
4900 char *authorization,
int authorization_size,
4901 char *hostname,
int hostname_size,
4903 char *path,
int path_size,
4911#define AV_FRAME_FILENAME_FLAGS_MULTIPLE 1
4914 const char *path,
int number,
int flags);
4917 const char *path,
int number);
4926 int std_compliance);
4958#define AVUTIL_FIFO_H
4962typedef int AVFifoCB(
void *opaque,
void *buf,
size_t *nb_elems);
4964#define AV_FIFO_FLAG_AUTO_GROW (1 << 0)
4967 unsigned int flags);
4982 void *opaque,
size_t *nb_elems);
4987 void *opaque,
size_t *nb_elems);
4992 size_t *nb_elems,
size_t offset);
5051 uint8_t *ptr = f->
rptr + offs;
5054 else if (ptr < f->buffer)
struct AVDictionary AVDictionary
static ProjectFileIORegistry::AttributeWriterEntry entry
enum AVChannelOrder order
union AVChannelLayout::@162 u
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
float rc_max_available_vbv_use
struct AVCodecInternal * internal
enum AVPixelFormat pix_fmt
AVPacketSideData * coded_side_data
int(* get_encode_buffer)(struct AVCodecContext *s, AVPacket *pkt, int flags)
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)
int64_t pts_correction_num_faulty_dts
attribute_deprecated int frame_number
uint64_t error[AV_NUM_DATA_POINTERS]
AVChannelLayout ch_layout
int64_t pts_correction_last_pts
enum AVSampleFormat sample_fmt
enum AVPixelFormat sw_pix_fmt
const AVCodecDescriptor * codec_descriptor
attribute_deprecated uint64_t request_channel_layout
enum AVColorRange color_range
int strict_std_compliance
enum AVAudioServiceType audio_service_type
enum AVColorPrimaries color_primaries
enum AVMediaType codec_type
AVBufferRef * hw_frames_ctx
AVRational sample_aspect_ratio
int bits_per_coded_sample
uint16_t * chroma_intra_matrix
attribute_deprecated uint64_t channel_layout
enum AVFieldOrder field_order
attribute_deprecated AVPacket * pkt
enum AVDiscard skip_loop_filter
int64_t pts_correction_num_faulty_pts
attribute_deprecated int64_t reordered_opaque
attribute_deprecated int channels
int rc_initial_buffer_occupancy
int(* get_buffer2)(struct AVCodecContext *s, AVFrame *frame, int flags)
uint8_t * subtitle_header
enum AVColorSpace colorspace
struct AVHWAccel * hwaccel
const struct AVCodec * codec
enum AVSampleFormat request_sample_fmt
float temporal_cplx_masking
int discard_damaged_percentage
void(* draw_horiz_band)(struct AVCodecContext *s, const AVFrame *src, int offset[AV_NUM_DATA_POINTERS], int y, int type, int height)
enum AVColorTransferCharacteristic color_trc
float rc_min_vbv_overflow_use
enum AVChromaLocation chroma_sample_location
AVBufferRef * hw_device_ctx
int(* execute2)(struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg, int jobnr, int threadnr), void *arg2, int *ret, int count)
enum AVPixelFormat(* get_format)(struct AVCodecContext *s, const enum AVPixelFormat *fmt)
float spatial_cplx_masking
enum AVDiscard skip_frame
const struct AVProfile * profiles
const char *const * mime_types
enum AVHWDeviceType device_type
enum AVPixelFormat pix_fmt
attribute_deprecated const uint64_t * channel_layouts
const AVChannelLayout * ch_layouts
const int * supported_samplerates
const AVRational * supported_framerates
const char * wrapper_name
const AVClass * priv_class
const AVProfile * profiles
enum AVPixelFormat * pix_fmts
enum AVSampleFormat * sample_fmts
enum AVColorSpace color_space
enum AVFieldOrder field_order
int bits_per_coded_sample
AVChannelLayout ch_layout
enum AVMediaType codec_type
AVRational sample_aspect_ratio
enum AVColorPrimaries color_primaries
enum AVColorTransferCharacteristic color_trc
enum AVChromaLocation chroma_location
attribute_deprecated uint64_t channel_layout
attribute_deprecated int channels
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
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)
int(* split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
int64_t max_interleave_delta
char * protocol_whitelist
enum AVCodecID audio_codec_id
enum AVCodecID data_codec_id
void(* io_close)(struct AVFormatContext *s, AVIOContext *pb)
attribute_deprecated int 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)
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
int skip_estimate_duration_from_pts
int(* io_close2)(struct AVFormatContext *s, AVIOContext *pb)
unsigned int correct_ts_overflow
int64_t best_effort_timestamp
attribute_deprecated int64_t reordered_opaque
AVBufferRef * private_ref
enum AVChromaLocation chroma_location
AVBufferRef ** extended_buf
attribute_deprecated int channels
enum AVColorPrimaries color_primaries
AVRational sample_aspect_ratio
attribute_deprecated uint64_t channel_layout
AVBufferRef * buf[AV_NUM_DATA_POINTERS]
enum AVColorRange color_range
AVFrameSideData ** side_data
attribute_deprecated int64_t pkt_duration
enum AVColorSpace colorspace
attribute_deprecated int coded_picture_number
enum AVColorTransferCharacteristic color_trc
int linesize[AV_NUM_DATA_POINTERS]
AVBufferRef * hw_frames_ctx
AVChannelLayout ch_layout
uint8_t * data[AV_NUM_DATA_POINTERS]
attribute_deprecated int display_picture_number
enum AVPictureType pict_type
enum AVFrameSideDataType type
int(* uninit)(AVCodecContext *avctx)
int(* decode_slice)(AVCodecContext *avctx, const uint8_t *buf, uint32_t buf_size)
int(* decode_params)(AVCodecContext *avctx, int type, 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)
int(* init)(AVCodecContext *avctx)
int(* end_frame)(AVCodecContext *avctx)
int(* frame_params)(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
void(* free)(struct AVHWDeviceContext *ctx)
AVHWDeviceInternal * internal
enum AVPixelFormat * valid_hw_formats
enum AVPixelFormat * valid_sw_formats
enum AVPixelFormat format
AVHWDeviceContext * device_ctx
AVHWFramesInternal * internal
enum AVPixelFormat sw_format
void(* free)(struct AVHWFramesContext *ctx)
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
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(* 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
AVPacketSideData * side_data
struct AVPacketList * next
enum AVPacketSideDataType type
unsigned int nb_stream_indexes
int64_t pts_wrap_reference
unsigned int * stream_index
AVRational sample_aspect_ratio
AVPacketSideData * side_data
AVRational avg_frame_rate
AVCodecParameters * codecpar
uint32_t start_display_time
uint32_t end_display_time