4 static const pixman_op_t pdf_ops[] =
11 PIXMAN_OP_COLOR_DODGE,
18 PIXMAN_OP_HSL_SATURATION,
20 PIXMAN_OP_HSL_LUMINOSITY
23 static const uint32_t pixels[] =
39 enable_divbyzero_exceptions();
41 for (o = 0; o < ARRAY_LENGTH (pdf_ops); ++o)
43 pixman_op_t op = pdf_ops[o];
45 for (s = 0; s < ARRAY_LENGTH (pixels); ++s)
49 src = pixman_image_create_bits (
50 PIXMAN_a8r8g8b8, 1, 1, (uint32_t *)&(pixels[s]), 4);
52 for (m = -1; m < ARRAY_LENGTH (pixels); ++m)
54 pixman_image_t *msk = NULL;
57 msk = pixman_image_create_bits (
58 PIXMAN_a8r8g8b8, 1, 1, (uint32_t *)&(pixels[m]), 4);
61 for (d = 0; d < ARRAY_LENGTH (pixels); ++d)
64 uint32_t dp = pixels[d];
66 dst = pixman_image_create_bits (
67 PIXMAN_a8r8g8b8, 1, 1, &dp, 4);
69 pixman_image_composite (op, src, msk, dst,
70 0, 0, 0, 0, 0, 0, 1, 1);
72 pixman_image_unref (dst);
75 pixman_image_unref (msk);
78 pixman_image_unref (src);