More general BILINEAR=>NEAREST reduction
authorSøren Sandmann Pedersen <soren.sandmann@gmail.com>
Wed, 31 Aug 2016 05:03:03 +0000 (22:03 -0700)
committerSøren Sandmann Pedersen <soren.sandmann@gmail.com>
Fri, 2 Sep 2016 04:40:11 +0000 (00:40 -0400)
commitb9ead7ddf7c2bb373808e59a4f625e2e732ef2e2
treee818114b522118d5d37fe7a5de734b0a144d6c5a
parent76123690139a7f342776a885a7478a6c81712145
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: Søren Sandmann <soren.sandmann@gmail.com>
Reviewed-by: Bill Spitzak <spitzak@gmail.com>
pixman/pixman-image.c