mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
rename swap -> swap_rb
Change-Id: I054a4517376a027611cffb2484b22248adae2b77
This commit is contained in:
parent
10d55bbb06
commit
47c661d50f
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user