Lines Matching defs:profile
290 To get the profile curve of the blurred step function at the rectangle
330 point values between 0 and 255 for the profile signature of
333 all the time, we actually fill in the profile pre-inverted
337 void SkBlurMask::ComputeBlurProfile(uint8_t* profile, int size, SkScalar sigma) {
344 profile[0] = 255;
348 profile[x] = 255 - (uint8_t) (255.f * gi);
352 // TODO MAYBE: Maintain a profile cache to avoid recomputing this for
359 uint8_t SkBlurMask::ProfileLookup(const uint8_t *profile, int loc,
368 return profile[ox];
371 void SkBlurMask::ComputeBlurredScanline(uint8_t *pixels, const uint8_t *profile,
378 // nearest odd number less than the profile size represents the center
379 // of the (2x scaled) profile
386 pixels[x] = ProfileLookup(profile, x, width, w);
428 SkAutoTMalloc<uint8_t> profile(profileSize);
430 ComputeBlurProfile(profile, profileSize, sigma);
449 ComputeBlurredScanline(horizontalScanline, profile, dstWidth, sigma);
450 ComputeBlurredScanline(verticalScanline, profile, dstHeight, sigma);