/external/pixman/demos/ |
D | screen-test.c | 10 #define HEIGHT 40 in main() macro 12 uint32_t *src1 = malloc (WIDTH * HEIGHT * 4); in main() 13 uint32_t *src2 = malloc (WIDTH * HEIGHT * 4); in main() 14 uint32_t *src3 = malloc (WIDTH * HEIGHT * 4); in main() 15 uint32_t *dest = malloc (3 * WIDTH * 2 * HEIGHT * 4); in main() 20 for (i = 0; i < WIDTH * HEIGHT; ++i) in main() 27 for (i = 0; i < 3 * WIDTH * 2 * HEIGHT; ++i) in main() 32 simg1 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src1, WIDTH * 4); in main() 33 simg2 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src2, WIDTH * 4); in main() 34 simg3 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src3, WIDTH * 4); in main() [all …]
|
D | alpha-test.c | 10 #define HEIGHT 200 in main() macro 12 uint32_t *alpha = malloc (WIDTH * HEIGHT * 4); in main() 13 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); in main() 14 uint32_t *src = malloc (WIDTH * HEIGHT * 4); in main() 50 for (i = 0; i < WIDTH * HEIGHT; ++i) in main() 54 WIDTH, HEIGHT, in main() 58 for (i = 0; i < WIDTH * HEIGHT; ++i) in main() 62 WIDTH, HEIGHT, in main() 66 for (i = 0; i < WIDTH * HEIGHT; ++i) in main() 70 WIDTH, HEIGHT, in main() [all …]
|
D | convolution-test.c | 10 #define HEIGHT 200 in main() macro 14 uint32_t *src = malloc (WIDTH * HEIGHT * 4); in main() 15 uint32_t *mask = malloc (WIDTH * HEIGHT * 4); in main() 16 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); in main() 28 for (i = 0; i < WIDTH * HEIGHT; ++i) in main() 35 simg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src, WIDTH * 4); in main() 36 mimg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, mask, WIDTH * 4); in main() 37 dimg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, dest, WIDTH * 4); in main() 42 pixman_image_composite (PIXMAN_OP_OVER, simg, mimg, dimg, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main()
|
D | trap-test.c | 11 #define HEIGHT 200 in main() macro 18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); in main() 19 uint32_t *mbits = malloc (WIDTH * HEIGHT); in main() 21 memset (mbits, 0, WIDTH * HEIGHT); in main() 22 memset (bits, 0xff, WIDTH * HEIGHT * 4); in main() 32 mask_img = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, mbits, WIDTH); in main() 34 dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4); in main() 40 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main()
|
D | clip-test.c | 7 #define HEIGHT 200 macro 12 uint32_t *pixels = malloc (WIDTH * HEIGHT * 4); in create_solid_bits() 15 for (i = 0; i < WIDTH * HEIGHT; ++i) in create_solid_bits() 19 WIDTH, HEIGHT, in create_solid_bits() 37 pixman_int_to_fixed (HEIGHT) }; in main() 71 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main() 82 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main() 88 printf ("w, h: %x\n", src[(HEIGHT - 1) * 100 + (WIDTH - 1)]); in main()
|
D | srgb-test.c | 49 #define HEIGHT 200 in main() macro 53 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); in main() 54 uint32_t *src1 = malloc (WIDTH * HEIGHT * 4); in main() 58 WIDTH, HEIGHT, in main() 62 WIDTH, HEIGHT, in main() 66 for (y = 0; y < HEIGHT; y ++) in main() 78 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main()
|
D | checkerboard.c | 10 #define HEIGHT 400 in main() macro 24 WIDTH, HEIGHT, in main() 28 WIDTH, HEIGHT, in main() 31 for (i = 0; i < HEIGHT / TILE_SIZE; ++i) in main() 36 double v = (double)(i + 1) / (HEIGHT / TILE_SIZE); in main() 66 WIDTH, HEIGHT); in main()
|
D | composite-test.c | 9 #define HEIGHT 80 macro 94 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); in main() 95 uint32_t *src = malloc (WIDTH * HEIGHT * 4); in main() 99 pixman_point_fixed_t p2 = { (WIDTH + 10) << 16, (HEIGHT - 10) << 16 }; in main() 125 …parrot = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, (uint32_t *)parrot_bits, WIDTH … in main() 130 WIDTH, HEIGHT, in main() 149 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main() 151 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main() 153 WIDTH, HEIGHT, WIDTH * 4); in main()
|
D | gradient-test.c | 10 #define HEIGHT 200 in main() macro 12 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); in main() 45 for (i = 0; i < WIDTH * HEIGHT; ++i) in main() 49 WIDTH, HEIGHT, in main() 79 0, 0, 0, 0, 0, 0, 10 * WIDTH, HEIGHT); in main() 83 printf ("w, h: %x\n", dest[(HEIGHT - 1) * 100 + (WIDTH - 1)]); in main()
|
D | tri-test.c | 11 #define HEIGHT 200 in main() macro 25 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); in main() 28 for (i = 0; i < WIDTH * HEIGHT; ++i) in main() 29 bits[i] = (i / HEIGHT) * 0x01010000; in main() 32 dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4); in main()
|
D | linear-gradient.c | 5 #define HEIGHT 640 macro 27 WIDTH, HEIGHT, in main() 32 p2.y = HEIGHT << 16; in main() 43 WIDTH, HEIGHT); in main()
|
D | clip-in.c | 14 #define HEIGHT 200 in main() macro 19 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); in main() 28 …pixman_image_t *dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, 4 * WID… in main() 30 memset (bits, 0xff, WIDTH * HEIGHT * 4); in main()
|
D | srgb-trap-test.c | 9 #define HEIGHT 300 macro 89 d = malloc (WIDTH * HEIGHT * 4); in main() 92 PIXMAN_a8r8g8b8_sRGB, WIDTH, HEIGHT, d, WIDTH * 4); in main() 94 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, d, WIDTH * 4); in main() 99 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main()
|
/external/chromium_org/third_party/skia/gm/ |
D | imagealphathreshold.cpp | 13 #define HEIGHT 500 macro 37 return SkISize::Make(WIDTH, HEIGHT); in onISize() 42 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in onDraw() 43 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in onDraw() 49 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); in onDraw() 62 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), in onDraw() 65 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), in onDraw() 68 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), in onDraw() 71 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), in onDraw()
|
D | imagemagnifier.cpp | 13 #define HEIGHT 500 macro 34 return SkISize::Make(WIDTH, HEIGHT); in onISize() 43 SkIntToScalar(HEIGHT / 2)), in onDraw() 52 int y = rand.nextULessThan(HEIGHT); in onDraw()
|
/external/skia/gm/ |
D | imagealphathreshold.cpp | 13 #define HEIGHT 500 macro 37 return SkISize::Make(WIDTH, HEIGHT); in onISize() 42 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in onDraw() 43 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in onDraw() 49 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); in onDraw() 62 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), in onDraw() 65 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), in onDraw() 68 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), in onDraw() 71 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), in onDraw()
|
D | canvasstate.cpp | 25 HEIGHT = 150, enumerator 39 fSize.set(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT)); in CanvasStateGM() 53 fOutlineRect = SkRect::MakeXYWH(1, 1, WIDTH-2, HEIGHT-2); in CanvasStateGM() 54 fFillRect = SkRect::MakeXYWH(10, 10, WIDTH-20, HEIGHT-20); in CanvasStateGM() 63 return SkISize::Make(WIDTH*3, HEIGHT*4); in onISize() 91 canvas->translate(SkIntToScalar(x*WIDTH), SkIntToScalar(y*HEIGHT)); in drawTestPattern() 118 fRect = SkRect::MakeXYWH(SPACER, SPACER, WIDTH-(2*SPACER), (HEIGHT-(2*SPACER)) / 7); in CanvasLayerStateGM() 127 return SkISize::Make(WIDTH, HEIGHT); in onISize() 165 HEIGHT = 400, enumerator
|
D | imagemagnifier.cpp | 13 #define HEIGHT 500 macro 34 return SkISize::Make(WIDTH, HEIGHT); in onISize() 43 SkIntToScalar(HEIGHT / 2)), in onDraw() 51 int y = rand.nextULessThan(HEIGHT); in onDraw()
|
/external/pixman/test/ |
D | alpha-loop.c | 6 #define HEIGHT 200 macro 16 alpha = make_random_bytes (WIDTH * HEIGHT); in main() 17 src = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4); in main() 18 dest = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4); in main() 20 … pixman_image_t *a = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, (uint32_t *)alpha, WIDTH); in main() 21 pixman_image_t *d = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, dest, WIDTH * 4); in main() 22 … pixman_image_t *s = pixman_image_create_bits (PIXMAN_a2r10g10b10, WIDTH, HEIGHT, src, WIDTH * 4); in main() 29 pixman_image_composite (PIXMAN_OP_SRC, s, NULL, d, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main()
|
D | a1-trap-test.c | 11 #define HEIGHT 20 in main() macro 18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); in main() 19 uint32_t *mbits = malloc (WIDTH * HEIGHT); in main() 21 memset (mbits, 0, WIDTH * HEIGHT); in main() 22 memset (bits, 0xff, WIDTH * HEIGHT * 4); in main() 33 PIXMAN_a1, WIDTH, HEIGHT, mbits, WIDTH); in main() 36 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4); in main() 42 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in main()
|
D | rotate-test.c | 5 #define HEIGHT 32 macro 28 { v10, v11, HEIGHT * pixman_fixed_1 / 2 }, \ 64 uint32_t *bytes = malloc (WIDTH * HEIGHT * 4); in make_image() 67 prng_randmemset (bytes, WIDTH * HEIGHT * 4, 0); in make_image() 70 format, WIDTH, HEIGHT, bytes, WIDTH * 4); in make_image() 94 0, 0, 0, 0, WIDTH / 2, HEIGHT / 2, in test_transform() 95 WIDTH, HEIGHT); in test_transform()
|
D | gradient-crash-test.c | 9 #define HEIGHT 200 in main() macro 11 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); in main() 42 { { pixman_double_to_fixed (WIDTH / 2.0), pixman_double_to_fixed (HEIGHT / 2.0) }, in main() 43 { pixman_double_to_fixed (WIDTH / 2.0), pixman_double_to_fixed (HEIGHT / 2.0) } } in main() 90 for (i = 0; i < WIDTH * HEIGHT; ++i) in main() 94 WIDTH, HEIGHT, in main() 145 0, 0, 0, 0, 0, 0, 10 * WIDTH, HEIGHT); in main()
|
D | alphamap.c | 6 #define HEIGHT 48 macro 44 bits = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * bpp); in make_image() 46 image = pixman_image_create_bits (format, WIDTH, HEIGHT, bits, WIDTH * bpp); in make_image() 63 y - orig_y >= 0 && y - orig_y < HEIGHT) in get_alpha() 178 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in run_test() 186 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in run_test() 208 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); in run_test() 210 for (j = MAX (doff, 0); j < MIN (HEIGHT, HEIGHT + doff); ++j) in run_test()
|
/external/skia/tests/ |
D | CanvasStateTest.cpp | 21 const int HEIGHT = 400; in test_complex_layers() local 26 SkIntToScalar((HEIGHT-(2*SPACER)) / 7)); in test_complex_layers() 44 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT, in test_complex_layers() 99 const int HEIGHT = 400; in test_complex_clips() local 102 SkIRect layerRect = SkIRect::MakeWH(WIDTH, HEIGHT / 4); in test_complex_clips() 133 bitmaps[i].allocN32Pixels(WIDTH, HEIGHT); in test_complex_clips() 237 const int HEIGHT = 100; in test_saveLayer_clip() local 242 bitmap.allocN32Pixels(WIDTH, HEIGHT); in test_saveLayer_clip() 246 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in test_saveLayer_clip() 255 REPORTER_ASSERT(reporter, clipStackBounds.height() == HEIGHT); in test_saveLayer_clip()
|
/external/chromium_org/third_party/skia/tests/ |
D | CanvasStateTest.cpp | 62 const int HEIGHT = 400; in DEF_TEST() local 67 SkIntToScalar((HEIGHT-(2*SPACER)) / 7)); in DEF_TEST() 99 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT, in DEF_TEST() 150 const int HEIGHT = 400; in DEF_TEST() local 153 SkIRect layerRect = SkIRect::MakeWH(WIDTH, HEIGHT / 4); in DEF_TEST() 200 bitmaps[i].allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST() 307 const int HEIGHT = 100; in DEF_TEST() local 312 bitmap.allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST() 316 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST() 325 REPORTER_ASSERT(reporter, clipStackBounds.height() == HEIGHT); in DEF_TEST()
|