Lines Matching refs:bits
32 uint32_t *bits = pixman_image_get_data (image);
34 fence_free (bits);
40 uint32_t *bits;
44 bits = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * bpp);
46 image = pixman_image_create_bits (format, WIDTH, HEIGHT, bits, WIDTH * bpp);
48 if (image && bits)
57 uint8_t *bits;
76 bits = (uint8_t *)image->bits.bits;
78 if (image->bits.format == PIXMAN_a8)
80 r = bits[y * WIDTH + x];
82 else if (image->bits.format == PIXMAN_a2r10g10b10)
84 r = ((uint32_t *)bits)[y * WIDTH + x] >> 30;
88 else if (image->bits.format == PIXMAN_a8r8g8b8)
90 r = ((uint32_t *)bits)[y * WIDTH + x] >> 24;
92 else if (image->bits.format == PIXMAN_a4r4g4b4)
94 r = ((uint16_t *)bits)[y * WIDTH + x] >> 12;
108 uint8_t *bits;
111 bits = (uint8_t *)image->bits.bits;
113 if (image->bits.format == PIXMAN_a8)
117 else if (image->bits.format == PIXMAN_a2r10g10b10)
119 r = ((uint32_t *)bits)[y * WIDTH + x] >> 14;
123 else if (image->bits.format == PIXMAN_a8r8g8b8)
125 r = ((uint32_t *)bits)[y * WIDTH + x] >> 16;
129 else if (image->bits.format == PIXMAN_a4r4g4b4)
131 r = ((uint16_t *)bits)[y * WIDTH + x] >> 8;
258 printf ("%d red bits\n", n_red_bits);