Lines Matching refs:sfbOffs

189   INT sfbOffs, sfb;  in FDKaacEnc_calcSfbRelevantLines()  local
201 for (sfbOffs = 0; sfbOffs < sfbCnt; sfbOffs += sfbPerGroup) { 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()
466 INT sfbWidth, sfbOffs; in FDKaacEnc_assimilateSingleScf() local
534 sfbOffs = psyOutChan->sfbOffsets[sfbAct]; in FDKaacEnc_assimilateSingleScf()
576 qcOutChannel->mdctSpectrum + sfbOffs, quantSpecTmp + sfbOffs, in FDKaacEnc_assimilateSingleScf()
585 quantSpec[sfbOffs + k] = quantSpecTmp[sfbOffs + k]; in FDKaacEnc_assimilateSingleScf()
637 INT sfbWidth, sfbOffs, i, k; in FDKaacEnc_assimilateMultipleScf() local
715 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
718 qcOutChannel->mdctSpectrum + sfbOffs, in FDKaacEnc_assimilateMultipleScf()
719 quantSpecTmp + sfbOffs, sfbWidth, scfAct, dZoneQuantEnable); in FDKaacEnc_assimilateMultipleScf()
736 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
741 quantSpec[sfbOffs + k] = quantSpecTmp[sfbOffs + k]; in FDKaacEnc_assimilateMultipleScf()
767 INT *sfbOffs = psyOutChan->sfbOffsets; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() local
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()
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()
955 qcOutChannel->mdctSpectrum + sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
956 quantSpecTmp + sfbOffs[sfb], sfbOffs[sfb + 1] - sfbOffs[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()
1011 qcOutChannel->mdctSpectrum + sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1012 quantSpec + sfbOffs[sfb], sfbOffs[sfb + 1] - sfbOffs[sfb], in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1051 INT i, j, sfb, sfbOffs; in FDKaacEnc_EstimateScaleFactorsChannel() local
1085 for (sfbOffs = 0; sfbOffs < psyOutChannel->sfbCnt; in FDKaacEnc_EstimateScaleFactorsChannel()
1086 sfbOffs += psyOutChannel->sfbPerGroup) { 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()
1204 for (sfbOffs = 0; sfbOffs < psyOutChannel->sfbCnt; in FDKaacEnc_EstimateScaleFactorsChannel()
1205 sfbOffs += psyOutChannel->sfbPerGroup) { in FDKaacEnc_EstimateScaleFactorsChannel()
1207 if (scf[sfbOffs + sfb] != FDK_INT_MIN) in FDKaacEnc_EstimateScaleFactorsChannel()
1208 minSf = fixMin(minSf, scf[sfbOffs + sfb]); in FDKaacEnc_EstimateScaleFactorsChannel()
1213 for (sfbOffs = 0; sfbOffs < psyOutChannel->sfbCnt; in FDKaacEnc_EstimateScaleFactorsChannel()
1214 sfbOffs += psyOutChannel->sfbPerGroup) { 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()
1234 for (sfbOffs = 0; sfbOffs < psyOutChannel->sfbCnt; in FDKaacEnc_EstimateScaleFactorsChannel()
1235 sfbOffs += psyOutChannel->sfbPerGroup) { in FDKaacEnc_EstimateScaleFactorsChannel()
1237 maxSf = fixMax(maxSf, scf[sfbOffs + sfb]); in FDKaacEnc_EstimateScaleFactorsChannel()
1244 for (sfbOffs = 0; sfbOffs < psyOutChannel->sfbCnt; in FDKaacEnc_EstimateScaleFactorsChannel()
1245 sfbOffs += psyOutChannel->sfbPerGroup) { 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()
1262 for (sfbOffs = 0; sfbOffs < psyOutChannel->sfbCnt; in FDKaacEnc_EstimateScaleFactorsChannel()
1263 sfbOffs += psyOutChannel->sfbPerGroup) { 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()