rename swap -> swap_rb

Change-Id: I054a4517376a027611cffb2484b22248adae2b77
This commit is contained in:
Pascal Massimino 2011-04-28 15:55:35 -07:00
parent 10d55bbb06
commit 47c661d50f

View File

@ -234,11 +234,11 @@ static inline int rgb_to_v(int r, int g, int b) {
static int Import(WebPPicture* const picture, static int Import(WebPPicture* const picture,
const uint8_t* const rgb, int rgb_stride, 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; 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 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; const uint8_t* const a_ptr = rgb + 3;
for (y = 0; y < picture->height; ++y) { for (y = 0; y < picture->height; ++y) {