Searched refs:weights (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/libs/hwui/utils/
H A DBlur.h37 static void generateGaussianWeights(float* weights, int32_t radius);
38 static void horizontal(float* weights, int32_t radius, const uint8_t* source,
40 static void vertical(float* weights, int32_t radius, const uint8_t* source,
H A DBlur.cpp63 void Blur::generateGaussianWeights(float* weights, int32_t radius) { argument
64 // Compute gaussian weights for the blur
83 weights[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
84 normalizeFactor += weights[r + radius];
87 //Now we need to normalize the weights because all our coefficients need to add up to one
90 weights[r + radius] *= normalizeFactor;
94 void Blur::horizontal(float* weights, int32_t radius, argument
106 const float* gPtr = weights;
138 void Blur::vertical(float* weights, int32_t radius, argument
148 const float* gPtr = weights;
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/java/android/bordeaux/learning/
H A DStochasticLinearRanker.java42 public HashMap<String, Float> weights = new HashMap<String, Float>(); field in class:StochasticLinearRanker.Model
95 slrModel.weights.put(wKeys[i], wValues[i]);
109 String[] wKeys = new String[model.weights.size()];
110 float[] wValues = new float[model.weights.size()];
112 for (Map.Entry<String, Float> e : model.weights.entrySet()){
144 for (Map.Entry<String, Float> e : model.weights.entrySet())
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DSaturateFilter.java45 "uniform vec3 weights;\n" +
49 " float kv = dot(color.rgb, weights) + shift;\n" +
57 "uniform vec3 weights;\n" +
62 " float de = dot(color.rgb, weights);\n" +
142 float weights[] = { 2f/8f, 5f/8f, 1f/8f};
144 mBenProgram.setHostValue("weights", weights);
147 mHerfProgram.setHostValue("weights", weights);
H A DSepiaFilter.java103 float weights[] = { 805.0f / 2048.0f, 715.0f / 2048.0f, 557.0f / 2048.0f,
106 mProgram.setHostValue("matrix", weights);
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DLearning_StochasticLinearRanker.java90 HashMap<String, Float> weights = new HashMap<String, Float>();
92 weights.put(temp.get(i).key, temp.get(i).value);
95 return mLearningSlRanker.setModelPriorWeights(weights);
/frameworks/rs/driver/runtime/
H A Drs_sample.c268 getBilinearSample1D(const Allocation_t *alloc, float2 weights, argument
276 return getSample_RGBA(p, iPixel, next, weights.x, weights.y);
278 return getSample_A(p, iPixel, next, weights.x, weights.y);
281 return getSample_565(p, iPixel, next, weights.x, weights.y);
283 return getSample_RGB(p, iPixel, next, weights.x, weights.y);
285 return getSample_L(p, iPixel, next, weights
442 float2 weights; local
[all...]
/frameworks/base/libs/hwui/
H A DFontRenderer.h214 static void computeGaussianWeights(float* weights, int32_t radius);
215 static void horizontalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest,
217 static void verticalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest,

Completed in 1889 milliseconds