[FFmpeg-cvslog] r25070 - in trunk/libavcore: imgutils.c imgutils.h
stefano
subversion
Tue Sep 7 23:24:06 CEST 2010
Author: stefano
Date: Tue Sep 7 23:24:06 2010
New Revision: 25070
Log:
Cosmetics: use plural form for *linesizes arguments of
av_image_copy(), more consistent with the rest of the API and more
semantically correct.
Modified:
trunk/libavcore/imgutils.c
trunk/libavcore/imgutils.h
Modified: trunk/libavcore/imgutils.c
==============================================================================
--- trunk/libavcore/imgutils.c Tue Sep 7 23:24:03 2010 (r25069)
+++ trunk/libavcore/imgutils.c Tue Sep 7 23:24:06 2010 (r25070)
@@ -152,8 +152,8 @@ void av_image_copy_plane(uint8_t *
}
}
-void av_image_copy(uint8_t *dst_data[4], int dst_linesize[4],
- const uint8_t *src_data[4], const int src_linesize[4],
+void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
+ const uint8_t *src_data[4], const int src_linesizes[4],
enum PixelFormat pix_fmt, int width, int height)
{
const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[pix_fmt];
@@ -162,8 +162,8 @@ void av_image_copy(uint8_t *dst_data[4],
return;
if (desc->flags & PIX_FMT_PAL) {
- av_image_copy_plane(dst_data[0], dst_linesize[0],
- src_data[0], src_linesize[0],
+ av_image_copy_plane(dst_data[0], dst_linesizes[0],
+ src_data[0], src_linesizes[0],
width, height);
/* copy the palette */
memcpy(dst_data[1], src_data[1], 4*256);
@@ -179,8 +179,8 @@ void av_image_copy(uint8_t *dst_data[4],
if (i == 1 || i == 2) {
h= -((-height)>>desc->log2_chroma_h);
}
- av_image_copy_plane(dst_data[i], dst_linesize[i],
- src_data[i], src_linesize[i],
+ av_image_copy_plane(dst_data[i], dst_linesizes[i],
+ src_data[i], src_linesizes[i],
bwidth, h);
}
}
Modified: trunk/libavcore/imgutils.h
==============================================================================
--- trunk/libavcore/imgutils.h Tue Sep 7 23:24:03 2010 (r25069)
+++ trunk/libavcore/imgutils.h Tue Sep 7 23:24:06 2010 (r25070)
@@ -96,8 +96,8 @@ void av_image_copy_plane(uint8_t *
* @param dst_linesize linesizes for the image in dst_data
* @param src_linesize linesizes for the image in src_data
*/
-void av_image_copy(uint8_t *dst_data[4], int dst_linesize[4],
- const uint8_t *src_data[4], const int src_linesize[4],
+void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
+ const uint8_t *src_data[4], const int src_linesizes[4],
enum PixelFormat pix_fmt, int width, int height);
/**
More information about the ffmpeg-cvslog
mailing list