Lines Matching refs:sfbAct
466 INT sfbLast, sfbAct, sfbNext;
487 sfbAct = -1;
498 if ((sfbLast>=0) && (sfbAct>=0) && (sfbNext<psyOutChan->sfbCnt)) {
500 scfAct = scf[sfbAct];
506 else if ((sfbLast==-1) && (sfbAct>=0) && (sfbNext<psyOutChan->sfbCnt)) {
508 scfAct = scf[sfbAct];
514 else if ((sfbLast>=0) && (sfbAct>=0) && (sfbNext==psyOutChan->sfbCnt)) {
516 scfAct = scf[sfbAct];
522 if (sfbAct>=0)
523 scfMin = fixMax(scfMin, minScf[sfbAct]);
525 if ((sfbAct >= 0) &&
530 (*scfLast != prevScfLast[sfbAct] ||
531 *scfNext != prevScfNext[sfbAct] ||
532 deltaPe < deltaPeLast[sfbAct])) {
536 sfbWidth = psyOutChan->sfbOffsets[sfbAct+1] - psyOutChan->sfbOffsets[sfbAct];
537 sfbOffs = psyOutChan->sfbOffsets[sfbAct];
540 enLdData = qcOutChannel->sfbEnergyLdData[sfbAct];
542 /* sfbConstPePart[sfbAct] = (float)log(6.75f*en/sfbFormFactor[sfbAct]) * LOG2_1; */
545 if (sfbConstPePart[sfbAct] == (FIXP_DBL)FDK_INT_MIN) {
546 sfbConstPePart[sfbAct] = ((enLdData - sfbFormFactorLdData[sfbAct] - FL2FXCONST_DBL(0.09375f)) >> 1) + FL2FXCONST_DBL(0.02152255861f);
549 sfbPeOld = FDKaacEnc_calcSingleSpecPe(scfAct,sfbConstPePart[sfbAct],sfbNRelevantLines[sfbAct])
559 if (scfAct < minScfCalculated[sfbAct] && scfAct>=scfMax-MAX_SCF_DELTA){
561 sfbPeNew = FDKaacEnc_calcSingleSpecPe(scfAct,sfbConstPePart[sfbAct],sfbNRelevantLines[sfbAct])
575 if (sfbDistNew < sfbDist[sfbAct]) {
577 scf[sfbAct] = scfAct;
578 sfbDist[sfbAct] = sfbDistNew;
588 minScfCalculated[sfbAct] = scfAct;
600 prevScfLast[sfbAct] = *scfLast;
601 prevScfNext[sfbAct] = *scfNext;
602 deltaPeLast[sfbAct] = deltaPe;
608 sfbAct = -1;
618 sfbLast = sfbAct;
619 sfbAct = sfbNext;