vpx/vpx_scale/generic
Johann e956c00762 Set and use uv_crop_[width|height]
Ensure consistent border extension by rounding uv_crop_* at image
creation time. Where it was rounded problems could arise with the right
and bottom extensions.
When padding = 32, y_width = 64, and y_crop_width = 63:
 (padding + width - crop_width + 1) / 2
 32 + 64 - 63 + 1 should equal 32 *but*
 32 + 1 + 1 equals 34 giving a right buffer of 17 instead of 16.
By calculating uv_crop_* earlier we round up at the appropriate time and
for the same values:
 (y_crop_width + 1) / 2
 63 + 1 / 2
 64
 (padding / 2) + uv_width - uv_crop_width
 16 + 16 - 16
 16

Change-Id: If866cd1b63444771440edb1432280ac83875969b
2014-07-24 15:30:13 -07:00
..
gen_scalers.c Use 'vpx_scale' consistently 2012-12-05 16:05:44 -08:00
vpx_scale.c Move vp8_scale_frame to vpx namespace 2012-12-05 16:05:46 -08:00
yv12config.c Set and use uv_crop_[width|height] 2014-07-24 15:30:13 -07:00
yv12extend.c Set and use uv_crop_[width|height] 2014-07-24 15:30:13 -07:00