Lines Matching refs:ch
267 Word32 ch;
317 for (ch = 0; ch < nChannels; ch++) {
321 maxChDynBits[ch] = extract_l(chBitDistribution[ch] * maxDynBits / 1000);
325 for (ch = 0; ch < nChannels; ch++) {
333 QuantizeSpectrum(psyOutChannel[ch].sfbCnt,
334 psyOutChannel[ch].maxSfbPerGroup,
335 psyOutChannel[ch].sfbPerGroup,
336 psyOutChannel[ch].sfbOffsets,
337 psyOutChannel[ch].mdctSpectrum,
338 qcOutChannel[ch].globalGain,
339 qcOutChannel[ch].scf,
340 qcOutChannel[ch].quantSpec);
342 if (calcMaxValueInSfb(psyOutChannel[ch].sfbCnt,
343 psyOutChannel[ch].maxSfbPerGroup,
344 psyOutChannel[ch].sfbPerGroup,
345 psyOutChannel[ch].sfbOffsets,
346 qcOutChannel[ch].quantSpec,
347 qcOutChannel[ch].maxValueInSfb) > MAX_QUANT) {
351 chDynBits = dynBitCount(qcOutChannel[ch].quantSpec,
352 qcOutChannel[ch].maxValueInSfb,
353 qcOutChannel[ch].scf,
354 psyOutChannel[ch].windowSequence,
355 psyOutChannel[ch].sfbCnt,
356 psyOutChannel[ch].maxSfbPerGroup,
357 psyOutChannel[ch].sfbPerGroup,
358 psyOutChannel[ch].sfbOffsets,
359 &qcOutChannel[ch].sectionData);
361 if (chDynBits >= maxChDynBits[ch]) {
366 qcOutChannel[ch].globalGain = qcOutChannel[ch].globalGain + 1;
375 qcOutChannel[ch].mdctScale = psyOutChannel[ch].mdctScale;
376 qcOutChannel[ch].groupingMask = psyOutChannel[ch].groupingMask;
377 qcOutChannel[ch].windowShape = psyOutChannel[ch].windowShape;