| /xsrc/external/mit/pixman/dist/demos/ |
| screen-test.c | 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) [all...] |
| convolution-test.c | 9 #define WIDTH 200 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, HEIGHT, dest, WIDTH * 4) [all...] |
| trap-test.c | 10 #define WIDTH 200 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, HEIGHT) [all...] |
| alpha-test.c | 9 #define WIDTH 400 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, HEIGHT, [all...] |
| srgb-test.c | 48 #define WIDTH 400 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...] |
| clip-test.c | 6 #define WIDTH 200 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)]);
|
| linear-gradient.c | 4 #define WIDTH 1024 27 WIDTH, HEIGHT, 31 p2.x = WIDTH << 16; 43 WIDTH, HEIGHT);
|
| checkerboard.c | 9 #define WIDTH 400 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);
|
| gradient-test.c | 9 #define WIDTH 400 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)]);
|
| clip-in.c | 13 #define WIDTH 200 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);
|
| tri-test.c | 10 #define WIDTH 200 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);
|
| composite-test.c | 8 #define WIDTH 80 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, HEIGHT) [all...] |
| srgb-trap-test.c | 8 #define WIDTH 600 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/ |
| alpha-loop.c | 5 #define WIDTH 400 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 * 4) [all...] |
| a1-trap-test.c | 10 #define WIDTH 20 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, HEIGHT) [all...] |
| rotate-test.c | 4 #define WIDTH 32 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);
|
| combiner-test.c | 76 random_floats (argb_t *argb, int width) 80 for (i = 0; i < width; ++i) 91 #define WIDTH 512 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); [all...] |
| alphamap.c | 5 #define WIDTH 48 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 + x] >> 12 [all...] |
| gradient-crash-test.c | 8 #define WIDTH 400 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);
|
| radial-invalid.c | 6 #define WIDTH 100 14 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, NULL, -1); 51 0, 0, WIDTH, HEIGHT);
|
| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| drawstencil.c | 17 #define WIDTH 256 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); 145 Reshape(int width, int height [all...] |
| mipgen.c | 55 #define WIDTH 2 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,
|
| glutfx.c | 23 #define WIDTH 640 63 static void Reshape( int width, int height ) 65 float ratio = (float) width / (float) height; 67 ScreenWidth = width; 74 if (width > WIDTH) 75 width = WIDTH; 79 glViewport( 0, 0, width, height ); 160 glutInitWindowSize(WIDTH, HEIGHT) [all...] |
| /xsrc/external/mit/xorg-server/dist/test/bugs/ |
| bug1354.c | 21 #define WIDTH 300 34 0, 0, WIDTH, HEIGHT, 42 pixel = xcb_image_get_pixel(image, WIDTH/2, HEIGHT/2); 53 {0, 0, WIDTH, HEIGHT}, 120 WIDTH, HEIGHT, /* width, height */
|
| /xsrc/external/mit/mesa-demos/dist/src/demos/ |
| paltex.c | 58 static void Reshape( int width, int height ) 60 glViewport( 0, 0, width, height ); 95 #define WIDTH 32 96 /* 257 = HEIGHT * WIDTH + 1 (for trailing '\0') */ 160 WIDTH, HEIGHT, /* width, height */ 175 #undef WIDTH 186 #define WIDTH 256 187 static char texture[HEIGHT][WIDTH]; 197 for (i = 0; i < WIDTH; i++) [all...] |