Home
last modified time | relevance | path

Searched refs:Temp (Results 1 – 17 of 17) sorted by relevance

/frameworks/av/media/libeffects/lvm/lib/Common/src/
DLVC_Core_MixInSoft_D16C31_SAT.cpp41 LVM_FLOAT Temp; in LVC_Core_MixInSoft_D16C31_SAT() local
48 Temp = Current + Delta; in LVC_Core_MixInSoft_D16C31_SAT()
49 Current = Temp; in LVC_Core_MixInSoft_D16C31_SAT()
54 Temp = ((LVM_FLOAT)*dst) + (((LVM_FLOAT)*(src++) * Current)); in LVC_Core_MixInSoft_D16C31_SAT()
55 if (Temp > 1.0f) in LVC_Core_MixInSoft_D16C31_SAT()
57 else if (Temp < -1.0f) in LVC_Core_MixInSoft_D16C31_SAT()
60 *dst++ = (LVM_FLOAT)Temp; in LVC_Core_MixInSoft_D16C31_SAT()
65 Temp = Current + Delta; in LVC_Core_MixInSoft_D16C31_SAT()
66 Current = Temp; in LVC_Core_MixInSoft_D16C31_SAT()
71 Temp = ((LVM_FLOAT)*dst) + (((LVM_FLOAT)*(src++) * Current)); in LVC_Core_MixInSoft_D16C31_SAT()
[all …]
DLVC_Core_MixSoft_1St_D16C31_WRA.cpp41 LVM_FLOAT Temp; in LVC_Core_MixSoft_1St_D16C31_WRA() local
49 Temp = Current + Delta; in LVC_Core_MixSoft_1St_D16C31_WRA()
50 if (Temp > 1.0f) in LVC_Core_MixSoft_1St_D16C31_WRA()
51 Temp = 1.0f; in LVC_Core_MixSoft_1St_D16C31_WRA()
52 else if (Temp < -1.0f) in LVC_Core_MixSoft_1St_D16C31_WRA()
53 Temp = -1.0f; in LVC_Core_MixSoft_1St_D16C31_WRA()
55 Current=Temp; in LVC_Core_MixSoft_1St_D16C31_WRA()
66 Temp = Current + Delta; in LVC_Core_MixSoft_1St_D16C31_WRA()
68 if (Temp > 1.0f) in LVC_Core_MixSoft_1St_D16C31_WRA()
69 Temp = 1.0f; in LVC_Core_MixSoft_1St_D16C31_WRA()
[all …]
DLVC_Core_MixHard_1St_2i_D16C31_SAT.cpp35 LVM_FLOAT Temp; in LVC_Core_MixHard_1St_2i_D16C31_SAT() local
41 Temp = ((LVM_FLOAT)*(src++) * (LVM_FLOAT)pInstance1->Current); in LVC_Core_MixHard_1St_2i_D16C31_SAT()
42 if (Temp > 1.0f) in LVC_Core_MixHard_1St_2i_D16C31_SAT()
44 else if (Temp < -1.0f) in LVC_Core_MixHard_1St_2i_D16C31_SAT()
47 *dst++ = (LVM_FLOAT)Temp; in LVC_Core_MixHard_1St_2i_D16C31_SAT()
49 Temp = ((LVM_FLOAT)*(src++) * (LVM_FLOAT)pInstance2->Current); in LVC_Core_MixHard_1St_2i_D16C31_SAT()
50 if (Temp > 1.0f) in LVC_Core_MixHard_1St_2i_D16C31_SAT()
52 else if (Temp < -1.0f) in LVC_Core_MixHard_1St_2i_D16C31_SAT()
55 *dst++ = (LVM_FLOAT)Temp; in LVC_Core_MixHard_1St_2i_D16C31_SAT()
66 LVM_FLOAT Temp; in LVC_Core_MixHard_1St_MC_float_SAT() local
[all …]
DFrom2iToMono_32.cpp33 LVM_INT32 Temp; in From2iToMono_32() local
37 Temp = (*src>>1); in From2iToMono_32()
40 Temp +=(*src>>1); in From2iToMono_32()
43 *dst = Temp; in From2iToMono_32()
54 LVM_FLOAT Temp; in From2iToMono_Float() local
58 Temp = (*src); in From2iToMono_Float()
61 Temp += (*src); in From2iToMono_Float()
64 *dst = Temp / 2.0f; in From2iToMono_Float()
94 LVM_FLOAT Temp; in FromMcToMono_Float() local
98 Temp = 0.0f; in FromMcToMono_Float()
[all …]
DLVM_Polynomial.cpp48 LVM_FLOAT Y,A,XTemp,Temp,sign; in LVM_Polynomial() local
55 Temp = -1; in LVM_Polynomial()
56 sign = Temp; in LVM_Polynomial()
61 sign *= Temp; in LVM_Polynomial()
73 Temp = A * XTemp; in LVM_Polynomial()
74 Y += Temp; in LVM_Polynomial()
76 Temp = XTemp * X; in LVM_Polynomial()
77 XTemp = Temp; in LVM_Polynomial()
DMac3s_Sat_16x16.cpp45 LVM_INT32 Temp,dInVal; in Mac3s_Sat_16x16() local
52 Temp = (srcval *val)>>15; in Mac3s_Sat_16x16()
56 Temp = Temp + dInVal; in Mac3s_Sat_16x16()
58 if (Temp > 0x00007FFF) in Mac3s_Sat_16x16()
62 else if (Temp < -0x00008000) in Mac3s_Sat_16x16()
68 *dst = (LVM_INT16)Temp; in Mac3s_Sat_16x16()
DNonLinComp_D16.cpp72 LVM_INT16 Temp; in NonLinComp_D16() local
93 Temp = (LVM_INT16)((Sample * Sample) >> 15); in NonLinComp_D16()
96 Sample = (LVM_INT16)(Sample + ((Gain * (Sample - Temp)) >> 15)); in NonLinComp_D16()
100 Sample = (LVM_INT16)(Sample + ((Gain * (Sample + Temp)) >> 15)); in NonLinComp_D16()
121 LVM_FLOAT Temp; in NonLinComp_Float() local
141 Temp = ((Sample * Sample)); in NonLinComp_Float()
144 Sample = (Sample + ((Gain * (Sample - Temp)) )); in NonLinComp_Float()
148 Sample = (Sample + ((Gain * (Sample + Temp)) )); in NonLinComp_Float()
DMac3s_Sat_32x16.cpp72 LVM_FLOAT Temp,dInVal; in Mac3s_Sat_Float() local
79 Temp = srcval * val; in Mac3s_Sat_Float()
82 Temp = Temp + dInVal; in Mac3s_Sat_Float()
84 if (Temp > 1.000000f) in Mac3s_Sat_Float()
88 else if (Temp < -1.000000f) in Mac3s_Sat_Float()
94 *dst = Temp; in Mac3s_Sat_Float()
DLVC_Core_MixSoft_1St_2i_D16C31_WRA.cpp63 LVM_FLOAT Temp = 0; in LVC_Core_MixSoft_1St_2i_D16C31_WRA() local
72 ADD2_SAT_FLOAT(CurrentL, DeltaL, Temp); in LVC_Core_MixSoft_1St_2i_D16C31_WRA()
73 CurrentL = Temp; in LVC_Core_MixSoft_1St_2i_D16C31_WRA()
86 ADD2_SAT_FLOAT(CurrentR, DeltaR, Temp); in LVC_Core_MixSoft_1St_2i_D16C31_WRA()
87 CurrentR = Temp; in LVC_Core_MixSoft_1St_2i_D16C31_WRA()
109 ADD2_SAT_FLOAT(CurrentL, DeltaL, Temp); in LVC_Core_MixSoft_1St_2i_D16C31_WRA()
110 CurrentL = Temp; in LVC_Core_MixSoft_1St_2i_D16C31_WRA()
123 ADD2_SAT_FLOAT(CurrentR, DeltaR, Temp); in LVC_Core_MixSoft_1St_2i_D16C31_WRA()
124 CurrentR = Temp; in LVC_Core_MixSoft_1St_2i_D16C31_WRA()
156 LVM_FLOAT Temp =0.0f; in LVC_Core_MixSoft_1St_MC_float_WRA() local
[all …]
DFO_2I_D16F32C15_LShx_TRC_WRA_01.cpp41 LVM_FLOAT Temp; in FO_2I_D16F32C15_LShx_TRC_WRA_01() local
67 Temp = pBiquadState->pDelays[1] * pBiquadState->coefs[2]; in FO_2I_D16F32C15_LShx_TRC_WRA_01()
68 ynL += Temp; in FO_2I_D16F32C15_LShx_TRC_WRA_01()
70 Temp = pBiquadState->pDelays[3] * pBiquadState->coefs[2]; in FO_2I_D16F32C15_LShx_TRC_WRA_01()
71 ynR += Temp; in FO_2I_D16F32C15_LShx_TRC_WRA_01()
145 LVM_FLOAT Temp; in FO_Mc_D16F32C15_LShx_TRC_WRA_01() local
171 Temp = B1 * pDelays[1]; in FO_Mc_D16F32C15_LShx_TRC_WRA_01()
172 yn += Temp; in FO_Mc_D16F32C15_LShx_TRC_WRA_01()
DAdd2_Sat_16x16.cpp32 LVM_INT32 Temp; in Add2_Sat_16x16() local
36 Temp = ((LVM_INT32) *src) + ((LVM_INT32) *dst); in Add2_Sat_16x16()
39 if (Temp > 0x00007FFF) in Add2_Sat_16x16()
43 else if (Temp < -0x00008000) in Add2_Sat_16x16()
49 *dst = (LVM_INT16)Temp; in Add2_Sat_16x16()
DLVC_Core_MixHard_2St_D16C31_SAT.cpp34 LVM_FLOAT Temp; in LVC_Core_MixHard_2St_D16C31_SAT() local
45 Temp = (((LVM_FLOAT)*(src1++) * (LVM_FLOAT)Current1)) + in LVC_Core_MixHard_2St_D16C31_SAT()
47 if (Temp > 1.0f) in LVC_Core_MixHard_2St_D16C31_SAT()
49 else if (Temp < -1.0f) in LVC_Core_MixHard_2St_D16C31_SAT()
52 *dst++ = Temp; in LVC_Core_MixHard_2St_D16C31_SAT()
DAdd2_Sat_32x32.cpp63 LVM_FLOAT Temp; in Add2_Sat_Float() local
67 Temp = ((LVM_FLOAT) *src) + ((LVM_FLOAT) *dst); in Add2_Sat_Float()
70 if (Temp > 1.000000f) in Add2_Sat_Float()
74 else if (Temp < -1.000000f) in Add2_Sat_Float()
80 *dst = Temp; in Add2_Sat_Float()
DFrom2iToMono_16.cpp33 LVM_INT32 Temp; in From2iToMono_16() local
36 Temp = (LVM_INT32)*src; in From2iToMono_16()
39 Temp += (LVM_INT32)*src; in From2iToMono_16()
42 *dst = (LVM_INT16)(Temp >>1); in From2iToMono_16()
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
DLVREV_ApplyNewSettings.cpp143 LVM_UINT32 Temp; in LVREV_ApplyNewSettings() local
165 Temp = (LVM_UINT32)(Temp1 * ScaleTable[i]); in LVREV_ApplyNewSettings()
169 Temp = DelayLengthSamples; in LVREV_ApplyNewSettings()
171 APDelaySize = Temp / 1500; in LVREV_ApplyNewSettings()
177 Temp = (MaxT_Delay[i] - MaxAP_Delay[i]) * Fs / 192000; in LVREV_ApplyNewSettings()
178 pPrivate->Delay_AP[i] = pPrivate->T[i] - Temp; in LVREV_ApplyNewSettings()
187 Temp - APDelaySize]; in LVREV_ApplyNewSettings()
196 Temp - APDelaySize]; in LVREV_ApplyNewSettings()
205 pPrivate->MaxBlkLen = Temp; in LVREV_ApplyNewSettings()
243 LVM_INT32 Temp; in LVREV_ApplyNewSettings() local
[all …]
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Control.cpp355 LVM_FLOAT Temp; in LVM_SetVolume() local
419 Temp = LVM_VolumeTable[dBOffset]; in LVM_SetVolume()
421 Temp = Temp / 2.0f; in LVM_SetVolume()
424 LVC_Mixer_SetTarget(&pInstance->VC_Volume.MixerStream[0], Temp); in LVM_SetVolume()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp1312 LVM_INT16 Temp; in ReverbGetDiffusion() local
1320 Temp = (LVM_INT16)(pContext->SavedDiffusion/10); in ReverbGetDiffusion()
1322 if(ActiveParams.Density != Temp){ in ReverbGetDiffusion()
1323 ALOGV("\tLVM_ERROR : ReverbGetDiffusion invalid value %d %d", Temp, ActiveParams.Density); in ReverbGetDiffusion()
1382 LVM_INT16 Temp; in ReverbGetDensity() local
1389 Temp = (LVM_INT16)(((pContext->SavedDensity * 99) / 1000) + 1); in ReverbGetDensity()
1391 if(Temp != ActiveParams.RoomSize){ in ReverbGetDensity()
1392 ALOGV("\tLVM_ERROR : ReverbGetDensity invalid value %d %d", Temp, ActiveParams.RoomSize); in ReverbGetDensity()