Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh de Kock <josh@itanimul.li>2018-01-21 19:06:54 +0300
committerJosh de Kock <josh@itanimul.li>2018-02-06 21:57:42 +0300
commit0694d8702421e7aff1340038559c438b61bb30dd (patch)
treeeb02d480f6f6c75696c9e83f898b13bba586589f /libavformat/avformat.h
parent598d5f8579b3a048a643486a5f20fc4d479a2017 (diff)
lavf: add new API for iterating muxers and demuxers
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 82f9845337..4ea1b5ab72 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -2011,6 +2011,7 @@ const char *avformat_configuration(void);
*/
const char *avformat_license(void);
+#if FF_API_NEXT
/**
* Initialize libavformat and register all the muxers, demuxers and
* protocols. If you do not call this function, then you can select
@@ -2019,10 +2020,14 @@ const char *avformat_license(void);
* @see av_register_input_format()
* @see av_register_output_format()
*/
+attribute_deprecated
void av_register_all(void);
+attribute_deprecated
void av_register_input_format(AVInputFormat *format);
+attribute_deprecated
void av_register_output_format(AVOutputFormat *format);
+#endif
/**
* Do global initialization of network libraries. This is optional,
@@ -2046,11 +2051,13 @@ int avformat_network_init(void);
*/
int avformat_network_deinit(void);
+#if FF_API_NEXT
/**
* If f is NULL, returns the first registered input format,
* if f is non-NULL, returns the next registered input format after f
* or NULL if f is the last one.
*/
+attribute_deprecated
AVInputFormat *av_iformat_next(const AVInputFormat *f);
/**
@@ -2058,7 +2065,31 @@ AVInputFormat *av_iformat_next(const AVInputFormat *f);
* if f is non-NULL, returns the next registered output format after f
* or NULL if f is the last one.
*/
+attribute_deprecated
AVOutputFormat *av_oformat_next(const AVOutputFormat *f);
+#endif
+
+/**
+ * Iterate over all registered muxers.
+ *
+ * @param opaque a pointer where libavformat will store the iteration state. Must
+ * point to NULL to start the iteration.
+ *
+ * @return the next registered muxer or NULL when the iteration is
+ * finished
+ */
+const AVOutputFormat *av_muxer_iterate(void **opaque);
+
+/**
+ * Iterate over all registered demuxers.
+ *
+ * @param opaque a pointer where libavformat will store the iteration state. Must
+ * point to NULL to start the iteration.
+ *
+ * @return the next registered demuxer or NULL when the iteration is
+ * finished
+ */
+const AVInputFormat *av_demuxer_iterate(void **opaque);
/**
* Allocate an AVFormatContext.