# HG changeset patch # User stefano # Date 1273702649 0 # Node ID b6114dd198a950600d5d33d0f6fd21c01a6d0398 # Parent 4c9cebd37fde3b6b4fbd9db33024f58918018dca Doxygen av_codec_get_id() and av_codec_get_tag(). diff -r 4c9cebd37fde -r b6114dd198a9 avformat.h --- a/avformat.h Sun May 09 23:19:19 2010 +0000 +++ b/avformat.h Wed May 12 22:17:29 2010 +0000 @@ -868,8 +868,22 @@ */ 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 */