#define SCANLINE_BUFFER_LENGTH 2048
-typedef FASTCALL void (*fetchProc)(const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed);
+typedef FASTCALL void (*fetchProc)(pixman_image_t *image,
+ const uint32_t *bits,
+ int x, int width,
+ uint32_t *buffer,
+ pixman_indexed_t * indexed);
/*
* All of the fetch functions
*/
static FASTCALL void
-fbFetch_a8r8g8b8 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a8r8g8b8 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
MEMCPY_WRAPPED(buffer, (const uint32_t *)bits + x, width*sizeof(uint32_t));
}
static FASTCALL void
-fbFetch_x8r8g8b8 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_x8r8g8b8 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint32_t *pixel = (const uint32_t *)bits + x;
const uint32_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_a8b8g8r8 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a8b8g8r8 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint32_t *pixel = (uint32_t *)bits + x;
const uint32_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_x8b8g8r8 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_x8b8g8r8 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint32_t *pixel = (uint32_t *)bits + x;
const uint32_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_r8g8b8 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_r8g8b8 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + 3*x;
const uint8_t *end = pixel + 3*width;
}
static FASTCALL void
-fbFetch_b8g8r8 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_b8g8r8 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + 3*x;
const uint8_t *end = pixel + 3*width;
}
static FASTCALL void
-fbFetch_r5g6b5 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_r5g6b5 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_b5g6r5 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_b5g6r5 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_a1r5g5b5 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a1r5g5b5 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_x1r5g5b5 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_x1r5g5b5 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_a1b5g5r5 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a1b5g5r5 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_x1b5g5r5 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_x1b5g5r5 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_a4r4g4b4 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a4r4g4b4 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_x4r4g4b4 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_x4r4g4b4 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_a4b4g4r4 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a4b4g4r4 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_x4b4g4r4 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_x4b4g4r4 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint16_t *pixel = (const uint16_t *)bits + x;
const uint16_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_a8 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a8 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + x;
const uint8_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_r3g3b2 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_r3g3b2 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + x;
const uint8_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_b2g3r3 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_b2g3r3 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + x;
const uint8_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_a2r2g2b2 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a2r2g2b2 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + x;
const uint8_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_a2b2g2r2 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a2b2g2r2 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + x;
const uint8_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_c8 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_c8 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + x;
const uint8_t *end = pixel + width;
}
static FASTCALL void
-fbFetch_x4a4 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_x4a4 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
const uint8_t *pixel = (const uint8_t *)bits + x;
const uint8_t *end = pixel + width;
#endif
static FASTCALL void
-fbFetch_a4 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a4 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
int i;
for (i = 0; i < width; ++i) {
}
static FASTCALL void
-fbFetch_r1g2b1 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_r1g2b1 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
int i;
for (i = 0; i < width; ++i) {
}
static FASTCALL void
-fbFetch_b1g2r1 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_b1g2r1 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
int i;
for (i = 0; i < width; ++i) {
}
static FASTCALL void
-fbFetch_a1r1g1b1 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a1r1g1b1 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
int i;
for (i = 0; i < width; ++i) {
}
static FASTCALL void
-fbFetch_a1b1g1r1 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a1b1g1r1 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
int i;
for (i = 0; i < width; ++i) {
}
static FASTCALL void
-fbFetch_c4 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_c4 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
int i;
for (i = 0; i < width; ++i) {
static FASTCALL void
-fbFetch_a1 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_a1 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
int i;
for (i = 0; i < width; ++i) {
}
static FASTCALL void
-fbFetch_g1 (const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
+fbFetch_g1 (pixman_image_t *image,
+ const uint32_t *bits, int x, int width, uint32_t *buffer, pixman_indexed_t * indexed)
{
int i;
for (i = 0; i < width; ++i) {
bits += y*stride;
- fetch(bits, x, width, buffer, indexed);
+ fetch((pixman_image_t *)pict, bits, x, width, buffer, indexed);
fbFinishAccess (pict->pDrawable);
}