diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-28 02:39:20 +0200 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-05-28 09:44:18 -0400 |
commit | 8f653e28f54d6629c22a7135dff4c32dfc95acda (patch) | |
tree | 23567cae986d63c9e91f6bae94922658b616daac /libavcodec/avcodec.h | |
parent | 26513856d657de3b3afacae7c13fd99a7fe79d05 (diff) | |
download | ffmpeg-8f653e28f54d6629c22a7135dff4c32dfc95acda.tar.gz |
lavu: add av_get_pix_fmt_name() convenience function
Also deprecate avcodec_get_pix_fmt_name() in its favor.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index e067ee0273..ce3a4a6b94 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3306,7 +3306,15 @@ 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); + +#if FF_API_GET_PIX_FMT_NAME +/** + * @deprecated Deprecated in favor of av_get_pix_fmt_name(). + */ +attribute_deprecated const char *avcodec_get_pix_fmt_name(enum PixelFormat pix_fmt); +#endif + void avcodec_set_dimensions(AVCodecContext *s, int width, int height); /** |