X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=pixman%2Fpixman-private.h;h=d42c1146d32b68c1fae28a075d6d2664b0c2013a;hb=6503c6edccbc6b08ea8efe398da3265126efa896;hp=b37d9c8116b9d01ecd3caa5174fb7d8f09849022;hpb=99699771cd82e108fbace655bf44013bdccde3bf;p=profile%2Fivi%2Fpixman.git diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index b37d9c8..d42c114 100644 --- a/pixman/pixman-private.h +++ b/pixman/pixman-private.h @@ -121,7 +121,6 @@ struct gradient image_common_t common; int n_stops; pixman_gradient_stop_t *stops; - int stop_range; }; struct linear_gradient @@ -194,10 +193,62 @@ union pixman_image solid_fill_t solid; }; +typedef struct pixman_iter_t pixman_iter_t; +typedef enum +{ + ITER_NARROW = (1 << 0), +} iter_flags_t; + +struct pixman_iter_t +{ + uint32_t *(* get_scanline) (pixman_iter_t *iter, const uint32_t *mask); + void (* write_back) (pixman_iter_t *iter); + + pixman_image_t * image; + uint32_t * buffer; + int x, y; + int width; +}; + void _pixman_bits_image_setup_accessors (bits_image_t *image); void +_pixman_bits_image_src_iter_init (pixman_image_t *image, + pixman_iter_t *iter, + int x, int y, int width, int height, + uint8_t *buffer, iter_flags_t flags); +void +_pixman_bits_image_dest_iter_init (pixman_image_t *image, + pixman_iter_t *iter, + int x, int y, int width, int height, + uint8_t *buffer, iter_flags_t flags); + +void +_pixman_solid_fill_iter_init (pixman_image_t *image, + pixman_iter_t *iter, + int x, int y, int width, int height, + uint8_t *buffer, iter_flags_t flags); + +void +_pixman_linear_gradient_iter_init (pixman_image_t *image, + pixman_iter_t *iter, + int x, int y, int width, int height, + uint8_t *buffer, iter_flags_t flags); + +void +_pixman_radial_gradient_iter_init (pixman_image_t *image, + pixman_iter_t *iter, + int x, int y, int width, int height, + uint8_t *buffer, iter_flags_t flags); + +void +_pixman_conical_gradient_iter_init (pixman_image_t *image, + pixman_iter_t *iter, + int x, int y, int width, int height, + uint8_t *buffer, iter_flags_t flags); + +void _pixman_image_get_scanline_generic_64 (pixman_image_t *image, int x, int y, @@ -231,23 +282,6 @@ _pixman_image_get_scanline_64 (pixman_image_t *image, uint32_t * buffer, const uint32_t *unused); -void -_pixman_image_store_scanline_32 (bits_image_t * image, - int x, - int y, - int width, - const uint32_t *buffer); - -/* Even though the type of buffer is uint32_t *, the function - * actually expects a uint64_t *buffer. - */ -void -_pixman_image_store_scanline_64 (bits_image_t * image, - int x, - int y, - int width, - const uint32_t *buffer); - pixman_image_t * _pixman_image_allocate (void); @@ -527,6 +561,8 @@ _pixman_choose_implementation (void); /* * Utilities */ +uint32_t * +_pixman_iter_get_scanline_noop (pixman_iter_t *iter, const uint32_t *mask); /* These "formats" all have depth 0, so they * will never clash with any real ones