Home
last modified time | relevance | path

Searched refs:gaussian (Results 1 – 4 of 4) sorted by relevance

/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold.rs31 static float gaussian[MAX_RADIUS * 2 + 1];
61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
62 normalizeFactor += gaussian[r + radius];
69 gaussian[r + radius] *= normalizeFactor;
84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
105 blurredPixel += i * gaussian[gi++];
112 blurredPixel += i * gaussian[gi++];
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dthreshold.rs31 static float gaussian[MAX_RADIUS * 2 + 1];
61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
62 normalizeFactor += gaussian[r + radius];
69 gaussian[r + radius] *= normalizeFactor;
84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
105 blurredPixel += i * gaussian[gi++];
112 blurredPixel += i * gaussian[gi++];
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dthreshold.fs31 static float gaussian[MAX_RADIUS * 2 + 1];
35 // Compute gaussian weights for the blur
45 // The larger the radius gets, the more our gaussian blur
47 // the gaussian curve begins to lose its shape
61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
62 normalizeFactor += gaussian[r + radius];
69 gaussian[r + radius] *= normalizeFactor;
84 blurredPixel += i.xyz * gaussian[gi++];
90 blurredPixel += i.xyz * gaussian[gi++];
105 blurredPixel += i * gaussian[gi++];
[all …]
/frameworks/base/libs/hwui/
DFontRenderer.cpp773 float *gaussian = new float[2 * intRadius + 1]; in blurImage() local
774 Blur::generateGaussianWeights(gaussian, intRadius); in blurImage()
777 Blur::horizontal(gaussian, intRadius, *image, scratch, width, height); in blurImage()
778 Blur::vertical(gaussian, intRadius, scratch, *image, width, height); in blurImage()
780 delete[] gaussian; in blurImage()