simplify the PackARGB signature

Change-Id: I51570e362126b2681f93211a4f59a3fedb5fd4b5
This commit is contained in:
Pascal Massimino
2015-01-01 12:13:45 -08:00
parent 4e2589ff81
commit 72d573f693
4 changed files with 12 additions and 10 deletions

View File

@ -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;