21 #ifndef AVFORMAT_AVFORMAT_H
22 #define AVFORMAT_AVFORMAT_H
379 typedef struct AVFrac {
380 int64_t
val, num, den;
398 #define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
399 #define AVPROBE_SCORE_STREAM_RETRY (AVPROBE_SCORE_MAX/4-1)
401 #define AVPROBE_SCORE_EXTENSION 50
402 #define AVPROBE_SCORE_MAX 100
404 #define AVPROBE_PADDING_SIZE 32
407 #define AVFMT_NOFILE 0x0001
408 #define AVFMT_NEEDNUMBER 0x0002
409 #define AVFMT_SHOW_IDS 0x0008
410 #define AVFMT_RAWPICTURE 0x0020
412 #define AVFMT_GLOBALHEADER 0x0040
413 #define AVFMT_NOTIMESTAMPS 0x0080
414 #define AVFMT_GENERIC_INDEX 0x0100
415 #define AVFMT_TS_DISCONT 0x0200
416 #define AVFMT_VARIABLE_FPS 0x0400
417 #define AVFMT_NODIMENSIONS 0x0800
418 #define AVFMT_NOSTREAMS 0x1000
419 #define AVFMT_NOBINSEARCH 0x2000
420 #define AVFMT_NOGENSEARCH 0x4000
421 #define AVFMT_NO_BYTE_SEEK 0x8000
422 #define AVFMT_ALLOW_FLUSH 0x10000
423 #if LIBAVFORMAT_VERSION_MAJOR <= 54
424 #define AVFMT_TS_NONSTRICT 0x8020000 //we try to be compatible to the ABIs of ffmpeg and major forks
426 #define AVFMT_TS_NONSTRICT 0x20000
431 #define AVFMT_TS_NEGATIVE 0x40000
440 #define AVFMT_SEEK_TO_PTS 0x4000000
515 int64_t *dts, int64_t *wall);
520 void *
data,
size_t data_size);
647 int stream_index, int64_t timestamp,
int flags);
654 int64_t *pos, int64_t pos_limit);
717 #define AVINDEX_KEYFRAME 0x0001
723 #define AV_DISPOSITION_DEFAULT 0x0001
724 #define AV_DISPOSITION_DUB 0x0002
725 #define AV_DISPOSITION_ORIGINAL 0x0004
726 #define AV_DISPOSITION_COMMENT 0x0008
727 #define AV_DISPOSITION_LYRICS 0x0010
728 #define AV_DISPOSITION_KARAOKE 0x0020
735 #define AV_DISPOSITION_FORCED 0x0040
736 #define AV_DISPOSITION_HEARING_IMPAIRED 0x0080
737 #define AV_DISPOSITION_VISUAL_IMPAIRED 0x0100
738 #define AV_DISPOSITION_CLEAN_EFFECTS 0x0200
745 #define AV_DISPOSITION_ATTACHED_PIC 0x0400
750 #define AV_DISPOSITION_CAPTIONS 0x10000
751 #define AV_DISPOSITION_DESCRIPTIONS 0x20000
752 #define AV_DISPOSITION_METADATA 0x40000
757 #define AV_PTS_WRAP_IGNORE 0
758 #define AV_PTS_WRAP_ADD_OFFSET 1
759 #define AV_PTS_WRAP_SUB_OFFSET -1
897 #define MAX_STD_TIMEBASES (60*12+6)
928 #if FF_API_REFERENCE_DTS
949 #define MAX_PROBE_PACKETS 2500
966 #define MAX_REORDER_DELAY 16
1081 #define AV_PROGRAM_RUNNING 1
1115 #define AVFMTCTX_NOHEADER 0x0001
1130 void *
data,
size_t data_size);
1265 #define AVFMT_FLAG_GENPTS 0x0001
1266 #define AVFMT_FLAG_IGNIDX 0x0002
1267 #define AVFMT_FLAG_NONBLOCK 0x0004
1268 #define AVFMT_FLAG_IGNDTS 0x0008
1269 #define AVFMT_FLAG_NOFILLIN 0x0010
1270 #define AVFMT_FLAG_NOPARSE 0x0020
1271 #define AVFMT_FLAG_NOBUFFER 0x0040
1272 #define AVFMT_FLAG_CUSTOM_IO 0x0080
1273 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
1274 #define AVFMT_FLAG_FLUSH_PACKETS 0x0200
1281 #define AVFMT_FLAG_BITEXACT 0x0400
1282 #define AVFMT_FLAG_MP4A_LATM 0x8000
1283 #define AVFMT_FLAG_SORT_DTS 0x10000
1284 #define AVFMT_FLAG_PRIV_OPT 0x20000
1285 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
1408 #define FF_FDEBUG_TS 0x0001
1577 #define RAW_PACKET_BUFFER_SIZE 2500000
1824 #if FF_API_ALLOC_OUTPUT_CONTEXT
1831 const char *filename);
1851 const char *format_name,
const char *filename);
1912 const char *filename,
void *logctx,
1913 unsigned int offset,
unsigned int max_probe_size);
1919 const char *filename,
void *logctx,
1920 unsigned int offset,
unsigned int max_probe_size);
1946 #if FF_API_FORMAT_PARAMETERS
2027 int wanted_stream_nb,
2032 #if FF_API_READ_PACKET
2135 #if FF_API_CLOSE_INPUT_FILE
2155 #if FF_API_NEW_STREAM
2170 #if FF_API_SET_PTS_INFO
2175 void av_set_pts_info(
AVStream *s,
int pts_wrap_bits,
2176 unsigned int pts_num,
unsigned int pts_den);
2179 #define AVSEEK_FLAG_BACKWARD 1
2180 #define AVSEEK_FLAG_BYTE 2
2181 #define AVSEEK_FLAG_ANY 4
2182 #define AVSEEK_FLAG_FRAME 8
2334 const char *filename,
2335 const char *mime_type);
2341 const char *filename,
const char *mime_type,
2360 int64_t *dts, int64_t *wall);
2504 char *authorization,
int authorization_size,
2505 char *hostname,
int hostname_size,
2507 char *path,
int path_size,
2539 const char *path,
int number);
2575 int av_match_ext(
const char *filename,
const char *extensions);