Home
last modified time | relevance | path

Searched refs:weights (Results 1 – 6 of 6) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/display/utils/
H A DAmbientFilter.java205 final float[] weights = getWeights(time, buffer); in filter() local
207 Slog.v(mTag, "filter: " + buffer + " => " + Arrays.toString(weights)); in filter()
209 for (int i = 0; i < weights.length; i++) { in filter()
211 final float weight = weights[i]; in filter()
228 float[] weights = new float[buffer.size()]; in getWeights() local
231 for (int i = 1; i < weights.length; i++) { in getWeights()
234 weights[i - 1] = weight; in getWeights()
239 weights[weights.length - 1] = lastWeight; in getWeights()
240 return weights; in getWeights()
/aosp14/frameworks/base/libs/hwui/utils/
H A DBlur.cpp61 void Blur::generateGaussianWeights(float* weights, float radius) { in generateGaussianWeights() argument
83 weights[r + intRadius] = coeff1 * pow(e, floatR * floatR * coeff2); in generateGaussianWeights()
84 normalizeFactor += weights[r + intRadius]; in generateGaussianWeights()
90 weights[r + intRadius] *= normalizeFactor; in generateGaussianWeights()
94 void Blur::horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, in horizontal() argument
105 const float* gPtr = weights; in horizontal()
137 void Blur::vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, in vertical() argument
147 const float* gPtr = weights; in vertical()
H A DBlur.h37 static void generateGaussianWeights(float* weights, float radius);
38 static void horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest,
40 static void vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest,
/aosp14/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DSaturateFilter.java142 float weights[] = { 2f/8f, 5f/8f, 1f/8f}; in initParameters() local
144 mBenProgram.setHostValue("weights", weights); in initParameters()
147 mHerfProgram.setHostValue("weights", weights); in initParameters()
H A DSepiaFilter.java103 float weights[] = { 805.0f / 2048.0f, 715.0f / 2048.0f, 557.0f / 2048.0f, in initParameters() local
106 mProgram.setHostValue("matrix", weights); in initParameters()
/aosp14/frameworks/base/packages/SystemUI/docs/device-entry/
H A Dglossary.md8 …he font specified at [clock.xml][8]. If the clock font supports variable weights, users will exper…
11 …ge on the left shows the usage of a clock that does not support variable weights which is why the …