• Home
  • Raw
  • Download

Lines Matching refs:scf

214 static FIXP_DBL FDKaacEnc_countSingleScfBits(INT scf, INT scfLeft, INT scfRight)  in FDKaacEnc_countSingleScfBits()  argument
218 scfBitsFract = (FIXP_DBL) ( FDKaacEnc_bitCountScalefactorDelta(scfLeft-scf) in FDKaacEnc_countSingleScfBits()
219 + FDKaacEnc_bitCountScalefactorDelta(scf-scfRight) ); in FDKaacEnc_countSingleScfBits()
231 static FIXP_DBL FDKaacEnc_calcSingleSpecPe(INT scf, FIXP_DBL sfbConstPePart, FIXP_DBL nLines) in FDKaacEnc_calcSingleSpecPe() argument
237 scfFract = (FIXP_DBL)(scf << (DFRACT_BITS-1-AS_PE_FAC_SHIFT)); in FDKaacEnc_calcSingleSpecPe()
363 INT scf, in FDKaacEnc_improveScf() argument
371 INT scfBest = scf; in FDKaacEnc_improveScf()
379 scf, in FDKaacEnc_improveScf()
381 *minScfCalculated = scf; in FDKaacEnc_improveScf()
384 INT scfEstimated = scf; in FDKaacEnc_improveScf()
391 scf++; in FDKaacEnc_improveScf()
395 scf, in FDKaacEnc_improveScf()
399 scfBest = scf; in FDKaacEnc_improveScf()
407 scf = scfEstimated; in FDKaacEnc_improveScf()
409 while ((sfbDistLdData > (threshLdData-distFactorLdData)) && (cnt++ < 1) && (scf > minScf)) { in FDKaacEnc_improveScf()
410 scf--; in FDKaacEnc_improveScf()
414 scf, in FDKaacEnc_improveScf()
418 scfBest = scf; in FDKaacEnc_improveScf()
423 *minScfCalculated = scf; in FDKaacEnc_improveScf()
432 scf++; in FDKaacEnc_improveScf()
436 scf, in FDKaacEnc_improveScf()
441 scfBest = scf; in FDKaacEnc_improveScf()
463 INT *scf, in FDKaacEnc_assimilateSingleScf() argument
502 while ((sfbNext < psyOutChan->sfbCnt) && (scf[sfbNext] == FDK_INT_MIN)) in FDKaacEnc_assimilateSingleScf()
506 scfAct = scf[sfbAct]; in FDKaacEnc_assimilateSingleScf()
507 scfLast = scf + sfbLast; in FDKaacEnc_assimilateSingleScf()
508 scfNext = scf + sfbNext; in FDKaacEnc_assimilateSingleScf()
514 scfAct = scf[sfbAct]; in FDKaacEnc_assimilateSingleScf()
516 scfNext = scf + sfbNext; in FDKaacEnc_assimilateSingleScf()
522 scfAct = scf[sfbAct]; in FDKaacEnc_assimilateSingleScf()
523 scfLast = scf + sfbLast; in FDKaacEnc_assimilateSingleScf()
584 scf[sfbAct] = scfAct; in FDKaacEnc_assimilateSingleScf()
640 INT *scf, in FDKaacEnc_assimilateMultipleScf() argument
662 if (scf[sfb]!=FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
663 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
664 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
676 scfTmp[i] = scf[i]; in FDKaacEnc_assimilateMultipleScf()
681 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN || scf[sfb] <= scfAct)) in FDKaacEnc_assimilateMultipleScf()
685 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN || scf[sfb] > scfAct)) in FDKaacEnc_assimilateMultipleScf()
694 if (scf[sfb] != FDK_INT_MIN) in FDKaacEnc_assimilateMultipleScf()
711 deltaScfBits = FDKaacEnc_countScfBitsDiff(scf,scfTmp,sfbCnt,startSfb,stopSfb); in FDKaacEnc_assimilateMultipleScf()
713 … deltaSpecPe = FDKaacEnc_calcSpecPeDiff(psyOutChan, qcOutChannel, scf, scfTmp, sfbConstPePart, in FDKaacEnc_assimilateMultipleScf()
750 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_assimilateMultipleScf()
754 scf[sfb] = scfAct; in FDKaacEnc_assimilateMultipleScf()
781 INT *scf, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() argument
807 if (scf[sfb]!=FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
808 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
809 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
820 while (sfb<sfbCnt && (scf[sfb]==FDK_INT_MIN)) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
823 scfAct = scf[startSfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
825 while (sfb<sfbCnt && ((scf[sfb]==FDK_INT_MIN) || (scf[sfb]==scf[startSfb]))) in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
830 scfNext = scf[stopSfb]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
852 if (scfHi > scf[startSfb]) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
855 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
867 for (scfNew=scf[startSfb]+1; scfNew<=scfHi; scfNew++) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
869 scfTmp[k] = scf[k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
878 deltaScfBits = FDKaacEnc_countScfBitsDiff(scf,scfTmp,sfbCnt,startSfb,stopSfb); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
880 … deltaSpecPe = FDKaacEnc_calcSpecPeDiff(psyOutChan, qcOutChannel, scf, scfTmp, sfbConstPePart, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
917 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
918 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
933 if (scfAct==scf[startSfb] && in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
940 scfTmp[k] = scf[k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
956 deltaScfBits = FDKaacEnc_countScfBitsDiff(scf,scfTmp,sfbCnt,startSfb,stopSfb); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
958 … deltaSpecPe = FDKaacEnc_calcSpecPeDiff(psyOutChan, qcOutChannel, scf, scfTmp, sfbConstPePart, in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
992 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
993 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1010 scfTmp[k] = scf[k]; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1020 deltaScfBits = FDKaacEnc_countScfBitsDiff(scf,scfTmp,sfbCnt,startSfb,stopSfb); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1052 if (scf[sfb] != FDK_INT_MIN) { in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1053 scf[sfb] = scfNew; in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1069 INT *RESTRICT scf, in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel() argument
1105 scf[i] = FDK_INT_MIN; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1180 scf[sfbOffs+sfb] = scfInt; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1206 scf, in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1213 scf, in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1219 scf, in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1226 scf, in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1237 if (scf[sfbOffs+sfb]!=FDK_INT_MIN) in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1238 minSf = fixMin(minSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1245 if ((scf[sfbOffs+sfb] != FDK_INT_MIN) && (minSf+MAX_SCF_DELTA) < scf[sfbOffs+sfb]) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1246 scf[sfbOffs+sfb] = minSf + MAX_SCF_DELTA; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1252 scf[sfbOffs+sfb], in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1265 maxSf = fixMax(maxSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1274 if( scf[sfbOffs+sfb] == FDK_INT_MIN ) { in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1275 scf[sfbOffs+sfb] = 0; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1282 scf[sfbOffs+sfb] = maxSf - scf[sfbOffs+sfb]; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1292 scf[sfbOffs+sfb] = 0; in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
1320 qcOutChannel[ch]->scf, in FDKaacEnc_EstimateScaleFactors()