Home
last modified time | relevance | path

Searched refs:norm (Results 1 – 25 of 36) 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/libstagefright/codecs/amrwbenc/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/libstagefright/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.h73 static const float norm = 1. / (1 << 12); variable
74 return value * volume * norm;
79 static const float norm = 1. / (1 << 28); variable
80 return value * volume * norm;
95 static const float norm = 1. / (1 << (15 + 12)); variable
96 return static_cast<float>(value) * static_cast<float>(volume) * norm;
101 static const float norm = 1. / (1ULL << (15 + 28)); variable
102 return static_cast<float>(value) * static_cast<float>(volume) * norm;
180 static constexpr float norm = 1. / (1 << 15); variable
181 *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.java734 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
749 mNormalized = norm; in Element()
774 boolean norm = false; in createUser()
776 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
777 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
812 boolean norm = false; in createVector()
813 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector()
814 return new Element(id, rs, dt, dk, norm, size); in createVector()
880 boolean norm = true; in createPixel()
881 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createPixel()
[all …]
DRenderScript.java353 native long rsnElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnElementCreate() argument
354 synchronized long nElementCreate(long type, int kind, boolean norm, int vecSize) { in nElementCreate() argument
356 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate()
1029 native long rsnIncElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnIncElementCreate() argument
1030 synchronized long nIncElementCreate(long type, int kind, boolean norm, int vecSize) { in nIncElementCreate() argument
1032 return rsnIncElementCreate(mIncCon, type, kind, norm, vecSize); in nIncElementCreate()
/frameworks/base/rs/java/android/renderscript/
DElement.java1078 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
1093 mNormalized = norm; in Element()
1154 boolean norm = false; in createUser()
1156 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
1157 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
1193 boolean norm = false; in createVector()
1194 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector()
1195 return new Element(id, rs, dt, dk, norm, size); in createVector()
1264 boolean norm = true; in createPixel()
1265 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/libstagefright/codecs/amrwbenc/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/native/libs/input/
DVelocityTracker.cpp490 float norm = vectorNorm(&q[j][0], m); in solveLeastSquares() local
491 if (norm < 0.000001f) { in solveLeastSquares()
494 ALOGD(" - no solution, norm=%f", norm); in solveLeastSquares()
499 float invNorm = 1.0f / norm; in solveLeastSquares()
/frameworks/av/media/libstagefright/codecs/amrwbenc/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/base/core/java/android/util/
DMathUtils.java209 public static float norm(float start, float stop, float value) { in norm() method in MathUtils
/frameworks/rs/cpp/
DElement.cpp274 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : in Element() argument
291 mNormalized = norm; in Element()

12