diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-01-27 13:33:09 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-01-31 16:53:35 +0100 |
commit | dd6d3b0e025cb2a16022665dbb8ab1be18dc05e8 (patch) | |
tree | ad10c16b75add54758d96bc09a9350ce9f22b9cd /libavformat/avformat.h | |
parent | bc901998487bf9b77a423961d9f961bcc28a9291 (diff) | |
download | ffmpeg-dd6d3b0e025cb2a16022665dbb8ab1be18dc05e8.tar.gz |
lavf: add functions for accessing the fourcc<->CodecID mapping tables.
Fixes bug 212.
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 217d8139df..7b67889e73 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1601,6 +1601,30 @@ int av_match_ext(const char *filename, const char *extensions); int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_compliance); /** + * @defgroup riff_fourcc RIFF FourCCs + * @{ + * Get the tables mapping RIFF FourCCs to libavcodec CodecIDs. The tables are + * meant to be passed to av_codec_get_id()/av_codec_get_tag() as in the + * following code: + * @code + * uint32_t tag = MKTAG('H', '2', '6', '4'); + * const struct AVCodecTag *table[] = { avformat_get_riff_video_tags(), 0 }; + * enum CodecID id = av_codec_get_id(table, tag); + * @endcode + */ +/** + * @return the table mapping RIFF FourCCs for video to libavcodec CodecID. + */ +const struct AVCodecTag *avformat_get_riff_video_tags(void); +/** + * @return the table mapping RIFF FourCCs for audio to CodecID. + */ +const struct AVCodecTag *avformat_get_riff_audio_tags(void); +/** + * @} + */ + +/** * @} */ |