Searched refs:norm (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DVectorUtil.java39 public static double norm(double[] a) { method in class:VectorUtil
53 double norm = norm(a);
54 a[0] /= norm;
55 a[1] /= norm;
56 a[2] /= norm;
H A DQuaternion.java49 double norm = Math.sqrt(dot(a, a));
50 return new double[]{a[0] / norm, a[1] / norm, a[2] / norm};
H A DViewMatrix.java281 VectorUtil.norm(zv);
282 VectorUtil.norm(rv);
301 VectorUtil.norm(zv);
302 VectorUtil.norm(rv);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dautocorr.c40 Word32 i, norm, shift; local
70 norm = norm_l(L_sum);
71 shift = 4 - (norm >> 1);
98 norm = norm_l(L_sum);
99 L_sum = (L_sum << norm);
119 L_sum1 = L_sum1<<norm;
120 L_sum = L_sum<<norm;
H A Dpitch_f4.c173 Word32 corr, exp_corr, norm, exp, scale; local
235 norm = extract_h(L_tmp);
239 L_tmp = L_mult(corr, norm);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dautocorr.cpp171 norm = normalized autocorrelation at lag zero of type Word16
207 Word16 i, j, norm;
252 norm = norm_l (sum);
253 sum = L_shl (sum, norm);
267 sum = L_shl (sum, norm);
271 norm = sub (norm, overfl_shft);
273 return norm;
311 Word16 norm; local
414 norm
416 sum <<= norm; local
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
H A DBrightnessUtils.java54 final float normalizedVal = MathUtils.norm(0, GAMMA_SPACE_MAX, val);
91 final float normalizedVal = MathUtils.norm(min, max, val) * 12;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DNormFilter.java28 * Filter to calculate the 2-norm of the inputs. i.e. sqrt(x^2 + y^2)
45 .addOutputPort("norm", Signature.PORT_REQUIRED, floatT)
56 float norm = (float) Math.hypot(xValue, yValue);
57 if (mLogVerbose) Log.v(TAG, "Norm = " + norm);
58 OutputPort outPort = getConnectedOutputPort("norm");
60 outFrame.setValue(norm);
/frameworks/av/media/libaudioprocessing/
H A DAudioMixerOps.h84 static const float norm = 1. / (1 << 12); local
85 return value * volume * norm;
90 static const float norm = 1. / (1 << 28); local
91 return value * volume * norm;
106 static const float norm = 1. / (1 << (15 + 12)); local
107 return static_cast<float>(value) * static_cast<float>(volume) * norm;
112 static const float norm = 1. / (1ULL << (15 + 28)); local
113 return static_cast<float>(value) * static_cast<float>(volume) * norm;
191 static constexpr float norm = 1. / (1 << 15); local
192 *auxaccum += norm * valu
197 static constexpr float norm = 1. / (1 << 27); local
[all...]
H A DAudioResamplerFirGen.h551 const double norm = 1. / (L << integralShift); local
553 firMin = fmin * norm;
554 firMax = fmax * norm;
/frameworks/rs/
H A DrsComponent.h34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
H A DrsComponent.cpp29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { argument
32 mNormalized = norm;
H A DrsScriptC_Lib.cpp335 bool norm, uint32_t vecSize) {
336 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize);
334 rsrElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) argument
/frameworks/native/libs/math/include/math/
H A DTQuatHelpers.h175 constexpr T PURE norm(const QUATERNION<T>& q) { function in class:android::details::TQuatFunctions
181 return norm(q);
226 const T nq(norm(q.xyz));
232 const T nq(norm(q));
233 return QUATERNION<T>((std::acos(q.w/nq)/norm(q.xyz))*q.xyz, log(nq));
239 const T nq(norm(q));
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DVector3Test.java70 assertTrue(nearlyEqual(unitXAxis.norm(), 1.0f));
71 assertTrue(nearlyEqual(unitYAxis.norm(), 1.0f));
72 assertTrue(nearlyEqual(unitZAxis.norm(), 1.0f));
73 assertTrue(nearlyEqual(x1y1.norm(), (float)Math.sqrt(2)));
/frameworks/base/rs/java/android/renderscript/
H A DElement.java1076 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { argument
1091 mNormalized = norm;
1151 boolean norm = false;
1153 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize);
1154 return new Element(id, rs, dt, dk, norm, vecSize);
1190 boolean norm = false;
1191 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
1192 return new Element(id, rs, dt, dk, norm, size);
1261 boolean norm = true;
1262 long id = rs.nElementCreate(dt.mID, dk.mID, norm, siz
[all...]
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DElement.java734 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { argument
749 mNormalized = norm;
774 boolean norm = false;
776 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize);
777 return new Element(id, rs, dt, dk, norm, vecSize);
812 boolean norm = false;
813 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size);
814 return new Element(id, rs, dt, dk, norm, size);
880 boolean norm = true;
881 long id = rs.nElementCreate(dt.mID, dk.mID, norm, siz
[all...]
H A DRenderScript.java353 native long rsnElementCreate(long con, long type, int kind, boolean norm, int vecSize); argument
354 synchronized long nElementCreate(long type, int kind, boolean norm, int vecSize) { argument
356 return rsnElementCreate(mContext, type, kind, norm, vecSize);
1029 native long rsnIncElementCreate(long con, long type, int kind, boolean norm, int vecSize); argument
1030 synchronized long nIncElementCreate(long type, int kind, boolean norm, int vecSize) { argument
1032 return rsnIncElementCreate(mIncCon, type, kind, norm, vecSize);
/frameworks/base/services/core/java/com/android/server/
H A DAnyMotionDetector.java377 public float norm() { method in class:AnyMotionDetector.Vector3
382 float mag = norm();
396 Math.atan2(crossVector.norm(), dotProduct(other))));
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
H A 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/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
H A 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/
H A DMathUtils.java181 public static float norm(float start, float stop, float value) { method in class:MathUtils
/frameworks/native/libs/input/
H A DVelocityTracker.cpp479 float norm = vectorNorm(&q[j][0], m); local
480 if (norm < 0.000001f) {
483 ALOGD(" - no solution, norm=%f", norm);
488 float invNorm = 1.0f / norm;
/frameworks/av/media/libeffects/dynamicsproc/dsp/
H A DDPFrequency.cpp513 fEnergySum += std::norm(cb.complexTemp[k]) * preGainSquared; //mag squared
592 fEnergySum += std::norm(cb.complexTemp[k]);
/frameworks/rs/cpp/
H A DElement.cpp274 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) :
291 mNormalized = norm;
273 Element(void *id, android::RSC::sp<RS> rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size) argument

Completed in 2288 milliseconds

12