/third_party/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 | 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 | 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 | 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()
|
/third_party/flutter/skia/gm/ |
D | imagealphathreshold.cpp | 31 #define HEIGHT 500 macro 36 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 38 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 40 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 42 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 47 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint() 48 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint() 76 return SkISize::Make(WIDTH, HEIGHT); in onISize() 82 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); in onDraw() 87 SkIRect cropRect = SkIRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100); in onDraw() [all …]
|
D | imageblur.cpp | 21 #define HEIGHT 500 macro 34 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw() 41 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument 44 DEF_SIMPLE_GM_BG(imageblur_large, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
|
/third_party/skia/gm/ |
D | imagealphathreshold.cpp | 31 #define HEIGHT 500 macro 36 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 38 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 40 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 42 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 47 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint() 48 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint() 76 return SkISize::Make(WIDTH, HEIGHT); in onISize() 82 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); in onDraw() 87 SkIRect cropRect = SkIRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100); in onDraw() [all …]
|
D | imageblur.cpp | 21 #define HEIGHT 500 macro 34 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw() 41 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument 44 DEF_SIMPLE_GM_BG(imageblur_large, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
|
/third_party/pixman/test/ |
D | alpha-loop.c | 6 #define HEIGHT 200 macro 17 alpha = make_random_bytes (WIDTH * HEIGHT); in main() 18 src = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4); in main() 19 dest = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4); in main() 21 a = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, (uint32_t *)alpha, WIDTH); in main() 22 d = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, dest, WIDTH * 4); in main() 23 s = pixman_image_create_bits (PIXMAN_a2r10g10b10, WIDTH, HEIGHT, src, WIDTH * 4); in main() 30 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 }, \ 68 orig = bytes = malloc (WIDTH * HEIGHT * 4); in make_image() 69 prng_randmemset (bytes, WIDTH * HEIGHT * 4, 0); in make_image() 74 bytes += (stride / 4) * (HEIGHT - 1); in make_image() 79 format, WIDTH, HEIGHT, bytes, stride); in make_image() 103 0, 0, 0, 0, WIDTH / 2, HEIGHT / 2, in test_transform() 104 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()
|
/third_party/ffmpeg/libavcodec/tests/ |
D | motion.c | 40 #define HEIGHT 64 macro 42 static uint8_t img1[WIDTH * HEIGHT]; 43 static uint8_t img2[WIDTH * HEIGHT]; 77 fill_random(img1, WIDTH * HEIGHT); in test_motion() 78 fill_random(img2, WIDTH * HEIGHT); in test_motion() 80 for(y=0;y<HEIGHT-17;y++) { in test_motion() 97 for(y=0;y<HEIGHT-17;y++) { in test_motion() 109 (double)NB_ITS * (WIDTH - 16) * (HEIGHT - 16) / in test_motion()
|
/third_party/ffmpeg/tests/checkasm/ |
D | utvideodsp.c | 29 #define HEIGHT 120 macro 31 #define BUFFER_SIZE (WIDTH_PADDED * HEIGHT) 38 for (h = 0; h < HEIGHT; h++) { \ 48 for (h = 0; h < HEIGHT; h++) { \ 75 call_ref(src_r0, src_g0, src_b0, WIDTH_PADDED, WIDTH_PADDED, WIDTH_PADDED, WIDTH, HEIGHT);\ 76 call_new(src_r1, src_g1, src_b1, WIDTH_PADDED, WIDTH_PADDED, WIDTH_PADDED, WIDTH, HEIGHT);\ 80 bench_new(src_r1, src_g1, src_b1, WIDTH_PADDED, WIDTH_PADDED, WIDTH_PADDED, WIDTH, HEIGHT)
|
/third_party/skia/bench/ |
D | TileImageFilterBench.cpp | 15 #define HEIGHT 512 macro 41 SkRect::MakeWH(50, 50), SkRect::MakeWH(WIDTH, HEIGHT), nullptr)); in onDraw() 45 for (int y = 0; y < HEIGHT; y += fTileSize) { in onDraw() 50 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw() 55 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
|
/third_party/flutter/skia/bench/ |
D | TileImageFilterBench.cpp | 15 #define HEIGHT 512 macro 41 SkRect::MakeWH(50, 50), SkRect::MakeWH(WIDTH, HEIGHT), nullptr)); in onDraw() 45 for (int y = 0; y < HEIGHT; y += fTileSize) { in onDraw() 50 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw() 55 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | alpha.c | 74 #define HEIGHT 4 macro 83 "height", G_TYPE_INT, HEIGHT, in create_caps_rgba32() 93 guint8 rgba32_img[HEIGHT * WIDTH * 4]; in create_buffer_rgba32() 106 for (i = 0; i < HEIGHT * WIDTH; i++) in create_buffer_rgba32() 109 buf = gst_buffer_new_and_alloc (HEIGHT * WIDTH * 4); in create_buffer_rgba32() 155 outlength = WIDTH * HEIGHT * 4; /* output is AYUV */ in GST_START_TEST() 162 for (i = 0; i < HEIGHT * WIDTH; i += 4) in GST_START_TEST() 223 outlength = WIDTH * HEIGHT * 4; /* output is AYUV */ in GST_START_TEST() 229 for (i = 0; i < HEIGHT * WIDTH; i += 4) in GST_START_TEST()
|