Lines Matching refs:ch
300 INT n,i,ch;
305 for (ch=0; ch<cm->elInfo[i].nChannelsInEl; ch++) {
306 phQC[n]->qcElement[i]->qcOutChannel[ch] = phQC[n]->pQcOutChannels[chInc];
876 int estimatedPnsBits = 0, ch;
878 for (ch=0; ch<cm->nChannels; ch++) {
879 qcOut[0]->pQcOutChannels[ch]->sectionData.noiseNrgBits = noisePreCount(psyOut[0]->pPsyOutChannels[ch]->noiseNrg, psyOut[0]->pPsyOutChannels[ch]->maxSfbPerGroup);
880 estimatedPnsBits += qcOut[0]->pQcOutChannels[ch]->sectionData.noiseNrgBits;
913 INT ch, nChannels = elInfo.nChannelsInEl;
929 for (ch = 0; ch < nChannels; ch++)
931 chConstraintsFulfilled[c][i][ch] = 1;
932 calculateQuant[c][i][ch] = 1;
963 INT ch, nChannels = elInfo.nChannelsInEl;
994 for (ch = 0; ch < nChannels; ch++)
997 chConstraintsFulfilled[c][i][ch] = 1;
1001 if (calculateQuant[c][i][ch])
1003 QC_OUT_CHANNEL* qcOutCh = qcElement[c][i]->qcOutChannel[ch];
1004 PSY_OUT_CHANNEL* psyOutCh = psyOut[c]->psyOutElement[i]->psyOutChannel[ch];
1006 calculateQuant[c][i][ch] = 0; /* calculate quantization only if necessary */
1026 chConstraintsFulfilled[c][i][ch] = 0;
1034 } /* if calculateQuant[c][i][ch] */
1051 for (ch = 0; ch < nChannels; ch++)
1053 QC_OUT_CHANNEL* qcOutCh = qcElement[c][i]->qcOutChannel[ch];
1054 PSY_OUT_CHANNEL *psyOutCh = psyOut[c]->psyOutElement[i]->psyOutChannel[ch];
1197 int ch;
1221 for (ch = 0; ch < nChannels; ch++)
1223 qcOutElement->qcOutChannel[ch]->globalGain += 1;
1226 for (ch = 0; ch < nChannels; ch++)
1228 calculateQuant[ch] = 1;
1235 for (ch = 0; ch < nChannels; ch++)
1237 if(!chConstraintsFulfilled[ch])
1239 qcOutElement->qcOutChannel[ch]->globalGain += gainAdjustment ;
1240 calculateQuant[ch] = 1; /* global gain has changed, recalculate quantization in next iteration! */
1481 INT ch ;
1493 for (ch = 0; ch < nChannels; ch++)
1495 sfbOffset = psyChannel[ch]->sfbOffsets ;
1497 for (sect = 0; sect < qcChannel[ch]->sectionData.noOfSections; sect++)
1500 INT codeBook = qcChannel[ch]->sectionData.huffsection[sect].codeBook ;
1502 for (sfb = qcChannel[ch]->sectionData.huffsection[sect].sfbStart;
1503 sfb < qcChannel[ch]->sectionData.huffsection[sect].sfbStart +
1504 qcChannel[ch]->sectionData.huffsection[sect].sfbCnt;
1507 bitsPerScf[ch][sfb] = 0;
1509 (sfb < (qcChannel[ch]->sectionData.noOfGroups*qcChannel[ch]->sectionData.maxSfbPerGroup))*/ )
1513 bitsPerScf[ch][sfb] = FDKaacEnc_countValues(&(qcChannel[ch]->quantSpec[sfbStartLine]), noOfLines, codeBook) ;
1515 sectionToScf[ch][sfb] = sect ;
1528 for (ch = 0; ch < nChannels; ch++)
1530 int sect = sectionToScf[ch][sfbGrp+sfb];
1531 qcChannel[ch]->sectionData.huffsection[sect].sfbCnt-- ;
1532 savedBits += bitsPerScf[ch][sfbGrp+sfb] ;
1534 if (qcChannel[ch]->sectionData.huffsection[sect].sfbCnt == 0) {
1535 savedBits += (psyChannel[ch]->lastWindowSequence!=SHORT_WINDOW) ? FDKaacEnc_sideInfoTabLong[0]
1553 for (ch = 0; ch < nChannels; ch++)
1555 qcChannel[ch]->sectionData.maxSfbPerGroup = sfb ;
1556 psyChannel[ch]->maxSfbPerGroup = sfb ;
1559 FDKmemclear(&psyChannel[ch]->tnsInfo, sizeof(TNS_INFO));