Lines Matching refs:ch
386 INT ch, sfb, sfbGrp; in FDKaacEnc_calcThreshExp() local
389 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_calcThreshExp()
390 for(sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_calcThreshExp()
391 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_calcThreshExp()
392 thrExpLdData = psyOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb]>>2 ; in FDKaacEnc_calcThreshExp()
393 thrExp[ch][sfbGrp+sfb] = CalcInvLdData(thrExpLdData); in FDKaacEnc_calcThreshExp()
409 INT ch, sfb, sfbGrp, nSfb; in FDKaacEnc_adaptMinSnr() local
415 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_adaptMinSnr()
420 for (sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_adaptMinSnr()
421 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_adaptMinSnr()
422 accu += psyOutChannel[ch]->sfbEnergy[sfbGrp+sfb]>>6; in FDKaacEnc_adaptMinSnr()
437 for (sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_adaptMinSnr()
438 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_adaptMinSnr()
439 if ( (msaParam->startRatio + qcOutChannel[ch]->sfbEnergyLdData[sfbGrp+sfb]) < avgEnLD64 ) { in FDKaacEnc_adaptMinSnr()
440 …dbRatio = fMult((avgEnLD64 - qcOutChannel[ch]->sfbEnergyLdData[sfbGrp+sfb]),FL2FXCONST_DBL(0.30102… in FDKaacEnc_adaptMinSnr()
443 …qcOutChannel[ch]->sfbMinSnrLdData[sfbGrp+sfb] = (fMult(qcOutChannel[ch]->sfbMinSnrLdData[sfbGrp+sf… in FDKaacEnc_adaptMinSnr()
444 …qcOutChannel[ch]->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(minSnrLimitLD64, qcOutChannel[ch]->sfbMinSn… in FDKaacEnc_adaptMinSnr()
464 INT ch, sfb, sfbGrp; in FDKaacEnc_initAvoidHoleFlag() local
471 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_initAvoidHoleFlag()
473 QC_OUT_CHANNEL* qcOutChan = qcOutChannel[ch]; in FDKaacEnc_initAvoidHoleFlag()
475 if (psyOutChannel[ch]->lastWindowSequence != SHORT_WINDOW) { in FDKaacEnc_initAvoidHoleFlag()
476 for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup) in FDKaacEnc_initAvoidHoleFlag()
477 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) in FDKaacEnc_initAvoidHoleFlag()
481 for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup) in FDKaacEnc_initAvoidHoleFlag()
482 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) in FDKaacEnc_initAvoidHoleFlag()
491 for(ch=0; ch<nChannels; ch++) { in FDKaacEnc_initAvoidHoleFlag()
492 QC_OUT_CHANNEL* qcOutChan = qcOutChannel[ch]; in FDKaacEnc_initAvoidHoleFlag()
493 for(sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup){ in FDKaacEnc_initAvoidHoleFlag()
494 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_initAvoidHoleFlag()
501 if (sfb < psyOutChannel[ch]->maxSfbPerGroup-1) in FDKaacEnc_initAvoidHoleFlag()
513 if (psyOutChannel[ch]->lastWindowSequence==LONG_WINDOW) in FDKaacEnc_initAvoidHoleFlag()
583 for(ch=0; ch<nChannels; ch++) { in FDKaacEnc_initAvoidHoleFlag()
584 QC_OUT_CHANNEL *qcOutChan = qcOutChannel[ch]; in FDKaacEnc_initAvoidHoleFlag()
585 PSY_OUT_CHANNEL *psyOutChan = psyOutChannel[ch]; in FDKaacEnc_initAvoidHoleFlag()
590 ahFlag[ch][sfbGrp+sfb] = NO_AH; in FDKaacEnc_initAvoidHoleFlag()
593 ahFlag[ch][sfbGrp+sfb] = AH_INACTIVE; in FDKaacEnc_initAvoidHoleFlag()
620 INT ch; in FDKaacEnc_preparePe() local
622 for(ch=0; ch<nChannels; ch++) { in FDKaacEnc_preparePe()
623 PSY_OUT_CHANNEL *psyOutChan = psyOutChannel[ch]; in FDKaacEnc_preparePe()
624 FDKaacEnc_prepareSfbPe(&peData->peChannelData[ch], in FDKaacEnc_preparePe()
627 qcOutChannel[ch]->sfbFormFactorLdData, in FDKaacEnc_preparePe()
660 int ch, noShortWindowInFrame = TRUE; in FDKaacEnc_calcWeighting() local
663 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_calcWeighting()
664 if (psyOutChannel[ch]->lastWindowSequence == SHORT_WINDOW) { in FDKaacEnc_calcWeighting()
667 FDKmemclear(qcOutChannel[ch]->sfbEnFacLd, MAX_GROUPED_SFB*sizeof(FIXP_DBL)); in FDKaacEnc_calcWeighting()
674 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_calcWeighting()
676 PSY_OUT_CHANNEL *psyOutChan = psyOutChannel[ch]; in FDKaacEnc_calcWeighting()
688 … for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_calcWeighting()
689 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_calcWeighting()
694 … nLinesSum += peData->peChannelData[ch].sfbNLines[sfbGrp+sfb]; /* relevant lines */ in FDKaacEnc_calcWeighting()
708 …adjThrStateElement->chaosMeasureEnFac[ch] = FDKmax( FL2FXCONST_DBL(0.1875f), fDivNorm(nLinesSum,ps… in FDKaacEnc_calcWeighting()
710 usePatch = (adjThrStateElement->chaosMeasureEnFac[ch] > FL2FXCONST_DBL(0.78125f)); in FDKaacEnc_calcWeighting()
711 exePatch = ((usePatch) && (adjThrStateElement->lastEnFacPatch[ch])); in FDKaacEnc_calcWeighting()
713 … for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_calcWeighting()
714 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_calcWeighting()
719 if ((ch == 1) && (toolsInfo->msMask[sfbGrp+sfb])) { in FDKaacEnc_calcWeighting()
729 if (adjThrStateElement->chaosMeasureEnFac[ch] > FL2FXCONST_DBL(0.8125f)) { in FDKaacEnc_calcWeighting()
730 …qcOutChannel[ch]->sfbEnFacLd[sfbGrp+sfb] = ( (nrgFacLd_14 + (psyOutChan->sfbEnergyLdData[sfbGrp+sf… in FDKaacEnc_calcWeighting()
732 … else if (adjThrStateElement->chaosMeasureEnFac[ch] > FL2FXCONST_DBL(0.796875f)) { in FDKaacEnc_calcWeighting()
733 …qcOutChannel[ch]->sfbEnFacLd[sfbGrp+sfb] = ( (nrgFacLd_12 + psyOutChan->sfbEnergyLdData[sfbGrp+sfb… in FDKaacEnc_calcWeighting()
736 …qcOutChannel[ch]->sfbEnFacLd[sfbGrp+sfb] = ( (nrgFacLd_34 + (psyOutChan->sfbEnergyLdData[sfbGrp+sf… in FDKaacEnc_calcWeighting()
738 …qcOutChannel[ch]->sfbEnFacLd[sfbGrp+sfb] = fixMin(qcOutChannel[ch]->sfbEnFacLd[sfbGrp+sfb],(FIXP_D… in FDKaacEnc_calcWeighting()
744 adjThrStateElement->lastEnFacPatch[ch] = usePatch; in FDKaacEnc_calcWeighting()
749 adjThrStateElement->chaosMeasureEnFac[ch] = FL2FXCONST_DBL(0.75f); in FDKaacEnc_calcWeighting()
750 … adjThrStateElement->lastEnFacPatch[ch] = TRUE; /* allow use of sfbEnFac patch in upcoming frame */ in FDKaacEnc_calcWeighting()
770 INT ch; in FDKaacEnc_calcPe() local
775 for(ch=0; ch<nChannels; ch++) { in FDKaacEnc_calcPe()
776 PE_CHANNEL_DATA *peChanData = &peData->peChannelData[ch]; in FDKaacEnc_calcPe()
777 FDKaacEnc_calcSfbPe(&peData->peChannelData[ch], in FDKaacEnc_calcPe()
778 qcOutChannel[ch]->sfbWeightedEnergyLdData, in FDKaacEnc_calcPe()
779 qcOutChannel[ch]->sfbThresholdLdData, in FDKaacEnc_calcPe()
780 psyOutChannel[ch]->sfbCnt, in FDKaacEnc_calcPe()
781 psyOutChannel[ch]->sfbPerGroup, in FDKaacEnc_calcPe()
782 psyOutChannel[ch]->maxSfbPerGroup, in FDKaacEnc_calcPe()
783 psyOutChannel[ch]->isBook, in FDKaacEnc_calcPe()
784 psyOutChannel[ch]->isScale); in FDKaacEnc_calcPe()
807 int ch; in FDKaacEnc_peCalculation() local
808 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_peCalculation()
811 QC_OUT_CHANNEL* pQcOutCh = qcOutChannel[ch]; in FDKaacEnc_peCalculation()
813 … for (sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_peCalculation()
814 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_peCalculation()
840 INT ch, sfb,sfbGrp; in FDKaacEnc_FDKaacEnc_calcPeNoAH() local
845 for(ch=0; ch<nChannels; ch++) { in FDKaacEnc_FDKaacEnc_calcPeNoAH()
846 PE_CHANNEL_DATA *peChanData = &peData->peChannelData[ch]; in FDKaacEnc_FDKaacEnc_calcPeNoAH()
847 for(sfbGrp = 0;sfbGrp < psyOutChannel[ch]->sfbCnt;sfbGrp+= psyOutChannel[ch]->sfbPerGroup){ in FDKaacEnc_FDKaacEnc_calcPeNoAH()
848 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_FDKaacEnc_calcPeNoAH()
849 if(ahFlag[ch][sfbGrp+sfb] < AH_ACTIVE) { in FDKaacEnc_FDKaacEnc_calcPeNoAH()
879 INT ch, sfb, sfbGrp; in FDKaacEnc_reduceThresholdsCBR() local
883 for(ch=0; ch<nChannels; ch++) { in FDKaacEnc_reduceThresholdsCBR()
884 QC_OUT_CHANNEL *qcOutChan = qcOutChannel[ch]; in FDKaacEnc_reduceThresholdsCBR()
885 for(sfbGrp = 0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+= psyOutChannel[ch]->sfbPerGroup){ in FDKaacEnc_reduceThresholdsCBR()
886 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_reduceThresholdsCBR()
889 sfbThrExp = thrExp[ch][sfbGrp+sfb]; in FDKaacEnc_reduceThresholdsCBR()
890 if ((sfbEnLdData > sfbThrLdData) && (ahFlag[ch][sfbGrp+sfb] != AH_ACTIVE)) { in FDKaacEnc_reduceThresholdsCBR()
906 && (ahFlag[ch][sfbGrp+sfb] != NO_AH) ) in FDKaacEnc_reduceThresholdsCBR()
912 ahFlag[ch][sfbGrp+sfb] = AH_ACTIVE; in FDKaacEnc_reduceThresholdsCBR()
981 INT ch, sfbGrp, sfb; in FDKaacEnc_reduceThresholdsVBR() local
1002 for(ch=0; ch<nChannels; ch++){ in FDKaacEnc_reduceThresholdsVBR()
1003 qcOutChan = qcOutChannel[ch]; in FDKaacEnc_reduceThresholdsVBR()
1004 psyOutChan = psyOutChannel[ch]; in FDKaacEnc_reduceThresholdsVBR()
1011 chGroupEnergy[groupCnt][ch] = FL2FXCONST_DBL(0.f); in FDKaacEnc_reduceThresholdsVBR()
1013 chGroupEnergy[groupCnt][ch] += (psyOutChan->sfbEnergy[sfbGrp+sfb]>>SCALE_GROUP_ENERGY); in FDKaacEnc_reduceThresholdsVBR()
1015 chEnergy += chGroupEnergy[groupCnt][ch]; in FDKaacEnc_reduceThresholdsVBR()
1021 …chChaosMeasure[ch] = FL2FXCONST_DBL(0.5f); /* assume a constant chaos measure of 0.5f for short bl… in FDKaacEnc_reduceThresholdsVBR()
1023 …chChaosMeasure[ch] = FDKaacEnc_calcChaosMeasure(psyOutChannel[ch], qcOutChannel[ch]->sfbFormFactor… in FDKaacEnc_reduceThresholdsVBR()
1025 chaosMeasure += fMult(chChaosMeasure[ch], chEnergy); in FDKaacEnc_reduceThresholdsVBR()
1060 for(ch=0;ch<nChannels;ch++){ in FDKaacEnc_reduceThresholdsVBR()
1061 groupEnergy += chGroupEnergy[groupCnt][ch]; /* adding up the channels groupEnergy */ in FDKaacEnc_reduceThresholdsVBR()
1082 for(ch=0; ch<nChannels; ch++) { in FDKaacEnc_reduceThresholdsVBR()
1083 qcOutChan = qcOutChannel[ch]; in FDKaacEnc_reduceThresholdsVBR()
1084 psyOutChan = psyOutChannel[ch]; in FDKaacEnc_reduceThresholdsVBR()
1091 sfbThrExp = thrExp[ch][sfbGrp+sfb]; in FDKaacEnc_reduceThresholdsVBR()
1093 …if ( (sfbThrLdData>=MIN_LDTHRESH) && (sfbEnLdData > sfbThrLdData) && (ahFlag[ch][sfbGrp+sfb] != AH… in FDKaacEnc_reduceThresholdsVBR()
1096 if (psyOutChannel[ch]->lastWindowSequence == SHORT_WINDOW) { in FDKaacEnc_reduceThresholdsVBR()
1133 && (ahFlag[ch][sfbGrp+sfb] != NO_AH) ) in FDKaacEnc_reduceThresholdsVBR()
1139 ahFlag[ch][sfbGrp+sfb] = AH_ACTIVE; in FDKaacEnc_reduceThresholdsVBR()
1176 INT ch, sfb, sfbGrp; in FDKaacEnc_correctThresh() local
1192 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_correctThresh()
1193 SHORT* ptr = qcElement[elementId]->qcOutChannel[ch]->quantSpec; in FDKaacEnc_correctThresh()
1194 sfbPeFactorsLdData[elementId][ch] = (FIXP_DBL*)ptr; in FDKaacEnc_correctThresh()
1204 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_correctThresh()
1206 qcOutChan = qcElement[elementId]->qcOutChannel[ch]; in FDKaacEnc_correctThresh()
1207 psyOutChan = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_correctThresh()
1208 peChanData = &qcElement[elementId]->peData.peChannelData[ch]; in FDKaacEnc_correctThresh()
1214 sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_correctThresh()
1220 …sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] = CalcLdInt(peChanData->sfbNActiveLines[sfbGrp+sf… in FDKaacEnc_correctThresh()
1222 if ( ((ahFlag[elementId][ch][sfbGrp+sfb] < AH_ACTIVE) || (deltaPe > 0)) && in FDKaacEnc_correctThresh()
1225 if (thrExp[elementId][ch][sfbGrp+sfb] > -redVal[elementId]) { in FDKaacEnc_correctThresh()
1230 …int minScale = fixMin(CountLeadingBits(thrExp[elementId][ch][sfbGrp+sfb]), CountLeadingBits(redVal… in FDKaacEnc_correctThresh()
1233 …FIXP_DBL sumLd = CalcLdData(scaleValue(thrExp[elementId][ch][sfbGrp+sfb], minScale) + scaleValue(r… in FDKaacEnc_correctThresh()
1237 …sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] -… in FDKaacEnc_correctThresh()
1240 … if ( sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] > (FL2FXCONST_DBL(-1.f) + sumLd) ) { in FDKaacEnc_correctThresh()
1241 …sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] -… in FDKaacEnc_correctThresh()
1244 … sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb]; in FDKaacEnc_correctThresh()
1248 … normFactorInt += (INT)CalcInvLdData(sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb]); in FDKaacEnc_correctThresh()
1250 else sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(1.0f); in FDKaacEnc_correctThresh()
1252 else sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_correctThresh()
1267 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_correctThresh()
1268 qcOutChan = qcElement[elementId]->qcOutChannel[ch]; in FDKaacEnc_correctThresh()
1269 psyOutChan = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_correctThresh()
1270 peChanData = &qcElement[elementId]->peData.peChannelData[ch]; in FDKaacEnc_correctThresh()
1278 if ( (sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb]==FL2FXCONST_DBL(-1.0f)) || in FDKaacEnc_correctThresh()
1285 …InvLdData(sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] + normFactorLdData - sfbNActiveLinesLdData… in FDKaacEnc_correctThresh()
1310 (ahFlag[elementId][ch][sfbGrp+sfb] == AH_INACTIVE) ) in FDKaacEnc_correctThresh()
1319 ahFlag[elementId][ch][sfbGrp+sfb] = AH_ACTIVE; in FDKaacEnc_correctThresh()
1353 INT ch; in FDKaacEnc_reduceMinSnr() local
1358 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_reduceMinSnr()
1359 maxSfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->maxSfbPerGroup-1; in FDKaacEnc_reduceMinSnr()
1360 sfbCnt[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbCnt; in FDKaacEnc_reduceMinSnr()
1361 sfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbPerGroup; in FDKaacEnc_reduceMinSnr()
1368 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_reduceMinSnr()
1371 QC_OUT_CHANNEL *qcOutChan = qcElement[elementId]->qcOutChannel[ch]; in FDKaacEnc_reduceMinSnr()
1374 if (maxSfbPerGroup[ch]>=0) { /* sfb in next channel */ in FDKaacEnc_reduceMinSnr()
1376 sfb = maxSfbPerGroup[ch]--; in FDKaacEnc_reduceMinSnr()
1379 for (sfbGrp = 0; sfbGrp < sfbCnt[ch]; sfbGrp += sfbPerGroup[ch]) { in FDKaacEnc_reduceMinSnr()
1381 if (ahFlag[elementId][ch][sfbGrp+sfb] != NO_AH && in FDKaacEnc_reduceMinSnr()
1394 deltaPe -= (peData->peChannelData[ch].sfbPe[sfbGrp+sfb]>>PE_CONSTPART_SHIFT); in FDKaacEnc_reduceMinSnr()
1397 …peData->peChannelData[ch].sfbPe[sfbGrp+sfb] = (3*peData->peChannelData[ch].sfbNLines[sfbGrp+sfb]) … in FDKaacEnc_reduceMinSnr()
1398 deltaPe += (peData->peChannelData[ch].sfbPe[sfbGrp+sfb]>>PE_CONSTPART_SHIFT); in FDKaacEnc_reduceMinSnr()
1405 peData->peChannelData[ch].pe += deltaPe; in FDKaacEnc_reduceMinSnr()
1415 if ( (ch==(cm->elInfo[elementId].nChannelsInEl-1)) && noReduction ) { in FDKaacEnc_reduceMinSnr()
1459 INT ch, sfb, sfbGrp; in FDKaacEnc_allowMoreHoles() local
1467 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_allowMoreHoles()
1470 qcOutChannel[ch] = qcElement[elementId]->qcOutChannel[ch]; in FDKaacEnc_allowMoreHoles()
1471 psyOutChannel[ch] = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_allowMoreHoles()
1473 for(sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+= psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_allowMoreHoles()
1474 for (sfb=psyOutChannel[ch]->maxSfbPerGroup; sfb<psyOutChannel[ch]->sfbPerGroup; sfb++) { in FDKaacEnc_allowMoreHoles()
1475 peData->peChannelData[ch].sfbPe[sfbGrp+sfb] = 0; in FDKaacEnc_allowMoreHoles()
1526 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_allowMoreHoles()
1527 if (psyOutChannel[ch]->lastWindowSequence != SHORT_WINDOW) in FDKaacEnc_allowMoreHoles()
1528 startSfb[ch] = AdjThrStateElement[elementId]->ahParam.startSfbL; in FDKaacEnc_allowMoreHoles()
1530 startSfb[ch] = AdjThrStateElement[elementId]->ahParam.startSfbS; in FDKaacEnc_allowMoreHoles()
1538 for (ch=0; ch<nChannels; ch++) { in FDKaacEnc_allowMoreHoles()
1541 sfb=startSfb[ch]; in FDKaacEnc_allowMoreHoles()
1544 for (; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_allowMoreHoles()
1545 if ((ahFlag[elementId][ch][sfbGrp+sfb]!=NO_AH) && in FDKaacEnc_allowMoreHoles()
1546 …(qcOutChannel[ch]->sfbWeightedEnergyLdData[sfbGrp+sfb] > qcOutChannel[ch]->sfbThresholdLdData[sfbG… in FDKaacEnc_allowMoreHoles()
1547 minEnLD64 = fixMin(minEnLD64,qcOutChannel[ch]->sfbEnergyLdData[sfbGrp+sfb]); in FDKaacEnc_allowMoreHoles()
1548 avgEn += qcOutChannel[ch]->sfbEnergy[sfbGrp+sfb] >> 6; in FDKaacEnc_allowMoreHoles()
1553 sfbGrp += psyOutChannel[ch]->sfbPerGroup; in FDKaacEnc_allowMoreHoles()
1556 } while (sfbGrp < psyOutChannel[ch]->sfbCnt); in FDKaacEnc_allowMoreHoles()
1583 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_allowMoreHoles()
1584 maxSfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->maxSfbPerGroup-1; in FDKaacEnc_allowMoreHoles()
1585 sfbCnt[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbCnt; in FDKaacEnc_allowMoreHoles()
1586 sfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbPerGroup; in FDKaacEnc_allowMoreHoles()
1593 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_allowMoreHoles()
1598 if (maxSfbPerGroup[ch]>=startSfb[ch]) { /* sfb in next channel */ in FDKaacEnc_allowMoreHoles()
1599 sfb = maxSfbPerGroup[ch]--; in FDKaacEnc_allowMoreHoles()
1602 for (sfbGrp = 0; sfbGrp < sfbCnt[ch]; sfbGrp += sfbPerGroup[ch]) { in FDKaacEnc_allowMoreHoles()
1604 …if (ahFlag[elementId][ch][sfbGrp+sfb] != NO_AH && qcOutChannel[ch]->sfbEnergyLdData[sfbGrp+sfb] < … in FDKaacEnc_allowMoreHoles()
1606 ahFlag[elementId][ch][sfbGrp+sfb] = NO_AH; in FDKaacEnc_allowMoreHoles()
1607 …qcOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb] = FL2FXCONST_DBL(0.015625f) + qcOutChannel[ch]->s… in FDKaacEnc_allowMoreHoles()
1608 actPe -= peData->peChannelData[ch].sfbPe[sfbGrp+sfb]>>PE_CONSTPART_SHIFT; in FDKaacEnc_allowMoreHoles()
1636 int ch, sfb, sfbGrp; in FDKaacEnc_resetAHFlags() local
1638 for(ch=0; ch<nChannels; ch++) { in FDKaacEnc_resetAHFlags()
1639 for (sfbGrp=0; sfbGrp < psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutChannel[ch]->sfbPerGroup) { in FDKaacEnc_resetAHFlags()
1640 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_resetAHFlags()
1641 if ( ahFlag[ch][sfbGrp+sfb] == AH_ACTIVE) { in FDKaacEnc_resetAHFlags()
1642 ahFlag[ch][sfbGrp+sfb] = AH_INACTIVE; in FDKaacEnc_resetAHFlags()
2638 int ch,sfb,sfbGrp; in FDKaacEnc_AdjustThresholds() local
2641 for (ch=0; ch<cm->elInfo[i].nChannelsInEl; ch++) { in FDKaacEnc_AdjustThresholds()
2642 QC_OUT_CHANNEL* pQcOutCh = qcElement[i]->qcOutChannel[ch]; in FDKaacEnc_AdjustThresholds()
2643 …Grp = 0;sfbGrp < psyOutElement[i]->psyOutChannel[ch]->sfbCnt; sfbGrp+=psyOutElement[i]->psyOutChan… in FDKaacEnc_AdjustThresholds()
2644 for (sfb=0; sfb<psyOutElement[i]->psyOutChannel[ch]->maxSfbPerGroup; sfb++) { in FDKaacEnc_AdjustThresholds()