From cfd6f897c4e960510051d2f81d1da042f3ff8508 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Fri, 20 Feb 2015 23:26:27 +0000 Subject: [PATCH] use named type for pointer BUG=403 TESTED=try bot Review URL: https://webrtc-codereview.appspot.com/38179004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1287 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- source/row_common.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/source/row_common.cc b/source/row_common.cc index 42ab76b76..4e4133b9f 100644 --- a/source/row_common.cc +++ b/source/row_common.cc @@ -2131,17 +2131,17 @@ void I422ToUYVYRow_C(const uint8* src_y, void I422ToRGB565Row_SSSE3(const uint8* src_y, const uint8* src_u, const uint8* src_v, - uint8* rgb_buf, + uint8* dst_rgb565, int width) { SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth); - ARGBToRGB565Row_SSE2(row, rgb_buf, twidth); + ARGBToRGB565Row_SSE2(row, dst_rgb565, twidth); src_y += twidth; src_u += twidth / 2; src_v += twidth / 2; - dst_argb += twidth * 2; + dst_rgb565 += twidth * 2; width -= twidth; } } @@ -2151,18 +2151,18 @@ void I422ToRGB565Row_SSSE3(const uint8* src_y, void I422ToARGB1555Row_SSSE3(const uint8* src_y, const uint8* src_u, const uint8* src_v, - uint8* rgb_buf, + uint8* dst_argb1555, int width) { // Row buffer for intermediate ARGB pixels. SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth); - ARGBToARGB1555Row_SSE2(row, rgb_buf, twidth); + ARGBToARGB1555Row_SSE2(row, dst_argb1555, twidth); src_y += twidth; src_u += twidth / 2; src_v += twidth / 2; - rgb_buf += twidth * 2; + dst_argb1555 += twidth * 2; width -= twidth; } } @@ -2170,18 +2170,18 @@ void I422ToARGB1555Row_SSSE3(const uint8* src_y, void I422ToARGB4444Row_SSSE3(const uint8* src_y, const uint8* src_u, const uint8* src_v, - uint8* rgb_buf, + uint8* dst_argb4444, int width) { // Row buffer for intermediate ARGB pixels. SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; I422ToARGBRow_SSSE3(src_y, src_u, src_v, row, twidth); - ARGBToARGB4444Row_SSE2(row, rgb_buf, twidth); + ARGBToARGB4444Row_SSE2(row, dst_argb4444, twidth); src_y += twidth; src_u += twidth / 2; src_v += twidth / 2; - rgb_buf += twidth * 2; + dst_argb4444 += twidth * 2; width -= twidth; } }