Lines Matching refs:sfbGrp

112    INT sfbGrp,sfb;  in FDKaacEnc_prepareSfbPe()  local
117 for (sfbGrp = 0;sfbGrp < sfbCnt;sfbGrp+=sfbPerGroup) { in FDKaacEnc_prepareSfbPe()
119 if ((FIXP_DBL)sfbEnergyLdData[sfbGrp+sfb] > (FIXP_DBL)sfbThresholdLdData[sfbGrp+sfb]) { in FDKaacEnc_prepareSfbPe()
120 sfbWidth = sfbOffset[sfbGrp+sfb+1] - sfbOffset[sfbGrp+sfb]; in FDKaacEnc_prepareSfbPe()
122 avgFormFactorLdData = ((-sfbEnergyLdData[sfbGrp+sfb]>>1) + (CalcLdInt(sfbWidth)>>1))>>1; in FDKaacEnc_prepareSfbPe()
123 peChanData->sfbNLines[sfbGrp+sfb] = in FDKaacEnc_prepareSfbPe()
124 … (INT)CalcInvLdData( (sfbFormFactorLdData[sfbGrp+sfb] + formFacScaling) + avgFormFactorLdData); in FDKaacEnc_prepareSfbPe()
126 peChanData->sfbNLines[sfbGrp+sfb] = fMin(sfbWidth, peChanData->sfbNLines[sfbGrp+sfb]); in FDKaacEnc_prepareSfbPe()
129 peChanData->sfbNLines[sfbGrp+sfb] = 0; in FDKaacEnc_prepareSfbPe()
153 INT sfbGrp,sfb; in FDKaacEnc_calcSfbPe() local
162 for(sfbGrp = 0;sfbGrp < sfbCnt;sfbGrp+=sfbPerGroup){ in FDKaacEnc_calcSfbPe()
164 if ((FIXP_DBL)sfbEnergyLdData[sfbGrp+sfb] > (FIXP_DBL)sfbThresholdLdData[sfbGrp+sfb]) { in FDKaacEnc_calcSfbPe()
165 logDataRatio = (FIXP_DBL)(sfbEnergyLdData[sfbGrp+sfb] - sfbThresholdLdData[sfbGrp+sfb]); in FDKaacEnc_calcSfbPe()
166 nLines = peChanData->sfbNLines[sfbGrp+sfb]; in FDKaacEnc_calcSfbPe()
169 …peChanData->sfbPe[sfbGrp+sfb] = fMultDiv2(logDataRatio, (FIXP_DBL)(nLines<<(LD_DATA_SHIFT+PE_CONST… in FDKaacEnc_calcSfbPe()
170 peChanData->sfbConstPart[sfbGrp+sfb] = in FDKaacEnc_calcSfbPe()
171 …fMultDiv2(sfbEnergyLdData[sfbGrp+sfb], (FIXP_DBL)(nLines<<(LD_DATA_SHIFT+PE_CONSTPART_SHIFT+1))); ; in FDKaacEnc_calcSfbPe()
176 peChanData->sfbPe[sfbGrp+sfb] = in FDKaacEnc_calcSfbPe()
179 peChanData->sfbConstPart[sfbGrp+sfb] = in FDKaacEnc_calcSfbPe()
180 fMultDiv2(((FIXP_DBL)C2LdData + fMult(C3LdData,sfbEnergyLdData[sfbGrp+sfb])), in FDKaacEnc_calcSfbPe()
185 peChanData->sfbNActiveLines[sfbGrp+sfb] = nLines; in FDKaacEnc_calcSfbPe()
187 else if( isBook[sfbGrp+sfb] ) { in FDKaacEnc_calcSfbPe()
189 INT delta = isScale[sfbGrp+sfb] - lastValIs; in FDKaacEnc_calcSfbPe()
190 lastValIs = isScale[sfbGrp+sfb]; in FDKaacEnc_calcSfbPe()
191 … peChanData->sfbPe[sfbGrp+sfb] = FDKaacEnc_bitCountScalefactorDelta(delta)<<PE_CONSTPART_SHIFT; in FDKaacEnc_calcSfbPe()
192 peChanData->sfbConstPart[sfbGrp+sfb] = 0; in FDKaacEnc_calcSfbPe()
193 peChanData->sfbNActiveLines[sfbGrp+sfb] = 0; in FDKaacEnc_calcSfbPe()
196 peChanData->sfbPe[sfbGrp+sfb] = 0; in FDKaacEnc_calcSfbPe()
197 peChanData->sfbConstPart[sfbGrp+sfb] = 0; in FDKaacEnc_calcSfbPe()
198 peChanData->sfbNActiveLines[sfbGrp+sfb] = 0; in FDKaacEnc_calcSfbPe()
201 peChanData->pe += peChanData->sfbPe[sfbGrp+sfb]; in FDKaacEnc_calcSfbPe()
202 peChanData->constPart += peChanData->sfbConstPart[sfbGrp+sfb]; in FDKaacEnc_calcSfbPe()
203 peChanData->nActiveLines += peChanData->sfbNActiveLines[sfbGrp+sfb]; in FDKaacEnc_calcSfbPe()