From d66bfc6ea00442cf012d15698e09795096e870d1 Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Sat, 30 May 2009 02:49:36 -0400 Subject: Various changes --- test/component-alpha.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/test/component-alpha.c b/test/component-alpha.c index 97229e0b..117eb31c 100644 --- a/test/component-alpha.c +++ b/test/component-alpha.c @@ -27,6 +27,21 @@ static pixman_trap_t traps[] = { { I2F (35), I2F (38), I2F (35) }, { I2F (35), I2F (38), I2F (175) } }, + { { I2F (137), I2F (140), I2F (75) }, + { I2F (137), I2F (140), I2F (83) } + }, + { { I2F (131), I2F (146), I2F (75) }, + { I2F (131), I2F (146), I2F (76) } + }, + { { I2F (155), I2F (158), I2F (74) }, + { I2F (155), I2F (158), I2F (83) } + }, + { { I2F (149), I2F (152), I2F (77) }, + { I2F (149), I2F (152), I2F (83) } + }, + { { I2F (149), I2F (152), I2F (75) }, + { I2F (149), I2F (152), I2F (76) } + }, { { I2F (63), I2F (66), I2F (35) }, { I2F (63), I2F (66), I2F (175) } }, @@ -36,6 +51,7 @@ static pixman_trap_t traps[] = { { I2F (35), I2F (238), F2F (45.5) }, { I2F (35), I2F (238), F2F (46.5) } } + }; int @@ -121,7 +137,10 @@ main (int argc, char **argv) #endif avg = 1/9.0 * f + 2/9.0 * s + 3/9.0 * m + 2/9.0 * p + 1/9.0 * l; - +#if 0 + avg = 1/3.0 * s + 1/3.0 * m + 1/3.0 * p; +#endif + filtered[i * 3 * WIDTH + j] = avg + 0.5; } } @@ -160,7 +179,7 @@ main (int argc, char **argv) real = pow (*c / 255.0, 1/2.2) * 255; - *c = (pow (*c / 255.0, 1/2.2) * 255 + 0.5); + *c = (pow (*c / 255.0, 1/1.3) * 255 + 0.5); er = ((real - *c) / real) * 100; -- cgit v1.2.3