• Home
  • Raw
  • Download

Lines Matching refs:sfb

135   INT j, sfb, sfbGrp;  in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()  local
142 for (sfb = 0; sfb < tmp1; sfb++) { in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
145 for (j = psyOutChan->sfbOffsets[sfbGrp + sfb]; in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
146 j < psyOutChan->sfbOffsets[sfbGrp + sfb + 1]; j++) { in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
150 sfbFormFactorLdData[sfbGrp + sfb] = CalcLdData(formFactor); in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
153 for (; sfb < psyOutChan->sfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
154 sfbFormFactorLdData[sfbGrp + sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel()
189 INT sfbOffs, sfb; in FDKaacEnc_calcSfbRelevantLines() local
202 for (sfb = 0; sfb < maxSfbPerGroup; sfb++) { in FDKaacEnc_calcSfbRelevantLines()
204 if ((FIXP_DBL)sfbEnergyLdData[sfbOffs + sfb] > in FDKaacEnc_calcSfbRelevantLines()
205 (FIXP_DBL)sfbThresholdLdData[sfbOffs + sfb]) { in FDKaacEnc_calcSfbRelevantLines()
207 sfbOffsets[sfbOffs + sfb + 1] - sfbOffsets[sfbOffs + sfb]; in FDKaacEnc_calcSfbRelevantLines()
217 accu = sfbEnergyLdData[sfbOffs + sfb] - sfbWidthLdData - asPeFacLdData; in FDKaacEnc_calcSfbRelevantLines()
218 accu = sfbFormFactorLdData[sfbOffs + sfb] - (accu >> 2); in FDKaacEnc_calcSfbRelevantLines()
220 sfbNRelevantLines[sfbOffs + sfb] = CalcInvLdData(accu) >> 1; in FDKaacEnc_calcSfbRelevantLines()
279 INT sfb = 0, sfbLast; in FDKaacEnc_countScfBitsDiff() local
293 for (sfb = sfbLast + 1; sfb < stopSfb; sfb++) { in FDKaacEnc_countScfBitsDiff()
294 if (scfOld[sfb] != FDK_INT_MIN) { in FDKaacEnc_countScfBitsDiff()
296 FDKaacEnc_bitCountScalefactorDelta(scfNew[sfbLast] - scfNew[sfb]) - in FDKaacEnc_countScfBitsDiff()
297 FDKaacEnc_bitCountScalefactorDelta(scfOld[sfbLast] - scfOld[sfb]); in FDKaacEnc_countScfBitsDiff()
298 sfbLast = sfb; in FDKaacEnc_countScfBitsDiff()
326 INT sfb; in FDKaacEnc_calcSpecPeDiff() local
329 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_calcSpecPeDiff()
330 if (scfOld[sfb] != FDK_INT_MIN) { in FDKaacEnc_calcSpecPeDiff()
338 if (sfbConstPePart[sfb] == (FIXP_DBL)FDK_INT_MIN) in FDKaacEnc_calcSpecPeDiff()
339 sfbConstPePart[sfb] = in FDKaacEnc_calcSpecPeDiff()
340 ((psyOutChan->sfbEnergyLdData[sfb] - sfbFormFactorLdData[sfb] - in FDKaacEnc_calcSpecPeDiff()
345 scfFract = (FIXP_DBL)(scfOld[sfb] << (DFRACT_BITS - 1 - AS_PE_FAC_SHIFT)); in FDKaacEnc_calcSpecPeDiff()
347 sfbConstPePart[sfb] - fMult(FL2FXCONST_DBL(0.375f), scfFract); in FDKaacEnc_calcSpecPeDiff()
349 scfFract = (FIXP_DBL)(scfNew[sfb] << (DFRACT_BITS - 1 - AS_PE_FAC_SHIFT)); in FDKaacEnc_calcSpecPeDiff()
351 sfbConstPePart[sfb] - fMult(FL2FXCONST_DBL(0.375f), scfFract); in FDKaacEnc_calcSpecPeDiff()
364 fMult(sfbNRelevantLines[sfb], (pNew - pOld))); in FDKaacEnc_calcSpecPeDiff()
634 INT sfb, startSfb, stopSfb; in FDKaacEnc_assimilateMultipleScf() local
648 for (sfb = 0; sfb < sfbCnt; sfb++) { in FDKaacEnc_assimilateMultipleScf()
649 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
650 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
651 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
665 sfb = stopSfb; in FDKaacEnc_assimilateMultipleScf()
666 while (sfb < sfbCnt && (scf[sfb] == FDK_INT_MIN || scf[sfb] <= scfAct)) in FDKaacEnc_assimilateMultipleScf()
667 sfb++; in FDKaacEnc_assimilateMultipleScf()
668 startSfb = sfb; in FDKaacEnc_assimilateMultipleScf()
669 sfb++; in FDKaacEnc_assimilateMultipleScf()
670 while (sfb < sfbCnt && (scf[sfb] == FDK_INT_MIN || scf[sfb] > scfAct)) in FDKaacEnc_assimilateMultipleScf()
671 sfb++; in FDKaacEnc_assimilateMultipleScf()
672 stopSfb = sfb; in FDKaacEnc_assimilateMultipleScf()
678 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
679 if (scf[sfb] != FDK_INT_MIN) in FDKaacEnc_assimilateMultipleScf()
680 if (scfAct < minScf[sfb]) { in FDKaacEnc_assimilateMultipleScf()
690 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
691 if (scfTmp[sfb] != FDK_INT_MIN) scfTmp[sfb] = scfAct; in FDKaacEnc_assimilateMultipleScf()
709 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
710 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
711 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_assimilateMultipleScf()
713 sfbWidth = psyOutChan->sfbOffsets[sfb + 1] - in FDKaacEnc_assimilateMultipleScf()
714 psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
715 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
717 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist( in FDKaacEnc_assimilateMultipleScf()
721 if (sfbDistNew[sfb] > qcOutChannel->sfbThresholdLdData[sfb]) { in FDKaacEnc_assimilateMultipleScf()
726 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_assimilateMultipleScf()
732 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_assimilateMultipleScf()
733 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
734 sfbWidth = psyOutChan->sfbOffsets[sfb + 1] - in FDKaacEnc_assimilateMultipleScf()
735 psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
736 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
737 scf[sfb] = scfAct; in FDKaacEnc_assimilateMultipleScf()
738 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_assimilateMultipleScf()
763 INT sfb, startSfb, stopSfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() local
781 for (sfb = 0; sfb < sfbCnt; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
782 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
783 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
784 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
794 sfb = stopSfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
795 while (sfb < sfbCnt && (scf[sfb] == FDK_INT_MIN)) sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
796 startSfb = sfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
798 sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
799 while (sfb < sfbCnt && in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
800 ((scf[sfb] == FDK_INT_MIN) || (scf[sfb] == scf[startSfb]))) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
801 sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
802 stopSfb = sfb; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
829 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
830 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
838 sfbDistMax[sfb] = fMult(FL2FXCONST_DBL(1.0f / 3.0f), in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
839 qcOutChannel->sfbThresholdLdData[sfb]) + in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
840 fMult(FL2FXCONST_DBL(1.0f / 3.0f), sfbDist[sfb]) + in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
841 fMult(FL2FXCONST_DBL(1.0f / 3.0f), sfbDist[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
842 sfbDistMax[sfb] = in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
843 fixMax(sfbDistMax[sfb], qcOutChannel->sfbEnergyLdData[sfb] - in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
845 sfbDistMax[sfb] = in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
846 fixMin(sfbDistMax[sfb], qcOutChannel->sfbThresholdLdData[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
856 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
857 if (scfTmp[sfb] != FDK_INT_MIN) scfTmp[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
875 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
876 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
877 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist( in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
878 qcOutChannel->mdctSpectrum + sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
879 quantSpecTmp + sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
880 sfbOffs[sfb + 1] - sfbOffs[sfb], scfNew, dZoneQuantEnable); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
882 if (sfbDistNew[sfb] > sfbDistMax[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
885 if (sfbDistNew[sfb] == qcOutChannel->sfbEnergyLdData[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
899 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
900 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
901 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
902 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
904 for (k = 0; k < sfbOffs[sfb + 1] - sfbOffs[sfb]; k++) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
905 quantSpec[sfbOffs[sfb] + k] = in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
906 quantSpecTmp[sfbOffs[sfb] + k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
927 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
928 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
929 scfTmp[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
930 if (scfNew < minScf[sfb]) bminScfViolation = 1; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
950 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
951 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
952 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
954 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist( in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
955 qcOutChannel->mdctSpectrum + sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
956 quantSpecTmp + sfbOffs[sfb], sfbOffs[sfb + 1] - sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
959 if (sfbDistNew[sfb] > qcOutChannel->sfbThresholdLdData[sfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
964 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
970 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
971 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
972 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
973 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
975 for (k = 0; k < sfbOffs[sfb + 1] - sfbOffs[sfb]; k++) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
976 quantSpec[sfbOffs[sfb] + k] = quantSpecTmp[sfbOffs[sfb] + k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
994 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
995 if (scfTmp[sfb] != FDK_INT_MIN) scfTmp[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1005 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1006 if (scfTmp[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1011 qcOutChannel->mdctSpectrum + sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1012 quantSpec + sfbOffs[sfb], sfbOffs[sfb + 1] - sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1013 scfNew, &sfbEnQ, &sfbDistNew[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1015 distOldSum += CalcInvLdData(sfbDist[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1016 distNewSum += CalcInvLdData(sfbDistNew[sfb]) >> DIST_FAC_SHIFT; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1020 if ((sfbDistNew[sfb] > in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1021 (sfbDist[sfb] + FL2FXCONST_DBL(0.00259488556167f))) || in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1022 (sfbEnQ < (qcOutChannel->sfbEnergyLdData[sfb] - in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1032 for (sfb = startSfb; sfb < stopSfb; sfb++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1033 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1034 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1035 sfbDist[sfb] = sfbDistNew[sfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1051 INT i, j, sfb, sfbOffs; in FDKaacEnc_EstimateScaleFactorsChannel() local
1087 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_EstimateScaleFactorsChannel()
1088 threshLdData = qcOutChannel->sfbThresholdLdData[sfbOffs + sfb]; in FDKaacEnc_EstimateScaleFactorsChannel()
1089 energyLdData = qcOutChannel->sfbEnergyLdData[sfbOffs + sfb]; in FDKaacEnc_EstimateScaleFactorsChannel()
1091 sfbDistLdData[sfbOffs + sfb] = energyLdData; in FDKaacEnc_EstimateScaleFactorsChannel()
1099 sfbFormFactorLdData[sfbOffs + sfb] + FL2FXCONST_DBL(0.09375f); in FDKaacEnc_EstimateScaleFactorsChannel()
1125 for (j = psyOutChannel->sfbOffsets[sfbOffs + sfb]; in FDKaacEnc_EstimateScaleFactorsChannel()
1126 j < psyOutChannel->sfbOffsets[sfbOffs + sfb + 1]; j += 4) { in FDKaacEnc_EstimateScaleFactorsChannel()
1143 minSfMaxQuant[sfbOffs + sfb] = in FDKaacEnc_EstimateScaleFactorsChannel()
1146 minSfMaxQuant[sfbOffs + sfb] = in FDKaacEnc_EstimateScaleFactorsChannel()
1150 scfInt = fixMax(scfInt, minSfMaxQuant[sfbOffs + sfb]); in FDKaacEnc_EstimateScaleFactorsChannel()
1156 psyOutChannel->sfbOffsets[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1157 quantSpec + psyOutChannel->sfbOffsets[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1158 quantSpecTmp + psyOutChannel->sfbOffsets[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1159 psyOutChannel->sfbOffsets[sfbOffs + sfb + 1] - in FDKaacEnc_EstimateScaleFactorsChannel()
1160 psyOutChannel->sfbOffsets[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1161 threshLdData, scfInt, minSfMaxQuant[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1162 &sfbDistLdData[sfbOffs + sfb], &minScfCalculated[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1165 scf[sfbOffs + sfb] = scfInt; in FDKaacEnc_EstimateScaleFactorsChannel()
1206 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_EstimateScaleFactorsChannel()
1207 if (scf[sfbOffs + sfb] != FDK_INT_MIN) in FDKaacEnc_EstimateScaleFactorsChannel()
1208 minSf = fixMin(minSf, scf[sfbOffs + sfb]); in FDKaacEnc_EstimateScaleFactorsChannel()
1215 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_EstimateScaleFactorsChannel()
1216 if ((scf[sfbOffs + sfb] != FDK_INT_MIN) && in FDKaacEnc_EstimateScaleFactorsChannel()
1217 (minSf + MAX_SCF_DELTA) < scf[sfbOffs + sfb]) { in FDKaacEnc_EstimateScaleFactorsChannel()
1218 scf[sfbOffs + sfb] = minSf + MAX_SCF_DELTA; in FDKaacEnc_EstimateScaleFactorsChannel()
1220 sfbDistLdData[sfbOffs + sfb] = FDKaacEnc_calcSfbDist( in FDKaacEnc_EstimateScaleFactorsChannel()
1222 psyOutChannel->sfbOffsets[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1223 quantSpec + psyOutChannel->sfbOffsets[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1224 psyOutChannel->sfbOffsets[sfbOffs + sfb + 1] - in FDKaacEnc_EstimateScaleFactorsChannel()
1225 psyOutChannel->sfbOffsets[sfbOffs + sfb], in FDKaacEnc_EstimateScaleFactorsChannel()
1226 scf[sfbOffs + sfb], dZoneQuantEnable); in FDKaacEnc_EstimateScaleFactorsChannel()
1236 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_EstimateScaleFactorsChannel()
1237 maxSf = fixMax(maxSf, scf[sfbOffs + sfb]); in FDKaacEnc_EstimateScaleFactorsChannel()
1246 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_EstimateScaleFactorsChannel()
1247 if (scf[sfbOffs + sfb] == FDK_INT_MIN) { in FDKaacEnc_EstimateScaleFactorsChannel()
1248 scf[sfbOffs + sfb] = 0; in FDKaacEnc_EstimateScaleFactorsChannel()
1250 for (j = psyOutChannel->sfbOffsets[sfbOffs + sfb]; in FDKaacEnc_EstimateScaleFactorsChannel()
1251 j < psyOutChannel->sfbOffsets[sfbOffs + sfb + 1]; j++) { in FDKaacEnc_EstimateScaleFactorsChannel()
1255 scf[sfbOffs + sfb] = maxSf - scf[sfbOffs + sfb]; in FDKaacEnc_EstimateScaleFactorsChannel()
1264 for (sfb = 0; sfb < psyOutChannel->maxSfbPerGroup; sfb++) { in FDKaacEnc_EstimateScaleFactorsChannel()
1265 scf[sfbOffs + sfb] = 0; in FDKaacEnc_EstimateScaleFactorsChannel()
1267 for (j = psyOutChannel->sfbOffsets[sfbOffs + sfb]; in FDKaacEnc_EstimateScaleFactorsChannel()
1268 j < psyOutChannel->sfbOffsets[sfbOffs + sfb + 1]; j++) { in FDKaacEnc_EstimateScaleFactorsChannel()