Home | History | Annotate | Download | only in test

Lines Matching refs:bits

106     if (image->type == BITS && image->bits.free_me != image->bits.bits)
108 uint32_t *bits;
110 if (image->bits.bits != (void *)0x01)
112 bits = image->bits.bits;
114 if (image->bits.rowstride < 0)
115 bits -= (- image->bits.rowstride * (image->bits.height - 1));
117 fence_free (bits);
193 if (image->type == BITS)
194 return prng_rand_n (image->bits.width);
202 if (image->type == BITS)
203 return prng_rand_n (image->bits.height);
244 uint32_t *bits;
289 /* bits */
296 bits = (uint32_t *)make_random_bytes (height * stride);
301 bits = NULL;
307 bits = fence_malloc (height * stride);
308 if (!bits)
310 memset (bits, 0, height * stride);
316 bits = fence_malloc (height * stride);
317 if (!bits)
319 memset (bits, 0xff, height * stride);
322 case 4: /* bits is a bad pointer, has read/write functions */
324 bits = (void *)0x01;
329 case 5: /* bits is a real pointer, has read/write functions */
332 bits = fence_malloc (height * stride);
333 if (!bits)
335 memset (bits, 0xff, height * stride);
340 case 6: /* bits is a real pointer, stride is negative */
343 bits = (uint32_t *)make_random_bytes (height * stride);
344 if (!bits)
346 bits += ((height - 1) * stride) / 4;
378 image = pixman_image_create_bits (format, width, height, bits, stride);
427 x = rand_x (image) - image->bits.width / 2;
428 y = rand_y (image) - image->bits.height / 2;
484 if (image->type == BITS && prng_rand_n (8) != 0)
495 x = prng_rand_n (2 * image->bits.width) - image->bits.width;
496 y = prng_rand_n (2 * image->bits.height) - image->bits.height;
497 width = prng_rand_n (image->bits.width) - x + 10;
498 height = prng_rand_n (image->bits.height) - y + 10;
879 &n_traps, dest->bits.width, dest->bits.height)))
933 dest->bits.width,
934 dest->bits.height);