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 (60*12+6)
966 #define MAX_PROBE_PACKETS 2500
983 #define MAX_REORDER_DELAY 16
1098 #define AV_PROGRAM_RUNNING 1
1132 #define AVFMTCTX_NOHEADER 0x0001
1147 void *
data,
size_t data_size);
1282 #define AVFMT_FLAG_GENPTS 0x0001
1283 #define AVFMT_FLAG_IGNIDX 0x0002
1284 #define AVFMT_FLAG_NONBLOCK 0x0004
1285 #define AVFMT_FLAG_IGNDTS 0x0008
1286 #define AVFMT_FLAG_NOFILLIN 0x0010
1287 #define AVFMT_FLAG_NOPARSE 0x0020
1288 #define AVFMT_FLAG_NOBUFFER 0x0040
1289 #define AVFMT_FLAG_CUSTOM_IO 0x0080
1290 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
1291 #define AVFMT_FLAG_FLUSH_PACKETS 0x0200
1298 #define AVFMT_FLAG_BITEXACT 0x0400
1299 #define AVFMT_FLAG_MP4A_LATM 0x8000
1300 #define AVFMT_FLAG_SORT_DTS 0x10000
1301 #define AVFMT_FLAG_PRIV_OPT 0x20000
1302 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
1423 #define FF_FDEBUG_TS 0x0001
1455 #define AVFMT_EVENT_FLAG_METADATA_UPDATED 0x0001
1607 #define RAW_PACKET_BUFFER_SIZE 2500000
1862 #if FF_API_ALLOC_OUTPUT_CONTEXT
1869 const char *filename);
1889 const char *format_name,
const char *filename);
1950 const char *filename,
void *logctx,
1951 unsigned int offset,
unsigned int max_probe_size);
1957 const char *filename,
void *logctx,
1958 unsigned int offset,
unsigned int max_probe_size);
1984 #if FF_API_FORMAT_PARAMETERS
2065 int wanted_stream_nb,
2070 #if FF_API_READ_PACKET
2173 #if FF_API_CLOSE_INPUT_FILE
2193 #if FF_API_NEW_STREAM
2208 #if FF_API_SET_PTS_INFO
2213 void av_set_pts_info(
AVStream *s,
int pts_wrap_bits,
2214 unsigned int pts_num,
unsigned int pts_den);
2217 #define AVSEEK_FLAG_BACKWARD 1
2218 #define AVSEEK_FLAG_BYTE 2
2219 #define AVSEEK_FLAG_ANY 4
2220 #define AVSEEK_FLAG_FRAME 8
2372 const char *filename,
2373 const char *mime_type);
2379 const char *filename,
const char *mime_type,
2398 int64_t *dts, int64_t *wall);
2542 char *authorization,
int authorization_size,
2543 char *hostname,
int hostname_size,
2545 char *path,
int path_size,
2577 const char *path,
int number);
2613 int av_match_ext(
const char *filename,
const char *extensions);
2626 int std_compliance);