* pixels.
*/
static void
-_pixman_image_fetch_raw_pixels (bits_image_t *image, uint32_t *buffer, int n_pixels)
+bits_image_fetch_raw_pixels (bits_image_t *image, uint32_t *buffer, int n_pixels)
{
uint32_t *coords;
int i;
}
}
-void
-_pixman_image_fetch_pixels (bits_image_t *image, uint32_t *buffer, int n_pixels)
+static void
+bits_image_fetch_alpha_pixels (bits_image_t *image, uint32_t *buffer, int n_pixels)
{
#define N_ALPHA_PIXELS 256
if (!image->common.alpha_map)
{
- _pixman_image_fetch_raw_pixels (image, buffer, n_pixels);
+ bits_image_fetch_raw_pixels (image, buffer, n_pixels);
return;
}
-
+
+ /* Alpha map */
i = 0;
while (i < n_pixels)
{
coords += 2;
}
- _pixman_image_fetch_raw_pixels (image->common.alpha_map, alpha_pixels, tmp_n_pixels);
- _pixman_image_fetch_raw_pixels (image, buffer + 2 * i, tmp_n_pixels);
+ bits_image_fetch_raw_pixels (image->common.alpha_map, alpha_pixels, tmp_n_pixels);
+ bits_image_fetch_raw_pixels (image, buffer + 2 * i, tmp_n_pixels);
for (j = 0; j < tmp_n_pixels; ++j)
{
}
}
- _pixman_image_fetch_pixels (image, buffer, n_pixels);
+ bits_image_fetch_alpha_pixels (image, buffer, n_pixels);
}
/* Buffer contains list of integers on input, list of pixels on output */