mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
simplify the PackARGB signature
Change-Id: I51570e362126b2681f93211a4f59a3fedb5fd4b5
This commit is contained in:
@ -1062,15 +1062,16 @@ static int Import(WebPPicture* const picture,
|
||||
|
||||
VP8EncDspARGBInit();
|
||||
|
||||
assert(step >= (import_alpha ? 4 : 3));
|
||||
if (import_alpha) {
|
||||
assert(step == 4);
|
||||
for (y = 0; y < height; ++y) {
|
||||
uint32_t* const dst = &picture->argb[y * picture->argb_stride];
|
||||
const int offset = y * rgb_stride;
|
||||
VP8PackARGB(a_ptr + offset, r_ptr + offset, g_ptr + offset,
|
||||
b_ptr + offset, width, step, dst);
|
||||
b_ptr + offset, width, dst);
|
||||
}
|
||||
} else {
|
||||
assert(step >= 3);
|
||||
for (y = 0; y < height; ++y) {
|
||||
uint32_t* const dst = &picture->argb[y * picture->argb_stride];
|
||||
const int offset = y * rgb_stride;
|
||||
|
Reference in New Issue
Block a user