Lines Matching refs:sfbOffs
178 INT sfbOffs, sfb; in FDKaacEnc_calcSfbRelevantLines() local
187 for (sfbOffs=0; sfbOffs<sfbCnt; sfbOffs+=sfbPerGroup) { 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()
468 INT sfbWidth, sfbOffs; in FDKaacEnc_assimilateSingleScf() local
537 sfbOffs = psyOutChan->sfbOffsets[sfbAct]; in FDKaacEnc_assimilateSingleScf()
570 sfbDistNew = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs, in FDKaacEnc_assimilateSingleScf()
571 quantSpecTmp+sfbOffs, in FDKaacEnc_assimilateSingleScf()
581 quantSpec[sfbOffs+k] = quantSpecTmp[sfbOffs+k]; in FDKaacEnc_assimilateSingleScf()
642 INT sfbWidth, sfbOffs, i, k; in FDKaacEnc_assimilateMultipleScf() local
722 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
724 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs, in FDKaacEnc_assimilateMultipleScf()
725 quantSpecTmp+sfbOffs, in FDKaacEnc_assimilateMultipleScf()
744 sfbOffs = psyOutChan->sfbOffsets[sfb]; in FDKaacEnc_assimilateMultipleScf()
749 quantSpec[sfbOffs+k] = quantSpecTmp[sfbOffs+k]; in FDKaacEnc_assimilateMultipleScf()
782 INT *sfbOffs = psyOutChan->sfbOffsets; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() local
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()
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()
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()
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()
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()
1064 INT i, j, sfb, sfbOffs; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel() local
1099 for (sfbOffs=0; sfbOffs<psyOutChannel->sfbCnt; sfbOffs+=psyOutChannel->sfbPerGroup) { 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()
1209 for (sfbOffs=0; sfbOffs<psyOutChannel->sfbCnt; sfbOffs+=psyOutChannel->sfbPerGroup) { 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()
1217 for (sfbOffs=0; sfbOffs<psyOutChannel->sfbCnt; sfbOffs+=psyOutChannel->sfbPerGroup) { 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()
1236 for (sfbOffs=0; sfbOffs<psyOutChannel->sfbCnt; sfbOffs+=psyOutChannel->sfbPerGroup) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1238 maxSf = fixMax(maxSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1245 for (sfbOffs=0; sfbOffs<psyOutChannel->sfbCnt; sfbOffs+=psyOutChannel->sfbPerGroup) { 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()
1263 for (sfbOffs=0; sfbOffs<psyOutChannel->sfbCnt; sfbOffs+=psyOutChannel->sfbPerGroup) { 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()