Home
last modified time | relevance | path

Searched refs:norm (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DVectorUtil.java39 public static double norm(double[] a) { in norm() method in VectorUtil
53 double norm = norm(a); in normalize() local
54 a[0] /= norm; in normalize()
55 a[1] /= norm; in normalize()
56 a[2] /= norm; in normalize()
DQuaternion.java49 double norm = Math.sqrt(dot(a, a)); in normal() local
50 return new double[]{a[0] / norm, a[1] / norm, a[2] / norm}; in normal()
DViewMatrix.java281 VectorUtil.norm(zv); in look()
282 VectorUtil.norm(rv); in look()
301 VectorUtil.norm(zv); in lookAt()
302 VectorUtil.norm(rv); in lookAt()
/frameworks/av/media/codecs/amrwb/enc/src/
Dautocorr.c40 Word32 i, norm, shift; in Autocorr() local
70 norm = norm_l(L_sum); in Autocorr()
71 shift = 4 - (norm >> 1); in Autocorr()
98 norm = norm_l(L_sum); in Autocorr()
99 L_sum = (L_sum << norm); in Autocorr()
119 L_sum1 = L_sum1<<norm; in Autocorr()
120 L_sum = L_sum<<norm; in Autocorr()
Dpitch_f4.c173 Word32 corr, exp_corr, norm, exp, scale; in Norm_Corr() local
235 norm = extract_h(L_tmp); in Norm_Corr()
239 L_tmp = L_mult(corr, norm); in Norm_Corr()
/frameworks/av/media/codecs/amrnb/enc/src/
Dautocorr.cpp311 Word16 norm; in Autocorr() local
414 norm = norm_l(sum); in Autocorr()
416 sum <<= norm; in Autocorr()
448 sum <<= (norm + 1); in Autocorr()
455 norm -= overfl_shft; in Autocorr()
457 return (norm); in Autocorr()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DBrightnessUtils.java55 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinear()
78 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinearFloat()
131 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGammaFloat()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DNormFilter.java56 float norm = (float) Math.hypot(xValue, yValue); in onProcess() local
57 if (mLogVerbose) Log.v(TAG, "Norm = " + norm); in onProcess()
60 outFrame.setValue(norm); in onProcess()
/frameworks/av/media/libaudioprocessing/
DAudioMixerOps.h75 static const float norm = 1. / (1 << 12); variable
76 return value * volume * norm;
81 static const float norm = 1. / (1 << 28); variable
82 return value * volume * norm;
97 static const float norm = 1. / (1 << (15 + 12)); variable
98 return static_cast<float>(value) * static_cast<float>(volume) * norm;
103 static const float norm = 1. / (1ULL << (15 + 28)); variable
104 return static_cast<float>(value) * static_cast<float>(volume) * norm;
182 static constexpr float norm = 1. / (1 << 15); variable
183 *auxaccum += norm * value;
[all …]
DAudioResamplerFirGen.h551 const double norm = 1. / (int64_t{L} << integralShift);
553 firMin = fmin * norm;
554 firMax = fmax * norm;
/frameworks/native/libs/math/include/math/
DTQuatHelpers.h175 constexpr T PURE norm(const QUATERNION<T>& q) { in norm() function
181 return norm(q); in length()
226 const T nq(norm(q.xyz)); in exp()
232 const T nq(norm(q)); in log()
233 return QUATERNION<T>((std::acos(q.w/nq)/norm(q.xyz))*q.xyz, log(nq)); in log()
239 const T nq(norm(q)); in pow()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DVector3Test.java70 assertTrue(nearlyEqual(unitXAxis.norm(), 1.0f)); in testVector3Norm()
71 assertTrue(nearlyEqual(unitYAxis.norm(), 1.0f)); in testVector3Norm()
72 assertTrue(nearlyEqual(unitZAxis.norm(), 1.0f)); in testVector3Norm()
73 assertTrue(nearlyEqual(x1y1.norm(), (float)Math.sqrt(2))); in testVector3Norm()
/frameworks/rs/support/java/src/androidx/renderscript/
DElement.java739 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
754 mNormalized = norm; in Element()
779 boolean norm = false; in createUser()
781 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
782 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
817 boolean norm = false; in createVector()
818 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector()
819 return new Element(id, rs, dt, dk, norm, size); in createVector()
885 boolean norm = true; in createPixel()
886 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createPixel()
[all …]
DRenderScript.java358 native long rsnElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnElementCreate() argument
359 synchronized long nElementCreate(long type, int kind, boolean norm, int vecSize) { in nElementCreate() argument
361 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate()
1034 native long rsnIncElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnIncElementCreate() argument
1035 synchronized long nIncElementCreate(long type, int kind, boolean norm, int vecSize) { in nIncElementCreate() argument
1037 return rsnIncElementCreate(mIncCon, type, kind, norm, vecSize); in nIncElementCreate()
/frameworks/av/media/libeffects/hapticgenerator/
DProcessors.cpp224 const float norm = (1.0f + poleCoeff1 + poleCoeff2) / (1.0f + zeroCoeff1 + zeroCoeff2); in bsfCoefs() local
225 coefficient[0] = 1.0f * norm; in bsfCoefs()
226 coefficient[1] = zeroCoeff1 * norm; in bsfCoefs()
227 coefficient[2] = zeroCoeff2 * norm; in bsfCoefs()
/frameworks/base/rs/java/android/renderscript/
DElement.java1083 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
1098 mNormalized = norm; in Element()
1159 boolean norm = false; in createUser()
1161 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
1162 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
1198 boolean norm = false; in createVector()
1199 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector()
1200 return new Element(id, rs, dt, dk, norm, size); in createVector()
1269 boolean norm = true; in createPixel()
1270 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createPixel()
[all …]
/frameworks/rs/
DrsComponent.cpp29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { in set() argument
32 mNormalized = norm; in set()
DrsComponent.h34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
DrsScriptC_Lib.cpp335 bool norm, uint32_t vecSize) { in rsrElementCreate() argument
336 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize); in rsrElementCreate()
DrsElement.cpp415 bool norm, in rsi_ElementCreate() argument
417 return (RsElement)Element::create(rsc, dt, dk, norm, vecSize); in rsi_ElementCreate()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAnyMotionDetector.java382 public float norm() { in norm() method in AnyMotionDetector.Vector3
387 float mag = norm(); in normalized()
401 Math.atan2(crossVector.norm(), dotProduct(other)))); in angleBetween()
/frameworks/av/media/codecs/amrwb/enc/src/asm/ARMV5E/
DNorm_Corr_opt.s168 MOV r6, r6, ASR #16 @norm = extract_h(L_tmp)
170 ADD r12, r12, r12 @L_tmp = vo_L_mult(corr, norm)
/frameworks/av/media/codecs/amrwb/enc/src/asm/ARMV7/
DNorm_Corr_neon.s208 MOV r6, r6, ASR #16 @norm = extract_h(L_tmp)
210 ADD r12, r12, r12 @L_tmp = vo_L_mult(corr, norm)
/frameworks/native/libs/input/
DVelocityTracker.cpp455 float norm = vectorNorm(&q[j][0], m); in solveLeastSquares() local
456 if (norm < 0.000001f) { in solveLeastSquares()
459 ALOGD(" - no solution, norm=%f", norm); in solveLeastSquares()
464 float invNorm = 1.0f / norm; in solveLeastSquares()
/frameworks/base/core/java/android/util/
DMathUtils.java209 public static float norm(float start, float stop, float value) { in norm() method in MathUtils

12