test: better coverage for BILINEAR->NEAREST filter optimization
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Sun, 22 May 2011 19:16:38 +0000 (22:16 +0300)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 21 Sep 2011 22:55:10 +0000 (18:55 -0400)
commit2a9f88430e7088eccfbbbd6c6b4f4e534126b1e1
tree2daba956e564768a55652c52b1a1651421db2171
parent054922e2fce1f8d9db4b9b756e54b0fa5655956d
test: better coverage for BILINEAR->NEAREST filter optimization

The upcoming optimization which is going to be able to replace BILINEAR filter
with NEAREST where appropriate needs to analyze the transformation matrix
and not to make any mistakes.

The changes to affine-test include:
1. Higher chance of using the same scale factor for x and y axes. This can help
   to stress some special cases (for example the case when both x and y scale
   factors are integer). The same applies to x/y translation.
2. Introduced a small chance for "corrupting" transformation matrix by flipping
   random bits. This supposedly can help to identify the cases when some of the
   fast paths or other code logic is wrongly activated due to insufficient checks.
test/affine-test.c