aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-12 22:17:29 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-12 22:17:29 +0000
commit7693b93e5ccec1d09170fcc27dcd71a32783447b (patch)
tree6378b03c6a17bab7a0dc05552e51bebec8be6d21
parentc3ab0004ae4dffc32494ae84dd15cfaa909a7884 (diff)
downloadffmpeg-7693b93e5ccec1d09170fcc27dcd71a32783447b.tar.gz
Doxygen av_codec_get_id() and av_codec_get_tag().
Originally committed as revision 23102 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/avformat.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 9928e84dad..823212ccda 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -868,8 +868,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 */