diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2013-03-03 08:23:08 -0800 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-03-07 09:35:24 +0200 |
commit | 54b298fe5650c124c29a8283cfd05024ac409d3a (patch) | |
tree | be859b9f5bf9bd26c815acb7f759200f318def2c /libavcodec | |
parent | 64e4386974b976070fc22ec3153e163de4a3e14e (diff) | |
download | ffmpeg-54b298fe5650c124c29a8283cfd05024ac409d3a.tar.gz |
lavc: Deprecate the deinterlace functions in libavcodec
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avcodec.h | 5 | ||||
-rw-r--r-- | libavcodec/imgconvert.c | 4 | ||||
-rw-r--r-- | libavcodec/version.h | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7a2477516d..120bfbcaae 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -4267,11 +4267,16 @@ int avpicture_layout(const AVPicture* src, enum AVPixelFormat pix_fmt, */ int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height); +#if FF_API_DEINTERLACE /** * deinterlace - if not supported return -1 + * + * @deprecated - use yadif (in libavfilter) instead */ +attribute_deprecated int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height); +#endif /** * Copy image src to dst. Wraps av_picture_data_copy() above. */ diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 36c24dfa88..8f8b6e3914 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -366,6 +366,8 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, return 0; } +#if FF_API_DEINTERLACE + #if !HAVE_MMX_EXTERNAL /* filter parameters: [-1 4 2 4 -1] // 8 */ static void deinterlace_line_c(uint8_t *dst, @@ -524,3 +526,5 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, emms_c(); return 0; } + +#endif /* FF_API_DEINTERLACE */ diff --git a/libavcodec/version.h b/libavcodec/version.h index 7a024d38a1..5b65c2d6a0 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -97,5 +97,8 @@ #ifndef FF_API_IDCT #define FF_API_IDCT (LIBAVCODEC_VERSION_MAJOR < 55) #endif +#ifndef FF_API_DEINTERLACE +#define FF_API_DEINTERLACE (LIBAVCODEC_VERSION_MAJOR < 56) +#endif #endif /* AVCODEC_VERSION_H */ |