21 #ifndef AVFORMAT_AVFORMAT_H
22 #define AVFORMAT_AVFORMAT_H
384 typedef struct AVFrac {
385 int64_t
val, num, den;
404 #define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
405 #define AVPROBE_SCORE_STREAM_RETRY (AVPROBE_SCORE_MAX/4-1)
407 #define AVPROBE_SCORE_EXTENSION 50
408 #define AVPROBE_SCORE_MIME 75
409 #define AVPROBE_SCORE_MAX 100
411 #define AVPROBE_PADDING_SIZE 32
414 #define AVFMT_NOFILE 0x0001
415 #define AVFMT_NEEDNUMBER 0x0002
416 #define AVFMT_SHOW_IDS 0x0008
417 #define AVFMT_RAWPICTURE 0x0020
419 #define AVFMT_GLOBALHEADER 0x0040
420 #define AVFMT_NOTIMESTAMPS 0x0080
421 #define AVFMT_GENERIC_INDEX 0x0100
422 #define AVFMT_TS_DISCONT 0x0200
423 #define AVFMT_VARIABLE_FPS 0x0400
424 #define AVFMT_NODIMENSIONS 0x0800
425 #define AVFMT_NOSTREAMS 0x1000
426 #define AVFMT_NOBINSEARCH 0x2000
427 #define AVFMT_NOGENSEARCH 0x4000
428 #define AVFMT_NO_BYTE_SEEK 0x8000
429 #define AVFMT_ALLOW_FLUSH 0x10000
430 #if LIBAVFORMAT_VERSION_MAJOR <= 54
431 #define AVFMT_TS_NONSTRICT 0x8020000 //we try to be compatible to the ABIs of ffmpeg and major forks
433 #define AVFMT_TS_NONSTRICT 0x20000
438 #define AVFMT_TS_NEGATIVE 0x40000
447 #define AVFMT_SEEK_TO_PTS 0x4000000
522 int64_t *dts, int64_t *wall);
527 void *
data,
size_t data_size);
661 int stream_index, int64_t timestamp,
int flags);
668 int64_t *pos, int64_t pos_limit);
731 #define AVINDEX_KEYFRAME 0x0001
737 #define AV_DISPOSITION_DEFAULT 0x0001
738 #define AV_DISPOSITION_DUB 0x0002
739 #define AV_DISPOSITION_ORIGINAL 0x0004
740 #define AV_DISPOSITION_COMMENT 0x0008
741 #define AV_DISPOSITION_LYRICS 0x0010
742 #define AV_DISPOSITION_KARAOKE 0x0020
749 #define AV_DISPOSITION_FORCED 0x0040
750 #define AV_DISPOSITION_HEARING_IMPAIRED 0x0080
751 #define AV_DISPOSITION_VISUAL_IMPAIRED 0x0100
752 #define AV_DISPOSITION_CLEAN_EFFECTS 0x0200
759 #define AV_DISPOSITION_ATTACHED_PIC 0x0400
764 #define AV_DISPOSITION_CAPTIONS 0x10000
765 #define AV_DISPOSITION_DESCRIPTIONS 0x20000
766 #define AV_DISPOSITION_METADATA 0x40000
771 #define AV_PTS_WRAP_IGNORE 0
772 #define AV_PTS_WRAP_ADD_OFFSET 1
773 #define AV_PTS_WRAP_SUB_OFFSET -1
906 #define AVSTREAM_EVENT_FLAG_METADATA_UPDATED 0x0001
919 #define MAX_STD_TIMEBASES (30*12+7+6)
966 #define MAX_PROBE_PACKETS 2500
983 #define MAX_REORDER_DELAY 16
1128 #define AV_PROGRAM_RUNNING 1
1162 #define AVFMTCTX_NOHEADER 0x0001
1177 void *
data,
size_t data_size);
1312 #define AVFMT_FLAG_GENPTS 0x0001
1313 #define AVFMT_FLAG_IGNIDX 0x0002
1314 #define AVFMT_FLAG_NONBLOCK 0x0004
1315 #define AVFMT_FLAG_IGNDTS 0x0008
1316 #define AVFMT_FLAG_NOFILLIN 0x0010
1317 #define AVFMT_FLAG_NOPARSE 0x0020
1318 #define AVFMT_FLAG_NOBUFFER 0x0040
1319 #define AVFMT_FLAG_CUSTOM_IO 0x0080
1320 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
1321 #define AVFMT_FLAG_FLUSH_PACKETS 0x0200
1328 #define AVFMT_FLAG_BITEXACT 0x0400
1329 #define AVFMT_FLAG_MP4A_LATM 0x8000
1330 #define AVFMT_FLAG_SORT_DTS 0x10000
1331 #define AVFMT_FLAG_PRIV_OPT 0x20000
1332 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
1453 #define FF_FDEBUG_TS 0x0001
1485 #define AVFMT_EVENT_FLAG_METADATA_UPDATED 0x0001
1501 #define AVFMT_AVOID_NEG_TS_AUTO -1
1502 #define AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE 1
1503 #define AVFMT_AVOID_NEG_TS_MAKE_ZERO 2
1654 #define RAW_PACKET_BUFFER_SIZE 2500000
1936 const char *format_name,
const char *filename);
1997 const char *filename,
void *logctx,
1998 unsigned int offset,
unsigned int max_probe_size);
2004 const char *filename,
void *logctx,
2005 unsigned int offset,
unsigned int max_probe_size);
2092 int wanted_stream_nb,
2191 #define AVSEEK_FLAG_BACKWARD 1
2192 #define AVSEEK_FLAG_BYTE 2
2193 #define AVSEEK_FLAG_ANY 4
2194 #define AVSEEK_FLAG_FRAME 8
2346 const char *filename,
2347 const char *mime_type);
2353 const char *filename,
const char *mime_type,
2372 int64_t *dts, int64_t *wall);
2516 char *authorization,
int authorization_size,
2517 char *hostname,
int hostname_size,
2519 char *path,
int path_size,
2551 const char *path,
int number);
2587 int av_match_ext(
const char *filename,
const char *extensions);
2600 int std_compliance);