Lines Matching refs:totalBits
518 INT totalBits = 0; /* sum of bits over all elements */ in FDKaacEnc_distributeElementDynBits() local
524 totalBits += qcElement[i]->grantedDynBits; in FDKaacEnc_distributeElementDynBits()
534 if (codeBits != totalBits) { in FDKaacEnc_distributeElementDynBits()
552 if (codeBits - totalBits > 0) { in FDKaacEnc_distributeElementDynBits()
553 qcElement[elMinBits]->grantedDynBits += codeBits - totalBits; in FDKaacEnc_distributeElementDynBits()
555 qcElement[elMaxBits]->grantedDynBits += codeBits - totalBits; in FDKaacEnc_distributeElementDynBits()
709 INT c, totalBits = 0; in FDKaacEnc_getTotalConsumedDynBits() local
716 totalBits += qcOut[c]->usedDynBits; in FDKaacEnc_getTotalConsumedDynBits()
719 return totalBits; in FDKaacEnc_getTotalConsumedDynBits()
758 INT totalBits = 0, totalBits_max = 0; in FDKaacEnc_BitResRedistribution() local
771 totalBits += hQC->elementBits[i]->bitResLevelEl; in FDKaacEnc_BitResRedistribution()
782 int deltaBits = fMax(totalBitreservoir - totalBits, in FDKaacEnc_BitResRedistribution()
785 totalBits += deltaBits; in FDKaacEnc_BitResRedistribution()
1202 qcOut[0]->totalBits = qcOut[0]->staticBits + qcOut[0]->usedDynBits + in FDKaacEnc_updateFillBits()
1206 (fixMax(0, qcKernel->minBitsPerFrame - qcOut[0]->totalBits) + 7) & ~7; in FDKaacEnc_updateFillBits()
1216 qcOut[0]->totalBits = qcOut[0]->staticBits + qcOut[0]->usedDynBits + in FDKaacEnc_updateFillBits()
1220 (fixMax(0, qcKernel->minBitsPerFrame - qcOut[0]->totalBits) + 7) & ~7; in FDKaacEnc_updateFillBits()
1307 qcOut->totalBits = qcOut->staticBits + qcOut->usedDynBits + in FDKaacEnc_FinalizeBitConsumption()
1314 INT exactTpBits = transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits); in FDKaacEnc_FinalizeBitConsumption()
1341 qcOut->totalBits += diffFillBits; in FDKaacEnc_FinalizeBitConsumption()
1346 transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits); in FDKaacEnc_FinalizeBitConsumption()
1360 qcKernel->globHdrBits = transportEnc_GetStaticBits(hTpEnc, qcOut->totalBits); in FDKaacEnc_FinalizeBitConsumption()
1387 qcOut->totalBits = qcOut->staticBits + qcOut->usedDynBits + in FDKaacEnc_FinalizeBitConsumption()
1391 if ((qcOut->totalBits > qcKernel->maxBitsPerFrame) || in FDKaacEnc_FinalizeBitConsumption()
1392 (qcOut->totalBits < qcKernel->minBitsPerFrame)) { in FDKaacEnc_FinalizeBitConsumption()