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)
791 #define MAX_PROBE_PACKETS 2500
818 #define MAX_REORDER_DELAY 16
876 #define AV_PROGRAM_RUNNING 1
910 #define AVFMTCTX_NOHEADER 0x0001
1017 #define AVFMT_FLAG_GENPTS 0x0001
1018 #define AVFMT_FLAG_IGNIDX 0x0002
1019 #define AVFMT_FLAG_NONBLOCK 0x0004
1020 #define AVFMT_FLAG_IGNDTS 0x0008
1021 #define AVFMT_FLAG_NOFILLIN 0x0010
1022 #define AVFMT_FLAG_NOPARSE 0x0020
1023 #define AVFMT_FLAG_NOBUFFER 0x0040
1024 #define AVFMT_FLAG_CUSTOM_IO 0x0080
1025 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
1026 #define AVFMT_FLAG_MP4A_LATM 0x8000
1027 #define AVFMT_FLAG_SORT_DTS 0x10000
1028 #define AVFMT_FLAG_PRIV_OPT 0x20000
1029 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
1126 #define FF_FDEBUG_TS 0x0001
1241 #define RAW_PACKET_BUFFER_SIZE 2500000
1375 #if FF_API_ALLOC_OUTPUT_CONTEXT
1382 const char *filename);
1402 const char *format_name,
const char *filename);
1460 const char *filename,
void *logctx,
1461 unsigned int offset,
unsigned int max_probe_size);
1487 #if FF_API_FORMAT_PARAMETERS
1568 int wanted_stream_nb,
1573 #if FF_API_READ_PACKET
1672 #if FF_API_CLOSE_INPUT_FILE
1692 #if FF_API_NEW_STREAM
1707 #if FF_API_SET_PTS_INFO
1712 void av_set_pts_info(
AVStream *s,
int pts_wrap_bits,
1713 unsigned int pts_num,
unsigned int pts_den);
1716 #define AVSEEK_FLAG_BACKWARD 1
1717 #define AVSEEK_FLAG_BYTE 2
1718 #define AVSEEK_FLAG_ANY 4
1719 #define AVSEEK_FLAG_FRAME 8
1788 #if FF_API_INTERLEAVE_PACKET
1822 const char *filename,
1823 const char *mime_type);
1829 const char *filename,
const char *mime_type,
1848 int64_t *dts, int64_t *wall);
1975 char *authorization,
int authorization_size,
1976 char *hostname,
int hostname_size,
1978 char *path,
int path_size,
2000 const char *path,
int number);
2035 int av_match_ext(
const char *filename,
const char *extensions);