/frameworks/base/media/libeffects/lvm/lib/Common/src/ |
FO_1I_D16F16C15_TRC_WRA_01.c | 39 LVM_INT32 ynL; 49 // ynL=A1 (Q15) * x(n-1)L (Q0) in Q15 50 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[0]; 52 // ynL+=A0 (Q15) * x(n)L (Q0) in Q15 53 ynL+=(LVM_INT32)pBiquadState->coefs[1]* (*pDataIn); 55 // ynL+= (-B1 (Q15) * y(n-1)L (Q0) ) in Q15 56 ynL+=(LVM_INT32)pBiquadState->coefs[2]*pBiquadState->pDelays[1]; 59 ynL=(LVM_INT16)(ynL>>15); // ynL in Q0 forma [all...] |
BQ_1I_D16F16C15_TRC_WRA_01.c | 41 LVM_INT32 ynL; 52 // ynL=A2 (Q15) * x(n-2)L (Q0) in Q15 53 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[1]; 55 // ynL+=A1 (Q15) * x(n-1)L (Q0) in Q15 56 ynL+=(LVM_INT32)pBiquadState->coefs[1]* pBiquadState->pDelays[0]; 58 // ynL+=A0 (Q15) * x(n)L (Q0) in Q15 59 ynL+=(LVM_INT32)pBiquadState->coefs[2]* (*pDataIn); 61 // ynL+= (-B2 (Q15) * y(n-2)L (Q0) ) in Q15 62 ynL+=(LVM_INT32)pBiquadState->coefs[3]*pBiquadState->pDelays[3]; 64 // ynL+= (-B1 (Q15) * y(n-1)L (Q0) ) in Q1 [all...] |
FO_1I_D32F32C31_TRC_WRA_01.c | 40 LVM_INT32 ynL,templ; 50 // ynL=A1 (Q31) * x(n-1)L (Q0) >>31 in Q0 51 MUL32x32INTO32(pBiquadState->coefs[0],pBiquadState->pDelays[0],ynL,31) 53 // ynL+=A0 (Q31) * x(n)L (Q0) >> 31 in Q0 55 ynL+=templ; 57 // ynL+= (-B1 (Q31) * y(n-1)L (Q0) ) >> 31 in Q0 59 ynL+=templ; 64 pBiquadState->pDelays[1]=ynL; // Update y(n-1)L in Q0 70 *pDataOut++=(LVM_INT32)ynL; // Write Left output in Q0
|
BP_1I_D16F16C14_TRC_WRA_01.c | 44 LVM_INT32 ynL; 55 // ynL= (A0 (Q14) * (x(n)L (Q0) - x(n-2)L (Q0) ) ) in Q14 56 ynL=(LVM_INT32)pBiquadState->coefs[0]* ((*pDataIn)-pBiquadState->pDelays[1]); 58 // ynL+= ((-B2 (Q14) * y(n-2)L (Q0) ) ) in Q14 59 ynL+=(LVM_INT32)pBiquadState->coefs[1]*pBiquadState->pDelays[3]; 61 // ynL+= ((-B1 (Q30) * y(n-1)L (Q0) ) ) in Q14 62 ynL+=(LVM_INT32)pBiquadState->coefs[2]*pBiquadState->pDelays[2]; 64 ynL=(LVM_INT16)(ynL>>14); // ynL in Q [all...] |
BQ_1I_D16F32C14_TRC_WRA_01.c | 41 LVM_INT32 ynL,templ; 52 // ynL=A2 (Q14) * x(n-2)L (Q0) in Q14 53 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[1]; 55 // ynL+=A1 (Q14) * x(n-1)L (Q0) in Q14 56 ynL+=(LVM_INT32)pBiquadState->coefs[1]* pBiquadState->pDelays[0]; 58 // ynL+=A0 (Q14) * x(n)L (Q0) in Q14 59 ynL+=(LVM_INT32)pBiquadState->coefs[2]* (*pDataIn); 61 // ynL+= ( (-B2 (Q14) * y(n-2)L (Q16) )>>16) in Q14 63 ynL+=templ; 65 // ynL+= ( (-B1 (Q14) * y(n-1)L (Q16) )>>16) in Q1 [all...] |
FO_2I_D16F32C15_LShx_TRC_WRA_01.c | 41 LVM_INT32 ynL,ynR; 61 // ynL =A1 (Q15) * x(n-1)L (Q15) in Q30 62 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[0]; 67 // ynL+=A0 (Q15) * x(n)L (Q15) in Q30 68 ynL+=(LVM_INT32)pBiquadState->coefs[1]* (*pDataIn); 73 // ynL += (-B1 (Q15) * y(n-1)L (Q30) ) in Q30 75 ynL +=Temp; 84 pBiquadState->pDelays[1]=ynL; // Update y(n-1)L in Q30 95 ynL = ynL>>(15-Shift) [all...] |
BQ_2I_D16F16C14_TRC_WRA_01.c | 46 LVM_INT32 ynL,ynR; 56 // ynL=A2 (Q14) * x(n-2)L (Q0) in Q14 57 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[2]; 59 // ynL+=A1 (Q14) * x(n-1)L (Q0) in Q14 60 ynL+=(LVM_INT32)pBiquadState->coefs[1]* pBiquadState->pDelays[0]; 62 // ynL+=A0 (Q14) * x(n)L (Q0) in Q14 63 ynL+=(LVM_INT32)pBiquadState->coefs[2]* (*pDataIn); 65 // ynL+= ( -B2 (Q14) * y(n-2)L (Q0) ) in Q14 66 ynL+=(LVM_INT32)pBiquadState->coefs[3]*pBiquadState->pDelays[6]; 68 // ynL+=( -B1 (Q14) * y(n-1)L (Q0) ) in Q1 [all...] |
BQ_2I_D16F16C15_TRC_WRA_01.c | 46 LVM_INT32 ynL,ynR; 57 // ynL=A2 (Q15) * x(n-2)L (Q0) in Q15 58 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[2]; 60 // ynL+=A1 (Q15) * x(n-1)L (Q0) in Q15 61 ynL+=(LVM_INT32)pBiquadState->coefs[1]* pBiquadState->pDelays[0]; 63 // ynL+=A0 (Q15) * x(n)L (Q0) in Q15 64 ynL+=(LVM_INT32)pBiquadState->coefs[2]* (*pDataIn); 66 // ynL+= ( -B2 (Q15) * y(n-2)L (Q0) ) in Q15 67 ynL+=(LVM_INT32)pBiquadState->coefs[3]*pBiquadState->pDelays[6]; 69 // ynL+=( -B1 (Q15) * y(n-1)L (Q0) ) in Q1 [all...] |
BP_1I_D16F32C30_TRC_WRA_01.c | 44 LVM_INT32 ynL,templ; 55 // ynL= (A0 (Q30) * (x(n)L (Q0) - x(n-2)L (Q0) ) >>14) in Q16 57 MUL32x32INTO32(pBiquadState->coefs[0],templ,ynL,14) 59 // ynL+= ((-B2 (Q30) * y(n-2)L (Q16) ) >>30) in Q16 61 ynL+=templ; 63 // ynL+= ((-B1 (Q30) * y(n-1)L (Q16) ) >>30) in Q16 65 ynL+=templ; 72 pBiquadState->pDelays[2]=ynL; // Update y(n-1)L in Q16 78 *pDataOut++=(LVM_INT16)(ynL>>16); // Write Left output in Q0
|
BP_1I_D32F32C30_TRC_WRA_02.c | 42 LVM_INT32 ynL,templ; 53 // ynL= (A0 (Q30) * (x(n)L (Q0) - x(n-2)L (Q0) ) >>30) in Q0 55 MUL32x32INTO32(pBiquadState->coefs[0],templ,ynL,30) 57 // ynL+= ((-B2 (Q30) * y(n-2)L (Q0) ) >>30) in Q0 59 ynL+=templ; 61 // ynL+= ((-B1 (Q30) * y(n-1)L (Q0) ) >>30) in Q0 63 ynL+=templ; 70 pBiquadState->pDelays[2]=ynL; // Update y(n-1)L in Q0 76 *pDataOut++=ynL; // Write Left output in Q0
|
BQ_2I_D16F32C13_TRC_WRA_01.c | 46 LVM_INT32 ynL,ynR,templ; 57 /* ynL=A2 (Q13) * x(n-2)L (Q0) in Q13*/ 58 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[2]; 60 /* ynL+=A1 (Q13) * x(n-1)L (Q0) in Q13*/ 61 ynL+=(LVM_INT32)pBiquadState->coefs[1]* pBiquadState->pDelays[0]; 63 /* ynL+=A0 (Q13) * x(n)L (Q0) in Q13*/ 64 ynL+=(LVM_INT32)pBiquadState->coefs[2]* (*pDataIn); 66 /* ynL+= ( (-B2 (Q13) * y(n-2)L (Q16) )>>16) in Q13 */ 68 ynL+=templ; 70 /* ynL+=( (-B1 (Q13) * y(n-1)L (Q16) )>>16) in Q13 * [all...] |
BQ_2I_D16F32C14_TRC_WRA_01.c | 45 LVM_INT32 ynL,ynR,templ; 56 /* ynL=A2 (Q14) * x(n-2)L (Q0) in Q14*/ 57 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[2]; 59 /* ynL+=A1 (Q14) * x(n-1)L (Q0) in Q14*/ 60 ynL+=(LVM_INT32)pBiquadState->coefs[1]* pBiquadState->pDelays[0]; 62 /* ynL+=A0 (Q14) * x(n)L (Q0) in Q14*/ 63 ynL+=(LVM_INT32)pBiquadState->coefs[2]* (*pDataIn); 65 /* ynL+= ( (-B2 (Q14) * y(n-2)L (Q16) )>>16) in Q14 */ 67 ynL+=templ; 69 /* ynL+=( (-B1 (Q14) * y(n-1)L (Q16) )>>16) in Q14 * [all...] |
BQ_2I_D16F32C15_TRC_WRA_01.c | 45 LVM_INT32 ynL,ynR,templ; 56 /* ynL=A2 (Q15) * x(n-2)L (Q0) in Q15*/ 57 ynL=(LVM_INT32)pBiquadState->coefs[0]* pBiquadState->pDelays[2]; 59 /* ynL+=A1 (Q15) * x(n-1)L (Q0) in Q15*/ 60 ynL+=(LVM_INT32)pBiquadState->coefs[1]* pBiquadState->pDelays[0]; 62 /* ynL+=A0 (Q15) * x(n)L (Q0) in Q15*/ 63 ynL+=(LVM_INT32)pBiquadState->coefs[2]* (*pDataIn); 65 /* ynL+= ( (-B2 (Q15) * y(n-2)L (Q16) )>>16) in Q15 */ 67 ynL+=templ; 69 /* ynL+=( (-B1 (Q15) * y(n-1)L (Q16) )>>16) in Q15 * [all...] |
BQ_2I_D32F32C30_TRC_WRA_01.c | 47 LVM_INT32 ynL,ynR,templ,tempd; 58 /* ynL= ( A2 (Q30) * x(n-2)L (Q0) ) >>30 in Q0*/ 59 MUL32x32INTO32(pBiquadState->coefs[0],pBiquadState->pDelays[2],ynL,30) 61 /* ynL+= ( A1 (Q30) * x(n-1)L (Q0) ) >> 30 in Q0*/ 63 ynL+=templ; 65 /* ynL+= ( A0 (Q30) * x(n)L (Q0) ) >> 30 in Q0*/ 67 ynL+=templ; 69 /* ynL+= (-B2 (Q30) * y(n-2)L (Q0) ) >> 30 in Q0*/ 71 ynL+=templ; 73 /* ynL+= (-B1 (Q30) * y(n-1)L (Q0) ) >> 30 in Q0 * [all...] |
PK_2I_D32F32C14G11_TRC_WRA_01.c | 46 LVM_INT32 ynL,ynR,ynLO,ynRO,templ; 57 /* ynL= (A0 (Q14) * (x(n)L (Q0) - x(n-2)L (Q0) ) >>14) in Q0*/ 59 MUL32x16INTO32(templ,pBiquadState->coefs[0],ynL,14) 61 /* ynL+= ((-B2 (Q14) * y(n-2)L (Q0) ) >>14) in Q0*/ 63 ynL+=templ; 65 /* ynL+= ((-B1 (Q14) * y(n-1)L (Q0) ) >>14) in Q0 */ 67 ynL+=templ; 69 /* ynLO= ((Gain (Q11) * ynL (Q0))>>11) in Q0*/ 70 MUL32x16INTO32(ynL,pBiquadState->coefs[3],ynLO,11) 104 pBiquadState->pDelays[4]=ynL; /* Update y(n-1)L in Q0* [all...] |
PK_2I_D32F32C30G11_TRC_WRA_01.c | 46 LVM_INT32 ynL,ynR,ynLO,ynRO,templ; 57 /* ynL= (A0 (Q30) * (x(n)L (Q0) - x(n-2)L (Q0) ) >>30) in Q0*/ 59 MUL32x32INTO32(templ,pBiquadState->coefs[0],ynL,30) 61 /* ynL+= ((-B2 (Q30) * y(n-2)L (Q0) ) >>30) in Q0*/ 63 ynL+=templ; 65 /* ynL+= ((-B1 (Q30) * y(n-1)L (Q0) ) >>30) in Q0 */ 67 ynL+=templ; 69 /* ynLO= ((Gain (Q11) * ynL (Q0))>>11) in Q0*/ 70 MUL32x16INTO32(ynL,pBiquadState->coefs[3],ynLO,11) 103 pBiquadState->pDelays[4]=ynL; /* Update y(n-1)L in Q0* [all...] |