/external/pixman/demos/ |
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);
|
linear-gradient.c | 4 #define WIDTH 1024 27 WIDTH, HEIGHT, 31 p2.x = WIDTH << 16; 43 WIDTH, HEIGHT);
|
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...] |
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);
|
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...] |
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);
|
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)]);
|
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...] |
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)]);
|
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...] |
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...] |
srgb-trap-test.c | 8 #define WIDTH 600 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);
|
conical-test.c | 7 #define WIDTH (SIZE * GRADIENTS_PER_ROW) 59 WIDTH, HEIGHT,
|
/external/pixman/test/ |
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...] |
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...] |
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/srec/portable/src/ |
pcrc.c | 31 #define WIDTH 32 75 #define WIDTH 16 76 #define TOPBIT (1 << (WIDTH - 1)) 136 byte = (unsigned char)((remainder >> (WIDTH - 8)) ^ *p++); 139 byte = (unsigned char)(((remainder >> (WIDTH - 8)) ^(*p >> 8)) & 0xFF); 141 byte = (unsigned char)(((remainder >> (WIDTH - 8)) ^(*p++ & 0xFF)) & 0xFF);
|
/external/skia/gm/ |
imageblur.cpp | 12 #define WIDTH 500 29 return make_isize(WIDTH, HEIGHT); 42 int x = rand.nextULessThan(WIDTH);
|
imagemagnifier.cpp | 12 #define WIDTH 500 34 return make_isize(WIDTH, HEIGHT); 42 SkIntToScalar(WIDTH / 2), 50 int x = rand.nextULessThan(WIDTH);
|
canvasstate.cpp | 24 WIDTH = 150, 39 fSize.set(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT)); 53 fOutlineRect = SkRect::MakeXYWH(1, 1, WIDTH-2, HEIGHT-2); 54 fFillRect = SkRect::MakeXYWH(10, 10, WIDTH-20, HEIGHT-20); 63 return SkISize::Make(WIDTH*3, HEIGHT*4); 91 canvas->translate(SkIntToScalar(x*WIDTH), SkIntToScalar(y*HEIGHT)); 118 fRect = SkRect::MakeXYWH(SPACER, SPACER, WIDTH-(2*SPACER), (HEIGHT-(2*SPACER)) / 7); 127 return SkISize::Make(WIDTH, HEIGHT); 162 WIDTH = 400,
|
drawlooper.cpp | 16 #define WIDTH 200
|
/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/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/chromium_org/third_party/mesa/src/src/gallium/tests/graw/ |
clear.c | 18 static const int WIDTH = 300; 70 templat.width0 = WIDTH; 95 fb.width = WIDTH;
|
/external/mesa3d/src/gallium/tests/graw/ |
clear.c | 18 static const int WIDTH = 300; 70 templat.width0 = WIDTH; 95 fb.width = WIDTH;
|