Home | History | Annotate | Download | only in effects

Lines Matching refs:sigma

25                                                      const SkRect& circle, float sigma);
38 static float make_unnormalized_half_kernel(float* halfKernel, int halfKernelSize, float sigma) {
39 const float invSigma = 1.f / sigma;
53 // Create a Gaussian half-kernel (right side) and a summed area table given a sigma and number
56 int halfKernelSize, float sigma) {
58 const float tot = 2.f * make_unnormalized_half_kernel(halfKernel, halfKernelSize, sigma);
130 static uint8_t* create_circle_profile(float sigma, float circleR, int profileTextureWidth) {
135 int halfKernelSize = SkScalarCeilToInt(6.0f*sigma);
146 make_half_kernel_and_summed_table(halfKernel, summedKernel, halfKernelSize, sigma);
163 float sigma = profileWidth / 6.f;
171 sigma);
192 float sigma,
198 // Profile textures are cached by the ratio of sigma to circle radius and by the size of the
200 SkScalar sigmaToCircleRRatio = sigma / circleR;
201 // When sigma is really small this becomes a equivalent to convolving a Gaussian with a
212 *solidRadius = circleR - 3 * sigma;
213 *textureRadius = 6 * sigma;
221 sigma = circleR * sigmaToCircleRRatio;
223 *textureRadius = circleR + 3 * sigma;
248 profile.reset(create_circle_profile(sigma * scale, circleR * scale,
266 GrProxyProvider* proxyProvider, const SkRect& circle, float sigma) {
269 sk_sp<GrTextureProxy> profile(create_profile_texture(proxyProvider, circle, sigma,
290 SkScalar sigma = testData->fRandom->nextRangeF(1.f,10.f);
292 return GrCircleBlurFragmentProcessor::Make(testData->proxyProvider(), circle, sigma);