| /xsrc/external/mit/pixman/dist/demos/ |
| screen-test.c | 10 #define HEIGHT 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) [all...] |
| convolution-test.c | 10 #define HEIGHT 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); 42 pixman_image_composite (PIXMAN_OP_OVER, simg, mimg, dimg, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
| trap-test.c | 11 #define HEIGHT 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);
|
| alpha-test.c | 10 #define HEIGHT 200 12 uint32_t *alpha = malloc (WIDTH * HEIGHT * 4); 13 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 14 uint32_t *src = malloc (WIDTH * HEIGHT * 4); 50 for (i = 0; i < WIDTH * HEIGHT; ++i) 54 WIDTH, HEIGHT, 58 for (i = 0; i < WIDTH * HEIGHT; ++i) 62 WIDTH, HEIGHT, 66 for (i = 0; i < WIDTH * HEIGHT; ++i) 70 WIDTH, HEIGHT, [all...] |
| linear-gradient.c | 5 #define HEIGHT 640 27 WIDTH, HEIGHT, 32 p2.y = HEIGHT << 16; 43 WIDTH, HEIGHT);
|
| clip-test.c | 7 #define HEIGHT 200 12 uint32_t *pixels = malloc (WIDTH * HEIGHT * 4); 15 for (i = 0; i < WIDTH * HEIGHT; ++i) 19 WIDTH, HEIGHT, 37 pixman_int_to_fixed (HEIGHT) }; 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)]);
|
| checkerboard.c | 10 #define HEIGHT 400 24 WIDTH, HEIGHT, 28 WIDTH, HEIGHT, 31 for (i = 0; i < HEIGHT / TILE_SIZE; ++i) 36 double v = (double)(i + 1) / (HEIGHT / TILE_SIZE); 66 WIDTH, HEIGHT);
|
| srgb-test.c | 49 #define HEIGHT 200 53 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 54 uint32_t *src1 = malloc (WIDTH * HEIGHT * 4); 58 WIDTH, HEIGHT, 62 WIDTH, HEIGHT, 66 for (y = 0; y < HEIGHT; y ++) 78 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
| tri-test.c | 11 #define HEIGHT 200 25 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 28 for (i = 0; i < WIDTH * HEIGHT; ++i) 29 bits[i] = (i / HEIGHT) * 0x01010000; 32 dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4);
|
| gradient-test.c | 10 #define HEIGHT 200 12 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 45 for (i = 0; i < WIDTH * HEIGHT; ++i) 49 WIDTH, HEIGHT, 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 | 14 #define HEIGHT 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);
|
| composite-test.c | 9 #define HEIGHT 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, 149 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 151 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 153 WIDTH, HEIGHT, WIDTH * 4);
|
| srgb-trap-test.c | 9 #define HEIGHT 300 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 | 6 #define HEIGHT 200 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); 30 pixman_image_composite (PIXMAN_OP_SRC, s, NULL, d, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
| a1-trap-test.c | 11 #define HEIGHT 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);
|
| rotate-test.c | 5 #define HEIGHT 32 28 { v10, v11, HEIGHT * pixman_fixed_1 / 2 }, \ 68 orig = bytes = malloc (WIDTH * HEIGHT * 4); 69 prng_randmemset (bytes, WIDTH * HEIGHT * 4, 0); 74 bytes += (stride / 4) * (HEIGHT - 1); 79 format, WIDTH, HEIGHT, bytes, stride); 103 0, 0, 0, 0, WIDTH / 2, HEIGHT / 2, 104 WIDTH, HEIGHT);
|
| radial-invalid.c | 7 #define HEIGHT 100 14 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, NULL, -1); 51 0, 0, WIDTH, HEIGHT);
|
| gradient-crash-test.c | 9 #define HEIGHT 200 11 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 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, 145 0, 0, 0, 0, 0, 0, 10 * WIDTH, HEIGHT);
|
| alphamap.c | 6 #define HEIGHT 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); 68 y - orig_y >= 0 && y - orig_y < HEIGHT) 205 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 213 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 235 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 237 for (j = MAX (doff, 0); j < MIN (HEIGHT, HEIGHT + doff); ++j [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| drawstencil.c | 18 #define HEIGHT 150 20 static GLubyte Image[HEIGHT][WIDTH]; 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); 129 for (i = 0; i < HEIGHT; i++) { 138 glDrawPixels(WIDTH, HEIGHT, GL_LUMINANCE, GL_UNSIGNED_BYTE, tmp); 145 Reshape(int width, int height) 148 WinHeight = height; [all...] |
| glutfx.c | 24 #define HEIGHT 480 63 static void Reshape( int width, int height ) 65 float ratio = (float) width / (float) height; 68 ScreenHeight = height; 76 if (height > HEIGHT) 77 height = HEIGHT; 79 glViewport( 0, 0, width, height ); 160 glutInitWindowSize(WIDTH, HEIGHT); [all...] |
| mipgen.c | 56 #define HEIGHT 2 70 GLubyte img[WIDTH*HEIGHT*3]; 72 for (i = 0; i < HEIGHT; i++) { 90 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, WIDTH, HEIGHT, 0,
|
| /xsrc/external/mit/xorg-server/dist/test/bugs/ |
| bug1354.c | 22 #define HEIGHT 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 ); 94 #define HEIGHT 8 96 /* 257 = HEIGHT * WIDTH + 1 (for trailing '\0') */ 160 WIDTH, HEIGHT, /* width, height */ 174 #undef HEIGHT 185 #define HEIGHT 32 187 static char texture[HEIGHT][WIDTH]; 196 for (j = 0; j < HEIGHT; j++) [all...] |
| /xsrc/external/mit/xcb-util/dist/image/ |
| test_formats.c | 38 #define HEIGHT 50 47 int frac = random() % (WIDTH * HEIGHT); 52 p = ((1 << depth) - 1) * x * y / WIDTH / HEIGHT; 61 im = xcb_image_create_native(c, WIDTH, HEIGHT, 64 for(y = 0; y < HEIGHT; ++y) 75 seq = xcb_create_window(c, root->root_depth, w, root->root, 30, 30, WIDTH, HEIGHT, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, root->root_visual, mask, values).sequence; 86 seq = xcb_create_pixmap(c, depth, p, d, WIDTH, HEIGHT).sequence; 185 WIDTH, HEIGHT, 1).sequence;
|