Searched refs:intRadius (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/libs/hwui/utils/ |
D | Blur.cpp | 62 int32_t intRadius = convertRadiusToInt(radius); in generateGaussianWeights() local 81 for (int32_t r = -intRadius; r <= intRadius; r ++) { in generateGaussianWeights() 83 weights[r + intRadius] = coeff1 * pow(e, floatR * floatR * coeff2); in generateGaussianWeights() 84 normalizeFactor += weights[r + intRadius]; in generateGaussianWeights() 89 for (int32_t r = -intRadius; r <= intRadius; r ++) { in generateGaussianWeights() 90 weights[r + intRadius] *= normalizeFactor; in generateGaussianWeights()
|
/frameworks/base/libs/hwui/ |
D | FontRenderer.cpp | 582 uint32_t intRadius = Blur::convertRadiusToInt(radius); in renderDropShadow() local 583 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * intRadius; in renderDropShadow() 584 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * intRadius; in renderDropShadow() 605 int penX = intRadius - bounds.left; in renderDropShadow() 606 int penY = intRadius - bounds.bottom; in renderDropShadow() 690 uint32_t intRadius = Blur::convertRadiusToInt(radius); in blurImage() local 692 if (width * height * intRadius >= RS_MIN_INPUT_CUTOFF && radius <= 25.0f) { in blurImage() 731 std::unique_ptr<float[]> gaussian(new float[2 * intRadius + 1]); in blurImage() 735 Blur::horizontal(gaussian.get(), intRadius, *image, scratch.get(), width, height); in blurImage() 736 Blur::vertical(gaussian.get(), intRadius, scratch.get(), *image, width, height); in blurImage()
|