From 47c661d50f211a6970a02538aa0986a6358d9b18 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 28 Apr 2011 15:55:35 -0700 Subject: [PATCH] rename swap -> swap_rb Change-Id: I054a4517376a027611cffb2484b22248adae2b77 --- src/enc/picture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/enc/picture.c b/src/enc/picture.c index 6c27a15a..1d454be6 100644 --- a/src/enc/picture.c +++ b/src/enc/picture.c @@ -234,11 +234,11 @@ static inline int rgb_to_v(int r, int g, int b) { static int Import(WebPPicture* const picture, const uint8_t* const rgb, int rgb_stride, - int step, int swap, int import_alpha) { + int step, int swap_rb, int import_alpha) { int x, y; - const uint8_t* const r_ptr = rgb + (swap ? 2 : 0); + const uint8_t* const r_ptr = rgb + (swap_rb ? 2 : 0); const uint8_t* const g_ptr = rgb + 1; - const uint8_t* const b_ptr = rgb + (swap ? 0 : 2); + const uint8_t* const b_ptr = rgb + (swap_rb ? 0 : 2); const uint8_t* const a_ptr = rgb + 3; for (y = 0; y < picture->height; ++y) {