Lines Matching refs:ch
74 Word16 ch, sfb, sfbGrp;
76 for (ch=0; ch<nChannels; ch++) {
77 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch];
79 pthrExp = &(thrExp[ch][sfbGrp]);
99 Word16 ch, sfb, sfbOffs;
105 for (ch=0; ch<nChannels; ch++) {
106 PSY_OUT_CHANNEL* psyOutChan = &psyOutChannel[ch];
134 dbRatio = log_avgEn - logSfbEnergy[ch][sfbOffs+sfb];
170 Word16 ch, sfb, sfbGrp, shift;
174 for (ch=0; ch<nChannels; ch++) {
175 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch];
199 for(ch=0; ch<nChannels; ch++) {
200 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch];
299 for(ch=0; ch<nChannels; ch++) {
300 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch];
302 Word16 *pahFlag = ahFlag[ch] + sfbGrp;
335 Word16 ch, sfb, sfbGrp;
341 for(ch=0; ch<nChannels; ch++) {
342 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch];
343 PE_CHANNEL_DATA *peChanData = &peData->peChannelData[ch];
347 if (ahFlag[ch][sfbGrp+sfb] < AH_ACTIVE) {
375 Word16 ch, sfb, sfbGrp;
377 for(ch=0; ch<nChannels; ch++) {
378 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch];
386 Word32 tmp = thrExp[ch][sfbGrp+sfb] + redVal;
393 (ahFlag[ch][sfbGrp+sfb] != NO_AH)){
395 ahFlag[ch][sfbGrp+sfb] = AH_ACTIVE;
422 Word16 ch, sfb, sfbGrp,shift;
434 for(ch=0; ch<nChannels; ch++) {
435 psyOutChan = &psyOutChannel[ch];
436 peChanData = &peData->peChannelData[ch];
438 psfbPeFactors = peData->sfbPeFactors[ch] + sfbGrp;
440 pahFlag = ahFlag[ch] + sfbGrp;
442 Word32 redThrExp = thrExp[ch][sfbGrp+sfb] + redVal;
460 for(ch=0; ch<nChannels; ch++) {
461 psyOutChan = &psyOutChannel[ch];
462 peChanData = &peData->peChannelData[ch];
464 psfbPeFactors = peData->sfbPeFactors[ch] + sfbGrp;
466 pahFlag = ahFlag[ch] + sfbGrp;
534 Word16 ch, sfb, sfbSubWin;
548 for (ch=0; ch<nChannels; ch++) {
549 if (ahFlag[ch][sfb] != NO_AH &&
586 Word16 ch, sfb;
640 for (ch=0; ch<nChannels; ch++) {
642 if (psyOutChannel[ch].windowSequence != SHORT_WINDOW)
643 startSfb[ch] = ahParam->startSfbL;
645 startSfb[ch] = ahParam->startSfbS;
651 for (ch=0; ch<nChannels; ch++) {
652 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch];
653 for (sfb=startSfb[ch]; sfb<psyOutChan->sfbCnt; sfb++) {
655 if ((ahFlag[ch][sfb] != NO_AH) &&
693 for (ch=0; ch<nChannels; ch++) {
694 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch];
696 if (sfb>=startSfb[ch] && sfb<psyOutChan->sfbCnt) {
699 if (ahFlag[ch][sfb] != NO_AH && psyOutChan->sfbEnergy[sfb] < en[enIdx]){
701 ahFlag[ch][sfb] = NO_AH;
703 actPe = actPe - peData->peChannelData[ch].sfbPe[sfb];
1144 Word16 ch;
1198 for (ch=0; ch<nChannels; ch++) {
1200 chBitDistribution[ch] = 200;
1204 chBitDistribution[ch] = chBitDistribution[ch] +
1205 (temp * peData.peChannelData[ch].pe) / peOffsDiff;