[cairo] [PATCH 2/3 v2] test: Test a variety of scales when downscaling
Uli Schlachter
psychon at znc.in
Tue Sep 10 01:47:26 PDT 2013
On 10.09.2013 00:59, Bryce W. Harrington wrote:
> Downscaling from 96 to 24 is easy since it's an even multiple, so try
> scaling by -1 pixel too.
>
> This adds a 1:1 scaling test case as well, which should pass through the
> image unchanged.
>
> Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
> ---
> test/pixman-downscale.c | 25 +++++++++++++++++++------
> test/reference/pixman-downscale-24.ref.png | Bin 0 -> 191 bytes
> test/reference/pixman-downscale-95.ref.png | Bin 0 -> 285 bytes
> test/reference/pixman-downscale-96.ref.png | Bin 0 -> 301 bytes
> test/reference/pixman-downscale.ref.png | Bin 191 -> 0 bytes
> 5 files changed, 19 insertions(+), 6 deletions(-)
> create mode 100644 test/reference/pixman-downscale-24.ref.png
> create mode 100644 test/reference/pixman-downscale-95.ref.png
> create mode 100644 test/reference/pixman-downscale-96.ref.png
> delete mode 100644 test/reference/pixman-downscale.ref.png
[...]
Test results:
pixman-downscale-95 and pixman-downscale-24 always fail (as expected) and
pixman-downscale-96 mostly succeeds, but fails for similar surfaces (run
cairo-test-suite with -a). No idea why similar surfaces should influence
anything here.
Anyone has an idea?
Uli
P.S.: As you see, no real complaints against this patch series. Some of the
failures look weird, but I'd rather have Chris decide if this is fine or not,
since he has much more of a clue than I do.
--
- Buck, when, exactly, did you lose your mind?
- Three months ago. I woke up one morning married to a pineapple.
An ugly pineapple... But I loved her.
More information about the cairo
mailing list