diff options
Diffstat (limited to 'pixman/pixman-private.h')
-rw-r--r-- | pixman/pixman-private.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index 06a3912..8d0bb57 100644 --- a/pixman/pixman-private.h +++ b/pixman/pixman-private.h @@ -203,7 +203,8 @@ struct bits_image pixman_read_memory_func_t read_func; pixman_write_memory_func_t write_func; - pixman_color_space_t color_space; + pixman_color_space_t color_space; + pixman_image_t * intermediate; struct { uint32_t * bits; @@ -309,20 +310,22 @@ uint32_t _pixman_image_get_solid (pixman_image_t * image, pixman_format_code_t format); -#define PIXMAN_IMAGE_GET_LINE(image, x, y, type, out_stride, line, mul) \ - do \ - { \ - uint32_t *__bits__; \ - int __stride__; \ - \ - __bits__ = image->bits.bits; \ - __stride__ = image->bits.rowstride; \ - (out_stride) = \ - __stride__ * (int) sizeof (uint32_t) / (int) sizeof (type); \ - (line) = \ - ((type *) __bits__) + (out_stride) * (y) + (mul) * (x); \ +#define PIXMAN_IMAGE_GET_PLANE(image, plane, x, y, type, out_stride, line, mul) \ + do \ + { \ + uint32_t *__bits__; \ + int __stride__; \ + \ + __bits__ = image->bits.planes[plane].bits; \ + __stride__ = image->bits.planes[plane].rowstride; \ + (out_stride) = \ + __stride__ * (int) sizeof (uint32_t) / (int) sizeof (type); \ + (line) = \ + ((type *) __bits__) + (out_stride) * (y) + (mul) * (x); \ } while (0) +#define PIXMAN_IMAGE_GET_LINE(image, x, y, type, out_stride, line, mul) \ + PIXMAN_IMAGE_GET_PLANE(image, 0, x, y, type, out_stride, line, mul) /* * Gradient walker */ |