Lines Matching defs:sfb

112    INT sfbGrp,sfb;
118 for (sfb=0; sfb<maxSfbPerGroup; sfb++) {
119 if ((FIXP_DBL)sfbEnergyLdData[sfbGrp+sfb] > (FIXP_DBL)sfbThresholdLdData[sfbGrp+sfb]) {
120 sfbWidth = sfbOffset[sfbGrp+sfb+1] - sfbOffset[sfbGrp+sfb];
122 avgFormFactorLdData = ((-sfbEnergyLdData[sfbGrp+sfb]>>1) + (CalcLdInt(sfbWidth)>>1))>>1;
123 peChanData->sfbNLines[sfbGrp+sfb] =
124 (INT)CalcInvLdData( (sfbFormFactorLdData[sfbGrp+sfb] + formFacScaling) + avgFormFactorLdData);
127 peChanData->sfbNLines[sfbGrp+sfb] = 0;
134 formula for one sfb:
137 n: estimated number of lines in sfb,
151 INT sfbGrp,sfb;
161 for (sfb=0; sfb<maxSfbPerGroup; sfb++) {
162 if ((FIXP_DBL)sfbEnergyLdData[sfbGrp+sfb] > (FIXP_DBL)sfbThresholdLdData[sfbGrp+sfb]) {
163 logDataRatio = (FIXP_DBL)(sfbEnergyLdData[sfbGrp+sfb] - sfbThresholdLdData[sfbGrp+sfb]);
164 nLines = peChanData->sfbNLines[sfbGrp+sfb];
167 peChanData->sfbPe[sfbGrp+sfb] = fMultDiv2(logDataRatio, (FIXP_DBL)(nLines<<(LD_DATA_SHIFT+PE_CONSTPART_SHIFT+1)));
168 peChanData->sfbConstPart[sfbGrp+sfb] =
169 fMultDiv2(sfbEnergyLdData[sfbGrp+sfb], (FIXP_DBL)(nLines<<(LD_DATA_SHIFT+PE_CONSTPART_SHIFT+1))); ;
174 peChanData->sfbPe[sfbGrp+sfb] =
177 peChanData->sfbConstPart[sfbGrp+sfb] =
178 fMultDiv2(((FIXP_DBL)C2LdData + fMult(C3LdData,sfbEnergyLdData[sfbGrp+sfb])),
183 peChanData->sfbNActiveLines[sfbGrp+sfb] = nLines;
185 else if( isBook[sfb] ) {
187 INT delta = isScale[sfbGrp+sfb] - lastValIs;
188 lastValIs = isScale[sfbGrp+sfb];
189 peChanData->sfbPe[sfbGrp+sfb] = FDKaacEnc_bitCountScalefactorDelta(delta)<<PE_CONSTPART_SHIFT;
190 peChanData->sfbConstPart[sfbGrp+sfb] = 0;
191 peChanData->sfbNActiveLines[sfbGrp+sfb] = 0;
194 peChanData->sfbPe[sfbGrp+sfb] = 0;
195 peChanData->sfbConstPart[sfbGrp+sfb] = 0;
196 peChanData->sfbNActiveLines[sfbGrp+sfb] = 0;
199 peChanData->pe += peChanData->sfbPe[sfbGrp+sfb];
200 peChanData->constPart += peChanData->sfbConstPart[sfbGrp+sfb];
201 peChanData->nActiveLines += peChanData->sfbNActiveLines[sfbGrp+sfb];