diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-26 19:19:18 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-28 18:25:40 +0200 |
commit | e71f26086ab899be7df1efb30b33e0a11973fd8e (patch) | |
tree | e4e1579d6cd528b113512f50d5995b3933b9ded8 /libavcodec/avcodec.h | |
parent | 34e9c9b11192271a4e5d0557441d09686852c771 (diff) | |
download | ffmpeg-e71f26086ab899be7df1efb30b33e0a11973fd8e.tar.gz |
lavu: add av_get_pix_fmt_name() convenience function
Also deprecate avcodec_get_pix_fmt_name() in its favor.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index fdc86bb7c0..ef539a2a36 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3391,12 +3391,16 @@ 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 /** * Return the short name for a pixel format. * * \see av_get_pix_fmt(), av_get_pix_fmt_string(). + * @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); |