Home | History | Annotate | Download | only in demos

Lines Matching refs:WIDTH

9 #define WIDTH 40
12 uint32_t *src1 = malloc (WIDTH * HEIGHT * 4);
13 uint32_t *src2 = malloc (WIDTH * HEIGHT * 4);
14 uint32_t *src3 = malloc (WIDTH * HEIGHT * 4);
15 uint32_t *dest = malloc (3 * WIDTH * 2 * HEIGHT * 4);
20 for (i = 0; i < WIDTH * HEIGHT; ++i)
27 for (i = 0; i < 3 * WIDTH * 2 * HEIGHT; ++i)
32 simg1 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src1, WIDTH * 4);
33 simg2 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src2, WIDTH * 4);
34 simg3 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src3, WIDTH * 4);
35 dimg = pixman_image_create_bits (PIXMAN_a8r8g8b8, 3 * WIDTH, 2 * HEIGHT, dest, 3 * WIDTH * 4);
37 pixman_image_composite (PIXMAN_OP_SCREEN, simg1, NULL, dimg, 0, 0, 0, 0, WIDTH, HEIGHT / 4, WIDTH, HEIGHT);
38 pixman_image_composite (PIXMAN_OP_SCREEN, simg2, NULL, dimg, 0, 0, 0, 0, (WIDTH/2), HEIGHT / 4 + HEIGHT / 2, WIDTH, HEIGHT);
39 pixman_image_composite (PIXMAN_OP_SCREEN, simg3, NULL, dimg, 0, 0, 0, 0, (4 * WIDTH) / 3, HEIGHT, WIDTH, HEIGHT);