• Home
  • Raw
  • Download

Lines Matching refs:radius

29 float Blur::convertRadiusToSigma(float radius) {  in convertRadiusToSigma()  argument
30 return radius > 0 ? BLUR_SIGMA_SCALE * radius + 0.5f : 0.0f; in convertRadiusToSigma()
40 uint32_t Blur::convertRadiusToInt(float radius) { in convertRadiusToInt() argument
41 const float radiusCeil = ceilf(radius); in convertRadiusToInt()
42 if (MathUtils::areEqual(radiusCeil, radius)) { in convertRadiusToInt()
45 return radius; in convertRadiusToInt()
57 static float legacyConvertRadiusToSigma(float radius) { in legacyConvertRadiusToSigma() argument
58 return radius > 0 ? 0.3f * radius + 0.6f : 0.0f; in legacyConvertRadiusToSigma()
61 void Blur::generateGaussianWeights(float* weights, float radius) { in generateGaussianWeights() argument
62 int32_t intRadius = convertRadiusToInt(radius); in generateGaussianWeights()
71 float sigma = legacyConvertRadiusToSigma(radius); in generateGaussianWeights()
94 void Blur::horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, in horizontal() argument
107 if (x > radius && x < (width - radius)) { in horizontal()
108 const uint8_t* i = input + (x - radius); in horizontal()
109 for (int r = -radius; r <= radius; r++) { in horizontal()
116 for (int32_t r = -radius; r <= radius; r++) { in horizontal()
137 void Blur::vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, in vertical() argument
150 if (y > radius && y < (height - radius)) { in vertical()
151 const uint8_t* i = input + ((y - radius) * width); in vertical()
152 for (int32_t r = -radius; r <= radius; r++) { in vertical()
159 for (int32_t r = -radius; r <= radius; r++) { in vertical()