diff dsputil.h @ 12466:0a306a267dbf libavcodec

Reimplement ff_img_copy_plane() as av_image_copy_plane() in libavcore, and deprecate the old function.
author stefano
date Tue, 07 Sep 2010 21:23:45 +0000
parents 4269ae88366b
children 9fef0a8ddd63
line wrap: on
line diff
--- a/dsputil.h	Tue Sep 07 20:46:29 2010 +0000
+++ b/dsputil.h	Tue Sep 07 21:23:45 2010 +0000
@@ -105,7 +105,14 @@
 void ff_ea_idct_put_c(uint8_t *dest, int linesize, DCTELEM *block);
 
 /* 1/2^n downscaling functions from imgconvert.c */
+#if LIBAVCODEC_VERSION_MAJOR < 53
+/**
+ * @deprecated Use av_image_copy_plane() instead.
+ */
+attribute_deprecated
 void ff_img_copy_plane(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height);
+#endif
+
 void ff_shrink22(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height);
 void ff_shrink44(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height);
 void ff_shrink88(uint8_t *dst, int dst_wrap, const uint8_t *src, int src_wrap, int width, int height);