Lines Matching defs:psyOutChan

98                       PSY_OUT_CHANNEL *psyOutChan)
105 for (sfbOffs=0; sfbOffs<psyOutChan->sfbCnt; sfbOffs+=psyOutChan->sfbPerGroup){
106 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) {
109 if (psyOutChan->sfbEnergy[i] > psyOutChan->sfbThreshold[i]) {
112 sfbw = psyOutChan->sfbOffsets[i+1] - psyOutChan->sfbOffsets[i];
114 mdctSpec = psyOutChan->mdctSpectrum + psyOutChan->sfbOffsets[i];
121 logSfbEnergy[i] = iLog4(psyOutChan->sfbEnergy[i]);
122 avgFormFactor = fixmul(rsqrt(psyOutChan->sfbEnergy[i],INT_BITS), iSfbWidth);
392 static void assimilateSingleScf(PSY_OUT_CHANNEL *psyOutChan,
410 Word16 *prevScfLast = psyOutChan->prevScfLast;
411 Word16 *prevScfNext = psyOutChan->prevScfNext;
412 Word16 *deltaPeLast = psyOutChan->deltaPeLast;
418 for(j=0;j<psyOutChan->sfbCnt;j++){
433 while (sfbNext < psyOutChan->sfbCnt && scf[sfbNext] == MIN_16) {
438 if ((sfbLast>=0) && (sfbAct>=0) && sfbNext < psyOutChan->sfbCnt) {
447 if (sfbLast == -1 && (sfbAct>=0) && sfbNext < psyOutChan->sfbCnt) {
456 if ((sfbLast>=0) && (sfbAct>=0) && sfbNext == psyOutChan->sfbCnt) {
470 (sfbLast>=0 || sfbNext < psyOutChan->sfbCnt) &&
503 sfbDistNew = calcSfbDist(psyOutChan->mdctSpectrum+
504 psyOutChan->sfbOffsets[sfbAct],
505 (psyOutChan->sfbOffsets[sfbAct+1] - psyOutChan->sfbOffsets[sfbAct]),
549 } while (sfbNext < psyOutChan->sfbCnt);
559 static void assimilateMultipleScf(PSY_OUT_CHANNEL *psyOutChan,
574 Word32 *sfbDistNew = psyOutChan->sfbDistNew;
575 Word16 *scfTmp = psyOutChan->prevScfLast;
578 sfbCnt = psyOutChan->sfbCnt;
660 sfbDistNew[sfb] = calcSfbDist(psyOutChan->mdctSpectrum +
661 psyOutChan->sfbOffsets[sfb],
662 (psyOutChan->sfbOffsets[sfb+1] - psyOutChan->sfbOffsets[sfb]),
666 if (sfbDistNew[sfb] > psyOutChan->sfbThreshold[sfb]) {
698 EstimateScaleFactorsChannel(PSY_OUT_CHANNEL *psyOutChan,
710 Word32 *sfbDist = psyOutChan->sfbDist;
711 Word16 *minSfMaxQuant = psyOutChan->minSfMaxQuant;
712 Word16 *minScfCalculated = psyOutChan->minScfCalculated;
715 for (i=0; i<psyOutChan->sfbCnt; i++) {
718 thresh = psyOutChan->sfbThreshold[i];
719 energy = psyOutChan->sfbEnergy[i];
721 sbfStart = psyOutChan->sfbOffsets[i];
722 sbfwith = psyOutChan->sfbOffsets[i+1] - sbfStart;
723 mdctSpec = psyOutChan->mdctSpectrum+sbfStart;
751 scfInt = improveScf(psyOutChan->mdctSpectrum+sbfStart,
764 for(i=0;i<psyOutChan->sfbCnt;i++) {
768 assimilateSingleScf(psyOutChan, scf,
772 assimilateMultipleScf(psyOutChan, scf,
780 for (i=0; i<psyOutChan->sfbCnt; i++) {
792 for(i=0; i<psyOutChan->sfbCnt; i++) {
810 for(i=0; i<psyOutChan->sfbCnt; i++) {
815 for (j=psyOutChan->sfbOffsets[i]; j<psyOutChan->sfbOffsets[i+1]; j++) {
816 psyOutChan->mdctSpectrum[j] = 0;
828 for(i=0; i<psyOutChan->sfbCnt; i++) {
830 for (j=psyOutChan->sfbOffsets[i]; j<psyOutChan->sfbOffsets[i+1]; j++) {
831 psyOutChan->mdctSpectrum[j] = 0;