diff options
author | Josh de Kock <josh@itanimul.li> | 2018-01-21 16:06:54 +0000 |
---|---|---|
committer | Josh de Kock <josh@itanimul.li> | 2018-02-06 18:57:42 +0000 |
commit | 0694d8702421e7aff1340038559c438b61bb30dd (patch) | |
tree | eb02d480f6f6c75696c9e83f898b13bba586589f /libavformat/avformat.h | |
parent | 598d5f8579b3a048a643486a5f20fc4d479a2017 (diff) |
lavf: add new API for iterating muxers and demuxers
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 31 |
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. |