• Home
  • Raw
  • Download

Lines Matching refs:scf

233 static FIXP_DBL FDKaacEnc_countSingleScfBits(INT scf, INT scfLeft,  in FDKaacEnc_countSingleScfBits()  argument
237 scfBitsFract = (FIXP_DBL)(FDKaacEnc_bitCountScalefactorDelta(scfLeft - scf) + in FDKaacEnc_countSingleScfBits()
238 FDKaacEnc_bitCountScalefactorDelta(scf - scfRight)); in FDKaacEnc_countSingleScfBits()
250 static FIXP_DBL FDKaacEnc_calcSingleSpecPe(INT scf, FIXP_DBL sfbConstPePart, in FDKaacEnc_calcSingleSpecPe() argument
256 scfFract = (FIXP_DBL)(scf << (DFRACT_BITS - 1 - AS_PE_FAC_SHIFT)); in FDKaacEnc_calcSingleSpecPe()
380 FIXP_DBL threshLdData, INT scf, INT minScf, in FDKaacEnc_improveScf() argument
384 INT scfBest = scf; in FDKaacEnc_improveScf()
390 FDKaacEnc_calcSfbDist(spec, quantSpec, sfbWidth, scf, dZoneQuantEnable); in FDKaacEnc_improveScf()
391 *minScfCalculated = scf; in FDKaacEnc_improveScf()
394 INT scfEstimated = scf; in FDKaacEnc_improveScf()
402 scf++; in FDKaacEnc_improveScf()
403 sfbDistLdData = FDKaacEnc_calcSfbDist(spec, quantSpecTmp, sfbWidth, scf, in FDKaacEnc_improveScf()
407 scfBest = scf; in FDKaacEnc_improveScf()
414 scf = scfEstimated; in FDKaacEnc_improveScf()
417 (scf > minScf)) { in FDKaacEnc_improveScf()
418 scf--; in FDKaacEnc_improveScf()
419 sfbDistLdData = FDKaacEnc_calcSfbDist(spec, quantSpecTmp, sfbWidth, scf, in FDKaacEnc_improveScf()
423 scfBest = scf; in FDKaacEnc_improveScf()
427 *minScfCalculated = scf; in FDKaacEnc_improveScf()
436 scf++; in FDKaacEnc_improveScf()
437 sfbDistLdData = FDKaacEnc_calcSfbDist(spec, quantSpecTmp, sfbWidth, scf, in FDKaacEnc_improveScf()
442 scfBest = scf; in FDKaacEnc_improveScf()
460 SHORT *quantSpec, SHORT *quantSpecTmp, INT dZoneQuantEnable, INT *scf, in FDKaacEnc_assimilateSingleScf() argument
494 while ((sfbNext < psyOutChan->sfbCnt) && (scf[sfbNext] == FDK_INT_MIN)) in FDKaacEnc_assimilateSingleScf()
498 scfAct = scf[sfbAct]; in FDKaacEnc_assimilateSingleScf()
499 scfLast = scf + sfbLast; in FDKaacEnc_assimilateSingleScf()
500 scfNext = scf + sfbNext; in FDKaacEnc_assimilateSingleScf()
506 scfAct = scf[sfbAct]; in FDKaacEnc_assimilateSingleScf()
508 scfNext = scf + sfbNext; in FDKaacEnc_assimilateSingleScf()
514 scfAct = scf[sfbAct]; in FDKaacEnc_assimilateSingleScf()
515 scfLast = scf + sfbLast; in FDKaacEnc_assimilateSingleScf()
581 scf[sfbAct] = scfAct; in FDKaacEnc_assimilateSingleScf()
631 SHORT *quantSpecTmp, INT dZoneQuantEnable, INT *scf, const INT *minScf, in FDKaacEnc_assimilateMultipleScf() argument
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()
661 for (i = 0; i < MAX_GROUPED_SFB; i++) scfTmp[i] = scf[i]; in FDKaacEnc_assimilateMultipleScf()
666 while (sfb < sfbCnt && (scf[sfb] == FDK_INT_MIN || scf[sfb] <= scfAct)) in FDKaacEnc_assimilateMultipleScf()
670 while (sfb < sfbCnt && (scf[sfb] == FDK_INT_MIN || scf[sfb] > scfAct)) in FDKaacEnc_assimilateMultipleScf()
679 if (scf[sfb] != FDK_INT_MIN) in FDKaacEnc_assimilateMultipleScf()
695 deltaScfBits = FDKaacEnc_countScfBitsDiff(scf, scfTmp, sfbCnt, in FDKaacEnc_assimilateMultipleScf()
699 psyOutChan, qcOutChannel, scf, scfTmp, sfbConstPePart, in FDKaacEnc_assimilateMultipleScf()
733 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
737 scf[sfb] = scfAct; in FDKaacEnc_assimilateMultipleScf()
760 SHORT *quantSpecTmp, INT dZoneQuantEnable, INT *scf, const INT *minScf, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() argument
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()
795 while (sfb < sfbCnt && (scf[sfb] == FDK_INT_MIN)) sfb++; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
797 scfAct = scf[startSfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
800 ((scf[sfb] == FDK_INT_MIN) || (scf[sfb] == scf[startSfb]))) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
805 scfNext = scf[stopSfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
827 if (scfHi > scf[startSfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
830 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
852 for (scfNew = scf[startSfb] + 1; scfNew <= scfHi; scfNew++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
853 for (k = 0; k < MAX_GROUPED_SFB; k++) scfTmp[k] = scf[k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
861 deltaScfBits = FDKaacEnc_countScfBitsDiff(scf, scfTmp, sfbCnt, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
865 psyOutChan, qcOutChannel, scf, scfTmp, sfbConstPePart, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
900 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
901 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
917 if (scfAct == scf[startSfb] && scfLo < scfAct && in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
921 for (k = 0; k < MAX_GROUPED_SFB; k++) scfTmp[k] = scf[k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
936 deltaScfBits = FDKaacEnc_countScfBitsDiff(scf, scfTmp, sfbCnt, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
940 psyOutChan, qcOutChannel, scf, scfTmp, sfbConstPePart, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
971 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
972 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
989 for (k = 0; k < sfbCnt; k++) scfTmp[k] = scf[k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
998 deltaScfBits = FDKaacEnc_countScfBitsDiff(scf, scfTmp, sfbCnt, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1033 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1034 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1048 INT *RESTRICT scf, INT *RESTRICT globalGain, in FDKaacEnc_EstimateScaleFactorsChannel() argument
1078 scf[i] = FDK_INT_MIN; in FDKaacEnc_EstimateScaleFactorsChannel()
1165 scf[sfbOffs + sfb] = scfInt; in FDKaacEnc_EstimateScaleFactorsChannel()
1186 scf, minSfMaxQuant, sfbDistLdData, sfbConstPePart, sfbFormFactorLdData, in FDKaacEnc_EstimateScaleFactorsChannel()
1192 dZoneQuantEnable, scf, minSfMaxQuant, sfbDistLdData, sfbConstPePart, in FDKaacEnc_EstimateScaleFactorsChannel()
1197 dZoneQuantEnable, scf, minSfMaxQuant, sfbDistLdData, sfbConstPePart, in FDKaacEnc_EstimateScaleFactorsChannel()
1207 if (scf[sfbOffs + sfb] != FDK_INT_MIN) in FDKaacEnc_EstimateScaleFactorsChannel()
1208 minSf = fixMin(minSf, scf[sfbOffs + 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()
1226 scf[sfbOffs + sfb], dZoneQuantEnable); in FDKaacEnc_EstimateScaleFactorsChannel()
1237 maxSf = fixMax(maxSf, scf[sfbOffs + sfb]); in FDKaacEnc_EstimateScaleFactorsChannel()
1247 if (scf[sfbOffs + sfb] == FDK_INT_MIN) { in FDKaacEnc_EstimateScaleFactorsChannel()
1248 scf[sfbOffs + sfb] = 0; in FDKaacEnc_EstimateScaleFactorsChannel()
1255 scf[sfbOffs + sfb] = maxSf - scf[sfbOffs + sfb]; in FDKaacEnc_EstimateScaleFactorsChannel()
1265 scf[sfbOffs + sfb] = 0; in FDKaacEnc_EstimateScaleFactorsChannel()
1288 qcOutChannel[ch], psyOutChannel[ch], qcOutChannel[ch]->scf, in FDKaacEnc_EstimateScaleFactors()