Home
last modified time | relevance | path

Searched refs:factor (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSUtils.java29 public static void genRandom(long seed, int factor, int offset, float array[]) { in genRandom() argument
32 array[i] = r.nextFloat() * factor + offset; in genRandom()
36 public static void genRandom(long seed, int factor, int offset, float array[], in genRandom() argument
44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom()
49 public static void genRandom(long seed, int max, int factor, int offset, int array[]) { in genRandom() argument
52 array[i] = (r.nextInt(max) * factor + offset); in genRandom()
56 public static void genRandom(long seed, int factor, int offset, int array[], in genRandom() argument
64 array[i * stride + j] = r.nextInt() * factor + offset; in genRandom()
69 public static void genRandom(long seed, int max, int factor, int offset, int array[], in genRandom() argument
77 array[i * stride + j] = r.nextInt(max) * factor + offset; in genRandom()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_f32_helper.rsh106 float factor = 1.0f / result.alpha;
107 result.red *= factor;
108 result.green *= factor;
109 result.blue *= factor;
142 float factor = 1.0f / result.a;
143 fuzzy.red = result.r * factor;
144 fuzzy.green = result.g * factor;
145 fuzzy.blue = result.b * factor;
Dlayered_filter_fast_d1new.rscript517 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer;
518 fuzzy_RGBA.r += factor * result.r;
519 fuzzy_RGBA.g += factor * result.g;
520 fuzzy_RGBA.b += factor * result.b;
521 fuzzy_RGBA.a += factor;
570 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer;
571 fuzzy_RGBA.r += factor * result.r;
572 fuzzy_RGBA.g += factor * result.g;
573 fuzzy_RGBA.b += factor * result.b;
574 fuzzy_RGBA.a += factor;
[all …]
Dlayered_filter_d1new_helper.rsh170 float factor = 1.0f / result.a;
171 result.r *= factor;
172 result.g *= factor;
173 result.b *= factor;
203 float factor = 1.0f / result.a;
204 result.r = result.r * factor;
205 result.g = result.g * factor;
206 result.b = result.b * factor;
Dlayered_filter_fast_f32.rscript385 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer;
386 fuzzy->red += factor * result.red;
387 fuzzy->green += factor * result.green;
388 fuzzy->blue += factor * result.blue;
389 fuzzy->alpha += factor;
429 float factor = (float)matte * g_blend_info.matte_normalizer;
431 // sharp = (1 - factor) * sharp + factor * fuzzy.
432 sharp->red += factor * (fuzzy->red - sharp->red);
433 sharp->green += factor * (fuzzy->green - sharp->green);
434 sharp->blue += factor * (fuzzy->blue - sharp->blue);
Dlayer_info.rsh18 // A scale factor =1.0f/(1+dilation_radius), which is used to normalize a
Dlayer_info_fast.rsh18 // A scale factor =1.0f/(1+dilation_radius), which is used to normalize a
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DCorrelation.java80 double factor = 3.0; in computeCorrelation() local
82 double raw = (rms-average) /(factor*average); in computeCorrelation()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DRawConverter.java823 private static void scale(float factor, /*inout*/float[] matrix) { in scale() argument
825 matrix[i] *= factor; in scale()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java251 double factor = angle * Math.PI; in toString() local