diff options
author | Reinhard Tartler <siretart@tauware.de> | 2010-06-26 15:32:27 +0000 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2010-06-26 15:32:27 +0000 |
commit | edf5072fea9955567e9143298491e08eaccde925 (patch) | |
tree | 6557eb408a8db4b8bc39ccdb2fd61e55ecd7007a /libavformat | |
parent | 32fa7cecd7a1585094586d53f513f260a9271891 (diff) |
Doxygen av_codec_get_id() and av_codec_get_tag().
backport r23102 by stefano
Originally committed as revision 23801 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avformat.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 0e93376bdb..dbd22bb80d 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -869,8 +869,22 @@ void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload); */ void av_register_all(void); -/** codec tag <-> codec id */ +/** + * Gets the CodecID for the given codec tag tag. + * If no codec id is found returns CODEC_ID_NONE. + * + * @param tags list of supported codec_id-codec_tag pairs, as stored + * in AVInputFormat.codec_tag and AVOutputFormat.codec_tag + */ enum CodecID av_codec_get_id(const struct AVCodecTag * const *tags, unsigned int tag); + +/** + * Gets the codec tag for the given codec id id. + * If no codec tag is found returns 0. + * + * @param tags list of supported codec_id-codec_tag pairs, as stored + * in AVInputFormat.codec_tag and AVOutputFormat.codec_tag + */ unsigned int av_codec_get_tag(const struct AVCodecTag * const *tags, enum CodecID id); /* media file input */ |