aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-08-17 13:54:49 +0200
committerNicolas George <nicolas.george@normalesup.org>2011-08-22 10:54:44 +0200
commitb3be9f4a88787d2d6692ffced187db677afdc726 (patch)
tree5bfbc8a747d6613676add5e3f91fb9bdcdfaceac /libavcodec/avcodec.h
parent8b52b46c97f2badf6095275f6c5a91ad4c2a9d51 (diff)
downloadffmpeg-b3be9f4a88787d2d6692ffced187db677afdc726.tar.gz
lavc: add a table of all codecs names.
The table is automatically generated from the definition of enum CodecID in avcodec.h and contains the name of all known codecs, even those for which no encoder nor decoder exists or is enabled. The table is queried using the avcodec_get_name function. If CONFIG_SMALL is true, the table is not compiled in; the avcodec_get_name looks for names in the list of available decoders and encoders.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 2617f65ccc..2c5e70b136 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3433,6 +3433,12 @@ int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width,
int avpicture_get_size(enum PixelFormat pix_fmt, int width, int height);
void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift);
+/**
+ * Get the name of a codec.
+ * @return a static string identifying the codec; never NULL
+ */
+const char *avcodec_get_name(enum CodecID id);
+
#if FF_API_GET_PIX_FMT_NAME
/**
* Return the short name for a pixel format.