Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/display/utils/
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()
/frameworks/base/libs/hwui/utils/
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()
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,
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
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()
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()
/frameworks/rs/driver/runtime/
Drs_sample.c268 getBilinearSample1D(const Allocation_t *alloc, float2 weights, in getBilinearSample1D() argument
276 return getSample_RGBA(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
278 return getSample_A(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
281 return getSample_565(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
283 return getSample_RGB(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
285 return getSample_L(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
287 return getSample_LA(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
440 float2 weights; in sample_LOD_LinearPixel() local
441 weights.x = oneMinusFrac; in sample_LOD_LinearPixel()
442 weights.y = frac; in sample_LOD_LinearPixel()
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp546 const int16_t (*weights)[3] = in ConvertRGBToPlanarYUV() local
560 unsigned luma = ((r * weights[0][0] + g * weights[0][1] + b * weights[0][2]) >> 8) + in ConvertRGBToPlanarYUV()
566 unsigned U = ((r * weights[1][0] + g * weights[1][1] + b * weights[1][2]) >> 8) + in ConvertRGBToPlanarYUV()
569 unsigned V = ((r * weights[2][0] + g * weights[2][1] + b * weights[2][2]) >> 8) + in ConvertRGBToPlanarYUV()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold_half.rscript35 // Compute gaussian weights for the blur
65 //Now we need to normalize the weights because all our coefficients need to add up to one
Dthreshold.rscript35 // Compute gaussian weights for the blur
65 //Now we need to normalize the weights because all our coefficients need to add up to one
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dthreshold.rscript35 // Compute gaussian weights for the blur
65 //Now we need to normalize the weights because all our coefficients need to add up to one
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dthreshold.rscript35 // Compute gaussian weights for the blur
65 //Now we need to normalize the weights because all our coefficients need to add up to one
/frameworks/native/opengl/libs/GLES2/
Dgl2ext_api.in1141 …lWeightPathsNV)(GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights) {
1142 CALL_GL_API(glWeightPathsNV, resultPath, numPaths, paths, weights);
/frameworks/native/opengl/include/GLES2/
Dgl2ext.h3090 …GHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
3167 …glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
/frameworks/native/opengl/libs/
Dentries.in1018 … glWeightPathsNV, GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights)