Lines Matching refs:pixel
39 // * The clamp tiler can create spans with length of 0. This indicates to copy an edge pixel out
119 // start - is the starting pixel. This is in destination space before the matrix stage, and in
121 // length - is this distance between the first pixel center and the last pixel center. Like start,
472 static Sk4f VECTORCALL sRGBToLinear(Sk4f pixel) {
473 Sk4f l = pixel * pixel;
474 return Sk4f{l[0], l[1], l[2], pixel[3]};
515 Sk4f pixel = SkNx_cast<float, uint8_t>(bytePixel);
516 pixel = pixel * Sk4f{1.0f/255.0f};
518 pixel = sRGBFast::sRGBToLinear(pixel);
520 return pixel;
585 Sk4f pixel = bilerp4(xs, ys, px00, px10, px01, px11);
586 fNext->placePixel(pixel);
630 void VECTORCALL placePixel(Sk4f pixel) override {
631 PlacePixel(fDst, pixel, 0);
649 static void VECTORCALL PlacePixel(SkPM4f* dst, Sk4f pixel, int index) {
650 Sk4f newPixel = pixel;
652 newPixel = Premultiply(pixel);
656 static Sk4f VECTORCALL Premultiply(Sk4f pixel) {
657 float alpha = pixel[3];
658 return pixel * Sk4f{alpha, alpha, alpha, 1.0f};
705 // math correct through the different stages. Count is the number of pixel to produce.
706 // Since the code samples at pixel centers, length is the distance from the center of the
707 // first pixel to the center of the last pixel. This implies that length is count-1.