Lines Matching refs:sfb
122 INT j, sfb, sfbGrp; in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel() local
129 for (sfb = 0; sfb < tmp1; sfb++) { in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
132 for(j=psyOutChan->sfbOffsets[sfbGrp+sfb]; j<psyOutChan->sfbOffsets[sfbGrp+sfb+1]; j++ ) { in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
135 sfbFormFactorLdData[sfbGrp+sfb] = CalcLdData(formFactor); in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
138 for ( ; sfb < psyOutChan->sfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
139 sfbFormFactorLdData[sfbGrp+sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
178 INT sfbOffs, sfb; in FDKaacEnc_calcSfbRelevantLines() local
188 for(sfb=0; sfb<maxSfbPerGroup; sfb++) { in FDKaacEnc_calcSfbRelevantLines()
190 if((FIXP_DBL)sfbEnergyLdData[sfbOffs+sfb] > (FIXP_DBL)sfbThresholdLdData[sfbOffs+sfb]) { in FDKaacEnc_calcSfbRelevantLines()
191 INT sfbWidth = sfbOffsets[sfbOffs+sfb+1] - sfbOffsets[sfbOffs+sfb]; in FDKaacEnc_calcSfbRelevantLines()
198 accu = sfbEnergyLdData[sfbOffs+sfb] - sfbWidthLdData - asPeFacLdData; in FDKaacEnc_calcSfbRelevantLines()
199 accu = sfbFormFactorLdData[sfbOffs+sfb] - (accu >> 2); in FDKaacEnc_calcSfbRelevantLines()
201 sfbNRelevantLines[sfbOffs+sfb] = CalcInvLdData(accu) >> 1; in FDKaacEnc_calcSfbRelevantLines()
264 INT sfb = 0, sfbLast; in FDKaacEnc_countScfBitsDiff() local
279 for (sfb=sfbLast+1; sfb<stopSfb; sfb++) { in FDKaacEnc_countScfBitsDiff()
280 if (scfOld[sfb]!=FDK_INT_MIN) { in FDKaacEnc_countScfBitsDiff()
281 scfBitsDiff += FDKaacEnc_bitCountScalefactorDelta(scfNew[sfbLast]-scfNew[sfb]) - in FDKaacEnc_countScfBitsDiff()
282 FDKaacEnc_bitCountScalefactorDelta(scfOld[sfbLast]-scfOld[sfb]); in FDKaacEnc_countScfBitsDiff()
283 sfbLast = sfb; in FDKaacEnc_countScfBitsDiff()
316 INT sfb; in FDKaacEnc_calcSpecPeDiff() local
319 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_calcSpecPeDiff()
320 if (scfOld[sfb]!=FDK_INT_MIN) { in FDKaacEnc_calcSpecPeDiff()
326 if (sfbConstPePart[sfb] == (FIXP_DBL)FDK_INT_MIN) in FDKaacEnc_calcSpecPeDiff()
327 …sfbConstPePart[sfb] = ((psyOutChan->sfbEnergyLdData[sfb] - sfbFormFactorLdData[sfb] - FL2FXCONST_D… in FDKaacEnc_calcSpecPeDiff()
329 scfFract = (FIXP_DBL) (scfOld[sfb] << (DFRACT_BITS-1-AS_PE_FAC_SHIFT)); in FDKaacEnc_calcSpecPeDiff()
330 ldRatioOld = sfbConstPePart[sfb] - fMult(FL2FXCONST_DBL(0.375f),scfFract); in FDKaacEnc_calcSpecPeDiff()
332 scfFract = (FIXP_DBL) (scfNew[sfb] << (DFRACT_BITS-1-AS_PE_FAC_SHIFT)); in FDKaacEnc_calcSpecPeDiff()
333 ldRatioNew = sfbConstPePart[sfb] - fMult(FL2FXCONST_DBL(0.375f),scfFract); in FDKaacEnc_calcSpecPeDiff()
345 specPeDiff += fMult(FL2FXCONST_DBL(0.7f),fMult(sfbNRelevantLines[sfb],(pNew - pOld))); in FDKaacEnc_calcSpecPeDiff()
647 INT sfb, startSfb, stopSfb; in FDKaacEnc_assimilateMultipleScf() local
661 for (sfb=0; sfb<sfbCnt; sfb++) { in FDKaacEnc_assimilateMultipleScf()
662 if (scf[sfb]!=FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
663 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
664 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
680 sfb = stopSfb; in FDKaacEnc_assimilateMultipleScf()
681 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN || scf[sfb] <= scfAct)) in FDKaacEnc_assimilateMultipleScf()
682 sfb++; in FDKaacEnc_assimilateMultipleScf()
683 startSfb = sfb; in FDKaacEnc_assimilateMultipleScf()
684 sfb++; in FDKaacEnc_assimilateMultipleScf()
685 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN || scf[sfb] > scfAct)) in FDKaacEnc_assimilateMultipleScf()
686 sfb++; in FDKaacEnc_assimilateMultipleScf()
687 stopSfb = sfb; in FDKaacEnc_assimilateMultipleScf()
693 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
694 if (scf[sfb] != FDK_INT_MIN) in FDKaacEnc_assimilateMultipleScf()
695 if (scfAct < minScf[sfb]) { in FDKaacEnc_assimilateMultipleScf()
705 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
706 if (scfTmp[sfb] != FDK_INT_MIN) in FDKaacEnc_assimilateMultipleScf()
707 scfTmp[sfb] = scfAct; in FDKaacEnc_assimilateMultipleScf()
725 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
726 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
727 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_assimilateMultipleScf()
729 sfbWidth = psyOutChan->sfbOffsets[sfb+1] - psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
730 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
732 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs, in FDKaacEnc_assimilateMultipleScf()
738 if (sfbDistNew[sfb] >qcOutChannel->sfbThresholdLdData[sfb]) { in FDKaacEnc_assimilateMultipleScf()
743 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_assimilateMultipleScf()
749 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
750 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
751 sfbWidth = psyOutChan->sfbOffsets[sfb+1] - in FDKaacEnc_assimilateMultipleScf()
752 psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
753 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
754 scf[sfb] = scfAct; in FDKaacEnc_assimilateMultipleScf()
755 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_assimilateMultipleScf()
788 INT sfb, startSfb, stopSfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() local
806 for (sfb=0; sfb<sfbCnt; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
807 if (scf[sfb]!=FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
808 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
809 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
819 sfb = stopSfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
820 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN)) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
821 sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
822 startSfb = sfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
824 sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
825 while (sfb<sfbCnt && ((scf[sfb]==FDK_INT_MIN) || (scf[sfb]==scf[startSfb]))) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
826 sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
827 stopSfb = sfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
854 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
855 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
859 …sfb] = fMult(FL2FXCONST_DBL(1.0f/3.0f),qcOutChannel->sfbThresholdLdData[sfb])+fMult(FL2FXCONST_DBL… in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
860 …sfbDistMax[sfb] = fixMax(sfbDistMax[sfb],qcOutChannel->sfbEnergyLdData[sfb]-FL2FXCONST_DBL(0.15571… in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
861 sfbDistMax[sfb] = fixMin(sfbDistMax[sfb],qcOutChannel->sfbThresholdLdData[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
872 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
873 if (scfTmp[sfb] != FDK_INT_MIN) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
874 scfTmp[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
891 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
892 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
893 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
894 quantSpecTmp+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
895 sfbOffs[sfb+1]-sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
899 if (sfbDistNew[sfb] > sfbDistMax[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
902 if (sfbDistNew[sfb] == qcOutChannel->sfbEnergyLdData[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
916 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
917 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
918 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
919 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
921 for (k=0; k<sfbOffs[sfb+1]-sfbOffs[sfb]; k++) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
922 quantSpec[sfbOffs[sfb]+k] = quantSpecTmp[sfbOffs[sfb]+k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
946 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
947 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
948 scfTmp[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
949 if (scfNew < minScf[sfb]) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
970 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
971 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
972 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
974 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
975 quantSpecTmp+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
976 sfbOffs[sfb+1]-sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
980 if (sfbDistNew[sfb] > qcOutChannel->sfbThresholdLdData[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
985 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
991 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
992 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
993 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
994 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
996 for (k=0; k<sfbOffs[sfb+1]-sfbOffs[sfb]; k++) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
997 quantSpec[sfbOffs[sfb]+k] = quantSpecTmp[sfbOffs[sfb]+k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1015 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1016 if (scfTmp[sfb] != FDK_INT_MIN) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1017 scfTmp[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1027 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1028 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1032 FDKaacEnc_calcSfbQuantEnergyAndDist(qcOutChannel->mdctSpectrum+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1033 quantSpec+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1034 sfbOffs[sfb+1]-sfbOffs[sfb], scfNew, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1035 &sfbEnQ, &sfbDistNew[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1037 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1038 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1042 …if ((sfbDistNew[sfb] > (sfbDist[sfb]+FL2FXCONST_DBL(0.00259488556167f))) || (sfbEnQ < (qcOutChanne… in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1051 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1052 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1053 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1054 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1077 INT i, j, sfb, sfbOffs; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel() local
1113 for(sfb=0; sfb<psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1115 threshLdData = qcOutChannel->sfbThresholdLdData[sfbOffs+sfb]; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1116 energyLdData = qcOutChannel->sfbEnergyLdData[sfbOffs+sfb]; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1118 sfbDistLdData[sfbOffs+sfb] = energyLdData; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1126 energyPartLdData = sfbFormFactorLdData[sfbOffs+sfb] + FL2FXCONST_DBL(0.09375f); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1147 … for(j=psyOutChannel->sfbOffsets[sfbOffs+sfb]; j<psyOutChannel->sfbOffsets[sfbOffs+sfb+1]; j++ ){ in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1160 minSfMaxQuant[sfbOffs+sfb] = ((INT) ((c1Const + tmp) >> ((DFRACT_BITS-1)-8))) + 1; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1163 minSfMaxQuant[sfbOffs+sfb] = ((INT) (FL2FXCONST_DBL(-1.f) >> ((DFRACT_BITS-1)-8))) + 1; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1166 scfInt = fixMax(scfInt, minSfMaxQuant[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1171 … scfInt = FDKaacEnc_improveScf(qcOutChannel->mdctSpectrum+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1172 quantSpec+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1173 quantSpecTmp+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1174 … psyOutChannel->sfbOffsets[sfbOffs+sfb+1]-psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1175 threshLdData, scfInt, minSfMaxQuant[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1176 &sfbDistLdData[sfbOffs+sfb], &minScfCalculated[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1180 scf[sfbOffs+sfb] = scfInt; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1236 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1237 if (scf[sfbOffs+sfb]!=FDK_INT_MIN) in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1238 minSf = fixMin(minSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1244 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1245 if ((scf[sfbOffs+sfb] != FDK_INT_MIN) && (minSf+MAX_SCF_DELTA) < scf[sfbOffs+sfb]) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1246 scf[sfbOffs+sfb] = minSf + MAX_SCF_DELTA; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1248 sfbDistLdData[sfbOffs+sfb] = in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1249 … FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1250 quantSpec+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1251 … psyOutChannel->sfbOffsets[sfbOffs+sfb+1]-psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1252 scf[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1264 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1265 maxSf = fixMax(maxSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1273 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1274 if( scf[sfbOffs+sfb] == FDK_INT_MIN ) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1275 scf[sfbOffs+sfb] = 0; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1277 … for(j=psyOutChannel->sfbOffsets[sfbOffs+sfb]; j<psyOutChannel->sfbOffsets[sfbOffs+sfb+1]; j++ ) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1282 scf[sfbOffs+sfb] = maxSf - scf[sfbOffs+sfb]; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1291 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1292 scf[sfbOffs+sfb] = 0; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1294 … for(j=psyOutChannel->sfbOffsets[sfbOffs+sfb]; j<psyOutChannel->sfbOffsets[sfbOffs+sfb+1]; j++ ) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()