summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-12 15:06:04 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-12 15:06:04 +0000
commit81c1ecabab93ad279092925872cfd13db07a6c6e (patch)
treed6134165b62ed1c8f89af474f031034e68d95c68 /libavcodec
parent7906e2b974566c897526a8a7561b380687af8323 (diff)
Deprecate ff_get_plane_bytewidth() in favor of
av_get_image_linesize(). Originally committed as revision 24787 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/imgconvert.c4
-rw-r--r--libavcodec/imgconvert.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 65b40fd435..33bc35477b 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -794,10 +794,12 @@ void ff_img_copy_plane(uint8_t *dst, int dst_wrap,
}
}
+#if LIBAVCODEC_VERSION_MAJOR < 53
int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane)
{
return av_get_image_linesize(pix_fmt, width, plane);
}
+#endif
void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
uint8_t *src_data[4], int src_linesize[4],
@@ -812,7 +814,7 @@ void av_picture_data_copy(uint8_t *dst_data[4], int dst_linesize[4],
case FF_PIXEL_PLANAR:
for(i = 0; i < pf->nb_channels; i++) {
int h;
- int bwidth = ff_get_plane_bytewidth(pix_fmt, width, i);
+ int bwidth = av_get_image_linesize(pix_fmt, width, i);
h = height;
if (i == 1 || i == 2) {
h= -((-height)>>desc->log2_chroma_h);
diff --git a/libavcodec/imgconvert.h b/libavcodec/imgconvert.h
index f09fcbfc0e..0f2c2e1713 100644
--- a/libavcodec/imgconvert.h
+++ b/libavcodec/imgconvert.h
@@ -33,9 +33,10 @@ int ff_fill_linesize(AVPicture *picture, enum PixelFormat pix_fmt, int width);
attribute_deprecated
int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, int height);
-#endif
+attribute_deprecated
int ff_get_plane_bytewidth(enum PixelFormat pix_fmt, int width, int plane);
+#endif
int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt);