summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@redhat.com>2009-05-30 02:49:36 -0400
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-10-04 15:41:11 -0400
commitd66bfc6ea00442cf012d15698e09795096e870d1 (patch)
treed9eb7a97a60d4c645fccb4afe46202bfaa88a65f
parent698b34b2bc630c857fdbf88d636bd3380ae9dd84 (diff)
Various changescomponent
-rw-r--r--test/component-alpha.c23
1 files 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;