offset0 + (offset0 >> 2)
/* Note no trailing semicolon on the above macro; if it's there, then
- * the typical usage of YV12_SETUP(pict); will have an extra trailing ;
+ * the typical usage of YV12_SETUP(image); will have an extra trailing ;
* that some compilers will interpret as a statement -- and then any further
* variable declarations will cause an error.
*/
/* Despite the type, expects a uint64_t buffer */
static void
-fetch_pixels_a2r10g10b10_64 (bits_image_t *pict,
+fetch_pixels_a2r10g10b10_64 (bits_image_t *image,
uint32_t * b,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t p = READ (pict, bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t p = READ (image, bits + offset);
uint64_t a = p >> 30;
uint64_t r = (p >> 20) & 0x3ff;
uint64_t g = (p >> 10) & 0x3ff;
/* Despite the type, this function expects a uint64_t buffer */
static void
-fetch_pixels_x2r10g10b10_64 (bits_image_t *pict,
+fetch_pixels_x2r10g10b10_64 (bits_image_t *image,
uint32_t * b,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t p = READ (pict, bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t p = READ (image, bits + offset);
uint64_t r = (p >> 20) & 0x3ff;
uint64_t g = (p >> 10) & 0x3ff;
uint64_t b = p & 0x3ff;
/* Despite the type, expects a uint64_t buffer */
static void
-fetch_pixels_a2b10g10r10_64 (bits_image_t *pict,
+fetch_pixels_a2b10g10r10_64 (bits_image_t *image,
uint32_t * b,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t p = READ (pict, bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t p = READ (image, bits + offset);
uint64_t a = p >> 30;
uint64_t b = (p >> 20) & 0x3ff;
uint64_t g = (p >> 10) & 0x3ff;
/* Despite the type, this function expects a uint64_t buffer */
static void
-fetch_pixels_x2b10g10r10_64 (bits_image_t *pict,
+fetch_pixels_x2b10g10r10_64 (bits_image_t *image,
uint32_t * b,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t p = READ (pict, bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t p = READ (image, bits + offset);
uint64_t b = (p >> 20) & 0x3ff;
uint64_t g = (p >> 10) & 0x3ff;
uint64_t r = p & 0x3ff;
}
static void
-fetch_pixels_a8r8g8b8 (bits_image_t *pict,
+fetch_pixels_a8r8g8b8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- buffer[i] = READ (pict, (uint32_t *)bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ buffer[i] = READ (image, (uint32_t *)bits + offset);
}
}
}
static void
-fetch_pixels_x8r8g8b8 (bits_image_t *pict,
+fetch_pixels_x8r8g8b8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- buffer[i] = READ (pict, (uint32_t *)bits + offset) | 0xff000000;
+ uint32_t *bits = image->bits + line * image->rowstride;
+ buffer[i] = READ (image, (uint32_t *)bits + offset) | 0xff000000;
}
}
}
static void
-fetch_pixels_a8b8g8r8 (bits_image_t *pict,
+fetch_pixels_a8b8g8r8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint32_t *)bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint32_t *)bits + offset);
buffer[i] = ((pixel & 0xff000000) |
((pixel >> 16) & 0xff) |
}
static void
-fetch_pixels_x8b8g8r8 (bits_image_t *pict,
+fetch_pixels_x8b8g8r8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint32_t *)bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint32_t *)bits + offset);
buffer[i] = (0xff000000) |
((pixel >> 16) & 0xff) |
}
static void
-fetch_pixels_b8g8r8a8 (bits_image_t *pict,
+fetch_pixels_b8g8r8a8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint32_t *)bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint32_t *)bits + offset);
buffer[i] = ((pixel & 0xff000000) >> 24 |
(pixel & 0x00ff0000) >> 8 |
}
static void
-fetch_pixels_b8g8r8x8 (bits_image_t *pict,
+fetch_pixels_b8g8r8x8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint32_t *)bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint32_t *)bits + offset);
buffer[i] = ((0xff000000) |
(pixel & 0xff000000) >> 24 |
}
static void
-fetch_pixels_r8g8b8 (bits_image_t *pict,
+fetch_pixels_r8g8b8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
+ uint32_t *bits = image->bits + line * image->rowstride;
uint8_t *pixel = ((uint8_t *) bits) + (offset * 3);
#ifdef WORDS_BIGENDIAN
buffer[i] = (0xff000000 |
- (READ (pict, pixel + 0) << 16) |
- (READ (pict, pixel + 1) << 8) |
- (READ (pict, pixel + 2)));
+ (READ (image, pixel + 0) << 16) |
+ (READ (image, pixel + 1) << 8) |
+ (READ (image, pixel + 2)));
#else
buffer[i] = (0xff000000 |
- (READ (pict, pixel + 2) << 16) |
- (READ (pict, pixel + 1) << 8) |
- (READ (pict, pixel + 0)));
+ (READ (image, pixel + 2) << 16) |
+ (READ (image, pixel + 1) << 8) |
+ (READ (image, pixel + 0)));
#endif
}
}
}
static void
-fetch_pixels_b8g8r8 (bits_image_t *pict,
+fetch_pixels_b8g8r8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
+ uint32_t *bits = image->bits + line * image->rowstride;
uint8_t *pixel = ((uint8_t *) bits) + (offset * 3);
#ifdef WORDS_BIGENDIAN
buffer[i] = (0xff000000 |
- (READ (pict, pixel + 2) << 16) |
- (READ (pict, pixel + 1) << 8) |
- (READ (pict, pixel + 0)));
+ (READ (image, pixel + 2) << 16) |
+ (READ (image, pixel + 1) << 8) |
+ (READ (image, pixel + 0)));
#else
buffer[i] = (0xff000000 |
- (READ (pict, pixel + 0) << 16) |
- (READ (pict, pixel + 1) << 8) |
- (READ (pict, pixel + 2)));
+ (READ (image, pixel + 0) << 16) |
+ (READ (image, pixel + 1) << 8) |
+ (READ (image, pixel + 2)));
#endif
}
}
}
static void
-fetch_pixels_r5g6b5 (bits_image_t *pict,
+fetch_pixels_r5g6b5 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t r, g, b;
r = ((pixel & 0xf800) | ((pixel & 0xe000) >> 5)) << 8;
}
static void
-fetch_pixels_b5g6r5 (bits_image_t *pict,
+fetch_pixels_b5g6r5 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
else
{
uint32_t r, g, b;
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
b = ((pixel & 0xf800) | ((pixel & 0xe000) >> 5)) >> 8;
g = ((pixel & 0x07e0) | ((pixel & 0x0600) >> 6)) << 5;
}
static void
-fetch_pixels_a1r5g5b5 (bits_image_t *pict,
+fetch_pixels_a1r5g5b5 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t a, r, g, b;
a = (uint32_t) ((uint8_t) (0 - ((pixel & 0x8000) >> 15))) << 24;
}
static void
-fetch_pixels_x1r5g5b5 (bits_image_t *pict,
+fetch_pixels_x1r5g5b5 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t r, g, b;
r = ((pixel & 0x7c00) | ((pixel & 0x7000) >> 5)) << 9;
}
static void
-fetch_pixels_a1b5g5r5 (bits_image_t *pict,
+fetch_pixels_a1b5g5r5 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t a, r, g, b;
a = (uint32_t) ((uint8_t) (0 - ((pixel & 0x8000) >> 15))) << 24;
}
static void
-fetch_pixels_x1b5g5r5 (bits_image_t *pict,
+fetch_pixels_x1b5g5r5 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t r, g, b;
b = ((pixel & 0x7c00) | ((pixel & 0x7000) >> 5)) >> 7;
}
static void
-fetch_pixels_a4r4g4b4 (bits_image_t *pict,
+fetch_pixels_a4r4g4b4 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t a, r, g, b;
a = ((pixel & 0xf000) | ((pixel & 0xf000) >> 4)) << 16;
}
static void
-fetch_pixels_x4r4g4b4 (bits_image_t *pict,
+fetch_pixels_x4r4g4b4 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t r, g, b;
r = ((pixel & 0x0f00) | ((pixel & 0x0f00) >> 4)) << 12;
}
static void
-fetch_pixels_a4b4g4r4 (bits_image_t *pict,
+fetch_pixels_a4b4g4r4 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t a, r, g, b;
a = ((pixel & 0xf000) | ((pixel & 0xf000) >> 4)) << 16;
}
static void
-fetch_pixels_x4b4g4r4 (bits_image_t *pict,
+fetch_pixels_x4b4g4r4 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint16_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint16_t *) bits + offset);
uint32_t r, g, b;
b = ((pixel & 0x0f00) | ((pixel & 0x0f00) >> 4)) >> 4;
}
static void
-fetch_pixels_a8 (bits_image_t *pict,
+fetch_pixels_a8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint8_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint8_t *) bits + offset);
buffer[i] = pixel << 24;
}
}
static void
-fetch_pixels_r3g3b2 (bits_image_t *pict,
+fetch_pixels_r3g3b2 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint8_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint8_t *) bits + offset);
uint32_t r, g, b;
r = ((pixel & 0xe0) |
}
static void
-fetch_pixels_b2g3r3 (bits_image_t *pict,
+fetch_pixels_b2g3r3 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint8_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint8_t *) bits + offset);
uint32_t r, g, b;
b = ((pixel & 0xc0) |
}
static void
-fetch_pixels_a2r2g2b2 (bits_image_t *pict,
+fetch_pixels_a2r2g2b2 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint8_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint8_t *) bits + offset);
uint32_t a, r, g, b;
a = ((pixel & 0xc0) * 0x55) << 18;
}
static void
-fetch_pixels_a2b2g2r2 (bits_image_t *pict,
+fetch_pixels_a2b2g2r2 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint8_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint8_t *) bits + offset);
uint32_t a, r, g, b;
a = ((pixel & 0xc0) * 0x55) << 18;
}
static void
-fetch_pixels_c8 (bits_image_t *pict,
+fetch_pixels_c8 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint8_t *) bits + offset);
- const pixman_indexed_t * indexed = pict->indexed;
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint8_t *) bits + offset);
+ const pixman_indexed_t * indexed = image->indexed;
buffer[i] = indexed->rgba[pixel];
}
}
static void
-fetch_pixels_x4a4 (bits_image_t *pict,
+fetch_pixels_x4a4 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, (uint8_t *) bits + offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, (uint8_t *) bits + offset);
buffer[i] = ((pixel & 0xf) | ((pixel & 0xf) << 4)) << 24;
}
}
static void
-fetch_pixels_a4 (bits_image_t *pict,
+fetch_pixels_a4 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = FETCH_4 (pict, bits, offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = FETCH_4 (image, bits, offset);
pixel |= pixel << 4;
buffer[i] = pixel << 24;
}
static void
-fetch_pixels_r1g2b1 (bits_image_t *pict,
+fetch_pixels_r1g2b1 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = FETCH_4 (pict, bits, offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = FETCH_4 (image, bits, offset);
uint32_t r, g, b;
r = ((pixel & 0x8) * 0xff) << 13;
}
static void
-fetch_pixels_b1g2r1 (bits_image_t *pict,
+fetch_pixels_b1g2r1 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = FETCH_4 (pict, bits, offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = FETCH_4 (image, bits, offset);
uint32_t r, g, b;
b = ((pixel & 0x8) * 0xff) >> 3;
}
static void
-fetch_pixels_a1r1g1b1 (bits_image_t *pict,
+fetch_pixels_a1r1g1b1 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = FETCH_4 (pict, bits, offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = FETCH_4 (image, bits, offset);
uint32_t a, r, g, b;
a = ((pixel & 0x8) * 0xff) << 21;
}
static void
-fetch_pixels_a1b1g1r1 (bits_image_t *pict,
+fetch_pixels_a1b1g1r1 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = FETCH_4 (pict, bits, offset);
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = FETCH_4 (image, bits, offset);
uint32_t a, r, g, b;
a = ((pixel & 0x8) * 0xff) << 21;
}
static void
-fetch_pixels_c4 (bits_image_t *pict,
+fetch_pixels_c4 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = FETCH_4 (pict, bits, offset);
- const pixman_indexed_t * indexed = pict->indexed;
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = FETCH_4 (image, bits, offset);
+ const pixman_indexed_t * indexed = image->indexed;
buffer[i] = indexed->rgba[pixel];
}
}
static void
-fetch_pixels_a1 (bits_image_t *pict,
+fetch_pixels_a1 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, bits + (offset >> 5));
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, bits + (offset >> 5));
uint32_t a;
#ifdef WORDS_BIGENDIAN
}
static void
-fetch_pixels_g1 (bits_image_t *pict,
+fetch_pixels_g1 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- uint32_t *bits = pict->bits + line * pict->rowstride;
- uint32_t pixel = READ (pict, bits + (offset >> 5));
- const pixman_indexed_t * indexed = pict->indexed;
+ uint32_t *bits = image->bits + line * image->rowstride;
+ uint32_t pixel = READ (image, bits + (offset >> 5));
+ const pixman_indexed_t * indexed = image->indexed;
uint32_t a;
#ifdef WORDS_BIGENDIAN
}
static void
-fetch_pixels_yuy2 (bits_image_t *pict,
+fetch_pixels_yuy2 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- const uint32_t *bits = pict->bits + pict->rowstride * line;
+ const uint32_t *bits = image->bits + image->rowstride * line;
int16_t y, u, v;
int32_t r, g, b;
}
static void
-fetch_pixels_yv12 (bits_image_t *pict,
+fetch_pixels_yv12 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
}
else
{
- YV12_SETUP (pict);
+ YV12_SETUP (image);
int16_t y = YV12_Y (line)[offset] - 16;
int16_t u = YV12_U (line)[offset >> 1] - 128;
int16_t v = YV12_V (line)[offset >> 1] - 128;
/* Despite the type, this function expects a uint64_t *buffer */
static void
-fetch_pixels_generic_64 (bits_image_t *pict,
+fetch_pixels_generic_64 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
- pict->fetch_pixels_raw_32 (pict, buffer, n_pixels);
+ image->fetch_pixels_raw_32 (image, buffer, n_pixels);
- pixman_expand ((uint64_t *)buffer, buffer, pict->format, n_pixels);
+ pixman_expand ((uint64_t *)buffer, buffer, image->format, n_pixels);
}
/*
* WARNING: This function loses precision!
*/
static void
-fetch_pixels_generic_lossy_32 (bits_image_t *pict,
+fetch_pixels_generic_lossy_32 (bits_image_t *image,
uint32_t * buffer,
int n_pixels)
{
/* Since buffer contains n_pixels coordinate pairs, it also has enough
* room for n_pixels 64 bit pixels.
*/
- pict->fetch_pixels_raw_64 (pict, buffer, n_pixels);
+ image->fetch_pixels_raw_64 (image, buffer, n_pixels);
pixman_contract (buffer, (uint64_t *)buffer, n_pixels);
}