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:
authortab <tab@0x09.net>2015-09-06 18:07:20 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-07 03:48:58 +0300
commitfb135139fd3992eb1f0eacc9cfd878e05b95ec46 (patch)
treec08840b331cd163c87f5dee44fb7cbf3a9db438e /libavformat/img2.h
parentb480f0e37a4297f19ab9e2244a232ba9d5baf499 (diff)
avformat: implement query_codec for the image2 muxer.
Allows avformat_query_codec to be used to check for valid image2 encoders. Reuses the existing ff_guess_image2_codec ID table. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/img2.h')
-rw-r--r--libavformat/img2.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/img2.h b/libavformat/img2.h
index f6b9dd9220..deebcc34a7 100644
--- a/libavformat/img2.h
+++ b/libavformat/img2.h
@@ -62,6 +62,13 @@ typedef struct VideoDemuxData {
int ts_from_file;
} VideoDemuxData;
+typedef struct IdStrMap {
+ enum AVCodecID id;
+ const char *str;
+} IdStrMap;
+
+extern const IdStrMap ff_img_tags[];
+
extern const AVOption ff_img_options[];
int ff_img_read_header(AVFormatContext *s1);