Lines Matching refs:psyOutChannel

357                           PSY_OUT_CHANNEL*  psyOutChannel[(2)],  in FDKaacEnc_calcThreshExp()
364 for(sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_calcThreshExp()
365 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_calcThreshExp()
366 thrExpLdData = psyOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb]>>2 ; in FDKaacEnc_calcThreshExp()
379 PSY_OUT_CHANNEL *psyOutChannel[(2)], in FDKaacEnc_adaptMinSnr()
394 for (sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_adaptMinSnr()
395 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_adaptMinSnr()
396 accu += psyOutChannel[ch]->sfbEnergy[sfbGrp+sfb]>>6; in FDKaacEnc_adaptMinSnr()
411 for (sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_adaptMinSnr()
412 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_adaptMinSnr()
431 PSY_OUT_CHANNEL *psyOutChannel[(2)], in FDKaacEnc_initAvoidHoleFlag()
449 if (psyOutChannel[ch]->lastWindowSequence != SHORT_WINDOW) { in FDKaacEnc_initAvoidHoleFlag()
450 for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup) in FDKaacEnc_initAvoidHoleFlag()
451 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) in FDKaacEnc_initAvoidHoleFlag()
455 for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup) in FDKaacEnc_initAvoidHoleFlag()
456 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) in FDKaacEnc_initAvoidHoleFlag()
467 for(sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup){ in FDKaacEnc_initAvoidHoleFlag()
468 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_initAvoidHoleFlag()
475 if (sfb < psyOutChannel[ch]->maxSfbPerGroup-1) in FDKaacEnc_initAvoidHoleFlag()
487 if (psyOutChannel[ch]->lastWindowSequence==LONG_WINDOW) in FDKaacEnc_initAvoidHoleFlag()
512 PSY_OUT_CHANNEL* psyOutChanM = psyOutChannel[0]; in FDKaacEnc_initAvoidHoleFlag()
559 PSY_OUT_CHANNEL *psyOutChan = psyOutChannel[ch]; in FDKaacEnc_initAvoidHoleFlag()
589 PSY_OUT_CHANNEL* psyOutChannel[(2)], in FDKaacEnc_preparePe()
597 PSY_OUT_CHANNEL *psyOutChan = psyOutChannel[ch]; in FDKaacEnc_preparePe()
627 PSY_OUT_CHANNEL* psyOutChannel[(2)], in FDKaacEnc_calcWeighting()
638 if (psyOutChannel[ch]->lastWindowSequence == SHORT_WINDOW) { in FDKaacEnc_calcWeighting()
650 PSY_OUT_CHANNEL *psyOutChan = psyOutChannel[ch]; in FDKaacEnc_calcWeighting()
662 … for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_calcWeighting()
663 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_calcWeighting()
687 … for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_calcWeighting()
688 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_calcWeighting()
739 void FDKaacEnc_calcPe(PSY_OUT_CHANNEL* psyOutChannel[(2)], in FDKaacEnc_calcPe()
754 psyOutChannel[ch]->sfbCnt, in FDKaacEnc_calcPe()
755 psyOutChannel[ch]->sfbPerGroup, in FDKaacEnc_calcPe()
756 psyOutChannel[ch]->maxSfbPerGroup, in FDKaacEnc_calcPe()
757 psyOutChannel[ch]->isBook, in FDKaacEnc_calcPe()
758 psyOutChannel[ch]->isScale); in FDKaacEnc_calcPe()
767 PSY_OUT_CHANNEL* psyOutChannel[(2)], in FDKaacEnc_peCalculation()
774 FDKaacEnc_preparePe(peData, psyOutChannel, qcOutChannel, nChannels, adjThrStateElement->peOffset); in FDKaacEnc_peCalculation()
777 …FDKaacEnc_calcWeighting(peData, psyOutChannel, qcOutChannel, toolsInfo, adjThrStateElement, nChann… in FDKaacEnc_peCalculation()
787 … for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_peCalculation()
788 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_peCalculation()
797 FDKaacEnc_calcPe(psyOutChannel, qcOutChannel, peData, nChannels); in FDKaacEnc_peCalculation()
811 PSY_OUT_CHANNEL* psyOutChannel[(2)], in FDKaacEnc_FDKaacEnc_calcPeNoAH()
821 for(sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup){ in FDKaacEnc_FDKaacEnc_calcPeNoAH()
822 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_calcPeNoAH()
846 PSY_OUT_CHANNEL* psyOutChannel[(2)], in FDKaacEnc_reduceThresholdsCBR()
859 for(sfbGrp = 0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+= psyOutChannel[ch]->sfbPerGroup){ in FDKaacEnc_reduceThresholdsCBR()
860 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_reduceThresholdsCBR()
902 static FIXP_DBL FDKaacEnc_calcChaosMeasure(PSY_OUT_CHANNEL *psyOutChannel, in FDKaacEnc_calcChaosMeasure() argument
917 for (sfbGrp=0; sfbGrp<psyOutChannel->sfbCnt; sfbGrp+=psyOutChannel->sfbPerGroup) { in FDKaacEnc_calcChaosMeasure()
918 for (sfb=0; sfb<psyOutChannel->maxSfbPerGroup; sfb++){ in FDKaacEnc_calcChaosMeasure()
919 … if (psyOutChannel->sfbEnergyLdData[sfbGrp+sfb] > psyOutChannel->sfbThresholdLdData[sfbGrp+sfb]) { in FDKaacEnc_calcChaosMeasure()
921 …frameNLines += (psyOutChannel->sfbOffsets[sfbGrp+sfb+1] - psyOutChannel->sfbOffsets[sfbGrp+sfb… in FDKaacEnc_calcChaosMeasure()
922 frameEnergy += (psyOutChannel->sfbEnergy[sfbGrp+sfb]>>SCALE_NRGS); in FDKaacEnc_calcChaosMeasure()
948 PSY_OUT_CHANNEL* psyOutChannel[(2)], in FDKaacEnc_reduceThresholdsVBR()
978 psyOutChan = psyOutChannel[ch]; in FDKaacEnc_reduceThresholdsVBR()
994 if (psyOutChannel[0]->lastWindowSequence == SHORT_WINDOW) { in FDKaacEnc_reduceThresholdsVBR()
997 …chChaosMeasure[ch] = FDKaacEnc_calcChaosMeasure(psyOutChannel[ch], qcOutChannel[ch]->sfbFormFactor… in FDKaacEnc_reduceThresholdsVBR()
1025 if (psyOutChannel[0]->lastWindowSequence == SHORT_WINDOW){ /* short-blocks */ in FDKaacEnc_reduceThresholdsVBR()
1038 FDK_ASSERT(psyOutChannel[0]->groupLen[groupCnt]<=INV_INT_TAB_SIZE); in FDKaacEnc_reduceThresholdsVBR()
1039 …groupEnergy = fMult(groupEnergy,invInt[psyOutChannel[0]->groupLen[groupCnt]]); /* correction of g… in FDKaacEnc_reduceThresholdsVBR()
1058 psyOutChan = psyOutChannel[ch]; in FDKaacEnc_reduceThresholdsVBR()
1070 if (psyOutChannel[ch]->lastWindowSequence == SHORT_WINDOW) { in FDKaacEnc_reduceThresholdsVBR()
1181 psyOutChan = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_correctThresh()
1243 psyOutChan = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_correctThresh()
1333 maxSfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->maxSfbPerGroup-1; in FDKaacEnc_reduceMinSnr()
1334 sfbCnt[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbCnt; in FDKaacEnc_reduceMinSnr()
1335 sfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbPerGroup; in FDKaacEnc_reduceMinSnr()
1439 PSY_OUT_CHANNEL* psyOutChannel[(2)] = {NULL}; in FDKaacEnc_allowMoreHoles() local
1445 psyOutChannel[ch] = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_allowMoreHoles()
1447 for(sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+= psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_allowMoreHoles()
1448 for (sfb=psyOutChannel[ch]->maxSfbPerGroup; sfb<psyOutChannel[ch]->sfbPerGroup; sfb++) { in FDKaacEnc_allowMoreHoles()
1455 …if ( nChannels==2 && psyOutChannel[0]->lastWindowSequence==psyOutChannel[1]->lastWindowSequence ) { in FDKaacEnc_allowMoreHoles()
1457 for (sfb=0; sfb<psyOutChannel[0]->maxSfbPerGroup; sfb++) { in FDKaacEnc_allowMoreHoles()
1458 for(sfbGrp=0; sfbGrp < psyOutChannel[0]->sfbCnt; sfbGrp+=psyOutChannel[0]->sfbPerGroup) { in FDKaacEnc_allowMoreHoles()
1501 if (psyOutChannel[ch]->lastWindowSequence != SHORT_WINDOW) in FDKaacEnc_allowMoreHoles()
1518 for (; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_allowMoreHoles()
1527 sfbGrp += psyOutChannel[ch]->sfbPerGroup; in FDKaacEnc_allowMoreHoles()
1530 } while (sfbGrp < psyOutChannel[ch]->sfbCnt); in FDKaacEnc_allowMoreHoles()
1558 maxSfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->maxSfbPerGroup-1; in FDKaacEnc_allowMoreHoles()
1559 sfbCnt[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbCnt; in FDKaacEnc_allowMoreHoles()
1560 sfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbPerGroup; in FDKaacEnc_allowMoreHoles()
1608 PSY_OUT_CHANNEL *psyOutChannel[(2)]) in FDKaacEnc_resetAHFlags()
1613 for (sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_resetAHFlags()
1614 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_resetAHFlags()
1681 …lementId], qcElement[elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, nChannels); in FDKaacEnc_adaptThresholdsToPe()
1685 …tMinSnr(qcElement[elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, &AdjThrStateE… in FDKaacEnc_adaptThresholdsToPe()
1688 …oleFlag(qcElement[elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, pAhFlag[eleme… in FDKaacEnc_adaptThresholdsToPe()
1723 …oldsCBR(qcElement[elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, pAhFlag[eleme… in FDKaacEnc_adaptThresholdsToPe()
1726 …FDKaacEnc_calcPe(psyOutElement[elementId]->psyOutChannel, qcElement[elementId]->qcOutChannel, peDa… in FDKaacEnc_adaptThresholdsToPe()
1752 peData, pAhFlag[elementId], psyOutElement[elementId]->psyOutChannel, nChannels); in FDKaacEnc_adaptThresholdsToPe()
1814 …(pAhFlag[elementId], cm->elInfo[elementId].nChannelsInEl, psyOutElement[elementId]->psyOutChannel); in FDKaacEnc_adaptThresholdsToPe()
1828 …oldsCBR(qcElement[elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, pAhFlag[eleme… in FDKaacEnc_adaptThresholdsToPe()
1831 …FDKaacEnc_calcPe(psyOutElement[elementId]->psyOutChannel, qcElement[elementId]->qcOutChannel, peDa… in FDKaacEnc_adaptThresholdsToPe()
1872 …FDKaacEnc_calcPe(psyOutElement[elementId]->psyOutChannel, qcElement[elementId]->qcOutChannel, peDa… in FDKaacEnc_adaptThresholdsToPe()
1894 PSY_OUT_CHANNEL* psyOutChannel[(2)], in FDKaacEnc_AdaptThresholdsVBR()
1910 FDKaacEnc_calcThreshExp(pThrExp, qcOutChannel, psyOutChannel, nChannels); in FDKaacEnc_AdaptThresholdsVBR()
1914 …FDKaacEnc_adaptMinSnr(qcOutChannel, psyOutChannel, &AdjThrStateElement->minSnrAdaptParam, nChannel… in FDKaacEnc_AdaptThresholdsVBR()
1917 FDKaacEnc_initAvoidHoleFlag(qcOutChannel, psyOutChannel, pAhFlag, toolsInfo, in FDKaacEnc_AdaptThresholdsVBR()
1921 FDKaacEnc_reduceThresholdsVBR(qcOutChannel, psyOutChannel, pAhFlag, pThrExp, nChannels, in FDKaacEnc_AdaptThresholdsVBR()
2451 PSY_OUT_CHANNEL *psyOutChannel[(2)], in FDKaacEnc_DistributeBits()
2469 if ((psyOutChannel[0]->lastWindowSequence == SHORT_WINDOW) || in FDKaacEnc_DistributeBits()
2470 (psyOutChannel[1]->lastWindowSequence == SHORT_WINDOW)) { in FDKaacEnc_DistributeBits()
2475 curWindowSequence = psyOutChannel[0]->lastWindowSequence; in FDKaacEnc_DistributeBits()
2592 psyOutElement[i]->psyOutChannel, in FDKaacEnc_AdjustThresholds()
2608 …for (sfbGrp = 0;sfbGrp < psyOutElement[i]->psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutElement[i]->ps… in FDKaacEnc_AdjustThresholds()
2609 for (sfb=0; sfb<psyOutElement[i]->psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_AdjustThresholds()