From fb135139fd3992eb1f0eacc9cfd878e05b95ec46 Mon Sep 17 00:00:00 2001 From: tab Date: Sun, 6 Sep 2015 11:07:20 -0400 Subject: 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 --- libavformat/img2.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat/img2.h') 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); -- cgit v1.2.3