diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-14 11:59:25 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-14 12:04:39 +0100 |
commit | d4e74d5d6d67fbe5999aa48b988b49ffe36ea81c (patch) | |
tree | fc3be98913957a665e15b5445a7438dd6e6a040c /libavcodec/avcodec.h | |
parent | e13d5e9a4b5b4de065b00b1caea850cd47fd4b18 (diff) | |
download | ffmpeg-streaming-d4e74d5d6d67fbe5999aa48b988b49ffe36ea81c.zip ffmpeg-streaming-d4e74d5d6d67fbe5999aa48b988b49ffe36ea81c.tar.gz |
Remove deprecation of avcodec_get_chroma_sub_sample.
Add explanations what the difference between the 2 functions are and
when either should be used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index f6e0ee7..368f2c4 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -4580,10 +4580,21 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, */ /** - * @deprecated Use av_pix_fmt_get_chroma_sub_sample + * Utility function to access log2_chroma_w log2_chroma_h from + * the pixel format AVPixFmtDescriptor. + * + * This function asserts that pix_fmt is valid. See av_pix_fmt_get_chroma_sub_sample + * for one that returns a failure code and continues in case of invalid + * pix_fmts. + * + * @param[in] pix_fmt the pixel format + * @param[out] h_shift store log2_chroma_h + * @param[out] v_shift store log2_chroma_w + * + * @see av_pix_fmt_get_chroma_sub_sample */ -void attribute_deprecated avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift); +void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift); /** * Return a value representing the fourCC code associated to the |