Skip to content
Snippets Groups Projects
Commit b9ead7dd authored by Søren Sandmann's avatar Søren Sandmann
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
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment