Home | History | Annotate | Download | only in src

Lines Matching refs:qcOut

145                           QC_OUT*           qcOut,
160 QC_OUT* qcOut,
540 * \param qcOut Pointer to coding data struct.
549 QC_OUT** qcOut,
605 QC_OUT** qcOut,
614 qcOut[0]->grantedDynBits = (fixMin(hQC->maxBitsPerFrame, avgTotalBits) - hQC->globHdrBits)&~7;
615 qcOut[0]->grantedDynBits -= (qcOut[0]->globalExtBits + qcOut[0]->staticBits + qcOut[0]->elementExtBits);
616 qcOut[0]->maxDynBits = ((hQC->maxBitsPerFrame)&~7) - (qcOut[0]->globalExtBits + qcOut[0]->staticBits + qcOut[0]->elementExtBits);
618 if ((qcOut[0]->grantedDynBits+hQC->bitResTot) < 0) {
620 if ( (qcOut[0]->grantedDynBits+hQC->bitResTot) < (FDKaacEnc_getMinimalStaticBitdemand(cm, psyOut)-qcOut[0]->staticBits) )
628 qcOut[0]->grantedDynBits);
635 qcOut[0]->totalGrantedPeCorr = 0;
662 qcOut[0]->totalGrantedPeCorr += qcElement[0][i]->grantedPeCorr;
698 static INT FDKaacEnc_getTotalConsumedDynBits(QC_OUT** qcOut,
708 if (qcOut[c]->usedDynBits==-1) return -1;
709 totalBits += qcOut[c]->usedDynBits;
716 static INT FDKaacEnc_getTotalConsumedBits(QC_OUT** qcOut,
736 dataBits += qcOut[c]->globalExtBits;
790 QC_OUT** qcOut,
831 qcElement[c][i] = qcOut[c]->qcElement[i];
846 qcOut,
858 qcOut[0]->grantedDynBits = ((hQC->maxBitsPerFrame - (hQC->globHdrBits))&~7)
859 - (qcOutqcOut[0]->staticBits + qcOut[0]->elementExtBits);
860 qcOut[0]->maxDynBits = qcOut[0]->grantedDynBits;
873 qcOut[0]->pQcOutChannels[ch]->sectionData.noiseNrgBits = noisePreCount(psyOut[0]->pPsyOutChannels[ch]->noiseNrg, psyOut[0]->pPsyOutChannels[ch]->maxSfbPerGroup);
874 estimatedPnsBits += qcOut[0]->pQcOutChannels[ch]->sectionData.noiseNrgBits;
876 qcOut[0]->grantedDynBits -= estimatedPnsBits;
886 qcOut[c],
935 qcOut[c]->usedDynBits = -1;
974 qcOut[c],
1079 FDKaacEnc_updateUsedDynBits(&qcOut[c]->usedDynBits,
1084 sumDynBitsConsumedTotal = FDKaacEnc_getTotalConsumedDynBits(qcOut, nSubFrames);
1092 int sumBitsConsumedTotal = FDKaacEnc_getTotalConsumedBits(qcOut, qcElement, cm, hQC->globHdrBits, nSubFrames);
1095 if ( ((sumBitsConsumedTotal < totalAvailableBits) || qcOut[c]->usedDynBits==0) && (decreaseBitConsumption==1) && checkMinFrameBitsDemand(qcOut,hQC->minBitsPerFrame,nSubFrames)
1128 dynBitsOvershoot |= ((qcOut[c]->usedDynBits > qcOut[c]->maxDynBits) ? 1 : 0);
1134 int sumBitsConsumedTotal = FDKaacEnc_getTotalConsumedBits(qcOut, qcElement, cm, hQC->globHdrBits, nSubFrames);
1142 if ((sumBitsConsumedTotal > totalAvailableBits) || !checkMinFrameBitsDemand(qcOut,hQC->minBitsPerFrame,nSubFrames)) {
1145 if ((sumBitsConsumedTotal < totalAvailableBits) && checkMinFrameBitsDemand(qcOut,hQC->minBitsPerFrame,nSubFrames)) {
1184 QC_OUT* qcOut,
1206 qcOut
1245 QC_OUT** qcOut)
1259 qcOut[0]->totFillBits = (qcOut[0]->grantedDynBits - qcOut[0]->usedDynBits)&7; /* precalculate alignment bits */
1267 INT deltaBitRes = qcOut[0]->grantedDynBits - qcOut[0]->usedDynBits ;
1268 qcOut[0]->totFillBits = fixMax((deltaBitRes&7), (deltaBitRes - (fixMax(0,bitResSpace-7)&~7)));
1323 QC_OUT** qcOut)
1343 qcKernel->bitResTot += qcOut[c]->grantedDynBits - (qcOut[c]->usedDynBits + qcOut[c]->totFillBits + qcOut[c]->alignBits);
1358 QC_OUT *qcOut,
1369 qcOut->totalBits = qcOut->staticBits + qcOut->usedDynBits + qcOut->totFillBits +
1370 qcOut->elementExtBits + qcOut->globalExtBits;
1375 INT exactTpBits = transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits);
1381 const INT bitresSpace = qcKernel->bitResTotMax - (qcKernel->bitResTot + (qcOut->grantedDynBits - (qcOut->usedDynBits + qcOut->totFillBits) ) );
1397 qcOut->totFillBits += diffFillBits;
1398 qcOut->totalBits += diffFillBits;
1399 qcOut->grantedDynBits += diffFillBits;
1402 qcKernel->globHdrBits = transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits);
1415 qcKernel->globHdrBits = transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits);
1418 totFillBits = qcOut->totFillBits;
1427 qcOut->totFillBits = FDKaacEnc_writeExtensionData( NULL,
1435 alignBits = 7 - (qcOut->staticBits + qcOut->usedDynBits + qcOut->elementExtBits
1436 + qcOut->totFillBits + qcOut->globalExtBits -1)%8;
1439 if( ((alignBits + qcOut->totFillBits - totFillBits)==8) && (qcOut->totFillBits>8) )
1440 qcOut->totFillBits -= 8;
1442 qcOut->totalBits = qcOut->staticBits + qcOut->usedDynBits + qcOut->totFillBits +
1443 alignBits + qcOut->elementExtBits + qcOut->globalExtBits;
1445 if ( (qcOut->totalBits>qcKernel->maxBitsPerFrame) || (qcOut->totalBits<qcKernel->minBitsPerFrame) ) {
1449 qcOut->alignBits = alignBits;
1468 QC_OUT* qcOut,
1582 qcOut->staticBits -= savedBits;
1583 qcOut->grantedDynBits += savedBits;
1584 qcOut->maxDynBits += savedBits;