Lines Matching refs:qcOut
142 QC_OUT* qcOut,
157 QC_OUT* qcOut,
551 QC_OUT** qcOut, in checkMinFrameBitsDemand() argument
607 QC_OUT** qcOut, in FDKaacEnc_prepareBitDistribution() argument
616 … qcOut[0]->grantedDynBits = (fixMin(hQC->maxBitsPerFrame, avgTotalBits) - hQC->globHdrBits)&~7; in FDKaacEnc_prepareBitDistribution()
617 …qcOut[0]->grantedDynBits -= (qcOut[0]->globalExtBits + qcOut[0]->staticBits + qcOut[0]->elementExt… in FDKaacEnc_prepareBitDistribution()
618 …qcOut[0]->maxDynBits = ((hQC->maxBitsPerFrame)&~7) - (qcOut[0]->globalExtBits + qcOut[0]->staticBi… in FDKaacEnc_prepareBitDistribution()
620 if ((qcOut[0]->grantedDynBits+hQC->bitResTot) < 0) { in FDKaacEnc_prepareBitDistribution()
622 …if ( (qcOut[0]->grantedDynBits+hQC->bitResTot) < (FDKaacEnc_getMinimalStaticBitdemand(cm, psyOut)-… in FDKaacEnc_prepareBitDistribution()
630 qcOut[0]->grantedDynBits); in FDKaacEnc_prepareBitDistribution()
637 qcOut[0]->totalGrantedPeCorr = 0; in FDKaacEnc_prepareBitDistribution()
664 qcOut[0]->totalGrantedPeCorr += qcElement[0][i]->grantedPeCorr; in FDKaacEnc_prepareBitDistribution()
700 static INT FDKaacEnc_getTotalConsumedDynBits(QC_OUT** qcOut, in FDKaacEnc_getTotalConsumedDynBits() argument
710 if (qcOut[c]->usedDynBits==-1) return -1; in FDKaacEnc_getTotalConsumedDynBits()
711 totalBits += qcOut[c]->usedDynBits; in FDKaacEnc_getTotalConsumedDynBits()
718 static INT FDKaacEnc_getTotalConsumedBits(QC_OUT** qcOut, in FDKaacEnc_getTotalConsumedBits() argument
738 dataBits += qcOut[c]->globalExtBits; in FDKaacEnc_getTotalConsumedBits()
792 QC_OUT** qcOut, in FDKaacEnc_QCMain() argument
833 qcElement[c][i] = qcOut[c]->qcElement[i]; in FDKaacEnc_QCMain()
848 qcOut, in FDKaacEnc_QCMain()
860 qcOut[0]->grantedDynBits = ((hQC->maxBitsPerFrame - (hQC->globHdrBits))&~7) in FDKaacEnc_QCMain()
861 … - (qcOut[0]->globalExtBits + qcOut[0]->staticBits + qcOut[0]->elementExtBits); in FDKaacEnc_QCMain()
862 qcOut[0]->maxDynBits = qcOut[0]->grantedDynBits; in FDKaacEnc_QCMain()
875 …qcOut[0]->pQcOutChannels[ch]->sectionData.noiseNrgBits = noisePreCount(psyOut[0]->pPsyOutChannels[… in FDKaacEnc_QCMain()
876 estimatedPnsBits += qcOut[0]->pQcOutChannels[ch]->sectionData.noiseNrgBits; in FDKaacEnc_QCMain()
878 qcOut[0]->grantedDynBits -= estimatedPnsBits; in FDKaacEnc_QCMain()
888 qcOut[c], in FDKaacEnc_QCMain()
939 qcOut[c]->usedDynBits = -1; in FDKaacEnc_QCMain()
978 qcOut[c], in FDKaacEnc_QCMain()
1084 FDKaacEnc_updateUsedDynBits(&qcOut[c]->usedDynBits, in FDKaacEnc_QCMain()
1089 sumDynBitsConsumedTotal = FDKaacEnc_getTotalConsumedDynBits(qcOut, nSubFrames); in FDKaacEnc_QCMain()
1097 …int sumBitsConsumedTotal = FDKaacEnc_getTotalConsumedBits(qcOut, qcElement, cm, hQC->globHdrBits, … in FDKaacEnc_QCMain()
1100 …dTotal < totalAvailableBits) || qcOut[c]->usedDynBits==0) && (decreaseBitConsumption==1) && checkM… in FDKaacEnc_QCMain()
1133 dynBitsOvershoot |= ((qcOut[c]->usedDynBits > qcOut[c]->maxDynBits) ? 1 : 0); in FDKaacEnc_QCMain()
1139 …int sumBitsConsumedTotal = FDKaacEnc_getTotalConsumedBits(qcOut, qcElement, cm, hQC->globHdrBits, … in FDKaacEnc_QCMain()
1147 …if ((sumBitsConsumedTotal > totalAvailableBits) || !checkMinFrameBitsDemand(qcOut,hQC->minBitsPerF… in FDKaacEnc_QCMain()
1150 …if ((sumBitsConsumedTotal < totalAvailableBits) && checkMinFrameBitsDemand(qcOut,hQC->minBitsPerFr… in FDKaacEnc_QCMain()
1189 QC_OUT* qcOut, in FDKaacEnc_reduceBitConsumption() argument
1211 qcOut, in FDKaacEnc_reduceBitConsumption()
1250 QC_OUT** qcOut) in FDKaacEnc_updateFillBits() argument
1264 …qcOut[0]->totFillBits = (qcOut[0]->grantedDynBits - qcOut[0]->usedDynBits)&7; /* precalculate alig… in FDKaacEnc_updateFillBits()
1265 …qcOut[0]->totalBits = qcOut[0]->staticBits + qcOut[0]->usedDynBits + qcOut[0]->totFillBits + qcOut… in FDKaacEnc_updateFillBits()
1266 … qcOut[0]->totFillBits += ( fixMax(0, qcKernel->minBitsPerFrame - qcOut[0]->totalBits) + 7) & ~7; in FDKaacEnc_updateFillBits()
1274 INT deltaBitRes = qcOut[0]->grantedDynBits - qcOut[0]->usedDynBits ; in FDKaacEnc_updateFillBits()
1275 qcOut[0]->totFillBits = fixMax((deltaBitRes&7), (deltaBitRes - (fixMax(0,bitResSpace-7)&~7))); in FDKaacEnc_updateFillBits()
1276 …qcOut[0]->totalBits = qcOut[0]->staticBits + qcOut[0]->usedDynBits + qcOut[0]->totFillBits + qcOut… in FDKaacEnc_updateFillBits()
1277 … qcOut[0]->totFillBits += ( fixMax(0, qcKernel->minBitsPerFrame - qcOut[0]->totalBits) + 7) & ~7; in FDKaacEnc_updateFillBits()
1332 QC_OUT** qcOut) in FDKaacEnc_updateBitres() argument
1352 …qcKernel->bitResTot += qcOut[c]->grantedDynBits - (qcOut[c]->usedDynBits + qcOut[c]->totFillBits +… in FDKaacEnc_updateBitres()
1367 QC_OUT *qcOut, in FDKaacEnc_FinalizeBitConsumption() argument
1378 qcOut->totalBits = qcOut->staticBits + qcOut->usedDynBits + qcOut->totFillBits + in FDKaacEnc_FinalizeBitConsumption()
1379 qcOut->elementExtBits + qcOut->globalExtBits; in FDKaacEnc_FinalizeBitConsumption()
1384 INT exactTpBits = transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits); in FDKaacEnc_FinalizeBitConsumption()
1390 …= qcKernel->bitResTotMax - (qcKernel->bitResTot + (qcOut->grantedDynBits - (qcOut->usedDynBits + q… in FDKaacEnc_FinalizeBitConsumption()
1406 qcOut->totFillBits += diffFillBits; in FDKaacEnc_FinalizeBitConsumption()
1407 qcOut->totalBits += diffFillBits; in FDKaacEnc_FinalizeBitConsumption()
1408 qcOut->grantedDynBits += diffFillBits; in FDKaacEnc_FinalizeBitConsumption()
1411 qcKernel->globHdrBits = transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits); in FDKaacEnc_FinalizeBitConsumption()
1424 qcKernel->globHdrBits = transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits); in FDKaacEnc_FinalizeBitConsumption()
1427 totFillBits = qcOut->totFillBits; in FDKaacEnc_FinalizeBitConsumption()
1436 qcOut->totFillBits = FDKaacEnc_writeExtensionData( NULL, in FDKaacEnc_FinalizeBitConsumption()
1444 alignBits = 7 - (qcOut->staticBits + qcOut->usedDynBits + qcOut->elementExtBits in FDKaacEnc_FinalizeBitConsumption()
1445 + qcOut->totFillBits + qcOut->globalExtBits -1)%8; in FDKaacEnc_FinalizeBitConsumption()
1448 if( ((alignBits + qcOut->totFillBits - totFillBits)==8) && (qcOut->totFillBits>8) ) in FDKaacEnc_FinalizeBitConsumption()
1449 qcOut->totFillBits -= 8; in FDKaacEnc_FinalizeBitConsumption()
1451 qcOut->totalBits = qcOut->staticBits + qcOut->usedDynBits + qcOut->totFillBits + in FDKaacEnc_FinalizeBitConsumption()
1452 alignBits + qcOut->elementExtBits + qcOut->globalExtBits; in FDKaacEnc_FinalizeBitConsumption()
1454 …if ( (qcOut->totalBits>qcKernel->maxBitsPerFrame) || (qcOut->totalBits<qcKernel->minBitsPerFrame) … in FDKaacEnc_FinalizeBitConsumption()
1458 qcOut->alignBits = alignBits; in FDKaacEnc_FinalizeBitConsumption()
1477 QC_OUT* qcOut, in FDKaacEnc_crashRecovery() argument
1591 qcOut->staticBits -= savedBits; in FDKaacEnc_crashRecovery()
1592 qcOut->grantedDynBits += savedBits; in FDKaacEnc_crashRecovery()
1593 qcOut->maxDynBits += savedBits; in FDKaacEnc_crashRecovery()