[cairo] [PATCH 0/3 v2] test: Add test for image downscaling
Bryce W. Harrington
b.harrington at samsung.com
Mon Sep 9 15:59:49 PDT 2013
These are tests for the recently integrated downscaling support. This
patchset includes some simple tests for three scaling factors, for each
of the filter options.
This patchset is also posted to the 'downscaling' branch in my fdo git
repo:
http://cgit.freedesktop.org/~bryce/cairo/
Changes since v1:
* Replaced the 95-pixel reference images with image backend's output
* Added 'downscale' keyword to tests
* Revised cover letter (below)
Test Results
------------
Running 'cairo-test-suite -k downscale' with this patch produces these
results:
1.12.16 Trunk
Passed: 235 224
Failed: 185 195
Expected Failed: 0 0
Error: 0 0
Crashed: 0 0
Untested: 0 0
Total: 420 420
The first column is the cairo 1.12.16 release, which did not include the
new pixman downscaling patch, and the second column is current trunk
which does include it. Both were built with pixman 0.31.1 (which the
downscaling patch requires).
The change in results is principally in the 24 pixel case. In this
case, since there is an easy 1:4 downscaling, my expectation is that all
filters should result in a crisp image with no blurring. And in 1.12.16
this is indeed pretty much what happens, so this is a legitimate
regression.
The other change in results is a few of the 95 pixel cases, which go
from failing in 1.12.16 to passing with trunk. This test case exercises
the previously bugged behavior. Here we're taking the pixman results as
truth.
Other failures were unchanged from 1.12.16 to trunk. The image16
failures I believe to just be differences in how colors are handled, but
I'm not certain. So possibly these can be considered acceptable backend
behavior.
The ps2/ps3 tests appear to be blurring the edges even when not
necessary. Perhaps this is just acceptable backend but visually it's
clearly worse, so unless there's a Postscript specification with the
intent that it looks this way, I count it as a fail.
Bryce Harrington (3):
test: Add test for image downscaling
test: Test a variety of scales when downscaling
test: Exercise image scaling quality when downscaling
test/Makefile.sources | 1 +
test/pixman-downscale.c | 199 ++++++++++++++++++++
test/quad-color.png | Bin 0 -> 301 bytes
test/reference/pixman-downscale-best-24.ref.png | Bin 0 -> 191 bytes
test/reference/pixman-downscale-best-95.ref.png | Bin 0 -> 685 bytes
test/reference/pixman-downscale-best-96.ref.png | Bin 0 -> 301 bytes
.../reference/pixman-downscale-bilinear-24.ref.png | Bin 0 -> 191 bytes
.../reference/pixman-downscale-bilinear-95.ref.png | Bin 0 -> 685 bytes
.../reference/pixman-downscale-bilinear-96.ref.png | Bin 0 -> 301 bytes
test/reference/pixman-downscale-fast-24.ref.png | Bin 0 -> 191 bytes
test/reference/pixman-downscale-fast-95.ref.png | Bin 0 -> 685 bytes
test/reference/pixman-downscale-fast-96.ref.png | Bin 0 -> 301 bytes
test/reference/pixman-downscale-good-24.ref.png | Bin 0 -> 191 bytes
test/reference/pixman-downscale-good-95.ref.png | Bin 0 -> 685 bytes
test/reference/pixman-downscale-good-96.ref.png | Bin 0 -> 301 bytes
test/reference/pixman-downscale-nearest-24.ref.png | Bin 0 -> 191 bytes
test/reference/pixman-downscale-nearest-95.ref.png | Bin 0 -> 685 bytes
test/reference/pixman-downscale-nearest-96.ref.png | Bin 0 -> 301 bytes
18 files changed, 200 insertions(+)
create mode 100644 test/pixman-downscale.c
create mode 100644 test/quad-color.png
create mode 100644 test/reference/pixman-downscale-best-24.ref.png
create mode 100644 test/reference/pixman-downscale-best-95.ref.png
create mode 100644 test/reference/pixman-downscale-best-96.ref.png
create mode 100644 test/reference/pixman-downscale-bilinear-24.ref.png
create mode 100644 test/reference/pixman-downscale-bilinear-95.ref.png
create mode 100644 test/reference/pixman-downscale-bilinear-96.ref.png
create mode 100644 test/reference/pixman-downscale-fast-24.ref.png
create mode 100644 test/reference/pixman-downscale-fast-95.ref.png
create mode 100644 test/reference/pixman-downscale-fast-96.ref.png
create mode 100644 test/reference/pixman-downscale-good-24.ref.png
create mode 100644 test/reference/pixman-downscale-good-95.ref.png
create mode 100644 test/reference/pixman-downscale-good-96.ref.png
create mode 100644 test/reference/pixman-downscale-nearest-24.ref.png
create mode 100644 test/reference/pixman-downscale-nearest-95.ref.png
create mode 100644 test/reference/pixman-downscale-nearest-96.ref.png
--
1.7.9.5
More information about the cairo
mailing list