Home
last modified time | relevance | path

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

123456

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java248 public Quad grow(float factor) { in grow() argument
250 return new Quad(factor * (mTopLeft.x - pc.x) + pc.x, in grow()
251 factor * (mTopLeft.y - pc.y) + pc.y, in grow()
252 factor * (mTopRight.x - pc.x) + pc.x, in grow()
253 factor * (mTopRight.y - pc.y) + pc.y, in grow()
254 factor * (mBottomLeft.x - pc.x) + pc.x, in grow()
255 factor * (mBottomLeft.y - pc.y) + pc.y, in grow()
256 factor * (mBottomRight.x - pc.x) + pc.x, in grow()
257 factor * (mBottomRight.y - pc.y) + pc.y); in grow()
266 public Quad scale(float factor) { in scale() argument
[all …]
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_CalcCoef.c110 LVM_INT32 factor; in LVEQNB_DoublePrecCoefs() local
142 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */ in LVEQNB_DoublePrecCoefs()
147 CosErr += (factor * coef) >> 5; /* The nth partial sum */ in LVEQNB_DoublePrecCoefs()
148 factor = (factor * t0) >> 15; /* Calculate t0^n */ in LVEQNB_DoublePrecCoefs()
241 LVM_INT32 factor; in LVEQNB_SinglePrecCoefs() local
273 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */ in LVEQNB_SinglePrecCoefs()
278 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */ in LVEQNB_SinglePrecCoefs()
279 factor = (factor * t0) >> 15; /* Calculate t0^n */ in LVEQNB_SinglePrecCoefs()
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp59 Point Point::operator*(float factor) const { in operator *()
61 out.x_ = factor * x_; in operator *()
62 out.y_ = factor * y_; in operator *()
107 bool Rect::ScaleWithLengthLimit(float factor, float max_length) { in ScaleWithLengthLimit() argument
108 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit()
117 float f = factor; in ScaleWithLengthLimit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DHistoryEvaluator.java75 float factor = (float) Math.pow(HISTORY_FACTOR, in decayValue() local
78 decayValue(mStrokes, factor); in decayValue()
79 decayValue(mGestureWeights, factor); in decayValue()
83 private void decayValue(ArrayList<Data> list, float factor) { in decayValue() argument
86 list.get(i).weight *= factor; in decayValue()
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp58 Point Point::operator*(float factor) const { in operator *()
60 out.x_ = factor * x_; in operator *()
61 out.y_ = factor * y_; in operator *()
106 bool Rect::ScaleWithLengthLimit(float factor, float max_length) { in ScaleWithLengthLimit() argument
107 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit()
116 float f = factor; in ScaleWithLengthLimit()
/frameworks/base/libs/hwui/
DInterpolator.h46 AccelerateInterpolator(float factor) : mFactor(factor), mDoubleFactor(factor*2) {} in AccelerateInterpolator() argument
84 DecelerateInterpolator(float factor) : mFactor(factor) {} in DecelerateInterpolator() argument
/frameworks/base/media/mca/filterpacks/native/imageproc/
Dbrightness.c81 const int factor = (int)(brightness * 255.0f); in brightness_process() local
86 const short r = (pixel.rgba[0] * factor) / 255; in brightness_process()
87 const short g = (pixel.rgba[1] * factor) / 255; in brightness_process()
88 const short b = (pixel.rgba[2] * factor) / 255; in brightness_process()
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Control.c485 LVM_INT32 factor; in LVPSA_BPSinglePrecCoefs() local
520 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */ in LVPSA_BPSinglePrecCoefs()
525 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */ in LVPSA_BPSinglePrecCoefs()
526 factor = (factor * t0) >> 15; /* Calculate t0^n */ in LVPSA_BPSinglePrecCoefs()
608 LVM_INT32 factor; in LVPSA_BPDoublePrecCoefs() local
642 factor = 0x7fff; /* Initialise to 1.0 for the a0 coefficient */ in LVPSA_BPDoublePrecCoefs()
647 CosErr += (factor * coef) >> 5; /* The nth partial sum */ in LVPSA_BPDoublePrecCoefs()
648 factor = (factor * t0) >> 15; /* Calculate t0^n */ in LVPSA_BPDoublePrecCoefs()
/frameworks/base/core/jni/
Dcom_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp33 static jlong createAccelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createAccelerateInterpolator() argument
34 return reinterpret_cast<jlong>(new AccelerateInterpolator(factor)); in createAccelerateInterpolator()
53 static jlong createDecelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createDecelerateInterpolator() argument
54 return reinterpret_cast<jlong>(new DecelerateInterpolator(factor)); in createDecelerateInterpolator()
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
Dlayered_filter_fast_d1new.rs515 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer;
516 fuzzy_RGBA.r += factor * result.r;
517 fuzzy_RGBA.g += factor * result.g;
518 fuzzy_RGBA.b += factor * result.b;
519 fuzzy_RGBA.a += factor;
568 const float factor = capacity * (float)matte * g_blend_info.matte_normalizer;
569 fuzzy_RGBA.r += factor * result.r;
570 fuzzy_RGBA.g += factor * result.g;
571 fuzzy_RGBA.b += factor * result.b;
572 fuzzy_RGBA.a += factor;
[all …]
Dlayered_filter_fast_f32.rs385 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;
432 sharp->red += factor * (fuzzy->red - sharp->red);
433 sharp->green += factor * (fuzzy->green - sharp->green);
434 sharp->blue += factor * (fuzzy->blue - sharp->blue);
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;
/frameworks/base/media/java/android/media/
DUtils.java131 static Range<Integer>factorRange(Range<Integer> range, int factor) {
132 if (factor == 1) {
135 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
142 static Range<Long>factorRange(Range<Long> range, long factor) {
143 if (factor == 1) {
146 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/animation/
DNativeInterpolatorFactoryHelper_Delegate.java57 /*package*/ static long createAccelerateInterpolator(float factor) { in createAccelerateInterpolator() argument
58 return sManager.addNewDelegate(new AccelerateInterpolator(factor)); in createAccelerateInterpolator()
82 /*package*/ static long createDecelerateInterpolator(float factor) { in createDecelerateInterpolator() argument
83 return sManager.addNewDelegate(new DecelerateInterpolator(factor)); in createDecelerateInterpolator()
/frameworks/base/core/java/com/android/internal/view/animation/
DNativeInterpolatorFactoryHelper.java27 public static native long createAccelerateInterpolator(float factor); in createAccelerateInterpolator() argument
32 public static native long createDecelerateInterpolator(float factor); in createDecelerateInterpolator() argument
/frameworks/base/rs/java/android/renderscript/
DFloat4.java305 public void addMultiple(Float4 a, float factor) { in addMultiple() argument
306 x += a.x * factor; in addMultiple()
307 y += a.y * factor; in addMultiple()
308 z += a.z * factor; in addMultiple()
309 w += a.w * factor; in addMultiple()
DByte4.java325 public void addMultiple(Byte4 a, byte factor) { in addMultiple() argument
326 x += a.x * factor; in addMultiple()
327 y += a.y * factor; in addMultiple()
328 z += a.z * factor; in addMultiple()
329 w += a.w * factor; in addMultiple()
DDouble4.java305 public void addMultiple(Double4 a, double factor) { in addMultiple() argument
306 x += a.x * factor; in addMultiple()
307 y += a.y * factor; in addMultiple()
308 z += a.z * factor; in addMultiple()
309 w += a.w * factor; in addMultiple()
DByte3.java306 public void addMultiple(Byte3 a, byte factor) { in addMultiple() argument
307 x += a.x * factor; in addMultiple()
308 y += a.y * factor; in addMultiple()
309 z += a.z * factor; in addMultiple()
DDouble3.java286 public void addMultiple(Double3 a, double factor) { in addMultiple() argument
287 x += a.x * factor; in addMultiple()
288 y += a.y * factor; in addMultiple()
289 z += a.z * factor; in addMultiple()
DLong4.java388 public void addMultiple(Long4 a, long factor) { in addMultiple() argument
389 x += a.x * factor; in addMultiple()
390 y += a.y * factor; in addMultiple()
391 z += a.z * factor; in addMultiple()
392 w += a.w * factor; in addMultiple()
DInt4.java388 public void addMultiple(Int4 a, int factor) { in addMultiple() argument
389 x += a.x * factor; in addMultiple()
390 y += a.y * factor; in addMultiple()
391 z += a.z * factor; in addMultiple()
392 w += a.w * factor; in addMultiple()
DShort4.java388 public void addMultiple(Short4 a, short factor) { in addMultiple() argument
389 x += a.x * factor; in addMultiple()
390 y += a.y * factor; in addMultiple()
391 z += a.z * factor; in addMultiple()
392 w += a.w * factor; in addMultiple()
DFloat3.java286 public void addMultiple(Float3 a, float factor) { in addMultiple() argument
287 x += a.x * factor; in addMultiple()
288 y += a.y * factor; in addMultiple()
289 z += a.z * factor; in addMultiple()
/frameworks/base/core/java/android/view/animation/
DDecelerateInterpolator.java47 public DecelerateInterpolator(float factor) { in DecelerateInterpolator() argument
48 mFactor = factor; in DecelerateInterpolator()

123456