Lines Matching refs:image

56 fetch_pixel_no_alpha (bits_image_t *image,
60 (x < 0 || x >= image->width || y < 0 || y >= image->height))
65 return image->fetch_pixel_32 (image, x, y);
68 typedef uint32_t (* get_pixel_t) (bits_image_t *image,
72 bits_image_fetch_pixel_nearest (bits_image_t *image,
80 if (image->common.repeat != PIXMAN_REPEAT_NONE)
82 repeat (image->common.repeat, &x0, image->width);
83 repeat (image->common.repeat, &y0, image->height);
85 return get_pixel (image, x0, y0, FALSE);
89 return get_pixel (image, x0, y0, TRUE);
94 bits_image_fetch_pixel_bilinear (bits_image_t *image,
99 pixman_repeat_t repeat_mode = image->common.repeat;
100 int width = image->width;
101 int height = image->height;
124 tl = get_pixel (image, x1, y1, FALSE);
125 bl = get_pixel (image, x1, y2, FALSE);
126 tr = get_pixel (image, x2, y1, FALSE);
127 br = get_pixel (image, x2, y2, FALSE);
131 tl = get_pixel (image, x1, y1, TRUE);
132 tr = get_pixel (image, x2, y1, TRUE);
133 bl = get_pixel (image, x1, y2, TRUE);
134 br = get_pixel (image, x2, y2, TRUE);
145 pixman_image_t * ima = iter->image;
181 * image that bilinear code must read.
184 * outside of the image;
267 /* Zero fill to the left of the image */
348 /* Zero fill to the left of the image */
356 bits_image_fetch_pixel_convolution (bits_image_t *image,
361 pixman_fixed_t *params = image->common.filter_params;
367 pixman_repeat_t repeat_mode = image->common.repeat;
368 int width = image->width;
369 int height = image->height;
399 pixel = get_pixel (image, rx, ry, FALSE);
403 pixel = get_pixel (image, rx, ry, TRUE);
430 bits_image_fetch_pixel_separable_convolution (bits_image_t *image,
435 pixman_fixed_t *params = image->common.filter_params;
436 pixman_repeat_t repeat_mode = image->common.repeat;
437 int width = image->width;
438 int height = image->height;
496 pixel = get_pixel (image, rx, ry, FALSE);
500 pixel = get_pixel (image, rx, ry, TRUE);
528 bits_image_fetch_pixel_filtered (bits_image_t *image,
533 switch (image->common.filter)
537 return bits_image_fetch_pixel_nearest (image, x, y, get_pixel);
543 return bits_image_fetch_pixel_bilinear (image, x, y, get_pixel);
547 return bits_image_fetch_pixel_convolution (image, x, y, get_pixel);
551 return bits_image_fetch_pixel_separable_convolution (image, x, y, get_pixel);
565 pixman_image_t *image = iter->image;
581 if (image->common.transform)
583 if (!pixman_transform_point_3d (image->common.transform, &v))
586 ux = image->common.transform->matrix[0][0];
587 uy = image->common.transform->matrix[1][0];
603 &image->bits, x, y, fetch_pixel_no_alpha);
615 fetch_pixel_general (bits_image_t *image, int x, int y, pixman_bool_t check_bounds)
620 (x < 0 || x >= image->width || y < 0 || y >= image->height))
625 pixel = image->fetch_pixel_32 (image, x, y);
627 if (image->common.alpha_map)
631 x -= image->common.alpha_origin_x;
632 y -= image->common.alpha_origin_y;
634 if (x < 0 || x >= image->common.alpha_map->width ||
635 y < 0 || y >= image->common.alpha_map->height)
641 pixel_a = image->common.alpha_map->fetch_pixel_32 (
642 image->common.alpha_map, x, y);
658 pixman_image_t *image = iter->image;
674 if (image->common.transform)
676 if (!pixman_transform_point_3d (image->common.transform, &v))
679 ux = image->common.transform->matrix[0][0];
680 uy = image->common.transform->matrix[1][0];
681 uw = image->common.transform->matrix[2][0];
712 &image->bits, x0, y0, fetch_pixel_general);
726 bits_image_fetch_separable_convolution_affine (pixman_image_t * image,
737 bits_image_t *bits = &image->bits;
738 pixman_fixed_t *params = image->common.filter_params;
757 if (!pixman_transform_point_3d (image->common.transform, &v))
760 ux = image->common.transform->matrix[0][0];
761 uy = image->common.transform->matrix[1][0];
872 bits_image_fetch_bilinear_affine (pixman_image_t * image,
886 bits_image_t *bits = &image->bits;
894 if (!pixman_transform_point_3d (image->common.transform, &v))
897 ux = image->common.transform->matrix[0][0];
898 uy = image->common.transform->matrix[1][0];
908 int width = image->bits.width;
909 int height = image->bits.height;
1026 bits_image_fetch_nearest_affine (pixman_image_t * image,
1040 bits_image_t *bits = &image->bits;
1048 if (!pixman_transform_point_3d (image->common.transform, &v))
1051 ux = image->common.transform->matrix[0][0];
1052 uy = image->common.transform->matrix[1][0];
1065 width = image->bits.width;
1066 height = image->bits.height;
1126 iter->image, \
1142 bits_image_fetch_bilinear_affine (iter->image, \
1157 bits_image_fetch_nearest_affine (iter->image, \
1225 bits_image_fetch_untransformed_repeat_none (bits_image_t *image,
1234 if (y < 0 || y >= image->height)
1251 if (x < image->width)
1253 w = MIN (width, image->width - x);
1256 image->fetch_scanline_float ((pixman_image_t *)image, x, y, w, buffer, NULL);
1258 image->fetch_scanline_32 ((pixman_image_t *)image, x, y, w, buffer, NULL);
1269 bits_image_fetch_untransformed_repeat_normal (bits_image_t *image,
1279 y += image->height;
1281 while (y >= image->height)
1282 y -= image->height;
1284 if (image->width == 1)
1287 replicate_pixel_float (image, 0, y, width, buffer);
1289 replicate_pixel_32 (image, 0, y, width, buffer);
1297 x += image->width;
1298 while (x >= image->width)
1299 x -= image->width;
1301 w = MIN (width, image->width - x);
1304 image->fetch_scanline_float ((pixman_image_t *)image, x, y, w, buffer, NULL);
1306 image->fetch_scanline_32 ((pixman_image_t *)image, x, y, w, buffer, NULL);
1318 pixman_image_t *image = iter->image;
1324 if (image->common.repeat == PIXMAN_REPEAT_NONE)
1327 &image->bits, FALSE, x, y, width, buffer);
1332 &image->bits, FALSE, x, y, width, buffer);
1343 pixman_image_t *image = iter->image;
1349 if (image->common.repeat == PIXMAN_REPEAT_NONE)
1352 &image->bits, TRUE, x, y, width, buffer);
1357 &image->bits, TRUE, x, y, width, buffer);
1488 bits_image_property_changed (pixman_image_t *image)
1490 _pixman_bits_image_setup_accessors (&image->bits);
1494 _pixman_bits_image_src_iter_init (pixman_image_t *image, pixman_iter_t *iter)
1496 pixman_format_code_t format = image->common.extended_format_code;
1497 uint32_t flags = image->common.flags;
1525 pixman_image_t *image = iter->image;
1531 image->bits.fetch_scanline_32 (image, x, y, width, buffer, mask);
1532 if (image->common.alpha_map)
1540 x -= image->common.alpha_origin_x;
1541 y -= image->common.alpha_origin_y;
1543 image->common.alpha_map->fetch_scanline_32 (
1544 (pixman_image_t *)image->common.alpha_map,
1563 bits_image_t * image = &iter->image->bits;
1569 image->fetch_scanline_float (
1570 (pixman_image_t *)image, x, y, width, (uint32_t *)buffer, mask);
1571 if (image->common.alpha_map)
1579 x -= image->common.alpha_origin_x;
1580 y -= image->common.alpha_origin_y;
1582 image->common.alpha_map->fetch_scanline_float (
1583 (pixman_image_t *)image->common.alpha_map,
1599 bits_image_t * image = &iter->image->bits;
1605 image->store_scanline_32 (image, x, y, width, buffer);
1607 if (image->common.alpha_map)
1609 x -= image->common.alpha_origin_x;
1610 y -= image->common.alpha_origin_y;
1612 image->common.alpha_map->store_scanline_32 (
1613 image->common.alpha_map, x, y, width, buffer);
1622 bits_image_t * image = &iter->image->bits;
1628 image->store_scanline_float (image, x, y, width, buffer);
1630 if (image->common.alpha_map)
1632 x -= image->common.alpha_origin_x;
1633 y -= image->common.alpha_origin_y;
1635 image->common.alpha_map->store_scanline_float (
1636 image->common.alpha_map, x, y, width, buffer);
1643 _pixman_bits_image_dest_iter_init (pixman_image_t *image, pixman_iter_t *iter)
1710 _pixman_bits_image_init (pixman_image_t * image,
1732 _pixman_image_init (image);
1734 image->type = BITS;
1735 image->bits.format = format;
1736 image->bits.width = width;
1737 image->bits.height = height;
1738 image->bits.bits = bits;
1739 image->bits.free_me = free_me;
1740 image->bits.read_func = NULL;
1741 image->bits.write_func = NULL;
1742 image->bits.rowstride = rowstride;
1743 image->bits.indexed = NULL;
1745 image->common.property_changed = bits_image_property_changed;
1747 _pixman_image_reset_clip_region (image);
1760 pixman_image_t *image;
1769 image = _pixman_image_allocate ();
1771 if (!image)
1774 if (!_pixman_bits_image_init (image, format, width, height, bits,
1778 free (image);
1782 return image;