Extend scaling-crash-test in various ways
authorSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 28 Jul 2010 06:11:08 +0000 (02:11 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 8 Aug 2010 17:57:39 +0000 (13:57 -0400)
commit5b289d39cfd5e5cd8b1e0a7b654574ed3e7e90ac
tree88ea175aa3ec70453081d5c6ec9c3033c21e1ccc
parent71ff55a3e567ace21e9120f826270253e7ec5edd
Extend scaling-crash-test in various ways

This extends scaling-crash-test to test some more things:

- All combinations of NEAREST/BILINEAR/CONVOLUTION filters and
  NORMAL/PAD/REFLECT repeat modes.

- Tests various scale factors very close to 1/7th such that the source
  area is very close to edge of the source image.

- The same things, only with scale factors very close to 1/32767th.

- Enables the commented-out tests for accessing memory outside the
  source buffer.

Also there is now a border around the source buffer which has a
different color than the source buffer itself so that if we sample
outside, it will show up.

Finally, the test now allows the destination buffer to not be changed
at all. This allows pixman to simply bail out in cases where the
transformation too strange.
test/scaling-crash-test.c