Lines Matching refs:src
25 const uint8_t* SK_RESTRICT src,
29 dst[x] = SkPackARGB32(0xFF, src[0], src[0], src[0]);
30 src += deltaSrc;
36 const uint8_t* SK_RESTRICT src,
40 dst[x] = SkPackARGB32(0xFF, src[0], src[1], src[2]);
41 src += deltaSrc;
47 const uint8_t* SK_RESTRICT src,
52 unsigned alpha = src[3];
53 dst[x] = SkPreMultiplyARGB(alpha, src[0], src[1], src[2]);
54 src += deltaSrc;
63 const uint8_t* SK_RESTRICT src,
67 dst[x] = SkPack888ToRGB16(src[0], src[0], src[0]);
68 src += deltaSrc;
74 const uint8_t* SK_RESTRICT src,
79 dst[x] = SkDitherRGBTo565(src[0], src[0], src[0], DITHER_VALUE(x));
80 src += deltaSrc;
86 const uint8_t* SK_RESTRICT src,
90 dst[x] = SkPack888ToRGB16(src[0], src[1], src[2]);
91 src += deltaSrc;
97 const uint8_t* SK_RESTRICT src,
100 uint16_t* SK_RESTRICT castedSrc = (uint16_t*) src;
109 const uint8_t* SK_RESTRICT src,
114 dst[x] = SkDitherRGBTo565(src[0], src[1], src[2], DITHER_VALUE(x));
115 src += deltaSrc;
123 const uint8_t* SK_RESTRICT src,
127 unsigned gray = src[0] >> 4;
129 src += deltaSrc;
135 const uint8_t* SK_RESTRICT src,
140 dst[x] = SkDitherARGB32To4444(0xFF, src[0], src[0], src[0],
142 src += deltaSrc;
148 const uint8_t* SK_RESTRICT src,
152 dst[x] = SkPackARGB4444(0xF, src[0] >> 4, src[1] >> 4, src[2] >> 4);
153 src += deltaSrc;
159 const uint8_t* SK_RESTRICT src,
165 dst[x] = SkDitherARGB32To4444(0xFF, src[0], src[1], src[2],
167 src += deltaSrc;
173 const uint8_t* SK_RESTRICT src,
179 unsigned alpha = src[3];
180 SkPMColor c = SkPreMultiplyARGB(alpha, src[0], src[1], src[2]);
182 src += deltaSrc;
189 const uint8_t* SK_RESTRICT src,
196 unsigned alpha = src[3];
197 SkPMColor c = SkPreMultiplyARGB(alpha, src[0], src[1], src[2]);
199 src += deltaSrc;
210 const uint8_t* SK_RESTRICT src,
216 SkPMColor c = ctable[*src];
219 src += deltaSrc;
225 const uint8_t* SK_RESTRICT src,
230 dst[x] = SkPixel32ToPixel16(ctable[*src]);
231 src += deltaSrc;
237 const uint8_t* SK_RESTRICT src, int width,
244 SkPMColor c = ctable[*src];
247 src += deltaSrc;
253 const uint8_t* SK_RESTRICT src, int width,
259 SkPMColor c = ctable[*src];
262 src += deltaSrc;
268 const uint8_t* SK_RESTRICT src, int width,
276 SkPMColor c = ctable[*src];
279 src += deltaSrc;
285 const uint8_t* SK_RESTRICT src,
288 memcpy(dstRow, src, width);
292 dst[x] = src[0];
293 src += deltaSrc;
430 bool SkScaledBitmapSampler::next(const uint8_t* SK_RESTRICT src) {
433 bool hadAlpha = fRowProc(fDstRow, src + fX0 * fSrcPixelSize, fScaledWidth,