Searched refs:Current (Results 1 - 21 of 21) sorted by relevance

/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DLVC_Core_MixInSoft_D16C31_SAT.c41 LVM_INT32 Current=pInstance->Current; local
48 if(Current<Target){
50 ADD2_SAT_32x32(Current,Delta,Temp); /* Q31 + Q31 into Q31*/
51 Current=Temp;
52 if (Current > Target)
53 Current = Target;
55 CurrentShort = (LVM_INT16)(Current>>16); /* From Q31 to Q15*/
69 ADD2_SAT_32x32(Current,Delta,Temp); /* Q31 + Q31 into Q31*/
70 Current
[all...]
H A DLVC_Core_MixSoft_1St_D16C31_WRA.c41 LVM_INT32 Current=pInstance->Current; local
48 if(Current<Target){
50 ADD2_SAT_32x32(Current,Delta,Temp); /* Q31 + Q31 into Q31*/
51 Current=Temp;
52 if (Current > Target)
53 Current = Target;
55 CurrentShort = (LVM_INT16)(Current>>16); /* From Q31 to Q15*/
63 ADD2_SAT_32x32(Current,Delta,Temp); /* Q31 + Q31 into Q31*/
64 Current
[all...]
H A DLVC_Mixer_VarSlope_SetTimeConstant.c66 LVM_INT32 Current; local
72 Current = LVC_Mixer_GetCurrent( pStream );
75 if (Current != Target)
77 Tc_millisec = Tc_millisec * 32767 / (Current - Target);
H A DMixInSoft_D32C31_SAT.c48 if (pInstance->Current != pInstance->Target)
51 pInstance->Current = pInstance->Target;
52 }else if ((pInstance->Current-pInstance->Target <POINT_ZERO_ONE_DB)&&
53 (pInstance->Current-pInstance->Target > -POINT_ZERO_ONE_DB)){
54 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal. */
72 pInstance->Current = pInstance->Target; /* In case the core function would have changed the Current value */
81 use of the core soft mix function which can change the Current value! */
84 if ((pInstance->Current-pInstance->Target <POINT_ZERO_ONE_DB)&&
85 (pInstance->Current
[all...]
H A DMixSoft_1St_D32C31_WRA.c50 if (pInstance->Current != pInstance->Target)
53 pInstance->Current = pInstance->Target;
54 }else if ((pInstance->Current-pInstance->Target <POINT_ZERO_ONE_DB)&&
55 (pInstance->Current-pInstance->Target > -POINT_ZERO_ONE_DB)){
56 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal. */
76 Mult3s_32x16( src, (LVM_INT16)(pInstance->Current>>16), dst, n );
84 if ((pInstance->Current-pInstance->Target <POINT_ZERO_ONE_DB)&&
85 (pInstance->Current-pInstance->Target > -POINT_ZERO_ONE_DB)){
86 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal. */
H A DLVC_MixSoft_1St_2i_D16C31_SAT.c52 if ((pInstance1->Current != pInstance1->Target)||(pInstance2->Current != pInstance2->Target))
56 pInstance1->Current = pInstance1->Target;
60 else if (Abs_32(pInstance1->Current-pInstance1->Target) < pInstance1->Delta)
62 pInstance1->Current = pInstance1->Target; /* Difference is not significant anymore. Make them equal. */
76 pInstance2->Current = pInstance2->Target;
80 else if (Abs_32(pInstance2->Current-pInstance2->Target) < pInstance2->Delta)
82 pInstance2->Current = pInstance2->Target; /* Difference is not significant anymore. Make them equal. */
124 if (Abs_32(pInstance1->Current-pInstance1->Target) < pInstance1->Delta)
126 pInstance1->Current
[all...]
H A DLVC_Mixer_GetCurrent.c39 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
H A DLVC_MixSoft_2St_D16C31_SAT.c43 if ((pInstance1->Current == pInstance1->Target)&&(pInstance1->Current == 0)){
46 else if ((pInstance2->Current == pInstance2->Target)&&(pInstance2->Current == 0)){
49 else if ((pInstance1->Current != pInstance1->Target) || (pInstance2->Current != pInstance2->Target))
H A DCore_MixInSoft_D32C31_SAT.c46 if (pInstance->Target >= pInstance->Current){
51 MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31); /* Q0 * Q31 in Q0 */
52 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q0 + Q0 into Q0*/
53 CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15*/
72 MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31); /* Q0 * Q31 in Q0 */
73 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q0 + Q0 into Q0*/
74 CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15*/
H A DCore_MixSoft_1St_D32C31_WRA.c46 if (pInstance->Target >= pInstance->Current)
53 MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31) /* Q31 * Q31 in Q31 */
54 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q31 + Q31 into Q31*/
55 CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15*/
70 MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31) /* Q31 * Q31 in Q31 */
71 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q31 + Q31 into Q31*/
72 CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15*/
H A DLVC_MixInSoft_D16C31_SAT.c51 if (pInstance->Current != pInstance->Target)
54 pInstance->Current = pInstance->Target;
57 }else if (Abs_32(pInstance->Current-pInstance->Target) < pInstance->Delta){
58 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal. */
88 pInstance->Current = pInstance->Target; /* In case the LVCore function would have changed the Current value */
99 if (Abs_32(pInstance->Current-pInstance->Target) < pInstance->Delta){
100 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal. */
H A DLVC_Mixer_SetTarget.c28 /* Current for a given Audio Stream based on new value of TargetGain */
32 /* "Current" based on maximum(TargetGain,CurrentGain) */
34 /* MaxGain of 2.5, Shift = 2, Current=1.9/4=0.475, Target=2.5/4=0.625 */
36 /* fraction gain is provided through Current=0.475 and Target=0.625 */
54 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
64 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current
H A DLVC_MixSoft_1St_D16C31_SAT.c51 if (pInstance->Current != pInstance->Target)
54 pInstance->Current = pInstance->Target;
57 }else if (Abs_32(pInstance->Current-pInstance->Target) < pInstance->Delta){
58 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal. */
99 if (Abs_32(pInstance->Current-pInstance->Target) < pInstance->Delta){
100 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal. */
H A DLVC_Core_MixHard_1St_2i_D16C31_SAT.c45 Current1Short = (LVM_INT16)(pInstance1->Current >> 16);
46 Current2Short = (LVM_INT16)(pInstance2->Current >> 16);
H A DLVC_Core_MixHard_2St_D16C31_SAT.c43 Current1Short = (LVM_INT16)(pInstance1->Current >> 16);
44 Current2Short = (LVM_INT16)(pInstance2->Current >> 16);
H A DLVC_Mixer_Init.c32 /* "Current" based on maximum(TargetGain,CurrentGain) */
34 /* MaxGain of 2.5, Shift = 2, Current=1.9/4=0.475, Target=2.5/4=0.625 */
36 /* fraction gain is provided through Current=0.475 and Target=0.625 */
64 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current
H A DLVC_Core_MixSoft_1St_2i_D16C31_WRA.c45 LVM_INT32 CurrentL=pInstanceL->Current;
49 LVM_INT32 CurrentR=pInstanceR->Current;
139 pInstanceL->Current=CurrentL;
140 pInstanceR->Current=CurrentR;
H A DLVC_Mixer_Private.h33 LVM_INT32 Current; /* 32 bit number specifying fractional valude of Current Gain */ member in struct:__anon184
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
H A DLVCS_BypassMix.c77 LVM_INT32 Current; local
111 Current = LVC_Mixer_GetCurrent(&pConfig->Mixer_Instance.MixerStream[0]);
112 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[0],(LVM_INT32)(Gain >> 15),Current);
119 Current = LVC_Mixer_GetCurrent(&pConfig->Mixer_Instance.MixerStream[1]);
120 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[1],(LVM_INT32)(Gain >> 15),Current);
/frameworks/av/media/libeffects/lvm/lib/Common/lib/
H A DMixer.h37 LVM_INT32 Current; /* Current value. Set by the mixer function. */ member in struct:__anon176
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
H A DLVREV_GetInstanceHandle.c255 pLVREV_Private->GainMixer.Current = 0x03ffffff;
287 pLVREV_Private->Mixer_SGFeedforward[i].Current = 0;
295 pLVREV_Private->Mixer_SGFeedback[i].Current = 0;
303 pLVREV_Private->FeedbackMixer[i].Current = 0;

Completed in 122 milliseconds