21 #ifndef AVFORMAT_AVFORMAT_H
22 #define AVFORMAT_AVFORMAT_H
340 #define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
341 #define AVPROBE_SCORE_EXTENSION 50
342 #define AVPROBE_SCORE_MAX 100
344 #define AVPROBE_PADDING_SIZE 32
347 #define AVFMT_NOFILE 0x0001
348 #define AVFMT_NEEDNUMBER 0x0002
349 #define AVFMT_SHOW_IDS 0x0008
350 #define AVFMT_RAWPICTURE 0x0020
352 #define AVFMT_GLOBALHEADER 0x0040
353 #define AVFMT_NOTIMESTAMPS 0x0080
354 #define AVFMT_GENERIC_INDEX 0x0100
355 #define AVFMT_TS_DISCONT 0x0200
356 #define AVFMT_VARIABLE_FPS 0x0400
357 #define AVFMT_NODIMENSIONS 0x0800
358 #define AVFMT_NOSTREAMS 0x1000
359 #define AVFMT_NOBINSEARCH 0x2000
360 #define AVFMT_NOGENSEARCH 0x4000
361 #define AVFMT_NO_BYTE_SEEK 0x8000
362 #define AVFMT_ALLOW_FLUSH 0x10000
363 #if LIBAVFORMAT_VERSION_MAJOR <= 54
364 #define AVFMT_TS_NONSTRICT 0x8020000 //we try to be compatible to the ABIs of ffmpeg and major forks
366 #define AVFMT_TS_NONSTRICT 0x20000
371 #define AVFMT_TS_NEGATIVE 0x40000
380 #define AVFMT_SEEK_TO_PTS 0x4000000
455 int64_t *dts, int64_t *wall);
556 int stream_index, int64_t timestamp,
int flags);
563 int64_t *pos, int64_t pos_limit);
608 #define AVINDEX_KEYFRAME 0x0001
614 #define AV_DISPOSITION_DEFAULT 0x0001
615 #define AV_DISPOSITION_DUB 0x0002
616 #define AV_DISPOSITION_ORIGINAL 0x0004
617 #define AV_DISPOSITION_COMMENT 0x0008
618 #define AV_DISPOSITION_LYRICS 0x0010
619 #define AV_DISPOSITION_KARAOKE 0x0020
626 #define AV_DISPOSITION_FORCED 0x0040
627 #define AV_DISPOSITION_HEARING_IMPAIRED 0x0080
628 #define AV_DISPOSITION_VISUAL_IMPAIRED 0x0100
629 #define AV_DISPOSITION_CLEAN_EFFECTS 0x0200
636 #define AV_DISPOSITION_ATTACHED_PIC 0x0400
641 #define AV_DISPOSITION_CAPTIONS 0x10000
642 #define AV_DISPOSITION_DESCRIPTIONS 0x20000
643 #define AV_DISPOSITION_METADATA 0x40000
648 #define AV_PTS_WRAP_IGNORE 0
649 #define AV_PTS_WRAP_ADD_OFFSET 1
650 #define AV_PTS_WRAP_SUB_OFFSET -1
754 #define MAX_STD_TIMEBASES (60*12+6)
795 #define MAX_PROBE_PACKETS 2500
812 #define MAX_REORDER_DELAY 16
896 #define AV_PROGRAM_RUNNING 1
930 #define AVFMTCTX_NOHEADER 0x0001
1037 #define AVFMT_FLAG_GENPTS 0x0001
1038 #define AVFMT_FLAG_IGNIDX 0x0002
1039 #define AVFMT_FLAG_NONBLOCK 0x0004
1040 #define AVFMT_FLAG_IGNDTS 0x0008
1041 #define AVFMT_FLAG_NOFILLIN 0x0010
1042 #define AVFMT_FLAG_NOPARSE 0x0020
1043 #define AVFMT_FLAG_NOBUFFER 0x0040
1044 #define AVFMT_FLAG_CUSTOM_IO 0x0080
1045 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
1046 #define AVFMT_FLAG_MP4A_LATM 0x8000
1047 #define AVFMT_FLAG_SORT_DTS 0x10000
1048 #define AVFMT_FLAG_PRIV_OPT 0x20000
1049 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
1146 #define FF_FDEBUG_TS 0x0001
1275 #define RAW_PACKET_BUFFER_SIZE 2500000
1429 #if FF_API_ALLOC_OUTPUT_CONTEXT
1436 const char *filename);
1456 const char *format_name,
const char *filename);
1514 const char *filename,
void *logctx,
1515 unsigned int offset,
unsigned int max_probe_size);
1541 #if FF_API_FORMAT_PARAMETERS
1622 int wanted_stream_nb,
1627 #if FF_API_READ_PACKET
1727 #if FF_API_CLOSE_INPUT_FILE
1747 #if FF_API_NEW_STREAM
1762 #if FF_API_SET_PTS_INFO
1767 void av_set_pts_info(
AVStream *
s,
int pts_wrap_bits,
1768 unsigned int pts_num,
unsigned int pts_den);
1771 #define AVSEEK_FLAG_BACKWARD 1
1772 #define AVSEEK_FLAG_BYTE 2
1773 #define AVSEEK_FLAG_ANY 4
1774 #define AVSEEK_FLAG_FRAME 8
1867 const char *filename,
1868 const char *mime_type);
1874 const char *filename,
const char *mime_type,
1893 int64_t *dts, int64_t *wall);
2032 char *authorization,
int authorization_size,
2033 char *hostname,
int hostname_size,
2035 char *path,
int path_size,
2057 const char *path,
int number);
2092 int av_match_ext(
const char *filename,
const char *extensions);