21 #ifndef AVFORMAT_AVFORMAT_H
22 #define AVFORMAT_AVFORMAT_H
210 #if FF_API_AV_GETTIME
344 #define AVPROBE_SCORE_MAX 100
345 #define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
346 #define AVPROBE_PADDING_SIZE 32
349 #define AVFMT_NOFILE 0x0001
350 #define AVFMT_NEEDNUMBER 0x0002
351 #define AVFMT_SHOW_IDS 0x0008
352 #define AVFMT_RAWPICTURE 0x0020
354 #define AVFMT_GLOBALHEADER 0x0040
355 #define AVFMT_NOTIMESTAMPS 0x0080
356 #define AVFMT_GENERIC_INDEX 0x0100
357 #define AVFMT_TS_DISCONT 0x0200
358 #define AVFMT_VARIABLE_FPS 0x0400
359 #define AVFMT_NODIMENSIONS 0x0800
360 #define AVFMT_NOSTREAMS 0x1000
361 #define AVFMT_NOBINSEARCH 0x2000
362 #define AVFMT_NOGENSEARCH 0x4000
363 #define AVFMT_NO_BYTE_SEEK 0x8000
364 #define AVFMT_ALLOW_FLUSH 0x10000
365 #if LIBAVFORMAT_VERSION_MAJOR <= 54
366 #define AVFMT_TS_NONSTRICT 0x8020000 //we try to be compatible to the ABIs of ffmpeg and major forks
368 #define AVFMT_TS_NONSTRICT 0x20000
374 #define AVFMT_SEEK_TO_PTS 0x4000000
449 int64_t *dts, int64_t *wall);
550 int stream_index, int64_t timestamp,
int flags);
557 int64_t *pos, int64_t pos_limit);
602 #define AVINDEX_KEYFRAME 0x0001
608 #define AV_DISPOSITION_DEFAULT 0x0001
609 #define AV_DISPOSITION_DUB 0x0002
610 #define AV_DISPOSITION_ORIGINAL 0x0004
611 #define AV_DISPOSITION_COMMENT 0x0008
612 #define AV_DISPOSITION_LYRICS 0x0010
613 #define AV_DISPOSITION_KARAOKE 0x0020
620 #define AV_DISPOSITION_FORCED 0x0040
621 #define AV_DISPOSITION_HEARING_IMPAIRED 0x0080
622 #define AV_DISPOSITION_VISUAL_IMPAIRED 0x0100
623 #define AV_DISPOSITION_CLEAN_EFFECTS 0x0200
630 #define AV_DISPOSITION_ATTACHED_PIC 0x0400
635 #define AV_PTS_WRAP_IGNORE 0
636 #define AV_PTS_WRAP_ADD_OFFSET 1
637 #define AV_PTS_WRAP_SUB_OFFSET -1
666 #if FF_API_R_FRAME_RATE
752 #define MAX_STD_TIMEBASES (60*12+6)
793 #define MAX_PROBE_PACKETS 2500
820 #define MAX_REORDER_DELAY 16
878 #define AV_PROGRAM_RUNNING 1
912 #define AVFMTCTX_NOHEADER 0x0001
1019 #define AVFMT_FLAG_GENPTS 0x0001
1020 #define AVFMT_FLAG_IGNIDX 0x0002
1021 #define AVFMT_FLAG_NONBLOCK 0x0004
1022 #define AVFMT_FLAG_IGNDTS 0x0008
1023 #define AVFMT_FLAG_NOFILLIN 0x0010
1024 #define AVFMT_FLAG_NOPARSE 0x0020
1025 #define AVFMT_FLAG_NOBUFFER 0x0040
1026 #define AVFMT_FLAG_CUSTOM_IO 0x0080
1027 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
1028 #define AVFMT_FLAG_MP4A_LATM 0x8000
1029 #define AVFMT_FLAG_SORT_DTS 0x10000
1030 #define AVFMT_FLAG_PRIV_OPT 0x20000
1031 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
1128 #define FF_FDEBUG_TS 0x0001
1250 #define RAW_PACKET_BUFFER_SIZE 2500000
1384 #if FF_API_ALLOC_OUTPUT_CONTEXT
1391 const char *filename);
1411 const char *format_name,
const char *filename);
1469 const char *filename,
void *logctx,
1470 unsigned int offset,
unsigned int max_probe_size);
1496 #if FF_API_FORMAT_PARAMETERS
1577 int wanted_stream_nb,
1582 #if FF_API_READ_PACKET
1681 #if FF_API_CLOSE_INPUT_FILE
1701 #if FF_API_NEW_STREAM
1716 #if FF_API_SET_PTS_INFO
1721 void av_set_pts_info(
AVStream *s,
int pts_wrap_bits,
1722 unsigned int pts_num,
unsigned int pts_den);
1725 #define AVSEEK_FLAG_BACKWARD 1
1726 #define AVSEEK_FLAG_BYTE 2
1727 #define AVSEEK_FLAG_ANY 4
1728 #define AVSEEK_FLAG_FRAME 8
1797 #if FF_API_INTERLEAVE_PACKET
1831 const char *filename,
1832 const char *mime_type);
1838 const char *filename,
const char *mime_type,
1857 int64_t *dts, int64_t *wall);
1996 char *authorization,
int authorization_size,
1997 char *hostname,
int hostname_size,
1999 char *path,
int path_size,
2021 const char *path,
int number);
2056 int av_match_ext(
const char *filename,
const char *extensions);