simplify the main loop for downscaling

(part of bug #254 investigation)

no speed change observed.

Change-Id: Ie21b33171def367f37643fef6a0bd378e49468c7
This commit is contained in:
Pascal Massimino
2015-08-03 16:49:00 +02:00
parent 585d93dbba
commit c455676680
4 changed files with 9 additions and 8 deletions

View File

@ -22,7 +22,7 @@ static void ImportRow(WebPRescaler* const wrk,
const int x_stride = wrk->num_channels;
const int x_out_max = wrk->dst_width * wrk->num_channels;
const int fx_scale = wrk->fx_scale;
const int x_add = wrk->x_add;
const int x_add = wrk->x_add - wrk->x_sub;
const int x_sub = wrk->x_sub;
int* frow = wrk->frow + channel;
int* irow = wrk->irow + channel;