| /xsrc/external/mit/pixman/dist/demos/ |
| H A D | screen-test.c | 9 #define WIDTH 40 macro 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, HEIGH [all...] |
| H A D | convolution-test.c | 9 #define WIDTH 200 macro 14 uint32_t *src = malloc (WIDTH * HEIGHT * 4); 15 uint32_t *mask = malloc (WIDTH * HEIGHT * 4); 16 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 28 for (i = 0; i < WIDTH * HEIGHT; ++i) 35 simg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src, WIDTH * 4); 36 mimg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, mask, WIDTH * 4); 37 dimg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGH [all...] |
| H A D | trap-test.c | 10 #define WIDTH 200 macro 18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 19 uint32_t *mbits = malloc (WIDTH * HEIGHT); 21 memset (mbits, 0, WIDTH * HEIGHT); 22 memset (bits, 0xff, WIDTH * HEIGHT * 4); 32 mask_img = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, mbits, WIDTH); 34 dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4); 40 0, 0, 0, 0, 0, 0, WIDTH, HEIGH [all...] |
| H A D | alpha-test.c | 9 #define WIDTH 400 macro 12 uint32_t *alpha = malloc (WIDTH * HEIGHT * 4); 13 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 14 uint32_t *src = malloc (WIDTH * HEIGHT * 4); 26 pixman_point_fixed_t p2 = { pixman_double_to_fixed (WIDTH), 50 for (i = 0; i < WIDTH * HEIGHT; ++i) 54 WIDTH, HEIGHT, 56 WIDTH * 4); 58 for (i = 0; i < WIDTH * HEIGHT; ++i) 62 WIDTH, HEIGH [all...] |
| H A D | srgb-test.c | 48 #define WIDTH 400 macro 53 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 54 uint32_t *src1 = malloc (WIDTH * HEIGHT * 4); 58 WIDTH, HEIGHT, 60 WIDTH * 4); 62 WIDTH, HEIGHT, 64 WIDTH * 4); 68 p = WIDTH * y; 69 for (x = 0; x < WIDTH; x ++) 71 alpha = (float) x / WIDTH; [all...] |
| H A D | clip-test.c | 6 #define WIDTH 200 macro 12 uint32_t *pixels = malloc (WIDTH * HEIGHT * 4); 15 for (i = 0; i < WIDTH * HEIGHT; ++i) 19 WIDTH, HEIGHT, 21 WIDTH * 4); 36 pixman_point_fixed_t p2 = { pixman_int_to_fixed (WIDTH), 71 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 82 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 88 printf ("w, h: %x\n", src[(HEIGHT - 1) * 100 + (WIDTH - 1)]);
|
| H A D | linear-gradient.c | 4 #define WIDTH 1024 macro 27 WIDTH, HEIGHT, 31 p2.x = WIDTH << 16; 43 WIDTH, HEIGHT);
|
| H A D | checkerboard.c | 9 #define WIDTH 400 macro 24 WIDTH, HEIGHT, 28 WIDTH, HEIGHT, 33 for (j = 0; j < WIDTH / TILE_SIZE; ++j) 35 double u = (double)(j + 1) / (WIDTH / TILE_SIZE); 66 WIDTH, HEIGHT);
|
| H A D | gradient-test.c | 9 #define WIDTH 400 macro 12 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 45 for (i = 0; i < WIDTH * HEIGHT; ++i) 49 WIDTH, HEIGHT, 51 WIDTH * 4); 79 0, 0, 0, 0, 0, 0, 10 * WIDTH, HEIGHT); 83 printf ("w, h: %x\n", dest[(HEIGHT - 1) * 100 + (WIDTH - 1)]);
|
| H A D | clip-in.c | 13 #define WIDTH 200 macro 19 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 28 pixman_image_t *dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, 4 * WIDTH); 30 memset (bits, 0xff, WIDTH * HEIGHT * 4);
|
| H A D | tri-test.c | 10 #define WIDTH 200 macro 25 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 28 for (i = 0; i < WIDTH * HEIGHT; ++i) 32 dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4);
|
| H A D | composite-test.c | 8 #define WIDTH 80 macro 94 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 95 uint32_t *src = malloc (WIDTH * HEIGHT * 4); 99 pixman_point_fixed_t p2 = { (WIDTH + 10) << 16, (HEIGHT - 10) << 16 }; 125 parrot = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, (uint32_t *)parrot_bits, WIDTH * 4); 130 WIDTH, HEIGHT, 132 WIDTH * 4); 149 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 151 0, 0, 0, 0, 0, 0, WIDTH, HEIGH [all...] |
| H A D | srgb-trap-test.c | 8 #define WIDTH 600 macro 89 d = malloc (WIDTH * HEIGHT * 4); 92 PIXMAN_a8r8g8b8_sRGB, WIDTH, HEIGHT, d, WIDTH * 4); 94 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, d, WIDTH * 4); 99 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
| /xsrc/external/mit/pixman/dist/test/ |
| H A D | alpha-loop.c | 5 #define WIDTH 400 macro 17 alpha = make_random_bytes (WIDTH * HEIGHT); 18 src = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4); 19 dest = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4); 21 a = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, (uint32_t *)alpha, WIDTH); 22 d = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, dest, WIDTH * 4); 23 s = pixman_image_create_bits (PIXMAN_a2r10g10b10, WIDTH, HEIGHT, src, WIDTH * [all...] |
| H A D | a1-trap-test.c | 10 #define WIDTH 20 macro 18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 19 uint32_t *mbits = malloc (WIDTH * HEIGHT); 21 memset (mbits, 0, WIDTH * HEIGHT); 22 memset (bits, 0xff, WIDTH * HEIGHT * 4); 33 PIXMAN_a1, WIDTH, HEIGHT, mbits, WIDTH); 36 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4); 42 0, 0, 0, 0, 0, 0, WIDTH, HEIGH [all...] |
| H A D | rotate-test.c | 4 #define WIDTH 32 macro 27 { { { v00, v01, WIDTH * pixman_fixed_1 / 2 }, \ 68 orig = bytes = malloc (WIDTH * HEIGHT * 4); 69 prng_randmemset (bytes, WIDTH * HEIGHT * 4, 0); 71 stride = WIDTH * 4; 79 format, WIDTH, HEIGHT, bytes, stride); 103 0, 0, 0, 0, WIDTH / 2, HEIGHT / 2, 104 WIDTH, HEIGHT);
|
| H A D | combiner-test.c | 91 #define WIDTH 512 macro 117 argb_t *src_bytes = malloc (WIDTH * sizeof (argb_t)); 118 argb_t *mask_bytes = malloc (WIDTH * sizeof (argb_t)); 119 argb_t *dest_bytes = malloc (WIDTH * sizeof (argb_t)); 138 random_floats (src_bytes, WIDTH); 139 random_floats (mask_bytes, WIDTH); 140 random_floats (dest_bytes, WIDTH); 146 WIDTH);
|
| H A D | alphamap.c | 5 #define WIDTH 48 macro 47 bits = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * bpp); 49 bits = (uint32_t *)make_random_floats (WIDTH * HEIGHT * bpp); 51 image = pixman_image_create_bits (format, WIDTH, HEIGHT, bits, WIDTH * bpp); 67 if (x - orig_x >= 0 && x - orig_x < WIDTH && 85 r = bits[y * WIDTH + x]; 90 r = ((uint32_t *)bits)[y * WIDTH + x] >> 30; 95 r = ((uint32_t *)bits)[y * WIDTH + x] >> 24; 100 r = ((uint16_t *)bits)[y * WIDTH [all...] |
| H A D | gradient-crash-test.c | 8 #define WIDTH 400 macro 11 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 41 { pixman_double_to_fixed (WIDTH / 8.), pixman_int_to_fixed (0) } }, 42 { { pixman_double_to_fixed (WIDTH / 2.0), pixman_double_to_fixed (HEIGHT / 2.0) }, 43 { pixman_double_to_fixed (WIDTH / 2.0), pixman_double_to_fixed (HEIGHT / 2.0) } } 90 for (i = 0; i < WIDTH * HEIGHT; ++i) 94 WIDTH, HEIGHT, 96 WIDTH * 4); 145 0, 0, 0, 0, 0, 0, 10 * WIDTH, HEIGHT);
|
| H A D | radial-invalid.c | 6 #define WIDTH 100 macro 14 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, NULL, -1); 51 0, 0, WIDTH, HEIGHT);
|
| H A D | solid-test.c | 32 #define WIDTH 32 macro 187 stride = (WIDTH * PIXMAN_FORMAT_BPP (fmt) + 31) / 32 * 4; 188 img = pixman_image_create_bits (fmt, WIDTH, HEIGHT, buffer, stride); 195 prng_randmemset (buffer, WIDTH * HEIGHT * 4, 0); 272 uint32_t src_buf[WIDTH * HEIGHT]; 273 uint32_t dst_buf[WIDTH * HEIGHT]; 274 uint32_t mask_buf[WIDTH * HEIGHT]; 323 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| H A D | drawstencil.c | 17 #define WIDTH 256 macro 20 static GLubyte Image[HEIGHT][WIDTH]; 111 GLint x0 = 5, y0= 5, x1 = 10 + WIDTH, y1 = 5; 112 GLubyte tmp[HEIGHT][WIDTH]; 119 DrawStencilPixels(x0, y0, WIDTH, HEIGHT, (GLubyte*) Image); 122 glDrawPixels(WIDTH, HEIGHT, GL_STENCIL_INDEX, 126 glReadPixels(x0, y0, WIDTH, HEIGHT, GL_STENCIL_INDEX, GL_UNSIGNED_BYTE, tmp); 130 for (j = 0; j < WIDTH; j++) { 138 glDrawPixels(WIDTH, HEIGHT, GL_LUMINANCE, GL_UNSIGNED_BYTE, tmp); 202 for (j = 0; j < WIDTH; [all...] |
| H A D | mipgen.c | 55 #define WIDTH 2 macro 70 GLubyte img[WIDTH*HEIGHT*3]; 73 for (j = 0; j < WIDTH; j++) { 74 int k = (i * WIDTH + j) * 3; 90 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, WIDTH, HEIGHT, 0,
|
| H A D | glutfx.c | 23 #define WIDTH 640 macro 74 if (width > WIDTH) 75 width = WIDTH; 160 glutInitWindowSize(WIDTH, HEIGHT);
|
| /xsrc/external/mit/mesa-demos/dist/src/demos/ |
| H A D | paltex.c | 95 #define WIDTH 32 macro 96 /* 257 = HEIGHT * WIDTH + 1 (for trailing '\0') */ 160 WIDTH, HEIGHT, /* width, height */ 175 #undef WIDTH 186 #define WIDTH 256 macro 187 static char texture[HEIGHT][WIDTH]; 197 for (i = 0; i < WIDTH; i++) { 232 WIDTH, HEIGHT, /* width, height */
|