World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
avformat.h
См. документацию.
1 /*
2  * copyright (c) 2001 Fabrice Bellard
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVFORMAT_AVFORMAT_H
22 #define AVFORMAT_AVFORMAT_H
23 
315 #include <time.h>
316 #include <stdio.h> /* FILE */
317 #include "libavcodec/avcodec.h"
318 #include "libavutil/dict.h"
319 #include "libavutil/log.h"
320 
321 #include "avio.h"
322 #include "libavformat/version.h"
323 
324 struct AVFormatContext;
325 
326 struct AVDeviceInfoList;
328 
407 /* packet functions */
408 
409 
419 int av_get_packet(AVIOContext *s, AVPacket *pkt, int size);
420 
421 
436 int av_append_packet(AVIOContext *s, AVPacket *pkt, int size);
437 
438 /*************************************************/
439 /* input/output formats */
440 
441 struct AVCodecTag;
442 
446 typedef struct AVProbeData {
447  const char *filename;
448  unsigned char *buf;
449  int buf_size;
450  const char *mime_type;
451 } AVProbeData;
452 
453 #define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)
454 #define AVPROBE_SCORE_STREAM_RETRY (AVPROBE_SCORE_MAX/4-1)
455 
456 #define AVPROBE_SCORE_EXTENSION 50
457 #define AVPROBE_SCORE_MIME 75
458 #define AVPROBE_SCORE_MAX 100
459 
460 #define AVPROBE_PADDING_SIZE 32
461 
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 {
496  const char *name;
502  const char *long_name;
503  const char *mime_type;
504  const char *extensions;
505  /* output support */
506  enum AVCodecID audio_codec;
507  enum AVCodecID video_codec;
508  enum AVCodecID subtitle_codec;
515  int flags;
516 
521  const struct AVCodecTag * const *codec_tag;
522 
523 
525 
526  /*****************************************************************
527  * No fields below this line are part of the public API. They
528  * may not be used outside of libavformat and can be changed and
529  * removed at will.
530  * New public fields should be added right above.
531  *****************************************************************
532  */
537 #if FF_API_AVIOFORMAT
538 #define ff_const59
539 #else
540 #define ff_const59 const
541 #endif
542  ff_const59 struct AVOutputFormat *next;
547 
548  int (*write_header)(struct AVFormatContext *);
556  int (*write_packet)(struct AVFormatContext *, AVPacket *pkt);
557  int (*write_trailer)(struct AVFormatContext *);
561  int (*interleave_packet)(struct AVFormatContext *, AVPacket *out,
562  AVPacket *in, int flush);
570  int (*query_codec)(enum AVCodecID id, int std_compliance);
571 
572  void (*get_output_timestamp)(struct AVFormatContext *s, int stream,
573  int64_t *dts, int64_t *wall);
577  int (*control_message)(struct AVFormatContext *s, int type,
578  void *data, size_t data_size);
579 
588  int (*write_uncoded_frame)(struct AVFormatContext *, int stream_index,
589  AVFrame **frame, unsigned flags);
594  int (*get_device_list)(struct AVFormatContext *s, struct AVDeviceInfoList *device_list);
599  int (*create_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps);
604  int (*free_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps);
605  enum AVCodecID data_codec;
615  int (*init)(struct AVFormatContext *);
624  void (*deinit)(struct AVFormatContext *);
630  int (*check_bitstream)(struct AVFormatContext *, const AVPacket *pkt);
640 typedef struct AVInputFormat {
645  const char *name;
646 
652  const char *long_name;
653 
659  int flags;
660 
666  const char *extensions;
667 
668  const struct AVCodecTag * const *codec_tag;
669 
671 
677  const char *mime_type;
678 
679  /*****************************************************************
680  * No fields below this line are part of the public API. They
681  * may not be used outside of libavformat and can be changed and
682  * removed at will.
683  * New public fields should be added right above.
684  *****************************************************************
685  */
686  ff_const59 struct AVInputFormat *next;
687 
692 
697 
703  int (*read_probe)(const AVProbeData *);
704 
710  int (*read_header)(struct AVFormatContext *);
711 
721  int (*read_packet)(struct AVFormatContext *, AVPacket *pkt);
722 
727  int (*read_close)(struct AVFormatContext *);
728 
737  int (*read_seek)(struct AVFormatContext *,
738  int stream_index, int64_t timestamp, int flags);
739 
744  int64_t (*read_timestamp)(struct AVFormatContext *s, int stream_index,
745  int64_t *pos, int64_t pos_limit);
746 
751  int (*read_play)(struct AVFormatContext *);
752 
757  int (*read_pause)(struct AVFormatContext *);
758 
765  int (*read_seek2)(struct AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags);
766 
771  int (*get_device_list)(struct AVFormatContext *s, struct AVDeviceInfoList *device_list);
772 
778 
784 } AVInputFormat;
798 };
799 
800 typedef struct AVIndexEntry {
808 #define AVINDEX_KEYFRAME 0x0001
809 #define AVINDEX_DISCARD_FRAME 0x0002
812  int flags:2;
813  int size:30; //Yeah, trying to keep the size of this small to reduce memory requirements (it is 24 vs. 32 bytes due to possible 8-byte alignment).
815 } AVIndexEntry;
816 
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
823 
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
841 
845 #define AV_DISPOSITION_TIMED_THUMBNAILS 0x0800
846 
848 
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
857 
858 
861 #define AV_PTS_WRAP_IGNORE 0
862 #define AV_PTS_WRAP_ADD_OFFSET 1
863 #define AV_PTS_WRAP_SUB_OFFSET -1
864 
865 
872 typedef struct AVStream {
873  int index;
879  int id;
880 #if FF_API_LAVF_AVCTX
881 
884  attribute_deprecated
886 #endif
887  void *priv_data;
888 
902 
912 
922 
924 
928 
935 
937 
946 
955 
979 
986 #define AVSTREAM_EVENT_FLAG_METADATA_UPDATED 0x0001
987 
988 
997 
998 #if FF_API_LAVF_FFSERVER
999 
1006  attribute_deprecated
1008 #endif
1009 
1020 
1021  /*****************************************************************
1022  * All fields below this line are not part of the public API. They
1023  * may not be used outside of libavformat and can be changed and
1024  * removed at will.
1025  * Internal note: be aware that physically removing these fields
1026  * will break ABI. Replace removed fields with dummy fields, and
1027  * add new fields to AVStreamInternal.
1028  *****************************************************************
1029  */
1030 
1031 #define MAX_STD_TIMEBASES (30*12+30+3+6)
1032 
1035  struct {
1040  double (*duration_error)[2][MAX_STD_TIMEBASES];
1044 
1051 
1053 
1061 
1062  } *info;
1063 
1066  // Timestamp generation support:
1078 
1083 
1088 
1089  /* av_read_frame() support */
1092 
1098 #define MAX_REORDER_DELAY 16
1099  int64_t pts_buffer[MAX_REORDER_DELAY+1];
1100 
1105 
1112 
1119 
1122 
1136 
1141 
1150 
1158 
1165 
1171 
1177 
1182 
1194 
1199 
1203  int64_t pts_reorder_error[MAX_REORDER_DELAY+1];
1204  uint8_t pts_reorder_error_count[MAX_REORDER_DELAY+1];
1205 
1212 
1217 
1224 
1229  AVStreamInternal *internal;
1230 } AVStream;
1231 
1232 #if FF_API_FORMAT_GET_SET
1233 
1237 attribute_deprecated
1239 attribute_deprecated
1241 #if FF_API_LAVF_FFSERVER
1242 attribute_deprecated
1244 attribute_deprecated
1245 void av_stream_set_recommended_encoder_configuration(AVStream *s, char *configuration);
1246 #endif
1247 #endif
1248 
1250 
1257 
1258 #define AV_PROGRAM_RUNNING 1
1259 
1266 typedef struct AVProgram {
1267  int id;
1268  int flags;
1270  unsigned int *stream_index;
1271  unsigned int nb_stream_indexes;
1273 
1275  int pmt_pid;
1276  int pcr_pid;
1278 
1279  /*****************************************************************
1280  * All fields below this line are not part of the public API. They
1281  * may not be used outside of libavformat and can be changed and
1282  * removed at will.
1283  * New public fields should be added right above.
1284  *****************************************************************
1285  */
1288 
1291 } AVProgram;
1292 
1293 #define AVFMTCTX_NOHEADER 0x0001
1295 #define AVFMTCTX_UNSEEKABLE 0x0002
1301 typedef struct AVChapter {
1302  int id;
1306 } AVChapter;
1307 
1308 
1312 typedef int (*av_format_control_message)(struct AVFormatContext *s, int type,
1313  void *data, size_t data_size);
1314 
1315 typedef int (*AVOpenCallback)(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags,
1316  const AVIOInterruptCB *int_cb, AVDictionary **options);
1317 
1326 };
1327 
1329 
1344 typedef struct AVFormatContext {
1350 
1356  ff_const59 struct AVInputFormat *iformat;
1357 
1363  ff_const59 struct AVOutputFormat *oformat;
1364 
1372  void *priv_data;
1373 
1387 
1388  /* stream info */
1394 
1400  unsigned int nb_streams;
1413 
1414 #if FF_API_FORMAT_FILENAME
1415 
1423  attribute_deprecated
1424  char filename[1024];
1425 #endif
1426 
1440  char *url;
1441 
1450 
1460 
1467 
1468  unsigned int packet_size;
1470 
1475  int flags;
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
1486 
1492 #define AVFMT_FLAG_BITEXACT 0x0400
1493 #if FF_API_LAVF_MP4A_LATM
1494 #define AVFMT_FLAG_MP4A_LATM 0x8000
1495 #endif
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
1500 #endif
1501 #define AVFMT_FLAG_FAST_SEEK 0x80000
1502 #define AVFMT_FLAG_SHORTEST 0x100000
1503 #define AVFMT_FLAG_AUTO_BSF 0x200000
1504 
1505 
1511 
1519 
1520  const uint8_t *key;
1521  int keylen;
1522 
1523  unsigned int nb_programs;
1525 
1531 
1537 
1543 
1554  unsigned int max_index_size;
1555 
1560  unsigned int max_picture_buffer;
1561 
1573  unsigned int nb_chapters;
1575 
1585 
1598 
1605 
1612 
1623 
1627  int debug;
1628 #define FF_FDEBUG_TS 0x0001
1629 
1647 
1653 
1660 #define AVFMT_EVENT_FLAG_METADATA_UPDATED 0x0001
1661 
1662 
1667 
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
1679 
1680 
1684  int ts_id;
1685 
1693 
1701 
1709 
1717 
1724 
1732 
1739 
1745  unsigned int correct_ts_overflow;
1746 
1753 
1760 
1769 
1776 
1784 
1792 
1797  AVFormatInternal *internal;
1798 
1806 
1814 
1822 
1830 
1838 
1845 
1850  void *opaque;
1851 
1856 
1862 
1870 
1876 
1877 #if FF_API_OLD_OPEN_CALLBACKS
1878 
1895  attribute_deprecated
1896  int (*open_cb)(struct AVFormatContext *s, AVIOContext **p, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options);
1897 #endif
1898 
1905 
1926  int (*io_open)(struct AVFormatContext *s, AVIOContext **pb, const char *url,
1927  int flags, AVDictionary **options);
1928 
1933 
1940 
1947 
1954 } AVFormatContext;
1955 
1956 #if FF_API_FORMAT_GET_SET
1957 
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
1984 void * av_format_get_opaque(const AVFormatContext *s);
1985 attribute_deprecated
1987 attribute_deprecated
1989 attribute_deprecated
1991 #if FF_API_OLD_OPEN_CALLBACKS
1992 attribute_deprecated AVOpenCallback av_format_get_open_cb(const AVFormatContext *s);
1993 attribute_deprecated void av_format_set_open_cb(AVFormatContext *s, AVOpenCallback callback);
1994 #endif
1995 #endif
1996 
2002 
2009 
2010 typedef struct AVPacketList {
2013 } AVPacketList;
2014 
2015 
2028 unsigned avformat_version(void);
2029 
2033 const char *avformat_configuration(void);
2034 
2038 const char *avformat_license(void);
2039 
2040 #if FF_API_NEXT
2041 
2049 attribute_deprecated
2050 void av_register_all(void);
2051 
2052 attribute_deprecated
2054 attribute_deprecated
2056 #endif
2057 
2072 int avformat_network_init(void);
2073 
2078 int avformat_network_deinit(void);
2079 
2080 #if FF_API_NEXT
2081 
2086 attribute_deprecated
2088 
2094 attribute_deprecated
2096 #endif
2097 
2107 const AVOutputFormat *av_muxer_iterate(void **opaque);
2108 
2118 const AVInputFormat *av_demuxer_iterate(void **opaque);
2119 
2126 
2132 
2139 const AVClass *avformat_get_class(void);
2140 
2161 
2175  uint8_t *data, size_t size);
2176 
2186  enum AVPacketSideDataType type, int size);
2196  enum AVPacketSideDataType type, int *size);
2197 
2199 
2222  const char *format_name, const char *filename);
2223 
2232 ff_const59 AVInputFormat *av_find_input_format(const char *short_name);
2233 
2241 ff_const59 AVInputFormat *av_probe_input_format(ff_const59 AVProbeData *pd, int is_opened);
2242 
2255 ff_const59 AVInputFormat *av_probe_input_format2(ff_const59 AVProbeData *pd, int is_opened, int *score_max);
2256 
2264 ff_const59 AVInputFormat *av_probe_input_format3(ff_const59 AVProbeData *pd, int is_opened, int *score_ret);
2265 
2282 int av_probe_input_buffer2(AVIOContext *pb, ff_const59 AVInputFormat **fmt,
2283  const char *url, void *logctx,
2284  unsigned int offset, unsigned int max_probe_size);
2285 
2289 int av_probe_input_buffer(AVIOContext *pb, ff_const59 AVInputFormat **fmt,
2290  const char *url, void *logctx,
2291  unsigned int offset, unsigned int max_probe_size);
2292 
2312 int avformat_open_input(AVFormatContext **ps, const char *url, ff_const59 AVInputFormat *fmt, AVDictionary **options);
2313 
2314 attribute_deprecated
2316 
2339 
2351 
2352 void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx);
2353 
2379  enum AVMediaType type,
2380  int wanted_stream_nb,
2381  int related_stream,
2382  AVCodec **decoder_ret,
2383  int flags);
2384 
2410 
2424 int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp,
2425  int flags);
2426 
2455 int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags);
2456 
2474 
2480 
2487 
2497 #define AVSEEK_FLAG_BACKWARD 1
2498 #define AVSEEK_FLAG_BYTE 2
2499 #define AVSEEK_FLAG_ANY 4
2500 #define AVSEEK_FLAG_FRAME 8
2501 
2502 
2507 #define AVSTREAM_INIT_IN_WRITE_HEADER 0
2508 #define AVSTREAM_INIT_IN_INIT_OUTPUT 1
2509 
2510 
2527 av_warn_unused_result
2529 
2549 av_warn_unused_result
2551 
2590 
2635 
2644 int av_write_uncoded_frame(AVFormatContext *s, int stream_index,
2645  AVFrame *frame);
2646 
2664  AVFrame *frame);
2665 
2672 int av_write_uncoded_frame_query(AVFormatContext *s, int stream_index);
2673 
2684 
2697 ff_const59 AVOutputFormat *av_guess_format(const char *short_name,
2698  const char *filename,
2699  const char *mime_type);
2700 
2704 enum AVCodecID av_guess_codec(ff_const59 AVOutputFormat *fmt, const char *short_name,
2705  const char *filename, const char *mime_type,
2706  enum AVMediaType type);
2707 
2724  int64_t *dts, int64_t *wall);
2725 
2726 
2750 void av_hex_dump(FILE *f, const uint8_t *buf, int size);
2751 
2764 void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size);
2765 
2774 void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st);
2775 
2776 
2788 void av_pkt_dump_log2(void *avcl, int level, const AVPacket *pkt, int dump_payload,
2789  const AVStream *st);
2790 
2799 enum AVCodecID av_codec_get_id(const struct AVCodecTag * const *tags, unsigned int tag);
2800 
2809 unsigned int av_codec_get_tag(const struct AVCodecTag * const *tags, enum AVCodecID id);
2810 
2820 int av_codec_get_tag2(const struct AVCodecTag * const *tags, enum AVCodecID id,
2821  unsigned int *tag);
2822 
2824 
2836 int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags);
2837 
2844 int av_add_index_entry(AVStream *st, int64_t pos, int64_t timestamp,
2845  int size, int distance, int flags);
2846 
2847 
2867 void av_url_split(char *proto, int proto_size,
2868  char *authorization, int authorization_size,
2869  char *hostname, int hostname_size,
2870  int *port_ptr,
2871  char *path, int path_size,
2872  const char *url);
2873 
2874 
2886  int index,
2887  const char *url,
2888  int is_output);
2889 
2890 
2891 #define AV_FRAME_FILENAME_FLAGS_MULTIPLE 1
2892 
2893 
2906 int av_get_frame_filename2(char *buf, int buf_size,
2907  const char *path, int number, int flags);
2908 
2909 int av_get_frame_filename(char *buf, int buf_size,
2910  const char *path, int number);
2911 
2918 int av_filename_number_test(const char *filename);
2919 
2937 int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size);
2938 
2946 int av_match_ext(const char *filename, const char *extensions);
2947 
2958 int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
2959  int std_compliance);
2960 
2976 const struct AVCodecTag *avformat_get_riff_video_tags(void);
2980 const struct AVCodecTag *avformat_get_riff_audio_tags(void);
2984 const struct AVCodecTag *avformat_get_mov_video_tags(void);
2988 const struct AVCodecTag *avformat_get_mov_audio_tags(void);
2989 
3012 
3022 
3037  const char *spec);
3038 
3040 
3041 #if FF_API_OLD_BSF
3042 
3053 attribute_deprecated
3055  AVBitStreamFilterContext *bsfc);
3056 #endif
3057 
3062 #if FF_API_R_FRAME_RATE
3064 #endif
3065 };
3066 
3078  AVStream *ost, const AVStream *ist,
3079  enum AVTimebaseSource copy_tb);
3080 
3087 
3092 #endif /* AVFORMAT_AVFORMAT_H */
avformat_get_riff_video_tags
const struct AVCodecTag * avformat_get_riff_video_tags(void)
av_pkt_dump2
void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st)
AVInputFormat
Definition: avformat.h:640
AVFormatContext::ctx_flags
int ctx_flags
Definition: avformat.h:1393
av_codec_get_id
enum AVCodecID av_codec_get_id(const struct AVCodecTag *const *tags, unsigned int tag)
AVStream::pmt_version
int pmt_version
Definition: avformat.h:1117
AVFormatContext::avoid_negative_ts
int avoid_negative_ts
Definition: avformat.h:1675
AVCodecContext
Definition: avcodec.h:1565
AVFormatContext::correct_ts_overflow
unsigned int correct_ts_overflow
Definition: avformat.h:1745
av_format_control_message
int(* av_format_control_message)(struct AVFormatContext *s, int type, void *data, size_t data_size)
Definition: avformat.h:1312
AVProgram::discard
enum AVDiscard discard
selects which program to discard and which to feed to the caller
Definition: avformat.h:1269
s
GLdouble s
Definition: SDL_opengl.h:2063
av_fmt_ctx_get_duration_estimation_method
enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext *ctx)
AVFMT_DURATION_FROM_BITRATE
@ AVFMT_DURATION_FROM_BITRATE
Duration estimated from bitrate (less accurate)
Definition: avformat.h:1325
avformat_new_stream
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
AVProgram
Definition: avformat.h:1266
AVFMT_TBCF_R_FRAMERATE
@ AVFMT_TBCF_R_FRAMERATE
Definition: avformat.h:3063
AVFormatContext::strict_std_compliance
int strict_std_compliance
Definition: avformat.h:1652
AVStream::codec_info_duration_fields
int64_t codec_info_duration_fields
Definition: avformat.h:1042
av_format_set_control_message_cb
attribute_deprecated void av_format_set_control_message_cb(AVFormatContext *s, av_format_control_message callback)
AVStream::info
struct AVStream::@84 * info
AVStream::pts_buffer
int64_t pts_buffer[MAX_REORDER_DELAY+1]
Definition: avformat.h:1099
AVPacketList
Definition: avformat.h:2010
AVFormatContext::start_time_realtime
int64_t start_time_realtime
Definition: avformat.h:1597
AVInputFormat::codec_tag
const struct AVCodecTag *const * codec_tag
Definition: avformat.h:668
AVInputFormat::read_timestamp
int64_t(* read_timestamp)(struct AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit)
Definition: avformat.h:744
AVFormatContext::dump_separator
uint8_t * dump_separator
Definition: avformat.h:1869
AVOutputFormat::mime_type
const char * mime_type
Definition: avformat.h:503
AVStream::dts_misordered
uint8_t dts_misordered
Definition: avformat.h:1211
AVFormatContext::video_codec_id
enum AVCodecID video_codec_id
Definition: avformat.h:1530
av_find_program_from_stream
AVProgram * av_find_program_from_stream(AVFormatContext *ic, AVProgram *last, int s)
AVFormatContext::audio_codec
AVCodec * audio_codec
Definition: avformat.h:1821
av_format_get_video_codec
attribute_deprecated AVCodec * av_format_get_video_codec(const AVFormatContext *s)
AVFormatContext::opaque
void * opaque
Definition: avformat.h:1850
AVFMT_TBCF_DECODER
@ AVFMT_TBCF_DECODER
Definition: avformat.h:3060
av_format_set_video_codec
attribute_deprecated void av_format_set_video_codec(AVFormatContext *s, AVCodec *c)
AVFormatContext::probesize
int64_t probesize
Definition: avformat.h:1510
av_format_get_metadata_header_padding
attribute_deprecated int av_format_get_metadata_header_padding(const AVFormatContext *s)
in
GLuint in
Definition: SDL_opengl_glext.h:7943
AVFormatContext::debug
int debug
Definition: avformat.h:1627
AVStream::probe_packets
int probe_packets
Definition: avformat.h:1082
AVIOContext
Definition: avio.h:161
AVFormatContext::programs
AVProgram ** programs
Definition: avformat.h:1524
avformat_get_class
const AVClass * avformat_get_class(void)
AVFormatContext::avio_flags
int avio_flags
Definition: avformat.h:1723
end
GLuint GLuint end
Definition: SDL_opengl.h:1571
AVDeviceInfoList
Definition: avdevice.h:460
av_format_get_opaque
attribute_deprecated void * av_format_get_opaque(const AVFormatContext *s)
AVFMT_TBCF_AUTO
@ AVFMT_TBCF_AUTO
Definition: avformat.h:3059
AVFormatContext::subtitle_codec_id
enum AVCodecID subtitle_codec_id
Definition: avformat.h:1542
av_write_uncoded_frame
int av_write_uncoded_frame(AVFormatContext *s, int stream_index, AVFrame *frame)
av_get_frame_filename2
int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags)
av_guess_codec
enum AVCodecID av_guess_codec(ff_const59 AVOutputFormat *fmt, const char *short_name, const char *filename, const char *mime_type, enum AVMediaType type)
AVStream::discard
enum AVDiscard discard
Selects which packets can be discarded at will and do not need to be demuxed.
Definition: avformat.h:927
AVFormatContext::format_whitelist
char * format_whitelist
Definition: avformat.h:1791
AVOutputFormat::codec_tag
const struct AVCodecTag *const * codec_tag
Definition: avformat.h:521
AVIOInterruptCB
Definition: avio.h:58
AVStream::last_discard_sample
int64_t last_discard_sample
Definition: avformat.h:1164
AVFormatContext::skip_initial_bytes
int64_t skip_initial_bytes
Definition: avformat.h:1738
AVFMT_TBCF_DEMUXER
@ AVFMT_TBCF_DEMUXER
Definition: avformat.h:3061
av_register_input_format
attribute_deprecated void av_register_input_format(AVInputFormat *format)
level
GLint level
Definition: SDL_opengl.h:1572
AVFormatContext::video_codec
AVCodec * video_codec
Definition: avformat.h:1813
AVStream::disposition
int disposition
Definition: avformat.h:925
AVStream::pts_reorder_error_count
uint8_t pts_reorder_error_count[MAX_REORDER_DELAY+1]
Definition: avformat.h:1204
av_stream_set_recommended_encoder_configuration
attribute_deprecated void av_stream_set_recommended_encoder_configuration(AVStream *s, char *configuration)
av_write_uncoded_frame_query
int av_write_uncoded_frame_query(AVFormatContext *s, int stream_index)
av_oformat_next
attribute_deprecated AVOutputFormat * av_oformat_next(const AVOutputFormat *f)
avformat_init_output
av_warn_unused_result int avformat_init_output(AVFormatContext *s, AVDictionary **options)
av_read_frame
int av_read_frame(AVFormatContext *s, AVPacket *pkt)
av_get_frame_filename
int av_get_frame_filename(char *buf, int buf_size, const char *path, int number)
AVFormatContext::max_chunk_size
int max_chunk_size
Definition: avformat.h:1708
AVStream::display_aspect_ratio
AVRational display_aspect_ratio
Definition: avformat.h:1223
AVStream::codec
attribute_deprecated AVCodecContext * codec
Definition: avformat.h:885
AVOutputFormat::long_name
const char * long_name
Definition: avformat.h:502
av_demuxer_open
attribute_deprecated int av_demuxer_open(AVFormatContext *ic)
AVIndexEntry::min_distance
int min_distance
Definition: avformat.h:814
AVInputFormat::extensions
const char * extensions
Definition: avformat.h:666
AVFormatContext::seek2any
int seek2any
Definition: avformat.h:1752
AVStream::fps_last_dts
int64_t fps_last_dts
Definition: avformat.h:1059
av_filename_number_test
int av_filename_number_test(const char *filename)
AVStream::pmt_stream_idx
int pmt_stream_idx
Definition: avformat.h:1118
AVProbeData
Definition: avformat.h:446
avformat_queue_attached_pictures
int avformat_queue_attached_pictures(AVFormatContext *s)
AVInputFormat::priv_class
const AVClass * priv_class
AVClass for the private context.
Definition: avformat.h:670
avformat_close_input
void avformat_close_input(AVFormatContext **s)
av_guess_format
ff_const59 AVOutputFormat * av_guess_format(const char *short_name, const char *filename, const char *mime_type)
AVProgram::stream_index
unsigned int * stream_index
Definition: avformat.h:1270
int64_t
__int64 int64_t
Definition: alext.h:31
AVStream::codecpar
AVCodecParameters * codecpar
Definition: avformat.h:1019
AVFormatContext::keylen
int keylen
Definition: avformat.h:1521
AVStream
struct AVStream AVStream
av_iformat_next
attribute_deprecated AVInputFormat * av_iformat_next(const AVInputFormat *f)
AVFormatContext::priv_data
void * priv_data
Definition: avformat.h:1372
avformat_get_mov_video_tags
const struct AVCodecTag * avformat_get_mov_video_tags(void)
AVFormatContext::output_ts_offset
int64_t output_ts_offset
Definition: avformat.h:1861
av_add_index_entry
int av_add_index_entry(AVStream *st, int64_t pos, int64_t timestamp, int size, int distance, int flags)
AVSTREAM_PARSE_FULL_ONCE
@ AVSTREAM_PARSE_FULL_ONCE
Definition: avformat.h:794
AVInputFormat::flags
int flags
Definition: avformat.h:659
avformat_version
unsigned avformat_version(void)
AVFormatContext::flags
int flags
Definition: avformat.h:1475
av_format_set_audio_codec
attribute_deprecated void av_format_set_audio_codec(AVFormatContext *s, AVCodec *c)
AVStreamParseType
AVStreamParseType
Definition: avformat.h:789
AVProgram::pmt_version
int pmt_version
Definition: avformat.h:1277
AVStream::last_dts_for_order_check
int64_t last_dts_for_order_check
Definition: avformat.h:1209
AVStream::skip_samples
int skip_samples
Definition: avformat.h:1140
AVFMT_DURATION_FROM_PTS
@ AVFMT_DURATION_FROM_PTS
Duration accurately estimated from PTSes.
Definition: avformat.h:1323
path
GLsizei const GLchar *const * path
Definition: SDL_opengl_glext.h:3733
AVStream::request_probe
int request_probe
Definition: avformat.h:1130
av_new_program
AVProgram * av_new_program(AVFormatContext *s, int id)
av_codec_get_tag2
int av_codec_get_tag2(const struct AVCodecTag *const *tags, enum AVCodecID id, unsigned int *tag)
AVStream::index_entries
AVIndexEntry * index_entries
Definition: avformat.h:1101
AVInputFormat::priv_data_size
int priv_data_size
Definition: avformat.h:696
index
GLuint index
Definition: SDL_opengl_glext.h:663
AVFormatContext::bit_rate
int64_t bit_rate
Definition: avformat.h:1466
avformat_network_init
int avformat_network_init(void)
avformat_get_riff_audio_tags
const struct AVCodecTag * avformat_get_riff_audio_tags(void)
AVStream::nb_index_entries
int nb_index_entries
Definition: avformat.h:1103
AVFormatContext::fps_probe_size
int fps_probe_size
Definition: avformat.h:1604
av_guess_sample_aspect_ratio
AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *stream, AVFrame *frame)
AVFormatContext::duration_estimation_method
enum AVDurationEstimationMethod duration_estimation_method
Definition: avformat.h:1731
av_format_get_data_codec
attribute_deprecated AVCodec * av_format_get_data_codec(const AVFormatContext *s)
AVStream::time_base
AVRational time_base
Definition: avformat.h:901
AVIndexEntry
struct AVIndexEntry AVIndexEntry
av_dump_format
void av_dump_format(AVFormatContext *ic, int index, const char *url, int is_output)
AVFormatContext::max_delay
int max_delay
Definition: avformat.h:1469
AVInputFormat::read_play
int(* read_play)(struct AVFormatContext *)
Definition: avformat.h:751
AVFormatContext::protocol_blacklist
char * protocol_blacklist
Definition: avformat.h:1939
AVStream::need_parsing
enum AVStreamParseType need_parsing
Definition: avformat.h:1090
AVStream::codec_info_duration
int64_t codec_info_duration
Definition: avformat.h:1041
av_stream_new_side_data
uint8_t * av_stream_new_side_data(AVStream *stream, enum AVPacketSideDataType type, int size)
avformat_query_codec
int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id, int std_compliance)
av_register_all
attribute_deprecated void av_register_all(void)
AVFormatContext::data_codec
AVCodec * data_codec
Definition: avformat.h:1837
AVCodecParserContext
Definition: avcodec.h:5108
AVProbeData
struct AVProbeData AVProbeData
av_seek_frame
int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
AVFormatContext::metadata
AVDictionary * metadata
Definition: avformat.h:1584
av_stream_get_r_frame_rate
attribute_deprecated AVRational av_stream_get_r_frame_rate(const AVStream *s)
AVFormatContext::nb_programs
unsigned int nb_programs
Definition: avformat.h:1523
format
SDL_AudioFormat format
Definition: SDL_audio.h:194
AVOpenCallback
int(* AVOpenCallback)(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options)
Definition: avformat.h:1315
av_match_ext
int av_match_ext(const char *filename, const char *extensions)
av_register_output_format
attribute_deprecated void av_register_output_format(AVOutputFormat *format)
AVProgram::pts_wrap_reference
int64_t pts_wrap_reference
reference dts for wrap detection
Definition: avformat.h:1289
AVFormatContext::audio_codec_id
enum AVCodecID audio_codec_id
Definition: avformat.h:1536
av_read_play
int av_read_play(AVFormatContext *s)
AVStream::skip_to_keyframe
int skip_to_keyframe
Definition: avformat.h:1135
av_stream_set_r_frame_rate
attribute_deprecated void av_stream_set_r_frame_rate(AVStream *s, AVRational r)
AVInputFormat::read_seek
int(* read_seek)(struct AVFormatContext *, int stream_index, int64_t timestamp, int flags)
Definition: avformat.h:737
av_format_set_opaque
attribute_deprecated void av_format_set_opaque(AVFormatContext *s, void *opaque)
AVIndexEntry
Definition: avformat.h:800
avformat_flush
int avformat_flush(AVFormatContext *s)
AVFormatContext::io_repositioned
int io_repositioned
Definition: avformat.h:1805
AVFormatContext::ts_id
int ts_id
Definition: avformat.h:1684
AVStream::mux_ts_offset
int64_t mux_ts_offset
Definition: avformat.h:1176
buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: SDL_opengl_glext.h:2483
AVStream::event_flags
int event_flags
Definition: avformat.h:985
av_interleaved_write_uncoded_frame
int av_interleaved_write_uncoded_frame(AVFormatContext *s, int stream_index, AVFrame *frame)
AVStream::start_skip_samples
int64_t start_skip_samples
Definition: avformat.h:1149
av_format_set_data_codec
attribute_deprecated void av_format_set_data_codec(AVFormatContext *s, AVCodec *c)
AVOutputFormat
struct AVOutputFormat AVOutputFormat
avformat_write_header
av_warn_unused_result int avformat_write_header(AVFormatContext *s, AVDictionary **options)
AVFormatContext::av_class
const AVClass * av_class
Definition: avformat.h:1349
p
GLfloat GLfloat p
Definition: SDL_opengl_glext.h:11093
AVStream::last_IP_pts
int64_t last_IP_pts
Definition: avformat.h:1076
AVPacketSideData
Definition: avcodec.h:1420
AVFormatContext::io_open
int(* io_open)(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options)
Definition: avformat.h:1926
AVStream::interleaver_chunk_duration
int64_t interleaver_chunk_duration
Definition: avformat.h:1121
AVFormatContext::protocol_whitelist
char * protocol_whitelist
Definition: avformat.h:1904
av_format_get_open_cb
attribute_deprecated AVOpenCallback av_format_get_open_cb(const AVFormatContext *s)
AVStream::last_IP_duration
int last_IP_duration
Definition: avformat.h:1077
AVStream::nb_side_data
int nb_side_data
Definition: avformat.h:978
AVFMT_DURATION_FROM_STREAM
@ AVFMT_DURATION_FROM_STREAM
Duration estimated from a stream with a known duration.
Definition: avformat.h:1324
av_stream_add_side_data
int av_stream_add_side_data(AVStream *st, enum AVPacketSideDataType type, uint8_t *data, size_t size)
AVStream::sample_aspect_ratio
AVRational sample_aspect_ratio
Definition: avformat.h:934
AVSTREAM_PARSE_NONE
@ AVSTREAM_PARSE_NONE
Definition: avformat.h:790
log.h
AVDeviceCapabilitiesQuery
Definition: avdevice.h:400
AVFormatContext::max_analyze_duration
int64_t max_analyze_duration
Definition: avformat.h:1518
AVDurationEstimationMethod
AVDurationEstimationMethod
Definition: avformat.h:1322
AVStream::first_dts
int64_t first_dts
Definition: avformat.h:1074
AVInputFormat::create_device_capabilities
int(* create_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps)
Definition: avformat.h:777
AVStream::update_initial_durations_done
int update_initial_durations_done
Definition: avformat.h:1198
AVInputFormat::raw_codec_id
int raw_codec_id
Definition: avformat.h:691
av_write_frame
int av_write_frame(AVFormatContext *s, AVPacket *pkt)
AVFormatContext::subtitle_codec
AVCodec * subtitle_codec
Definition: avformat.h:1829
AVProgram::start_time
int64_t start_time
Definition: avformat.h:1286
AVStream::duration_gcd
int64_t duration_gcd
Definition: avformat.h:1037
AVStream::codec_info_nb_frames
int codec_info_nb_frames
Definition: avformat.h:1087
AVFormatContext::metadata_header_padding
int metadata_header_padding
Definition: avformat.h:1844
AVFormatContext::format_probesize
int format_probesize
Definition: avformat.h:1775
AVStream::nb_frames
int64_t nb_frames
number of frames in this stream if known or 0
Definition: avformat.h:923
AVFormatContext::nb_streams
unsigned int nb_streams
Definition: avformat.h:1400
AVStream::avg_frame_rate
AVRational avg_frame_rate
Definition: avformat.h:945
AVCodecID
AVCodecID
Definition: avcodec.h:215
AVFormatContext::filename
attribute_deprecated char filename[1024]
Definition: avformat.h:1424
AVFormatContext::max_streams
int max_streams
Definition: avformat.h:1946
avformat_find_stream_info
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
f
GLfloat f
Definition: SDL_opengl_glext.h:1873
AVStream::attached_pic
AVPacket attached_pic
Definition: avformat.h:954
AVProgram::pmt_pid
int pmt_pid
Definition: avformat.h:1275
AVStream::nb_decoded_frames
int nb_decoded_frames
Definition: avformat.h:1170
type
EGLenum type
Definition: SDL_egl.h:850
AVMediaType
AVMediaType
Definition: avutil.h:199
av_format_set_open_cb
attribute_deprecated void av_format_set_open_cb(AVFormatContext *s, AVOpenCallback callback)
avformat_match_stream_specifier
int avformat_match_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)
AVPacketList::next
struct AVPacketList * next
Definition: avformat.h:2012
ctx
EGLContext ctx
Definition: SDL_egl.h:952
avformat_alloc_context
AVFormatContext * avformat_alloc_context(void)
AVProgram::pts_wrap_behavior
int pts_wrap_behavior
behavior on wrap detection
Definition: avformat.h:1290
av_codec_get_tag
unsigned int av_codec_get_tag(const struct AVCodecTag *const *tags, enum AVCodecID id)
AVStream::dts_ordered
uint8_t dts_ordered
Definition: avformat.h:1210
av_stream_get_side_data
uint8_t * av_stream_get_side_data(const AVStream *stream, enum AVPacketSideDataType type, int *size)
AVInputFormat::mime_type
const char * mime_type
Definition: avformat.h:677
av_probe_input_format
ff_const59 AVInputFormat * av_probe_input_format(ff_const59 AVProbeData *pd, int is_opened)
AVChapter::start
int64_t start
Definition: avformat.h:1304
AVFormatContext::open_cb
attribute_deprecated int(* open_cb)(struct AVFormatContext *s, AVIOContext **p, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options)
Definition: avformat.h:1896
avio.h
avformat_seek_file
int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
av_guess_frame_rate
AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, AVFrame *frame)
AVFormatContext::data_codec_id
enum AVCodecID data_codec_id
Definition: avformat.h:1875
AVStream::id
int id
Definition: avformat.h:879
AVStream::stream_identifier
int stream_identifier
Definition: avformat.h:1111
AVStream::last_in_packet_buffer
struct AVPacketList * last_in_packet_buffer
Definition: avformat.h:1096
av_stream_get_codec_timebase
AVRational av_stream_get_codec_timebase(const AVStream *st)
AVStream::pts_wrap_reference
int64_t pts_wrap_reference
Definition: avformat.h:1181
av_probe_input_buffer2
int av_probe_input_buffer2(AVIOContext *pb, ff_const59 AVInputFormat **fmt, const char *url, void *logctx, unsigned int offset, unsigned int max_probe_size)
AVTimebaseSource
AVTimebaseSource
Definition: avformat.h:3058
av_demuxer_iterate
const AVInputFormat * av_demuxer_iterate(void **opaque)
AVProgram::pcr_pid
int pcr_pid
Definition: avformat.h:1276
AVClass
Definition: log.h:67
AVFormatContext::duration
int64_t duration
Definition: avformat.h:1459
AVStream::fps_last_dts_idx
int fps_last_dts_idx
Definition: avformat.h:1060
AVStream::duration
int64_t duration
Definition: avformat.h:921
AVFormatContext::url
char * url
Definition: avformat.h:1440
AVInputFormat::read_close
int(* read_close)(struct AVFormatContext *)
Definition: avformat.h:727
av_sdp_create
int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size)
av_stream_get_recommended_encoder_configuration
attribute_deprecated char * av_stream_get_recommended_encoder_configuration(const AVStream *s)
av_format_inject_global_side_data
void av_format_inject_global_side_data(AVFormatContext *s)
AVStream::found_decoder
int found_decoder
Definition: avformat.h:1050
AVPacketSideDataType
AVPacketSideDataType
Definition: avcodec.h:1184
AVStream::side_data
AVPacketSideData * side_data
Definition: avformat.h:974
AVFormatContext
struct AVFormatContext AVFormatContext
avformat_alloc_output_context2
int avformat_alloc_output_context2(AVFormatContext **ctx, ff_const59 AVOutputFormat *oformat, const char *format_name, const char *filename)
AVFormatContext::error_recognition
int error_recognition
Definition: avformat.h:1611
AVOutputFormat::next
ff_const59 struct AVOutputFormat * next
Definition: avformat.h:542
AVFormatContext::max_chunk_duration
int max_chunk_duration
Definition: avformat.h:1700
stream
EGLStreamKHR stream
Definition: SDL_egl.h:1082
AVStream::pts_wrap_bits
int pts_wrap_bits
Definition: avformat.h:1064
AVChapter::time_base
AVRational time_base
time base in which the start/end timestamps are specified
Definition: avformat.h:1303
AVOutputFormat::write_header
int(* write_header)(struct AVFormatContext *)
Definition: avformat.h:548
AVProbeData::buf_size
int buf_size
Definition: avformat.h:449
AVChapter
struct AVChapter AVChapter
id
GLuint id
Definition: SDL_opengl_glext.h:531
AVFormatContext::key
const uint8_t * key
Definition: avformat.h:1520
AVFormatContext::codec_whitelist
char * codec_whitelist
Definition: avformat.h:1783
av_find_input_format
ff_const59 AVInputFormat * av_find_input_format(const char *short_name)
av_write_trailer
int av_write_trailer(AVFormatContext *s)
av_apply_bitstream_filters
attribute_deprecated int av_apply_bitstream_filters(AVCodecContext *codec, AVPacket *pkt, AVBitStreamFilterContext *bsfc)
AVFormatContext::oformat
ff_const59 struct AVOutputFormat * oformat
Definition: avformat.h:1363
AVFormatContext::streams
AVStream ** streams
Definition: avformat.h:1412
distance
GLsizei GLsizei GLfloat distance
Definition: SDL_opengl_glext.h:9203
AVChapter::id
int id
unique ID to identify the chapter
Definition: avformat.h:1302
avformat_open_input
int avformat_open_input(AVFormatContext **ps, const char *url, ff_const59 AVInputFormat *fmt, AVDictionary **options)
AVOutputFormat::priv_data_size
int priv_data_size
Definition: avformat.h:546
AVIndexEntry::timestamp
int64_t timestamp
Definition: avformat.h:802
AVOutputFormat::flags
int flags
Definition: avformat.h:515
AVStream::last_dts
int64_t last_dts
Definition: avformat.h:1036
void
typedef void(SDLCALL *SDL_AudioFilter)(struct SDL_AudioCVT *cvt
AVFormatContext::probe_score
int probe_score
Definition: avformat.h:1768
uint8_t
unsigned __int8 uint8_t
Definition: SDL_config.h:35
av_format_set_metadata_header_padding
attribute_deprecated void av_format_set_metadata_header_padding(AVFormatContext *s, int c)
avformat_get_mov_audio_tags
const struct AVCodecTag * avformat_get_mov_audio_tags(void)
av_get_output_timestamp
int av_get_output_timestamp(struct AVFormatContext *s, int stream, int64_t *dts, int64_t *wall)
AVStream::index
int index
Definition: avformat.h:873
AVProgram
struct AVProgram AVProgram
av_url_split
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)
AVPacketList
struct AVPacketList AVPacketList
av_find_default_stream_index
int av_find_default_stream_index(AVFormatContext *s)
AVFormatContext::control_message_cb
av_format_control_message control_message_cb
Definition: avformat.h:1855
AVStream::duration_count
int duration_count
Definition: avformat.h:1038
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
av_read_pause
int av_read_pause(AVFormatContext *s)
AVFormatContext::io_close
void(* io_close)(struct AVFormatContext *s, AVIOContext *pb)
Definition: avformat.h:1932
AVFormatContext::use_wallclock_as_timestamps
int use_wallclock_as_timestamps
Definition: avformat.h:1716
AVIndexEntry::pos
int64_t pos
Definition: avformat.h:801
AVStream::rfps_duration_sum
int64_t rfps_duration_sum
Definition: avformat.h:1039
AVStream::fps_first_dts_idx
int fps_first_dts_idx
Definition: avformat.h:1058
r
GLdouble GLdouble GLdouble r
Definition: SDL_opengl.h:2079
av_format_get_subtitle_codec
attribute_deprecated AVCodec * av_format_get_subtitle_codec(const AVFormatContext *s)
AVCodecParameters
Definition: avcodec.h:3949
AVFormatInternal
struct AVFormatInternal AVFormatInternal
Definition: avformat.h:1328
AVProbeData::mime_type
const char * mime_type
Definition: avformat.h:450
av_get_packet
int av_get_packet(AVIOContext *s, AVPacket *pkt, int size)
AVProgram::metadata
AVDictionary * metadata
Definition: avformat.h:1272
avcodec.h
version.h
AVStream::pts_reorder_error
int64_t pts_reorder_error[MAX_REORDER_DELAY+1]
Definition: avformat.h:1203
AVStream::metadata
AVDictionary * metadata
Definition: avformat.h:936
c
const GLubyte * c
Definition: SDL_opengl_glext.h:11096
av_hex_dump_log
void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size)
AVFormatContext::pb
AVIOContext * pb
Definition: avformat.h:1386
AVInputFormat::read_header
int(* read_header)(struct AVFormatContext *)
Definition: avformat.h:710
AVStream::cur_dts
int64_t cur_dts
Definition: avformat.h:1075
AVPacket
Definition: avcodec.h:1454
av_append_packet
int av_append_packet(AVIOContext *s, AVPacket *pkt, int size)
AVSTREAM_PARSE_HEADERS
@ AVSTREAM_PARSE_HEADERS
Definition: avformat.h:792
AVStream::start_time
int64_t start_time
Definition: avformat.h:911
AVProgram::flags
int flags
Definition: avformat.h:1268
AVInputFormat::read_packet
int(* read_packet)(struct AVFormatContext *, AVPacket *pkt)
Definition: avformat.h:721
dict.h
AVStreamInternal
struct AVStreamInternal AVStreamInternal
Definition: avformat.h:847
AVFormatContext::flush_packets
int flush_packets
Definition: avformat.h:1759
AVFormatContext::max_picture_buffer
unsigned int max_picture_buffer
Definition: avformat.h:1560
AVStream::parser
struct AVCodecParserContext * parser
Definition: avformat.h:1091
AVProgram::nb_stream_indexes
unsigned int nb_stream_indexes
Definition: avformat.h:1271
avformat_network_deinit
int avformat_network_deinit(void)
AVInputFormat::name
const char * name
Definition: avformat.h:645
AVFormatContext::skip_estimate_duration_from_pts
int skip_estimate_duration_from_pts
Definition: avformat.h:1953
av_muxer_iterate
const AVOutputFormat * av_muxer_iterate(void **opaque)
AVProgram::program_num
int program_num
Definition: avformat.h:1274
avformat_transfer_internal_stream_timing_info
int avformat_transfer_internal_stream_timing_info(const AVOutputFormat *ofmt, AVStream *ost, const AVStream *ist, enum AVTimebaseSource copy_tb)
flags
EGLSyncKHR EGLint flags
Definition: SDL_egl.h:898
AVStream::inject_global_side_data
int inject_global_side_data
Definition: avformat.h:1216
AVStream::probe_data
AVProbeData probe_data
Definition: avformat.h:1097
AVStream::program_num
int program_num
Definition: avformat.h:1116
AVOutputFormat::extensions
const char * extensions
Definition: avformat.h:504
av_stream_get_end_pts
int64_t av_stream_get_end_pts(const AVStream *st)
AVFormatContext
Definition: avformat.h:1344
AVDictionary
struct AVDictionary AVDictionary
Definition: dict.h:86
avformat_free_context
void avformat_free_context(AVFormatContext *s)
AVProgram::end_time
int64_t end_time
Definition: avformat.h:1287
AVFormatContext::iformat
ff_const59 struct AVInputFormat * iformat
Definition: avformat.h:1356
AVStream::duration_error
double(* duration_error)[2][MAX_STD_TIMEBASES]
Definition: avformat.h:1040
AVSTREAM_PARSE_FULL_RAW
@ AVSTREAM_PARSE_FULL_RAW
Definition: avformat.h:795
av_probe_input_format2
ff_const59 AVInputFormat * av_probe_input_format2(ff_const59 AVProbeData *pd, int is_opened, int *score_max)
AVStream::recommended_encoder_configuration
attribute_deprecated char * recommended_encoder_configuration
Definition: avformat.h:1007
AVPacketList::pkt
AVPacket pkt
Definition: avformat.h:2011
AVInputFormat::read_pause
int(* read_pause)(struct AVFormatContext *)
Definition: avformat.h:757
AVInputFormat
struct AVInputFormat AVInputFormat
AVFormatContext::packet_size
unsigned int packet_size
Definition: avformat.h:1468
avformat_license
const char * avformat_license(void)
AVStream::fps_first_dts
int64_t fps_first_dts
Definition: avformat.h:1057
av_format_set_subtitle_codec
attribute_deprecated void av_format_set_subtitle_codec(AVFormatContext *s, AVCodec *c)
AVInputFormat::next
ff_const59 struct AVInputFormat * next
Definition: avformat.h:686
AVRational
Definition: rational.h:58
AVStream::frame_delay_evidence
int frame_delay_evidence
Definition: avformat.h:1043
AVStream::priv_data
void * priv_data
Definition: avformat.h:887
AVInputFormat::long_name
const char * long_name
Definition: avformat.h:652
AVInputFormat::read_seek2
int(* read_seek2)(struct AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
Definition: avformat.h:765
AVStream
Definition: avformat.h:872
AVStream::index_entries_allocated_size
unsigned int index_entries_allocated_size
Definition: avformat.h:1104
AVOutputFormat::name
const char * name
Definition: avformat.h:496
avformat_configuration
const char * avformat_configuration(void)
AVIndexEntry::size
int size
Definition: avformat.h:813
size
GLsizeiptr size
Definition: SDL_opengl_glext.h:540
offset
GLintptr offset
Definition: SDL_opengl_glext.h:541
AVCodec
Definition: avcodec.h:3481
AVFormatContext::interrupt_callback
AVIOInterruptCB interrupt_callback
Definition: avformat.h:1622
av_probe_input_buffer
int av_probe_input_buffer(AVIOContext *pb, ff_const59 AVInputFormat **fmt, const char *url, void *logctx, unsigned int offset, unsigned int max_probe_size)
AVFormatContext::chapters
AVChapter ** chapters
Definition: avformat.h:1574
av_interleaved_write_frame
int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
AVChapter
Definition: avformat.h:1301
AVFormatContext::max_index_size
unsigned int max_index_size
Definition: avformat.h:1554
AVFormatContext::audio_preload
int audio_preload
Definition: avformat.h:1692
AVProbeData::buf
unsigned char * buf
Definition: avformat.h:448
AVInputFormat::get_device_list
int(* get_device_list)(struct AVFormatContext *s, struct AVDeviceInfoList *device_list)
Definition: avformat.h:771
AVFormatContext::max_interleave_delta
int64_t max_interleave_delta
Definition: avformat.h:1646
AVStream::interleaver_chunk_size
int64_t interleaver_chunk_size
Definition: avformat.h:1120
AVSTREAM_PARSE_FULL
@ AVSTREAM_PARSE_FULL
Definition: avformat.h:791
AVStream::first_discard_sample
int64_t first_discard_sample
Definition: avformat.h:1157
AVProbeData::filename
const char * filename
Definition: avformat.h:447
AVFormatContext::nb_chapters
unsigned int nb_chapters
Definition: avformat.h:1573
AVFormatContext::event_flags
int event_flags
Definition: avformat.h:1659
AVStream::last_duration
int64_t last_duration
Definition: avformat.h:1052
av_stream_get_parser
struct AVCodecParserContext * av_stream_get_parser(const AVStream *s)
av_pkt_dump_log2
void av_pkt_dump_log2(void *avcl, int level, const AVPacket *pkt, int dump_payload, const AVStream *st)
AVInputFormat::free_device_capabilities
int(* free_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps)
Definition: avformat.h:783
AVSTREAM_PARSE_TIMESTAMPS
@ AVSTREAM_PARSE_TIMESTAMPS
Definition: avformat.h:793
AVStream::pts_wrap_behavior
int pts_wrap_behavior
Definition: avformat.h:1193
AVInputFormat::read_probe
int(* read_probe)(const AVProbeData *)
Definition: avformat.h:703
AVOutputFormat::priv_class
const AVClass * priv_class
AVClass for the private context.
Definition: avformat.h:524
AVFrame
Definition: frame.h:295
AVDiscard
AVDiscard
Definition: avcodec.h:802
AVChapter::metadata
AVDictionary * metadata
Definition: avformat.h:1305
AVFormatContext::max_ts_probe
int max_ts_probe
Definition: avformat.h:1666
AVFormatContext::start_time
int64_t start_time
Definition: avformat.h:1449
AVBitStreamFilterContext
Definition: avcodec.h:5738
AVOutputFormat
Definition: avformat.h:495
av_probe_input_format3
ff_const59 AVInputFormat * av_probe_input_format3(ff_const59 AVProbeData *pd, int is_opened, int *score_ret)
av_format_get_audio_codec
attribute_deprecated AVCodec * av_format_get_audio_codec(const AVFormatContext *s)
AVStream::r_frame_rate
AVRational r_frame_rate
Definition: avformat.h:996
AVProgram::id
int id
Definition: avformat.h:1267
av_format_get_control_message_cb
attribute_deprecated av_format_control_message av_format_get_control_message_cb(const AVFormatContext *s)
av_index_search_timestamp
int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags)
av_find_best_stream
int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, int wanted_stream_nb, int related_stream, AVCodec **decoder_ret, int flags)
av_format_get_probe_score
attribute_deprecated int av_format_get_probe_score(const AVFormatContext *s)
av_program_add_stream_index
void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx)
av_hex_dump
void av_hex_dump(FILE *f, const uint8_t *buf, int size)