Add new test of filter reduction from BILINEAR to NEAREST
authorSøren Sandmann Pedersen <soren.sandmann@gmail.com>
Wed, 31 Aug 2016 05:03:02 +0000 (22:03 -0700)
committerSøren Sandmann Pedersen <soren.sandmann@gmail.com>
Fri, 2 Sep 2016 04:40:11 +0000 (00:40 -0400)
commit76123690139a7f342776a885a7478a6c81712145
tree533c7cc7d9562f99090b9ba4f9c94bb40db4b801
parenteb4a832ec22e4257b59cac752b02a1d27f4363bc
Add new test of filter reduction from BILINEAR to NEAREST

This new test tests a bunch of bilinear downscalings, where many have
a transformation such that the BILINEAR filter can be reduced to
NEAREST (and many don't).

A CRC32 is computed for all the resulting images and compared to a
known-good value for both 4-bit and 7-bit interpolation.

V2: Remove leftover comment, some minor formatting fixes, use a
timestamp as the PRNG seed.

Signed-off-by: Søren Sandmann <soren.sandmann@gmail.com>
Reviewed-by: Bill Spitzak <spitzak@gmail.com>
test/Makefile.sources
test/filter-reduction-test.c [new file with mode: 0644]