Lines Matching refs:sfb
457 INT sfb; /* counts through scalefactor bands */
622 /* Low pass / highest sfb */
663 /* Calc possible spectrum leftshift for each sfb (1 means: 1 bit left shift is possible without overflow) */
678 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++)
679 minSpecShift = fixMin(minSpecShift, (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb]);
684 /* Calc possible energy leftshift for each sfb (1 means: 1 bit left shift is possible without overflow) */
722 for(sfb=0; sfb<psyData[ch]->sfbActive; sfb++) {
723 INT scale = fixMax(0, (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb]-4);
725 if (scale >= 0) (pSfbEnergy[ch]+w*maxSfb[ch])[sfb] >>= (scale);
726 else (pSfbEnergy[ch]+w*maxSfb[ch])[sfb] <<= (-scale);
727 (pSfbThreshold[ch]+w*maxSfb[ch])[sfb] = fMult((pSfbEnergy[ch]+w*maxSfb[ch])[sfb], C_RATIO);
728 (pSfbEnergyLdData[ch]+w*maxSfb[ch])[sfb] += ldShift;
741 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++)
742 (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb] -= finalShift;
756 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++) {
757 (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb] = 0;
758 (pSfbEnergy[ch]+w*maxSfb[ch])[sfb] = (FIXP_DBL)0;
759 (pSfbEnergyLdData[ch]+w*maxSfb[ch])[sfb] = FL2FXCONST_DBL(-1.0f);
760 (pSfbThreshold[ch]+w*maxSfb[ch])[sfb] = (FIXP_DBL)0;
841 for(sfb=0; sfb<hThisPsyConf[ch]->lowpassLine; sfb++) {
842 psyData[ch]->mdctSpectrum[sfb] = psyData[ch]->mdctSpectrum[sfb] >> shift;
846 for (sfb=0; sfb<psyData[ch]->sfbActive; sfb++) {
847 pSfbThreshold[ch][sfb] >>= (2*shift);
872 /* Calc sfb-bandwise mdct-energies for left and right channel again, */
916 for(sfb=0; sfb<psyData[ch]->sfbActive; sfb++) {
917 pSfbEnergyLdData[ch][sfb] -= scale*FL2FXCONST_DBL(1.0/LD_DATA_SCALING);
918 pSfbEnergy[ch][sfb] >>= scale;
919 pSfbThreshold[ch][sfb] >>= (tnsSpecShift<<1);
1086 for (sfb=0;sfb<psyData[ch]->sfbActive;sfb++) {
1087 psyOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb] =
1088 fixMax(psyOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb], FL2FXCONST_DBL(-0.515625f));
1102 for (sfb = psyData[ch]->sfbActive-1; sfb >= 0; sfb--) {
1103 for (line = hPsyConfLong->sfbOffset[sfb+1]-1; line >= hPsyConfLong->sfbOffset[sfb]; line--) {
1106 if (line > hPsyConfLong->sfbOffset[sfb]) break;
1108 maxSfbPerGroup[ch] = sfb + 1;
1153 maxSfbPerGroup[ch], /* count of Sfb which are not zero. */
1277 for(sfb = 0; sfb < psyData[ch]->sfbActive; sfb++) {
1278 psyOutChannel[ch]->noiseNrg[sfb] = NO_NOISE_PNS;