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()
639 INT sfb, startSfb, stopSfb; in FDKaacEnc_assimilateMultipleScf() local
653 for (sfb=0; sfb<sfbCnt; sfb++) { in FDKaacEnc_assimilateMultipleScf()
654 if (scf[sfb]!=FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
655 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
656 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
672 sfb = stopSfb; in FDKaacEnc_assimilateMultipleScf()
673 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN || scf[sfb] <= scfAct)) in FDKaacEnc_assimilateMultipleScf()
674 sfb++; in FDKaacEnc_assimilateMultipleScf()
675 startSfb = sfb; in FDKaacEnc_assimilateMultipleScf()
676 sfb++; in FDKaacEnc_assimilateMultipleScf()
677 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN || scf[sfb] > scfAct)) in FDKaacEnc_assimilateMultipleScf()
678 sfb++; in FDKaacEnc_assimilateMultipleScf()
679 stopSfb = sfb; in FDKaacEnc_assimilateMultipleScf()
685 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
686 if (scf[sfb] != FDK_INT_MIN) in FDKaacEnc_assimilateMultipleScf()
687 if (scfAct < minScf[sfb]) { in FDKaacEnc_assimilateMultipleScf()
697 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
698 if (scfTmp[sfb] != FDK_INT_MIN) in FDKaacEnc_assimilateMultipleScf()
699 scfTmp[sfb] = scfAct; in FDKaacEnc_assimilateMultipleScf()
717 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
718 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
719 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_assimilateMultipleScf()
721 sfbWidth = psyOutChan->sfbOffsets[sfb+1] - psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
722 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
724 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs, in FDKaacEnc_assimilateMultipleScf()
729 if (sfbDistNew[sfb] >qcOutChannel->sfbThresholdLdData[sfb]) { in FDKaacEnc_assimilateMultipleScf()
734 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_assimilateMultipleScf()
740 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
741 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
742 sfbWidth = psyOutChan->sfbOffsets[sfb+1] - in FDKaacEnc_assimilateMultipleScf()
743 psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
744 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
745 scf[sfb] = scfAct; in FDKaacEnc_assimilateMultipleScf()
746 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_assimilateMultipleScf()
778 INT sfb, startSfb, stopSfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() local
796 for (sfb=0; sfb<sfbCnt; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
797 if (scf[sfb]!=FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
798 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
799 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
809 sfb = stopSfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
810 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN)) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
811 sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
812 startSfb = sfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
814 sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
815 while (sfb<sfbCnt && ((scf[sfb]==FDK_INT_MIN) || (scf[sfb]==scf[startSfb]))) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
816 sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
817 stopSfb = sfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
844 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
845 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
849sfb] = fMult(FL2FXCONST_DBL(1.0f/3.0f),qcOutChannel->sfbThresholdLdData[sfb])+fMult(FL2FXCONST_DBL… in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
850 …sfbDistMax[sfb] = fixMax(sfbDistMax[sfb],qcOutChannel->sfbEnergyLdData[sfb]-FL2FXCONST_DBL(0.15571… in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
851 sfbDistMax[sfb] = fixMin(sfbDistMax[sfb],qcOutChannel->sfbThresholdLdData[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
862 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
863 if (scfTmp[sfb] != FDK_INT_MIN) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
864 scfTmp[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
881 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
882 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
883 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
884 quantSpecTmp+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
885 sfbOffs[sfb+1]-sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
888 if (sfbDistNew[sfb] > sfbDistMax[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
891 if (sfbDistNew[sfb] == qcOutChannel->sfbEnergyLdData[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
905 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
906 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
907 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
908 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
910 for (k=0; k<sfbOffs[sfb+1]-sfbOffs[sfb]; k++) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
911 quantSpec[sfbOffs[sfb]+k] = quantSpecTmp[sfbOffs[sfb]+k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
935 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
936 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
937 scfTmp[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
938 if (scfNew < minScf[sfb]) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
959 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
960 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
961 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
963 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
964 quantSpecTmp+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
965 sfbOffs[sfb+1]-sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
968 if (sfbDistNew[sfb] > qcOutChannel->sfbThresholdLdData[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
973 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
979 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
980 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
981 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
982 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
984 for (k=0; k<sfbOffs[sfb+1]-sfbOffs[sfb]; k++) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
985 quantSpec[sfbOffs[sfb]+k] = quantSpecTmp[sfbOffs[sfb]+k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1003 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1004 if (scfTmp[sfb] != FDK_INT_MIN) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1005 scfTmp[sfb] = scfNew; 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()
1020 FDKaacEnc_calcSfbQuantEnergyAndDist(qcOutChannel->mdctSpectrum+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1021 quantSpec+sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1022 sfbOffs[sfb+1]-sfbOffs[sfb], scfNew, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1023 &sfbEnQ, &sfbDistNew[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1025 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1026 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1030 …if ((sfbDistNew[sfb] > (sfbDist[sfb]+FL2FXCONST_DBL(0.00259488556167f))) || (sfbEnQ < (qcOutChanne… in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1039 for (sfb=startSfb; sfb<stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1040 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1041 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1042 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1064 INT i, j, sfb, sfbOffs; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel() local
1100 for(sfb=0; sfb<psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1102 threshLdData = qcOutChannel->sfbThresholdLdData[sfbOffs+sfb]; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1103 energyLdData = qcOutChannel->sfbEnergyLdData[sfbOffs+sfb]; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1105 sfbDistLdData[sfbOffs+sfb] = energyLdData; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1113 energyPartLdData = sfbFormFactorLdData[sfbOffs+sfb] + FL2FXCONST_DBL(0.09375f); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1134 … for(j=psyOutChannel->sfbOffsets[sfbOffs+sfb]; j<psyOutChannel->sfbOffsets[sfbOffs+sfb+1]; j++ ){ in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1147 minSfMaxQuant[sfbOffs+sfb] = ((INT) ((c1Const + tmp) >> ((DFRACT_BITS-1)-8))) + 1; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1150 minSfMaxQuant[sfbOffs+sfb] = ((INT) (FL2FXCONST_DBL(-1.f) >> ((DFRACT_BITS-1)-8))) + 1; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1153 scfInt = fixMax(scfInt, minSfMaxQuant[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1158 … scfInt = FDKaacEnc_improveScf(qcOutChannel->mdctSpectrum+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1159 quantSpec+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1160 quantSpecTmp+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1161 … psyOutChannel->sfbOffsets[sfbOffs+sfb+1]-psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1162 threshLdData, scfInt, minSfMaxQuant[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1163 &sfbDistLdData[sfbOffs+sfb], &minScfCalculated[sfbOffs+sfb] in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1166 scf[sfbOffs+sfb] = scfInt; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1210 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1211 if (scf[sfbOffs+sfb]!=FDK_INT_MIN) in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1212 minSf = fixMin(minSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1218 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1219 if ((scf[sfbOffs+sfb] != FDK_INT_MIN) && (minSf+MAX_SCF_DELTA) < scf[sfbOffs+sfb]) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1220 scf[sfbOffs+sfb] = minSf + MAX_SCF_DELTA; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1222 sfbDistLdData[sfbOffs+sfb] = in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1223 … FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1224 quantSpec+psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1225 … psyOutChannel->sfbOffsets[sfbOffs+sfb+1]-psyOutChannel->sfbOffsets[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1226 scf[sfbOffs+sfb] in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1237 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1238 maxSf = fixMax(maxSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1246 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1247 if( scf[sfbOffs+sfb] == FDK_INT_MIN ) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1248 scf[sfbOffs+sfb] = 0; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1250 … for(j=psyOutChannel->sfbOffsets[sfbOffs+sfb]; j<psyOutChannel->sfbOffsets[sfbOffs+sfb+1]; j++ ) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1255 scf[sfbOffs+sfb] = maxSf - scf[sfbOffs+sfb]; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1264 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1265 scf[sfbOffs+sfb] = 0; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1267 … for(j=psyOutChannel->sfbOffsets[sfbOffs+sfb]; j<psyOutChannel->sfbOffsets[sfbOffs+sfb+1]; j++ ) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()