Lines Matching refs:x

45 …void operator()(const SwFill* fill, uint8_t* dst, uint32_t y, uint32_t x, uint32_t len, SwMask op,…  in operator ()()
47 fillLinear(fill, dst, y, x, len, op, a); in operator ()()
50 …void operator()(const SwFill* fill, uint8_t* dst, uint32_t y, uint32_t x, uint32_t len, uint8_t* c… in operator ()()
52 fillLinear(fill, dst, y, x, len, cmp, op, a); in operator ()()
55 …void operator()(const SwFill* fill, uint32_t* dst, uint32_t y, uint32_t x, uint32_t len, SwBlender… in operator ()()
57 fillLinear(fill, dst, y, x, len, op, a); in operator ()()
60 …void operator()(const SwFill* fill, uint32_t* dst, uint32_t y, uint32_t x, uint32_t len, uint8_t* … in operator ()()
62 fillLinear(fill, dst, y, x, len, cmp, alpha, csize, opacity); in operator ()()
65 …void operator()(const SwFill* fill, uint32_t* dst, uint32_t y, uint32_t x, uint32_t len, SwBlender… in operator ()()
67 fillLinear(fill, dst, y, x, len, op, op2, a); in operator ()()
74 …void operator()(const SwFill* fill, uint8_t* dst, uint32_t y, uint32_t x, uint32_t len, SwMask op,… in operator ()()
76 fillRadial(fill, dst, y, x, len, op, a); in operator ()()
79 …void operator()(const SwFill* fill, uint8_t* dst, uint32_t y, uint32_t x, uint32_t len, uint8_t* c… in operator ()()
81 fillRadial(fill, dst, y, x, len, cmp, op, a); in operator ()()
84 …void operator()(const SwFill* fill, uint32_t* dst, uint32_t y, uint32_t x, uint32_t len, SwBlender… in operator ()()
86 fillRadial(fill, dst, y, x, len, op, a); in operator ()()
89 …void operator()(const SwFill* fill, uint32_t* dst, uint32_t y, uint32_t x, uint32_t len, uint8_t* … in operator ()()
91 fillRadial(fill, dst, y, x, len, cmp, alpha, csize, opacity); in operator ()()
94 …void operator()(const SwFill* fill, uint32_t* dst, uint32_t y, uint32_t x, uint32_t len, SwBlender… in operator ()()
96 fillRadial(fill, dst, y, x, len, op, op2, a); in operator ()()
235 auto dbuffer = &surface->buf8[region.min.y * surface->stride + region.min.x]; in _compositeMaskImage()
236 …auto sbuffer = image->buf8 + (region.min.y + image->oy) * image->stride + (region.min.x + image->o… in _compositeMaskImage()
241 for (auto x = region.min.x; x < region.max.x; x++, dst++, src++) { in _compositeMaskImage() local
307 for (auto x = minx; x < maxx; x += inc, p += inc) { in _interpDownScaler() local
332 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterCompositeMaskedRect()
335 …auto cbuffer = surface->compositor->image.buf8 + (region.min.y * cstride + region.min.x); //comp… in _rasterCompositeMaskedRect()
340 for (uint32_t x = 0; x < w; ++x, ++cmp) { in _rasterCompositeMaskedRect() local
351 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterDirectMaskedRect()
353 …image.buf8 + (region.min.y * surface->compositor->image.stride + region.min.x); //compositor buf… in _rasterDirectMaskedRect()
354 …auto dbuffer = surface->buf8 + (region.min.y * surface->stride + region.min.x); //destination bu… in _rasterDirectMaskedRect()
359 for (uint32_t x = 0; x < w; ++x, ++cmp, ++dst) { in _rasterDirectMaskedRect() local
375 …u %lu]", (int)surface->compositor->method, region.min.x, region.min.y, region.max.x - region.min.x in _rasterMaskedRect()
386 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterMattedRect()
389 …mage.buf8 + ((region.min.y * surface->compositor->image.stride + region.min.x) * csize); //compo… in _rasterMattedRect()
392 …Rect [Region: %lu %lu %u %u]", (int)surface->compositor->method, region.min.x, region.min.y, w, h); in _rasterMattedRect()
397 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in _rasterMattedRect()
401 for (uint32_t x = 0; x < w; ++x, ++dst, cmp += csize) { in _rasterMattedRect() local
408 auto buffer = surface->buf8 + (region.min.y * surface->stride) + region.min.x; in _rasterMattedRect()
412 for (uint32_t x = 0; x < w; ++x, ++dst, cmp += csize) { in _rasterMattedRect() local
425 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterBlendingRect()
428 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in _rasterBlendingRect()
432 for (uint32_t x = 0; x < w; ++x, ++dst) { in _rasterBlendingRect() local
454 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterSolidRect()
462 rasterPixel32(buffer + y * surface->stride, color, region.min.x, w); in _rasterSolidRect()
469 … rasterGrayscale8(surface->buf8, 255, (y + region.min.y) * surface->stride + region.min.x, w); in _rasterSolidRect()
504 auto cmp = &cbuffer[span->y * cstride + span->x]; in _rasterCompositeMaskedRle()
508 for (auto x = 0; x < span->len; ++x, ++cmp) { in _rasterCompositeMaskedRle() local
524 auto cmp = &cbuffer[span->y * cstride + span->x]; in _rasterDirectMaskedRle()
525 auto dst = &surface->buf8[span->y * surface->stride + span->x]; in _rasterDirectMaskedRle()
528 for (auto x = 0; x < span->len; ++x, ++cmp, ++dst) { in _rasterDirectMaskedRle() local
565 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterMattedRle()
566 auto cmp = &cbuffer[(span->y * surface->compositor->image.stride + span->x) * csize]; in _rasterMattedRle()
569 for (uint32_t x = 0; x < span->len; ++x, ++dst, cmp += csize) { in _rasterMattedRle() local
578 auto dst = &surface->buf8[span->y * surface->stride + span->x]; in _rasterMattedRle()
579 auto cmp = &cbuffer[(span->y * surface->compositor->image.stride + span->x) * csize]; in _rasterMattedRle()
582 for (uint32_t x = 0; x < span->len; ++x, ++dst, cmp += csize) { in _rasterMattedRle() local
599 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterBlendingRle()
601 for (uint32_t x = 0; x < span->len; ++x, ++dst) { in _rasterBlendingRle() local
605 for (uint32_t x = 0; x < span->len; ++x, ++dst) { in _rasterBlendingRle() local
636 … rasterPixel32(surface->buf32 + span->y * surface->stride, color, span->x, span->len); in _rasterSolidRle()
638 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterSolidRle()
641 for (uint32_t x = 0; x < span->len; ++x, ++dst) { in _rasterSolidRle() local
650 … rasterGrayscale8(surface->buf8, span->coverage, span->y * surface->stride + span->x, span->len); in _rasterSolidRle()
652 auto dst = &surface->buf8[span->y * surface->stride + span->x]; in _rasterSolidRle()
654 for (uint32_t x = 0; x < span->len; ++x, ++dst) { in _rasterSolidRle() local
697 auto sx = (x) * itransform->e11 + itransform->e13 - 0.49f; \
720 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterScaledMattedRleImage()
721 … &surface->compositor->image.buf8[(span->y * surface->compositor->image.stride + span->x) * csize]; in _rasterScaledMattedRleImage()
723 …for (uint32_t x = static_cast<uint32_t>(span->x); x < static_cast<uint32_t>(span->x) + span->len; … in _rasterScaledMattedRleImage() local
743 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterScaledBlendingRleImage()
746 …for (uint32_t x = static_cast<uint32_t>(span->x); x < static_cast<uint32_t>(span->x) + span->len; … in _rasterScaledBlendingRleImage() local
753 …for (uint32_t x = static_cast<uint32_t>(span->x); x < static_cast<uint32_t>(span->x) + span->len; … in _rasterScaledBlendingRleImage() local
774 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterScaledRleImage()
776 …for (uint32_t x = static_cast<uint32_t>(span->x); x < static_cast<uint32_t>(span->x) + span->len; … in _rasterScaledRleImage() local
824 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterDirectMattedRleImage()
825 auto cmp = &cbuffer[(span->y * surface->compositor->image.stride + span->x) * csize]; in _rasterDirectMattedRleImage()
826 auto img = image->buf32 + (span->y + image->oy) * image->stride + (span->x + image->ox); in _rasterDirectMattedRleImage()
829 for (uint32_t x = 0; x < span->len; ++x, ++dst, ++img, cmp += csize) { in _rasterDirectMattedRleImage() local
834 for (uint32_t x = 0; x < span->len; ++x, ++dst, ++img, cmp += csize) { in _rasterDirectMattedRleImage() local
849 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterDirectBlendingRleImage()
850 auto img = image->buf32 + (span->y + image->oy) * image->stride + (span->x + image->ox); in _rasterDirectBlendingRleImage()
853 for (uint32_t x = 0; x < span->len; ++x, ++dst, ++img) { in _rasterDirectBlendingRleImage() local
857 for (uint32_t x = 0; x < span->len; ++x, ++dst, ++img) { in _rasterDirectBlendingRleImage() local
872 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterDirectRleImage()
873 auto img = image->buf32 + (span->y + image->oy) * image->stride + (span->x + image->ox); in _rasterDirectRleImage()
876 for (uint32_t x = 0; x < span->len; ++x, ++dst, ++img) { in _rasterDirectRleImage() local
880 for (uint32_t x = 0; x < span->len; ++x, ++dst, ++img) { in _rasterDirectRleImage() local
934 auto dbuffer = surface->buf32 + (region.min.y * surface->stride + region.min.x); in _rasterScaledMattedImage()
936 …compositor->image.buf8 + (region.min.y * surface->compositor->image.stride + region.min.x) * csize; in _rasterScaledMattedImage()
939 …u %lu]", (int)surface->compositor->method, region.min.x, region.min.y, region.max.x - region.min.x in _rasterScaledMattedImage()
949 for (auto x = region.min.x; x < region.max.x; ++x, ++dst, cmp += csize) { in _rasterScaledMattedImage() local
969 auto dbuffer = surface->buf32 + (region.min.y * surface->stride + region.min.x); in _rasterScaledBlendingImage()
977 for (auto x = region.min.x; x < region.max.x; ++x, ++dst) { in _rasterScaledBlendingImage() local
996 auto buffer = surface->buf32 + (region.min.y * surface->stride + region.min.x); in _rasterScaledImage()
1000 for (auto x = region.min.x; x < region.max.x; ++x, ++dst) { in _rasterScaledImage() local
1008 auto buffer = surface->buf8 + (region.min.y * surface->stride + region.min.x); in _rasterScaledImage()
1012 for (auto x = region.min.x; x < region.max.x; ++x, ++dst) { in _rasterScaledImage() local
1055 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterDirectMattedImage()
1058 …auto sbuffer = image->buf32 + (region.min.y + image->oy) * image->stride + (region.min.x + image->… in _rasterDirectMattedImage()
1059 …image.buf8 + (region.min.y * surface->compositor->image.stride + region.min.x) * csize; //composit… in _rasterDirectMattedImage()
1061 …age [Region: %lu %lu %u %u]", (int)surface->compositor->method, region.min.x, region.min.y, w, h); in _rasterDirectMattedImage()
1065 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in _rasterDirectMattedImage()
1071 for (uint32_t x = 0; x < w; ++x, ++dst, ++src, cmp += csize) { in _rasterDirectMattedImage() local
1076 for (uint32_t x = 0; x < w; ++x, ++dst, ++src, cmp += csize) { in _rasterDirectMattedImage() local
1087 auto buffer = surface->buf8 + (region.min.y * surface->stride) + region.min.x; in _rasterDirectMattedImage()
1093 for (uint32_t x = 0; x < w; ++x, ++dst, ++src, cmp += csize) { in _rasterDirectMattedImage() local
1098 for (uint32_t x = 0; x < w; ++x, ++dst, ++src, cmp += csize) { in _rasterDirectMattedImage() local
1119 auto dbuffer = &surface->buf32[region.min.y * surface->stride + region.min.x]; in _rasterDirectBlendingImage()
1120 …auto sbuffer = image->buf32 + (region.min.y + image->oy) * image->stride + (region.min.x + image->… in _rasterDirectBlendingImage()
1126 for (auto x = region.min.x; x < region.max.x; x++, dst++, src++) { in _rasterDirectBlendingImage() local
1131 for (auto x = region.min.x; x < region.max.x; x++, dst++, src++) { in _rasterDirectBlendingImage() local
1145 …auto sbuffer = image->buf32 + (region.min.y + image->oy) * image->stride + (region.min.x + image->… in _rasterDirectImage()
1149 auto dbuffer = &surface->buf32[region.min.y * surface->stride + region.min.x]; in _rasterDirectImage()
1155 for (auto x = region.min.x; x < region.max.x; x++, dst++, src++) { in _rasterDirectImage() local
1159 for (auto x = region.min.x; x < region.max.x; ++x, ++dst, ++src) { in _rasterDirectImage() local
1169 auto dbuffer = &surface->buf8[region.min.y * surface->stride + region.min.x]; in _rasterDirectImage()
1175 for (auto x = region.min.x; x < region.max.x; ++x, ++dst, ++src) { in _rasterDirectImage() local
1179 for (auto x = region.min.x; x < region.max.x; ++x, ++dst, ++src) { in _rasterDirectImage() local
1197 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterDirectMattedBlendingImage()
1200 …auto sbuffer = image->buf32 + (region.min.y + image->oy) * image->stride + (region.min.x + image->… in _rasterDirectMattedBlendingImage()
1201 …image.buf8 + (region.min.y * surface->compositor->image.stride + region.min.x) * csize; //composit… in _rasterDirectMattedBlendingImage()
1202 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in _rasterDirectMattedBlendingImage()
1209 for (uint32_t x = 0; x < w; ++x, ++dst, ++src, cmp += csize) { in _rasterDirectMattedBlendingImage() local
1214 for (uint32_t x = 0; x < w; ++x, ++dst, ++src, cmp += csize) { in _rasterDirectMattedBlendingImage() local
1269 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterCompositeGradientMaskedRect()
1271 auto cbuffer = surface->compositor->image.buf8 + (region.min.y * cstride + region.min.x); in _rasterCompositeGradientMaskedRect()
1274 fillMethod()(fill, cbuffer, region.min.y + y, region.min.x, w, maskOp, 255); in _rasterCompositeGradientMaskedRect()
1285 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterDirectGradientMaskedRect()
1287 auto cbuffer = surface->compositor->image.buf8 + (region.min.y * cstride + region.min.x); in _rasterDirectGradientMaskedRect()
1288 auto dbuffer = surface->buf8 + (region.min.y * surface->stride + region.min.x); in _rasterDirectGradientMaskedRect()
1291 fillMethod()(fill, dbuffer, region.min.y + y, region.min.x, w, cbuffer, maskOp, 255); in _rasterDirectGradientMaskedRect()
1304 …t [Region: %lu %lu %lu %lu]", (int)method, region.min.x, region.min.y, region.max.x - region.min.x in _rasterGradientMaskedRect()
1318 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in _rasterGradientMattedRect()
1320 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterGradientMattedRect()
1322 …compositor->image.buf8 + (region.min.y * surface->compositor->image.stride + region.min.x) * csize; in _rasterGradientMattedRect()
1325 …ient [Region: %lu %lu %u %u]", (int)surface->compositor->method, region.min.x, region.min.y, w, h); in _rasterGradientMattedRect()
1328 fillMethod()(fill, buffer, region.min.y + y, region.min.x, w, cbuffer, alpha, csize, 255); in _rasterGradientMattedRect()
1339 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in _rasterBlendingGradientRect()
1340 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterBlendingGradientRect()
1345 …fillMethod()(fill, buffer + y * surface->stride, region.min.y + y, region.min.x, w, opBlendPreNorm… in _rasterBlendingGradientRect()
1349 …fillMethod()(fill, buffer + y * surface->stride, region.min.y + y, region.min.x, w, opBlendSrcOver… in _rasterBlendingGradientRect()
1359 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterTranslucentGradientRect()
1363 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in _rasterTranslucentGradientRect()
1365 fillMethod()(fill, buffer, region.min.y + y, region.min.x, w, opBlendPreNormal, 255); in _rasterTranslucentGradientRect()
1370 auto buffer = surface->buf8 + (region.min.y * surface->stride) + region.min.x; in _rasterTranslucentGradientRect()
1372 fillMethod()(fill, buffer, region.min.y + y, region.min.x, w, _opMaskAdd, 255); in _rasterTranslucentGradientRect()
1383 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterSolidGradientRect()
1388 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in _rasterSolidGradientRect()
1390 fillMethod()(fill, buffer, region.min.y + y, region.min.x, w, opBlendSrcOver, 255); in _rasterSolidGradientRect()
1395 auto buffer = surface->buf8 + (region.min.y * surface->stride) + region.min.x; in _rasterSolidGradientRect()
1397 fillMethod()(fill, buffer, region.min.y + y, region.min.x, w, _opMaskNone, 255); in _rasterSolidGradientRect()
1447 auto cmp = &cbuffer[span->y * cstride + span->x]; in _rasterCompositeGradientMaskedRle()
1448 fillMethod()(fill, cmp, span->y, span->x, span->len, maskOp, span->coverage); in _rasterCompositeGradientMaskedRle()
1463 auto cmp = &cbuffer[span->y * cstride + span->x]; in _rasterDirectGradientMaskedRle()
1464 auto dst = &dbuffer[span->y * surface->stride + span->x]; in _rasterDirectGradientMaskedRle()
1465 fillMethod()(fill, dst, span->y, span->x, span->len, cmp, maskOp, span->coverage); in _rasterDirectGradientMaskedRle()
1497 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterGradientMattedRle()
1498 auto cmp = &cbuffer[(span->y * surface->compositor->image.stride + span->x) * csize]; in _rasterGradientMattedRle()
1499 fillMethod()(fill, dst, span->y, span->x, span->len, cmp, alpha, csize, span->coverage); in _rasterGradientMattedRle()
1511 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterBlendingGradientRle()
1512 …fillMethod()(fill, dst, span->y, span->x, span->len, opBlendPreNormal, surface->blender, span->cov… in _rasterBlendingGradientRle()
1526 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterTranslucentGradientRle()
1527 …if (span->coverage == 255) fillMethod()(fill, dst, span->y, span->x, span->len, opBlendPreNormal, … in _rasterTranslucentGradientRle()
1528 … else fillMethod()(fill, dst, span->y, span->x, span->len, opBlendNormal, span->coverage); in _rasterTranslucentGradientRle()
1533 auto dst = &surface->buf8[span->y * surface->stride + span->x]; in _rasterTranslucentGradientRle()
1534 fillMethod()(fill, dst, span->y, span->x, span->len, _opMaskAdd, span->coverage); in _rasterTranslucentGradientRle()
1549 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in _rasterSolidGradientRle()
1550 …if (span->coverage == 255) fillMethod()(fill, dst, span->y, span->x, span->len, opBlendSrcOver, 25… in _rasterSolidGradientRle()
1551 … else fillMethod()(fill, dst, span->y, span->x, span->len, opBlendInterp, span->coverage); in _rasterSolidGradientRle()
1556 auto dst = &surface->buf8[span->y * surface->stride + span->x]; in _rasterSolidGradientRle()
1557 … if (span->coverage == 255) fillMethod()(fill, dst, span->y, span->x, span->len, _opMaskNone, 255); in _rasterSolidGradientRle()
1558 else fillMethod()(fill, dst, span->y, span->x, span->len, _opMaskAdd, span->coverage); in _rasterSolidGradientRle()
1651 bool rasterClear(SwSurface* surface, uint32_t x, uint32_t y, uint32_t w, uint32_t h, pixel_t val) in rasterClear() argument
1663 … rasterPixel32(surface->buf32, val, (surface->stride * y + x) + (surface->stride * i), w); in rasterClear()
1674 … rasterGrayscale8(surface->buf8, 0x00, (surface->stride * y + x) + (surface->stride * i), w); in rasterClear()
1691 for (uint32_t x = 0; x < surface->w; ++x) { in rasterUnpremultiply() local
1692 uint8_t a = buffer[x] >> 24; in rasterUnpremultiply()
1696 buffer[x] = 0x00ffffff; in rasterUnpremultiply()
1698 uint16_t r = ((buffer[x] >> 8) & 0xff00) / a; in rasterUnpremultiply()
1699 uint16_t g = ((buffer[x]) & 0xff00) / a; in rasterUnpremultiply()
1700 uint16_t b = ((buffer[x] << 8) & 0xff00) / a; in rasterUnpremultiply()
1704 buffer[x] = (a << 24) | (r << 16) | (g << 8) | (b); in rasterUnpremultiply()
1724 for (uint32_t x = 0; x < surface->w; ++x, ++dst) { in rasterPremultiply() local
1798 …if (bbox.max.x < 0 || bbox.max.y < 0 || bbox.min.x >= static_cast<SwCoord>(surface->w) || bbox.min… in rasterImage()
1830 src += ((bbox.min.x * stride) + bbox.min.y); in rasterXYFlip()
1831 dst += ((bbox.min.y * stride) + bbox.min.x); in rasterXYFlip()
1833 src += ((bbox.min.y * stride) + bbox.min.x); in rasterXYFlip()
1834 dst += ((bbox.min.x * stride) + bbox.min.y); in rasterXYFlip()
1837 for (int x = 0; x < w; x += BLOCK) { in rasterXYFlip() local
1838 auto bx = std::min(w, x + BLOCK) - x; in rasterXYFlip()
1839 auto in = &src[x]; in rasterXYFlip()
1840 auto out = &dst[x * stride]; in rasterXYFlip()