World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
21 #ifndef AVFORMAT_AVFORMAT_H
22 #define AVFORMAT_AVFORMAT_H
453 #define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
454 #define AVPROBE_SCORE_STREAM_RETRY (AVPROBE_SCORE_MAX/4-1)
456 #define AVPROBE_SCORE_EXTENSION 50
457 #define AVPROBE_SCORE_MIME 75
458 #define AVPROBE_SCORE_MAX 100
460 #define AVPROBE_PADDING_SIZE 32
462 #define AVFMT_NOFILE 0x0001
464 #define AVFMT_NEEDNUMBER 0x0002
465 #define AVFMT_SHOW_IDS 0x0008
466 #define AVFMT_GLOBALHEADER 0x0040
467 #define AVFMT_NOTIMESTAMPS 0x0080
468 #define AVFMT_GENERIC_INDEX 0x0100
469 #define AVFMT_TS_DISCONT 0x0200
470 #define AVFMT_VARIABLE_FPS 0x0400
471 #define AVFMT_NODIMENSIONS 0x0800
472 #define AVFMT_NOSTREAMS 0x1000
473 #define AVFMT_NOBINSEARCH 0x2000
474 #define AVFMT_NOGENSEARCH 0x4000
475 #define AVFMT_NO_BYTE_SEEK 0x8000
476 #define AVFMT_ALLOW_FLUSH 0x10000
477 #define AVFMT_TS_NONSTRICT 0x20000
480 #define AVFMT_TS_NEGATIVE 0x40000
489 #define AVFMT_SEEK_TO_PTS 0x4000000
495 typedef struct AVOutputFormat {
537 #if FF_API_AVIOFORMAT
540 #define ff_const59 const
578 void *
data,
size_t data_size);
808 #define AVINDEX_KEYFRAME 0x0001
809 #define AVINDEX_DISCARD_FRAME 0x0002
817 #define AV_DISPOSITION_DEFAULT 0x0001
818 #define AV_DISPOSITION_DUB 0x0002
819 #define AV_DISPOSITION_ORIGINAL 0x0004
820 #define AV_DISPOSITION_COMMENT 0x0008
821 #define AV_DISPOSITION_LYRICS 0x0010
822 #define AV_DISPOSITION_KARAOKE 0x0020
829 #define AV_DISPOSITION_FORCED 0x0040
830 #define AV_DISPOSITION_HEARING_IMPAIRED 0x0080
831 #define AV_DISPOSITION_VISUAL_IMPAIRED 0x0100
832 #define AV_DISPOSITION_CLEAN_EFFECTS 0x0200
840 #define AV_DISPOSITION_ATTACHED_PIC 0x0400
845 #define AV_DISPOSITION_TIMED_THUMBNAILS 0x0800
852 #define AV_DISPOSITION_CAPTIONS 0x10000
853 #define AV_DISPOSITION_DESCRIPTIONS 0x20000
854 #define AV_DISPOSITION_METADATA 0x40000
855 #define AV_DISPOSITION_DEPENDENT 0x80000
856 #define AV_DISPOSITION_STILL_IMAGE 0x100000
861 #define AV_PTS_WRAP_IGNORE 0
862 #define AV_PTS_WRAP_ADD_OFFSET 1
863 #define AV_PTS_WRAP_SUB_OFFSET -1
880 #if FF_API_LAVF_AVCTX
986 #define AVSTREAM_EVENT_FLAG_METADATA_UPDATED 0x0001
998 #if FF_API_LAVF_FFSERVER
1006 attribute_deprecated
1031 #define MAX_STD_TIMEBASES (30*12+30+3+6)
1098 #define MAX_REORDER_DELAY 16
1232 #if FF_API_FORMAT_GET_SET
1237 attribute_deprecated
1239 attribute_deprecated
1241 #if FF_API_LAVF_FFSERVER
1242 attribute_deprecated
1244 attribute_deprecated
1258 #define AV_PROGRAM_RUNNING 1
1293 #define AVFMTCTX_NOHEADER 0x0001
1295 #define AVFMTCTX_UNSEEKABLE 0x0002
1301 typedef struct AVChapter {
1313 void *
data,
size_t data_size);
1414 #if FF_API_FORMAT_FILENAME
1423 attribute_deprecated
1476 #define AVFMT_FLAG_GENPTS 0x0001
1477 #define AVFMT_FLAG_IGNIDX 0x0002
1478 #define AVFMT_FLAG_NONBLOCK 0x0004
1479 #define AVFMT_FLAG_IGNDTS 0x0008
1480 #define AVFMT_FLAG_NOFILLIN 0x0010
1481 #define AVFMT_FLAG_NOPARSE 0x0020
1482 #define AVFMT_FLAG_NOBUFFER 0x0040
1483 #define AVFMT_FLAG_CUSTOM_IO 0x0080
1484 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100
1485 #define AVFMT_FLAG_FLUSH_PACKETS 0x0200
1492 #define AVFMT_FLAG_BITEXACT 0x0400
1493 #if FF_API_LAVF_MP4A_LATM
1494 #define AVFMT_FLAG_MP4A_LATM 0x8000
1496 #define AVFMT_FLAG_SORT_DTS 0x10000
1497 #define AVFMT_FLAG_PRIV_OPT 0x20000
1498 #if FF_API_LAVF_KEEPSIDE_FLAG
1499 #define AVFMT_FLAG_KEEP_SIDE_DATA 0x40000
1501 #define AVFMT_FLAG_FAST_SEEK 0x80000
1502 #define AVFMT_FLAG_SHORTEST 0x100000
1503 #define AVFMT_FLAG_AUTO_BSF 0x200000
1628 #define FF_FDEBUG_TS 0x0001
1660 #define AVFMT_EVENT_FLAG_METADATA_UPDATED 0x0001
1676 #define AVFMT_AVOID_NEG_TS_AUTO -1
1677 #define AVFMT_AVOID_NEG_TS_MAKE_NON_NEGATIVE 1
1678 #define AVFMT_AVOID_NEG_TS_MAKE_ZERO 2
1877 #if FF_API_OLD_OPEN_CALLBACKS
1895 attribute_deprecated
1956 #if FF_API_FORMAT_GET_SET
1961 attribute_deprecated
1963 attribute_deprecated
1965 attribute_deprecated
1967 attribute_deprecated
1969 attribute_deprecated
1971 attribute_deprecated
1973 attribute_deprecated
1975 attribute_deprecated
1977 attribute_deprecated
1979 attribute_deprecated
1981 attribute_deprecated
1983 attribute_deprecated
1985 attribute_deprecated
1987 attribute_deprecated
1989 attribute_deprecated
1991 #if FF_API_OLD_OPEN_CALLBACKS
2049 attribute_deprecated
2052 attribute_deprecated
2054 attribute_deprecated
2086 attribute_deprecated
2094 attribute_deprecated
2222 const char *format_name,
const char *filename);
2283 const char *url,
void *logctx,
2284 unsigned int offset,
unsigned int max_probe_size);
2290 const char *url,
void *logctx,
2291 unsigned int offset,
unsigned int max_probe_size);
2314 attribute_deprecated
2380 int wanted_stream_nb,
2497 #define AVSEEK_FLAG_BACKWARD 1
2498 #define AVSEEK_FLAG_BYTE 2
2499 #define AVSEEK_FLAG_ANY 4
2500 #define AVSEEK_FLAG_FRAME 8
2507 #define AVSTREAM_INIT_IN_WRITE_HEADER 0
2508 #define AVSTREAM_INIT_IN_INIT_OUTPUT 1
2527 av_warn_unused_result
2549 av_warn_unused_result
2698 const char *filename,
2699 const char *mime_type);
2705 const char *filename,
const char *mime_type,
2868 char *authorization,
int authorization_size,
2869 char *hostname,
int hostname_size,
2871 char *
path,
int path_size,
2891 #define AV_FRAME_FILENAME_FLAGS_MULTIPLE 1
2907 const char *
path,
int number,
int flags);
2910 const char *
path,
int number);
2946 int av_match_ext(
const char *filename,
const char *extensions);
2959 int std_compliance);
3053 attribute_deprecated
3062 #if FF_API_R_FRAME_RATE
const struct AVCodecTag * avformat_get_riff_video_tags(void)
void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st)
enum AVCodecID av_codec_get_id(const struct AVCodecTag *const *tags, unsigned int tag)
unsigned int correct_ts_overflow
enum AVDiscard discard
selects which program to discard and which to feed to the caller
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
int strict_std_compliance
int64_t codec_info_duration_fields
struct AVStream::@84 * info
int64_t pts_buffer[MAX_REORDER_DELAY+1]
int64_t start_time_realtime
enum AVCodecID video_codec_id
AVProgram * av_find_program_from_stream(AVFormatContext *ic, AVProgram *last, int s)
const AVClass * avformat_get_class(void)
enum AVCodecID subtitle_codec_id
int av_write_uncoded_frame(AVFormatContext *s, int stream_index, AVFrame *frame)
int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags)
enum AVCodecID av_guess_codec(ff_const59 AVOutputFormat *fmt, const char *short_name, const char *filename, const char *mime_type, enum AVMediaType type)
enum AVDiscard discard
Selects which packets can be discarded at will and do not need to be demuxed.
int64_t last_discard_sample
int64_t skip_initial_bytes
attribute_deprecated void av_register_input_format(AVInputFormat *format)
uint8_t pts_reorder_error_count[MAX_REORDER_DELAY+1]
int av_write_uncoded_frame_query(AVFormatContext *s, int stream_index)
attribute_deprecated AVOutputFormat * av_oformat_next(const AVOutputFormat *f)
av_warn_unused_result int avformat_init_output(AVFormatContext *s, AVDictionary **options)
int av_read_frame(AVFormatContext *s, AVPacket *pkt)
int av_get_frame_filename(char *buf, int buf_size, const char *path, int number)
AVRational display_aspect_ratio
attribute_deprecated AVCodecContext * codec
attribute_deprecated int av_demuxer_open(AVFormatContext *ic)
int av_filename_number_test(const char *filename)
int avformat_queue_attached_pictures(AVFormatContext *s)
void avformat_close_input(AVFormatContext **s)
ff_const59 AVOutputFormat * av_guess_format(const char *short_name, const char *filename, const char *mime_type)
unsigned int * stream_index
AVCodecParameters * codecpar
attribute_deprecated AVInputFormat * av_iformat_next(const AVInputFormat *f)
const struct AVCodecTag * avformat_get_mov_video_tags(void)
int av_add_index_entry(AVStream *st, int64_t pos, int64_t timestamp, int size, int distance, int flags)
unsigned avformat_version(void)
int64_t last_dts_for_order_check
GLsizei const GLchar *const * path
AVProgram * av_new_program(AVFormatContext *s, int id)
int av_codec_get_tag2(const struct AVCodecTag *const *tags, enum AVCodecID id, unsigned int *tag)
AVIndexEntry * index_entries
int avformat_network_init(void)
const struct AVCodecTag * avformat_get_riff_audio_tags(void)
AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *stream, AVFrame *frame)
enum AVDurationEstimationMethod duration_estimation_method
void av_dump_format(AVFormatContext *ic, int index, const char *url, int is_output)
char * protocol_blacklist
enum AVStreamParseType need_parsing
int64_t codec_info_duration
uint8_t * av_stream_new_side_data(AVStream *stream, enum AVPacketSideDataType type, int size)
int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id, int std_compliance)
attribute_deprecated void av_register_all(void)
int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
int av_match_ext(const char *filename, const char *extensions)
attribute_deprecated void av_register_output_format(AVOutputFormat *format)
int64_t pts_wrap_reference
reference dts for wrap detection
enum AVCodecID audio_codec_id
int av_read_play(AVFormatContext *s)
int avformat_flush(AVFormatContext *s)
GLenum GLuint GLenum GLsizei const GLchar * buf
int av_interleaved_write_uncoded_frame(AVFormatContext *s, int stream_index, AVFrame *frame)
int64_t start_skip_samples
struct AVOutputFormat AVOutputFormat
av_warn_unused_result int avformat_write_header(AVFormatContext *s, AVDictionary **options)
int(* io_open)(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options)
int64_t interleaver_chunk_duration
char * protocol_whitelist
int av_stream_add_side_data(AVStream *st, enum AVPacketSideDataType type, uint8_t *data, size_t size)
AVRational sample_aspect_ratio
int64_t max_analyze_duration
int update_initial_durations_done
int av_write_frame(AVFormatContext *s, AVPacket *pkt)
int metadata_header_padding
int64_t nb_frames
number of frames in this stream if known or 0
AVRational avg_frame_rate
attribute_deprecated char filename[1024]
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
int avformat_match_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)
struct AVPacketList * next
AVFormatContext * avformat_alloc_context(void)
int pts_wrap_behavior
behavior on wrap detection
unsigned int av_codec_get_tag(const struct AVCodecTag *const *tags, enum AVCodecID id)
uint8_t * av_stream_get_side_data(const AVStream *stream, enum AVPacketSideDataType type, int *size)
ff_const59 AVInputFormat * av_probe_input_format(ff_const59 AVProbeData *pd, int is_opened)
attribute_deprecated int(* open_cb)(struct AVFormatContext *s, AVIOContext **p, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options)
int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, AVFrame *frame)
enum AVCodecID data_codec_id
struct AVPacketList * last_in_packet_buffer
AVRational av_stream_get_codec_timebase(const AVStream *st)
int64_t pts_wrap_reference
int av_probe_input_buffer2(AVIOContext *pb, ff_const59 AVInputFormat **fmt, const char *url, void *logctx, unsigned int offset, unsigned int max_probe_size)
const AVInputFormat * av_demuxer_iterate(void **opaque)
int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size)
AVPacketSideData * side_data
AVRational time_base
time base in which the start/end timestamps are specified
ff_const59 AVInputFormat * av_find_input_format(const char *short_name)
int av_write_trailer(AVFormatContext *s)
attribute_deprecated int av_apply_bitstream_filters(AVCodecContext *codec, AVPacket *pkt, AVBitStreamFilterContext *bsfc)
ff_const59 struct AVOutputFormat * oformat
GLsizei GLsizei GLfloat distance
int id
unique ID to identify the chapter
int avformat_open_input(AVFormatContext **ps, const char *url, ff_const59 AVInputFormat *fmt, AVDictionary **options)
typedef void(SDLCALL *SDL_AudioFilter)(struct SDL_AudioCVT *cvt
const struct AVCodecTag * avformat_get_mov_audio_tags(void)
int av_get_output_timestamp(struct AVFormatContext *s, int stream, int64_t *dts, int64_t *wall)
void av_url_split(char *proto, int proto_size, char *authorization, int authorization_size, char *hostname, int hostname_size, int *port_ptr, char *path, int path_size, const char *url)
int av_find_default_stream_index(AVFormatContext *s)
av_format_control_message control_message_cb
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
int av_read_pause(AVFormatContext *s)
void(* io_close)(struct AVFormatContext *s, AVIOContext *pb)
int use_wallclock_as_timestamps
int64_t rfps_duration_sum
GLdouble GLdouble GLdouble r
int64_t pts_reorder_error[MAX_REORDER_DELAY+1]
void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size)
unsigned int max_picture_buffer
struct AVCodecParserContext * parser
unsigned int nb_stream_indexes
int avformat_network_deinit(void)
int skip_estimate_duration_from_pts
const AVOutputFormat * av_muxer_iterate(void **opaque)
int avformat_transfer_internal_stream_timing_info(const AVOutputFormat *ofmt, AVStream *ost, const AVStream *ist, enum AVTimebaseSource copy_tb)
int inject_global_side_data
struct AVDictionary AVDictionary
void avformat_free_context(AVFormatContext *s)
ff_const59 struct AVInputFormat * iformat
double(* duration_error)[2][MAX_STD_TIMEBASES]
ff_const59 AVInputFormat * av_probe_input_format2(ff_const59 AVProbeData *pd, int is_opened, int *score_max)
attribute_deprecated char * recommended_encoder_configuration
struct AVInputFormat AVInputFormat
const char * avformat_license(void)
unsigned int index_entries_allocated_size
const char * avformat_configuration(void)
AVIOInterruptCB interrupt_callback
int av_probe_input_buffer(AVIOContext *pb, ff_const59 AVInputFormat **fmt, const char *url, void *logctx, unsigned int offset, unsigned int max_probe_size)
int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
unsigned int max_index_size
int64_t max_interleave_delta
int64_t interleaver_chunk_size
int64_t first_discard_sample
void av_pkt_dump_log2(void *avcl, int level, const AVPacket *pkt, int dump_payload, const AVStream *st)
ff_const59 AVInputFormat * av_probe_input_format3(ff_const59 AVProbeData *pd, int is_opened, int *score_ret)
int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags)
int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, int wanted_stream_nb, int related_stream, AVCodec **decoder_ret, int flags)
void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx)
void av_hex_dump(FILE *f, const uint8_t *buf, int size)