(RPNG) Optimize png_reverse_filter_adam7_deinterlace_pass

This commit is contained in:
twinaphex 2020-08-19 10:05:09 +02:00
parent 33f9ef90d8
commit a283b71261

View File

@ -469,9 +469,12 @@ static void png_reverse_filter_adam7_deinterlace_pass(uint32_t *data,
y++, data += ihdr->width * pass->stride_y, input += pass_width)
{
uint32_t *out = data;
const uint32_t *input_ptr = NULL;
for (x = 0; x < pass_width; x++, out += pass->stride_x)
*out = input[x];
for ( input_ptr = &input[0]
; input_ptr < input + pass_width
; input_ptr++, out += pass->stride_x)
*out = *input_ptr;
}
}