From: Søren Sandmann Pedersen Date: Thu, 13 Sep 2012 23:29:19 +0000 (-0400) Subject: affine-test: Print out the transformation matrix when verbose X-Git-Tag: pixman-0.27.4~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5c721768c9811ce22bc0cd50bdf1c7bccc264e0;p=platform%2Fupstream%2Fpixman.git affine-test: Print out the transformation matrix when verbose Printing out the translation and scale is a bit misleading because the actual transformation matrix can be modified in various other ways. Instead simply print the whole transformation matrix that is actually used. --- diff --git a/test/affine-test.c b/test/affine-test.c index 6827cc3..7bc28b4 100644 --- a/test/affine-test.c +++ b/test/affine-test.c @@ -200,11 +200,19 @@ test_composite (int testnum, if (verbose) { +#define M(r,c) \ + transform.matrix[r][c] + printf ("src_fmt=%08X, dst_fmt=%08X\n", src_fmt, dst_fmt); - printf ("op=%d, scale_x=%d, scale_y=%d, repeat=%d\n", - op, scale_x, scale_y, repeat); - printf ("translate_x=%d, translate_y=%d\n", - translate_x, translate_y); + printf ("op=%d, repeat=%d, transform=\n", + op, repeat); + printf (" { { { 0x%08x, 0x%08x, 0x%08x },\n" + " { 0x%08x, 0x%08x, 0x%08x },\n" + " { 0x%08x, 0x%08x, 0x%08x },\n" + " } };\n", + M(0,0), M(0,1), M(0,2), + M(1,0), M(1,1), M(1,2), + M(2,0), M(2,1), M(2,2)); printf ("src_width=%d, src_height=%d, dst_width=%d, dst_height=%d\n", src_width, src_height, dst_width, dst_height); printf ("src_x=%d, src_y=%d, dst_x=%d, dst_y=%d\n",