aboutsummaryrefslogtreecommitdiff
path: root/source/convert_from.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2015-10-07 22:30:36 -0700
committerFrank Barchard <fbarchard@google.com>2015-10-07 22:30:36 -0700
commit2e4466e282a54916ba5462e5371901a12be6a00f (patch)
treec8d2867b1ef11187aa5c0e63f909c8a740b5688b /source/convert_from.cc
parent2d601aaf3482720de65cc6d60ec25eb6a4afa46e (diff)
downloadlibyuv-2e4466e282a54916ba5462e5371901a12be6a00f.tar.gz
change all pix parameters to width for consistency
TBR=harryjin@google.com BUG=none Review URL: https://codereview.chromium.org/1398633002 .
Diffstat (limited to 'source/convert_from.cc')
-rw-r--r--source/convert_from.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/convert_from.cc b/source/convert_from.cc
index 347af074..df68f11c 100644
--- a/source/convert_from.cc
+++ b/source/convert_from.cc
@@ -884,7 +884,8 @@ int I420ToARGB1555(const uint8* src_y, int src_stride_y,
#endif
for (y = 0; y < height; ++y) {
- I422ToARGB1555Row(src_y, src_u, src_v, dst_argb1555, &kYuvIConstants, width);
+ I422ToARGB1555Row(src_y, src_u, src_v, dst_argb1555, &kYuvIConstants,
+ width);
dst_argb1555 += dst_stride_argb1555;
src_y += src_stride_y;
if (y & 1) {
@@ -946,7 +947,8 @@ int I420ToARGB4444(const uint8* src_y, int src_stride_y,
#endif
for (y = 0; y < height; ++y) {
- I422ToARGB4444Row(src_y, src_u, src_v, dst_argb4444, &kYuvIConstants, width);
+ I422ToARGB4444Row(src_y, src_u, src_v, dst_argb4444, &kYuvIConstants,
+ width);
dst_argb4444 += dst_stride_argb4444;
src_y += src_stride_y;
if (y & 1) {
@@ -1041,7 +1043,7 @@ int I420ToRGB565Dither(const uint8* src_y, int src_stride_y,
const struct YuvConstants* yuvconstants,
int width) = I422ToARGBRow_C;
void (*ARGBToRGB565DitherRow)(const uint8* src_argb, uint8* dst_rgb,
- const uint32 dither4, int pix) = ARGBToRGB565DitherRow_C;
+ const uint32 dither4, int width) = ARGBToRGB565DitherRow_C;
if (!src_y || !src_u || !src_v || !dst_rgb565 ||
width <= 0 || height == 0) {
return -1;