Lines Matching defs:profile
631 To get the profile curve of the blurred step function at the rectangle
671 point values between 0 and 255 for the profile signature of
674 all the time, we actually fill in the profile pre-inverted
685 uint8_t *profile = SkNEW_ARRAY(uint8_t, size);
689 profile[0] = 255;
693 profile[x] = 255 - (uint8_t) (255.f * gi);
696 *profile_out = profile;
699 // TODO MAYBE: Maintain a profile cache to avoid recomputing this for
706 uint8_t SkBlurMask::ProfileLookup(const uint8_t *profile, int loc, int blurred_width, int sharp_width) {
713 return profile[ox];
716 void SkBlurMask::ComputeBlurredScanline(uint8_t *pixels, const uint8_t *profile,
723 // nearest odd number less than the profile size represents the center
724 // of the (2x scaled) profile
731 pixels[x] = ProfileLookup(profile, x, width, w);
772 uint8_t *profile = NULL;
774 ComputeBlurProfile(sigma, &profile);
775 SkAutoTDeleteArray<uint8_t> ada(profile);
794 ComputeBlurredScanline(horizontalScanline, profile, dstWidth, sigma);
795 ComputeBlurredScanline(verticalScanline, profile, dstHeight, sigma);