Lines Matching refs:pBiquadState
25 pBiquadState->coefs[0] is A2, pBiquadState->coefs[1] is A1
26 pBiquadState->coefs[2] is A0, pBiquadState->coefs[3] is -B2
27 pBiquadState->coefs[4] is -B1, these are in Q30 format
30 pBiquadState->pDelays[0] is x(n-1)L in Q0 format
31 pBiquadState->pDelays[1] is x(n-1)R in Q0 format
32 pBiquadState->pDelays[2] is x(n-2)L in Q0 format
33 pBiquadState->pDelays[3] is x(n-2)R in Q0 format
34 pBiquadState->pDelays[4] is y(n-1)L in Q0 format
35 pBiquadState->pDelays[5] is y(n-1)R in Q0 format
36 pBiquadState->pDelays[6] is y(n-2)L in Q0 format
37 pBiquadState->pDelays[7] is y(n-2)R in Q0 format
49 PFilter_State_FLOAT pBiquadState = (PFilter_State_FLOAT) pInstance;
59 ynL = pBiquadState->coefs[0] * pBiquadState->pDelays[2];
62 templ = pBiquadState->coefs[1] * pBiquadState->pDelays[0];
66 templ = pBiquadState->coefs[2] * (*pDataIn);
70 templ = pBiquadState->coefs[3] * pBiquadState->pDelays[6];
74 templ = pBiquadState->coefs[4] * pBiquadState->pDelays[4];
81 ynR = pBiquadState->coefs[0] * pBiquadState->pDelays[3];
84 templ = pBiquadState->coefs[1] * pBiquadState->pDelays[1];
89 templ = pBiquadState->coefs[2] * tempd;
93 templ = pBiquadState->coefs[3] * pBiquadState->pDelays[7];
97 templ = pBiquadState->coefs[4] * pBiquadState->pDelays[5];
103 pBiquadState->pDelays[7] = pBiquadState->pDelays[5]; /* y(n-2)R=y(n-1)R*/
104 pBiquadState->pDelays[6] = pBiquadState->pDelays[4]; /* y(n-2)L=y(n-1)L*/
105 pBiquadState->pDelays[3] = pBiquadState->pDelays[1]; /* x(n-2)R=x(n-1)R*/
106 pBiquadState->pDelays[2] = pBiquadState->pDelays[0]; /* x(n-2)L=x(n-1)L*/
107 pBiquadState->pDelays[5] = (LVM_FLOAT)ynR; /* Update y(n-1)R */
108 pBiquadState->pDelays[4] = (LVM_FLOAT)ynL; /* Update y(n-1)L */
109 pBiquadState->pDelays[0] = (*pDataIn); /* Update x(n-1)L */
111 pBiquadState->pDelays[1] = (*pDataIn); /* Update x(n-1)R */
131 pBiquadState->coefs[0] is A2, pBiquadState->coefs[1] is A1
132 pBiquadState->coefs[2] is A0, pBiquadState->coefs[3] is -B2
133 pBiquadState->coefs[4] is -B1
136 pBiquadState->pDelays[0] to
137 pBiquadState->pDelays[NrChannels - 1] is x(n-1) for all NrChannels
139 pBiquadState->pDelays[NrChannels] to
140 pBiquadState->pDelays[2*NrChannels - 1] is x(n-2) for all NrChannels
142 pBiquadState->pDelays[2*NrChannels] to
143 pBiquadState->pDelays[3*NrChannels - 1] is y(n-1) for all NrChannels
145 pBiquadState->pDelays[3*NrChannels] to
146 pBiquadState->pDelays[4*NrChannels - 1] is y(n-2) for all NrChannels
158 PFilter_State_FLOAT pBiquadState = (PFilter_State_FLOAT) pInstance;
168 yn = pBiquadState->coefs[0] * pBiquadState->pDelays[NrChannels + jj];
171 temp = pBiquadState->coefs[1] * pBiquadState->pDelays[jj];
175 temp = pBiquadState->coefs[2] * (*pDataIn);
179 temp = pBiquadState->coefs[3] * pBiquadState->pDelays[NrChannels*3 + jj];
183 temp = pBiquadState->coefs[4] * pBiquadState->pDelays[NrChannels*2 + jj];
189 pBiquadState->pDelays[NrChannels * 3 + jj] =
190 pBiquadState->pDelays[NrChannels * 2 + jj]; /* y(n-2)=y(n-1)*/
191 pBiquadState->pDelays[NrChannels * 1 + jj] =
192 pBiquadState->pDelays[jj]; /* x(n-2)=x(n-1)*/
193 pBiquadState->pDelays[NrChannels * 2 + jj] = (LVM_FLOAT)yn; /* Update y(n-1)*/
194 pBiquadState->pDelays[jj] = (*pDataIn); /* Update x(n-1)*/
217 PFilter_State pBiquadState = (PFilter_State) pInstance;
227 MUL32x32INTO32(pBiquadState->coefs[0],pBiquadState->pDelays[2],ynL,30)
230 MUL32x32INTO32(pBiquadState->coefs[1],pBiquadState->pDelays[0],templ,30)
234 MUL32x32INTO32(pBiquadState->coefs[2],*pDataIn,templ,30)
238 MUL32x32INTO32(pBiquadState->coefs[3],pBiquadState->pDelays[6],templ,30)
242 MUL32x32INTO32(pBiquadState->coefs[4],pBiquadState->pDelays[4],templ,30)
249 MUL32x32INTO32(pBiquadState->coefs[0],pBiquadState->pDelays[3],ynR,30)
252 MUL32x32INTO32(pBiquadState->coefs[1],pBiquadState->pDelays[1],templ,30)
257 MUL32x32INTO32(pBiquadState->coefs[2],tempd,templ,30)
261 MUL32x32INTO32(pBiquadState->coefs[3],pBiquadState->pDelays[7],templ,30)
265 MUL32x32INTO32(pBiquadState->coefs[4],pBiquadState->pDelays[5],templ,30)
271 pBiquadState->pDelays[7]=pBiquadState->pDelays[5]; /* y(n-2)R=y(n-1)R*/
272 pBiquadState->pDelays[6]=pBiquadState->pDelays[4]; /* y(n-2)L=y(n-1)L*/
273 pBiquadState->pDelays[3]=pBiquadState->pDelays[1]; /* x(n-2)R=x(n-1)R*/
274 pBiquadState->pDelays[2]=pBiquadState->pDelays[0]; /* x(n-2)L=x(n-1)L*/
275 pBiquadState->pDelays[5]=(LVM_INT32)ynR; /* Update y(n-1)R in Q0*/
276 pBiquadState->pDelays[4]=(LVM_INT32)ynL; /* Update y(n-1)L in Q0*/
277 pBiquadState->pDelays[0]=(*pDataIn); /* Update x(n-1)L in Q0*/
279 pBiquadState->pDelays[1]=(*pDataIn); /* Update x(n-1)R in Q0*/