29 {
30
31
32
33
35 int opaqueCounter0 = 0;
36 int opaqueCounter1 = 0;
37 int opaqueCounter2 = 0;
38 for (
i = 0;
i <= 255;
i++) {
42 opaqueCounter0 += (result0 == 0xFF);
43 opaqueCounter1 += (result1 == 0xFF);
44 opaqueCounter2 += (result2 == 0xFF);
45 }
46#if 0
48 opaqueCounter0, opaqueCounter1, opaqueCounter2);
49#endif
50
54
55
56 for (
i = 0;
i <= 255;
i++) {
57 for (
unsigned dst = 0;
dst <= 255;
dst++) {
62
65 }
68
69#if 0
70
71 if (r1 != r2) {
74 }
75#endif
76 }
77 }
78}
static int test_srcover2(unsigned dst, unsigned alpha)
static int test_srcover0(unsigned dst, unsigned alpha)
static int test_srcover1(unsigned dst, unsigned alpha)
#define REPORTER_ASSERT(r, cond,...)
#define INFOF(REPORTER,...)
static float max(float r, float g, float b)