Lines Matching refs:dst
92 static void apply_kernel(uint8_t dst[], int rx, int ry, const uint32_t sum[],
116 *dst++ = SkToU8(tmp * scale >> 24);
131 static void apply_kernel_interp(uint8_t dst[], int rx, int ry,
172 *dst++ = SkToU8((outer_sum * outer_scale + inner_sum * inner_scale) >> 24);
184 static void merge_src_with_blur(uint8_t dst[], int dstRB,
193 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*src)));
194 dst += 1;
198 dst += dstRB;
204 static void clamp_with_orig(uint8_t dst[], int dstRowBytes,
214 int d = *dst;
215 *dst = SkToU8(s + d - SkMulDiv255Round(s, d));
216 dst += 1;
223 *dst = SkToU8(SkAlphaMul(*dst, SkAlpha255To256(255 - *src)));
225 dst += 1;
233 dst += dstRowBytes - sw;
248 bool SkBlurMask::Blur(SkMask* dst, const SkMask& src,
274 dst->fBounds.set(src.fBounds.fLeft - padx, src.fBounds.fTop - pady,
276 dst->fRowBytes = dst->fBounds.width();
277 dst->fFormat = SkMask::kA8_Format;
278 dst->fImage = NULL;
281 size_t dstSize = dst->computeImageSize();
329 dst->fImage = dp;
330 // if need be, alloc the "real" dst (same size as src) and copy/merge
333 // now we allocate the "real" dst, mirror the size of src
338 dst->fImage = SkMask::AllocImage(srcSize);
339 merge_src_with_blur(dst->fImage, src.fRowBytes,
341 dp + passCount * (rx + ry * dst->fRowBytes), dst->fRowBytes,
345 clamp_with_orig(dp + passCount * (rx + ry * dst->fRowBytes), dst->fRowBytes,
353 dst->fBounds = src.fBounds; // restore trimmed bounds
354 dst->fRowBytes = src.fRowBytes;
358 if (gamma && dst->fImage) {
359 uint8_t* image = dst->fImage;
360 uint8_t* stop = image + dst->computeImageSize();