summaryrefslogtreecommitdiff
path: root/libs/pixman-0.40.0/test/alpha-loop.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-12 23:53:22 -0600
committersanine <sanine.not@pm.me>2023-02-12 23:53:22 -0600
commitf1fe73d1909a2448a004a88362a1a532d0d4f7c3 (patch)
treeab37ae3837e2f858de2932bcee9f26e69fab3db1 /libs/pixman-0.40.0/test/alpha-loop.c
parentf567ea1e2798fd3156a416e61f083ea3e6b95719 (diff)
switch to tinyobj and nanovg from assimp and cairo
Diffstat (limited to 'libs/pixman-0.40.0/test/alpha-loop.c')
-rw-r--r--libs/pixman-0.40.0/test/alpha-loop.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/libs/pixman-0.40.0/test/alpha-loop.c b/libs/pixman-0.40.0/test/alpha-loop.c
deleted file mode 100644
index 4d4384d..0000000
--- a/libs/pixman-0.40.0/test/alpha-loop.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include "utils.h"
-
-#define WIDTH 400
-#define HEIGHT 200
-
-int
-main (int argc, char **argv)
-{
- pixman_image_t *a, *d, *s;
- uint8_t *alpha;
- uint32_t *src, *dest;
-
- prng_srand (0);
-
- alpha = make_random_bytes (WIDTH * HEIGHT);
- src = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4);
- dest = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4);
-
- a = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, (uint32_t *)alpha, WIDTH);
- d = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, dest, WIDTH * 4);
- s = pixman_image_create_bits (PIXMAN_a2r10g10b10, WIDTH, HEIGHT, src, WIDTH * 4);
-
- fail_after (5, "Infinite loop detected: 5 seconds without progress\n");
-
- pixman_image_set_alpha_map (s, a, 0, 0);
- pixman_image_set_alpha_map (a, s, 0, 0);
-
- pixman_image_composite (PIXMAN_OP_SRC, s, NULL, d, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
-
- pixman_image_unref (s);
-
- return 0;
-}