Lines Matching refs:surface

79 static bool _rasterMaskedPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBBox…
84 auto maskOp = _getMaskOp(surface->compositor->method);
85 auto direct = _direct(surface->compositor->method);
149 auto cmp = &surface->compositor->image.buf8[y * surface->compositor->image.stride + x1];
150 auto dst = &surface->buf8[y * surface->stride + x1];
275 static void _rasterBlendingPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBB… in _rasterBlendingPolygonImageSegment() argument
281 auto dbuf = surface->buf32; in _rasterBlendingPolygonImageSegment()
284 int32_t dw = surface->stride; in _rasterBlendingPolygonImageSegment()
379 *buf = surface->blender(px, *buf, IA(px)); in _rasterBlendingPolygonImageSegment()
423 *buf = surface->blender(src, *buf, IA(src)); in _rasterBlendingPolygonImageSegment()
452 static void _rasterPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBBox* regi… in _rasterPolygonImageSegment() argument
458 auto dbuf = surface->buf32; in _rasterPolygonImageSegment()
461 int32_t dw = surface->stride; in _rasterPolygonImageSegment()
470 auto csize = matting ? surface->compositor->image.channelSize: 0; in _rasterPolygonImageSegment()
471 auto alpha = matting ? surface->alpha(surface->compositor->method) : nullptr; in _rasterPolygonImageSegment()
527 …if (matting) cmp = &surface->compositor->image.buf8[(y * surface->compositor->image.stride + x1) *… in _rasterPolygonImageSegment()
650 static void _rasterPolygonImage(SwSurface* surface, const SwImage* image, const SwBBox* region, Pol… in _rasterPolygonImage() argument
712 auto compositing = _compositing(surface); //Composition required in _rasterPolygonImage()
713 auto blending = _blending(surface); //Blending required 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()
1042 static bool _apply(SwSurface* surface, AASpans* aaSpans) in _apply() argument
1044 auto end = surface->buf32 + surface->h * surface->stride; in _apply()
1059 auto offset = y * surface->stride; in _apply()
1062 dst = surface->buf32 + (offset + line->x[0]); in _apply()
1079 dst = surface->buf32 + offset + line->x[1] - 1; in _apply()
1081 if (line->x[1] < (int32_t)(surface->w - 1)) pixel = *(dst + 1); in _apply()
1086 if (dst - pos < surface->buf32) --pos; in _apply()
1114 static bool _rasterTexmapPolygon(SwSurface* surface, const SwImage* image, const Matrix& transform,… in _rasterTexmapPolygon() argument
1116 if (surface->channelSize == sizeof(uint8_t)) { in _rasterTexmapPolygon()
1149 _rasterPolygonImage(surface, image, region, polygon, aaSpans, opacity); in _rasterTexmapPolygon()
1156 _rasterPolygonImage(surface, image, region, polygon, aaSpans, opacity); in _rasterTexmapPolygon()
1159 if (_compositing(surface) && _masking(surface) && !_direct(surface->compositor->method)) { in _rasterTexmapPolygon()
1160 _compositeMaskImage(surface, &surface->compositor->image, surface->compositor->bbox); in _rasterTexmapPolygon()
1163 return _apply(surface, aaSpans); in _rasterTexmapPolygon()