Skip to content
Commit b9ead7dd authored by Søren Sandmann Pedersen's avatar Søren Sandmann Pedersen
Browse files

More general BILINEAR=>NEAREST reduction



Generalize and simplify the code that reduces BILINEAR to NEAREST so
that the reduction happens for all affine transformations where
t00...t12 are integers and (t00 + t01) and (t10 + t11) are both
odd. This is a sufficient condition for the resulting transformed
coordinates to be exactly at the center of a pixel so that BILINEAR
becomes identical to NEAREST.

V2: Address some comments by Bill Spitzak

Signed-off-by: default avatarSøren Sandmann <soren.sandmann@gmail.com>
Reviewed-by: default avatarBill Spitzak <spitzak@gmail.com>
parent 76123690
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment