Home
last modified time | relevance | path

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

12345

/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()
Dgeometry.h43 Point operator*(float factor) const;
88 bool ScaleWithLengthLimit(float factor, float max_length);
/frameworks/base/libs/hwui/
DInterpolator.h45 AccelerateInterpolator(float factor) : mFactor(factor), mDoubleFactor(factor*2) {} in AccelerateInterpolator() argument
83 DecelerateInterpolator(float factor) : mFactor(factor) {} in DecelerateInterpolator() argument
/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/media/mca/filterpacks/native/imageproc/
Dbrightness.c80 const int factor = (int)(brightness * 255.0f); in brightness_process() local
85 const short r = (pixel.rgba[0] * factor) / 255; in brightness_process()
86 const short g = (pixel.rgba[1] * factor) / 255; in brightness_process()
87 const short b = (pixel.rgba[2] * factor) / 255; in brightness_process()
/frameworks/base/core/jni/
Dcom_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp35 static jlong createAccelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createAccelerateInterpolator() argument
36 return reinterpret_cast<jlong>(new AccelerateInterpolator(factor)); in createAccelerateInterpolator()
55 static jlong createDecelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createDecelerateInterpolator() argument
56 return reinterpret_cast<jlong>(new DecelerateInterpolator(factor)); in createDecelerateInterpolator()
/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/media/java/android/media/
DUtils.java133 static Range<Integer>factorRange(Range<Integer> range, int factor) {
134 if (factor == 1) {
137 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
144 static Range<Long>factorRange(Range<Long> range, long factor) {
145 if (factor == 1) {
148 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
/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()
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()
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()
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()
DAccelerateInterpolator.java53 public AccelerateInterpolator(float factor) { in AccelerateInterpolator() argument
54 mFactor = factor; in AccelerateInterpolator()
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dfisheye.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
Dfisheye_approx.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dfisheye_approx.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
Dfisheye.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dfisheye_approx.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;
Dfisheye.rsh21 static float alpha, radius2, factor;
42 factor = bound / max_radian;
53 const float scalar = radian * factor * inv_dist;

12345