HomeSort by relevance Sort by last modified time
    Searched refs:WIDTH (Results 1 - 25 of 206) sorted by null

1 2 3 4 5 6 7 8 9

  /external/pixman/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...]
  /external/pixman/test/
alpha-loop.c 5 #define WIDTH 400
16 alpha = make_random_bytes (WIDTH * HEIGHT);
17 src = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4);
18 dest = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4);
20 pixman_image_t *a = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, (uint32_t *)alpha, WIDTH);
21 pixman_image_t *d = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, dest, WIDTH * 4);
22 pixman_image_t *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 }, \
64 uint32_t *bytes = malloc (WIDTH * HEIGHT * 4);
67 prng_randmemset (bytes, WIDTH * HEIGHT * 4, 0);
70 format, WIDTH, HEIGHT, bytes, WIDTH * 4);
94 0, 0, 0, 0, WIDTH / 2, HEIGHT / 2,
95 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...]
  /external/chromium_org/ui/webui/resources/css/
tree.css.js 6 /** @const */ var WIDTH = 14;
7 /** @const */ var HEIGHT = WIDTH / 2 + 2;
11 WIDTH + MARGIN * 2,
20 ctx.lineTo(WIDTH / 2, HEIGHT);
21 ctx.lineTo(WIDTH, 2);
22 ctx.lineTo(WIDTH, 0);
  /external/chromium_org/third_party/skia/gm/
imagealphathreshold.cpp 12 #define WIDTH 500
37 return SkISize::Make(WIDTH, HEIGHT);
42 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
43 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
49 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f);
62 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2),
65 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2),
68 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2),
71 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2)
    [all...]
imagemagnifier.cpp 12 #define WIDTH 500
34 return SkISize::Make(WIDTH, HEIGHT);
42 SkIntToScalar(WIDTH / 2),
51 int x = rand.nextULessThan(WIDTH);
  /external/skia/gm/
imagealphathreshold.cpp 12 #define WIDTH 500
37 return SkISize::Make(WIDTH, HEIGHT);
42 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
43 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
49 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f);
62 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2),
65 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2),
68 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2),
71 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
PorterDuffXfermodeTest.java 31 private static final int WIDTH = 100;
35 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
37 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888);
39 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888);
47 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4));
48 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4));
49 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4));
56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4));
57 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4));
58 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4))
    [all...]
  /external/zxing/qr_scanner/src/com/google/zxing/client/android/
Intents.java 42 * Optional parameters to specify the width and height of the scanning rectangle in pixels.
46 public static final String WIDTH = "SCAN_WIDTH";
  /cts/tests/tests/permission/src/android/permission/cts/
NoCaptureVideoPermissionTest.java 33 private static final int WIDTH = 720;
48 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1);
50 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY,
71 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1);
73 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY,
92 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1);
95 NAME, WIDTH, HEIGHT, DENSITY,
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CreateBitmap.java 34 private static final int WIDTH = 50;
36 private static final int STRIDE = 64; // must be >= WIDTH
41 for (int x = 0; x < WIDTH; x++) {
42 int r = x * 255 / (WIDTH - 1);
77 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
79 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
81 mBitmaps[2] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
85 mBitmaps[3] = Bitmap.createBitmap(WIDTH, HEIGHT,
87 mBitmaps[4] = Bitmap.createBitmap(WIDTH, HEIGHT,
89 mBitmaps[5] = Bitmap.createBitmap(WIDTH, HEIGHT
    [all...]
  /external/chromium_org/ui/file_manager/file_manager/foreground/js/
tree.css.js 16 var WIDTH = 14;
22 var HEIGHT = WIDTH / 2 + 2;
38 WIDTH + MARGIN * 2,
48 ctx.lineTo(WIDTH / 2, HEIGHT);
49 ctx.lineTo(WIDTH, 2);
50 ctx.lineTo(WIDTH, 0);

Completed in 1476 milliseconds

1 2 3 4 5 6 7 8 9