Lines Matching refs:image
58 static bool _arrange(const SwImage* image, const SwBBox* region, int& yStart, int& yEnd) in _arrange() argument
66 regionTop = image->rle->spans->y; in _arrange()
67 regionBottom = image->rle->spans[image->rle->size - 1].y; in _arrange()
79 static bool _rasterMaskedPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBBox…
89 auto sbuf = image->buf8;
90 int32_t sw = static_cast<int32_t>(image->stride);
91 int32_t sh = image->h;
98 if (!_arrange(image, region, yStart, yEnd)) return false;
107 span = image->rle->spans;
124 while (span->y == y && spanIdx < image->rle->size) {
149 auto cmp = &surface->compositor->image.buf8[y * surface->compositor->image.stride + x1];
199 if ((uint32_t)v >= image->h) break;
250 if ((uint32_t)v >= image->h) break;
261 if (!region && spanIdx >= image->rle->size) break;
275 static void _rasterBlendingPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBB… in _rasterBlendingPolygonImageSegment() argument
280 auto sbuf = image->buf32; in _rasterBlendingPolygonImageSegment()
282 int32_t sw = static_cast<int32_t>(image->stride); in _rasterBlendingPolygonImageSegment()
283 int32_t sh = image->h; in _rasterBlendingPolygonImageSegment()
292 if (!_arrange(image, region, yStart, yEnd)) return; in _rasterBlendingPolygonImageSegment()
301 span = image->rle->spans; in _rasterBlendingPolygonImageSegment()
318 while (span->y == y && spanIdx < image->rle->size) { in _rasterBlendingPolygonImageSegment()
386 if ((uint32_t)v >= image->h) break; in _rasterBlendingPolygonImageSegment()
430 if ((uint32_t)v >= image->h) break; in _rasterBlendingPolygonImageSegment()
441 if (!region && spanIdx >= image->rle->size) break; in _rasterBlendingPolygonImageSegment()
452 static void _rasterPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBBox* regi… in _rasterPolygonImageSegment() argument
457 auto sbuf = image->buf32; in _rasterPolygonImageSegment()
459 int32_t sw = static_cast<int32_t>(image->stride); in _rasterPolygonImageSegment()
460 int32_t sh = image->h; in _rasterPolygonImageSegment()
470 auto csize = matting ? surface->compositor->image.channelSize: 0; in _rasterPolygonImageSegment()
474 if (!_arrange(image, region, yStart, yEnd)) return; in _rasterPolygonImageSegment()
483 span = image->rle->spans; in _rasterPolygonImageSegment()
500 while (span->y == y && spanIdx < image->rle->size) { in _rasterPolygonImageSegment()
527 …if (matting) cmp = &surface->compositor->image.buf8[(y * surface->compositor->image.stride + x1) *… in _rasterPolygonImageSegment()
577 if ((uint32_t)v >= image->h) break; in _rasterPolygonImageSegment()
627 if ((uint32_t)v >= image->h) break; in _rasterPolygonImageSegment()
638 if (!region && spanIdx >= image->rle->size) break; in _rasterPolygonImageSegment()
650 static void _rasterPolygonImage(SwSurface* surface, const SwImage* image, const SwBBox* region, Pol… in _rasterPolygonImage() argument
711 auto regionTop = region ? region->min.y : image->rle->spans->y; //Normal Image or Rle Image? in _rasterPolygonImage()
740 …if (_matting(surface)) _rasterPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, o… in _rasterPolygonImage()
741 … else _rasterMaskedPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, opacity, 1); in _rasterPolygonImage()
743 … _rasterBlendingPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, opacity); in _rasterPolygonImage()
745 … _rasterPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, opacity, false); in _rasterPolygonImage()
761 …if (_matting(surface)) _rasterPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, o… in _rasterPolygonImage()
762 … else _rasterMaskedPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, opacity, 2); in _rasterPolygonImage()
764 … _rasterBlendingPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, opacity); in _rasterPolygonImage()
766 … _rasterPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, opacity, false); in _rasterPolygonImage()
791 …if (_matting(surface)) _rasterPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, o… in _rasterPolygonImage()
792 … else _rasterMaskedPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, opacity, 3); in _rasterPolygonImage()
794 … _rasterBlendingPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, opacity); in _rasterPolygonImage()
796 … _rasterPolygonImageSegment(surface, image, region, yi[0], yi[1], aaSpans, opacity, false); in _rasterPolygonImage()
815 …if (_matting(surface)) _rasterPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, o… in _rasterPolygonImage()
816 … else _rasterMaskedPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, opacity, 4); in _rasterPolygonImage()
818 … _rasterBlendingPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, opacity); in _rasterPolygonImage()
820 … _rasterPolygonImageSegment(surface, image, region, yi[1], yi[2], aaSpans, opacity, false); in _rasterPolygonImage()
827 static AASpans* _AASpans(float ymin, float ymax, const SwImage* image, const SwBBox* region) in _AASpans() argument
832 if (!_arrange(image, region, yStart, yEnd)) return nullptr; in _AASpans()
1114 static bool _rasterTexmapPolygon(SwSurface* surface, const SwImage* image, const Matrix& transform,… in _rasterTexmapPolygon() argument
1122 if ((!image->rle && !region) || (image->rle && image->rle->size == 0)) return true; in _rasterTexmapPolygon()
1128 vertices[1] = {{float(image->w), 0.0f}, {float(image->w), 0.0f}}; in _rasterTexmapPolygon()
1129 vertices[2] = {{float(image->w), float(image->h)}, {float(image->w), float(image->h)}}; in _rasterTexmapPolygon()
1130 vertices[3] = {{0.0f, float(image->h)}, {0.0f, float(image->h)}}; in _rasterTexmapPolygon()
1139 auto aaSpans = _AASpans(ys, ye, image, region); in _rasterTexmapPolygon()
1149 _rasterPolygonImage(surface, image, region, polygon, aaSpans, opacity); in _rasterTexmapPolygon()
1156 _rasterPolygonImage(surface, image, region, polygon, aaSpans, opacity); in _rasterTexmapPolygon()
1160 _compositeMaskImage(surface, &surface->compositor->image, surface->compositor->bbox); in _rasterTexmapPolygon()