Searched refs:HEIGHT (Results 1 - 25 of 103) sorted by relevance

12345

/xsrc/external/mit/pixman/dist/demos/
H A Dscreen-test.c10 #define HEIGHT 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, HEIGHT, src2, WIDTH * 4);
34 simg3 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src
[all...]
H A Dconvolution-test.c10 #define HEIGHT 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, HEIGHT, dest, WIDTH * 4);
42 pixman_image_composite (PIXMAN_OP_OVER, simg, mimg, dimg, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
H A Dtrap-test.c11 #define HEIGHT 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, HEIGHT);
H A Dalpha-test.c10 #define HEIGHT 200 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);
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...]
H A Dlinear-gradient.c5 #define HEIGHT 640 macro
27 WIDTH, HEIGHT,
32 p2.y = HEIGHT << 16;
43 WIDTH, HEIGHT);
H A Dclip-test.c7 #define HEIGHT 200 macro
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)]);
H A Dcheckerboard.c10 #define HEIGHT 400 macro
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);
H A Dsrgb-test.c49 #define HEIGHT 200 macro
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);
H A Dtri-test.c11 #define HEIGHT 200 macro
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);
H A Dgradient-test.c10 #define HEIGHT 200 macro
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)]);
H A Dclip-in.c14 #define HEIGHT 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 Dcomposite-test.c9 #define HEIGHT 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,
149 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
151 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
153 WIDTH, HEIGHT, WIDTH * 4);
H A Dsrgb-trap-test.c9 #define HEIGHT 300 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 Dalpha-loop.c6 #define HEIGHT 200 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 * 4);
30 pixman_image_composite (PIXMAN_OP_SRC, s, NULL, d, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
H A Da1-trap-test.c11 #define HEIGHT 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, HEIGHT);
H A Drotate-test.c5 #define HEIGHT 32 macro
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);
H A Dradial-invalid.c7 #define HEIGHT 100 macro
14 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, NULL, -1);
51 0, 0, WIDTH, HEIGHT);
H A Dgradient-crash-test.c9 #define HEIGHT 200 macro
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);
H A Dalphamap.c6 #define HEIGHT 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);
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
[all...]
/xsrc/external/mit/mesa-demos/dist/src/tests/
H A Ddrawstencil.c18 #define HEIGHT 150 macro
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);
201 for (i = 0; i < HEIGHT; i++) {
H A Dglutfx.c24 #define HEIGHT 480 macro
76 if (height > HEIGHT)
77 height = HEIGHT;
160 glutInitWindowSize(WIDTH, HEIGHT);
H A Dmipgen.c56 #define HEIGHT 2 macro
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/mesa-demos/dist/src/demos/
H A Dpaltex.c94 #define HEIGHT 8 macro
96 /* 257 = HEIGHT * WIDTH + 1 (for trailing '\0') */
160 WIDTH, HEIGHT, /* width, height */
174 #undef HEIGHT
185 #define HEIGHT 32 macro
187 static char texture[HEIGHT][WIDTH];
196 for (j = 0; j < HEIGHT; j++) {
232 WIDTH, HEIGHT, /* width, height */
/xsrc/external/mit/xcb-util/dist/image/
H A Dtest_formats.c38 #define HEIGHT 50 macro
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;
/xsrc/external/mit/mesa-demos/dist/src/osdemos/
H A Dosdemo16.c22 #define HEIGHT 400 macro
172 fputc (HEIGHT & 0xff, f); /* Image Height */
173 fputc ((HEIGHT>>8) & 0xff, f);
257 buffer = (GLushort *) malloc( WIDTH * HEIGHT * 4 * sizeof(GLushort));
264 if (!OSMesaMakeCurrent( ctx, buffer, GL_UNSIGNED_SHORT, WIDTH, HEIGHT )) {
273 write_targa(argv[1], buffer, WIDTH, HEIGHT);
275 write_ppm(argv[1], buffer, WIDTH, HEIGHT);

Completed in 23 milliseconds

12345