21 #ifndef AVFORMAT_AVFORMAT_H
22 #define AVFORMAT_AVFORMAT_H
395 #define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
396 #define AVPROBE_SCORE_STREAM_RETRY (AVPROBE_SCORE_MAX/4-1)
398 #define AVPROBE_SCORE_EXTENSION 50
399 #define AVPROBE_SCORE_MAX 100
401 #define AVPROBE_PADDING_SIZE 32
404 #define AVFMT_NOFILE 0x0001
405 #define AVFMT_NEEDNUMBER 0x0002
406 #define AVFMT_SHOW_IDS 0x0008
407 #define AVFMT_RAWPICTURE 0x0020
409 #define AVFMT_GLOBALHEADER 0x0040
410 #define AVFMT_NOTIMESTAMPS 0x0080
411 #define AVFMT_GENERIC_INDEX 0x0100
412 #define AVFMT_TS_DISCONT 0x0200
413 #define AVFMT_VARIABLE_FPS 0x0400
414 #define AVFMT_NODIMENSIONS 0x0800
415 #define AVFMT_NOSTREAMS 0x1000
416 #define AVFMT_NOBINSEARCH 0x2000
417 #define AVFMT_NOGENSEARCH 0x4000
418 #define AVFMT_NO_BYTE_SEEK 0x8000
419 #define AVFMT_ALLOW_FLUSH 0x10000
420 #if LIBAVFORMAT_VERSION_MAJOR <= 54
421 #define AVFMT_TS_NONSTRICT 0x8020000 //we try to be compatible to the ABIs of ffmpeg and major forks
423 #define AVFMT_TS_NONSTRICT 0x20000
428 #define AVFMT_TS_NEGATIVE 0x40000
437 #define AVFMT_SEEK_TO_PTS 0x4000000
512 int64_t *dts, int64_t *wall);
634 int stream_index, int64_t timestamp,
int flags);
641 int64_t *pos, int64_t pos_limit);
692 #define AVINDEX_KEYFRAME 0x0001
698 #define AV_DISPOSITION_DEFAULT 0x0001
699 #define AV_DISPOSITION_DUB 0x0002
700 #define AV_DISPOSITION_ORIGINAL 0x0004
701 #define AV_DISPOSITION_COMMENT 0x0008
702 #define AV_DISPOSITION_LYRICS 0x0010
703 #define AV_DISPOSITION_KARAOKE 0x0020
710 #define AV_DISPOSITION_FORCED 0x0040
711 #define AV_DISPOSITION_HEARING_IMPAIRED 0x0080
712 #define AV_DISPOSITION_VISUAL_IMPAIRED 0x0100
713 #define AV_DISPOSITION_CLEAN_EFFECTS 0x0200
720 #define AV_DISPOSITION_ATTACHED_PIC 0x0400
725 #define AV_DISPOSITION_CAPTIONS 0x10000
726 #define AV_DISPOSITION_DESCRIPTIONS 0x20000
727 #define AV_DISPOSITION_METADATA 0x40000
732 #define AV_PTS_WRAP_IGNORE 0
733 #define AV_PTS_WRAP_ADD_OFFSET 1
734 #define AV_PTS_WRAP_SUB_OFFSET -1
838 #define MAX_STD_TIMEBASES (60*12+6)
863 #if FF_API_REFERENCE_DTS
884 #define MAX_PROBE_PACKETS 2500
901 #define MAX_REORDER_DELAY 16
1003 #define AV_PROGRAM_RUNNING 1
1037 #define AVFMTCTX_NOHEADER 0x0001
1179 #define AVFMT_FLAG_GENPTS 0x0001
1180 #define AVFMT_FLAG_IGNIDX 0x0002
1181 #define AVFMT_FLAG_NONBLOCK 0x0004
1182 #define AVFMT_FLAG_IGNDTS 0x0008
1183 #define AVFMT_FLAG_NOFILLIN 0x0010
1184 #define AVFMT_FLAG_NOPARSE 0x0020
1185 #define AVFMT_FLAG_NOBUFFER 0x0040
1186 #define AVFMT_FLAG_CUSTOM_IO 0x0080
1187 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
1188 #define AVFMT_FLAG_FLUSH_PACKETS 0x0200
1189 #define AVFMT_FLAG_MP4A_LATM 0x8000
1190 #define AVFMT_FLAG_SORT_DTS 0x10000
1191 #define AVFMT_FLAG_PRIV_OPT 0x20000
1192 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
1311 #define FF_FDEBUG_TS 0x0001
1467 #define RAW_PACKET_BUFFER_SIZE 2500000
1688 #if FF_API_ALLOC_OUTPUT_CONTEXT
1695 const char *filename);
1715 const char *format_name,
const char *filename);
1776 const char *filename,
void *logctx,
1777 unsigned int offset,
unsigned int max_probe_size);
1783 const char *filename,
void *logctx,
1784 unsigned int offset,
unsigned int max_probe_size);
1810 #if FF_API_FORMAT_PARAMETERS
1891 int wanted_stream_nb,
1896 #if FF_API_READ_PACKET
1999 #if FF_API_CLOSE_INPUT_FILE
2019 #if FF_API_NEW_STREAM
2034 #if FF_API_SET_PTS_INFO
2039 void av_set_pts_info(
AVStream *s,
int pts_wrap_bits,
2040 unsigned int pts_num,
unsigned int pts_den);
2043 #define AVSEEK_FLAG_BACKWARD 1
2044 #define AVSEEK_FLAG_BYTE 2
2045 #define AVSEEK_FLAG_ANY 4
2046 #define AVSEEK_FLAG_FRAME 8
2198 const char *filename,
2199 const char *mime_type);
2205 const char *filename,
const char *mime_type,
2224 int64_t *dts, int64_t *wall);
2368 char *authorization,
int authorization_size,
2369 char *hostname,
int hostname_size,
2371 char *path,
int path_size,
2393 const char *path,
int number);
2429 int av_match_ext(
const char *filename,
const char *extensions);