Lines Matching refs:hQC
345 AAC_ENCODER_ERROR FDKaacEnc_InitElementBits(QC_STATE *hQC,
355 hQC->elementBits[0]->chBitrateEl = bitrateTot;
357 hQC->elementBits[0]->maxBitsEl = maxChannelBits;
359 hQC->elementBits[0]->relativeBitsEl = cm->elInfo[0].relativeBits;
363 hQC->elementBits[0]->chBitrateEl = bitrateTot>>1;
365 hQC->elementBits[0]->maxBitsEl = 2*maxChannelBits;
367 hQC->elementBits[0]->relativeBitsEl = cm->elInfo[0].relativeBits;
370 hQC->elementBits[0]->relativeBitsEl = cm->elInfo[0].relativeBits;
371 hQC->elementBits[1]->relativeBitsEl = cm->elInfo[1].relativeBits;
375 hQC->elementBits[0]->chBitrateEl = fMult(sceRate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>sc_brTot;
376 hQC->elementBits[1]->chBitrateEl = fMult(cpeRate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>(sc_brTot+1);
378 hQC->elementBits[0]->maxBitsEl = maxChannelBits;
379 hQC->elementBits[1]->maxBitsEl = 2*maxChannelBits;
384 hQC->elementBits[0]->relativeBitsEl = cm->elInfo[0].relativeBits;
385 hQC->elementBits[1]->relativeBitsEl = cm->elInfo[1].relativeBits;
386 hQC->elementBits[2]->relativeBitsEl = cm->elInfo[2].relativeBits;
391 hQC->elementBits[0]->chBitrateEl = fMult(sce1Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>sc_brTot;
392 hQC
393 hQC->elementBits[2]->chBitrateEl = fMult(sce2Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>sc_brTot;
395 hQC->elementBits[0]->maxBitsEl = maxChannelBits;
396 hQC->elementBits[1]->maxBitsEl = 2*maxChannelBits;
397 hQC->elementBits[2]->maxBitsEl = maxChannelBits;
402 hQC->elementBits[0]->relativeBitsEl = cm->elInfo[0].relativeBits;
403 hQC->elementBits[1]->relativeBitsEl = cm->elInfo[1].relativeBits;
404 hQC->elementBits[2]->relativeBitsEl = cm->elInfo[2].relativeBits;
409 hQC->elementBits[0]->chBitrateEl = fMult(sceRate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>sc_brTot;
410 hQC->elementBits[1]->chBitrateEl = fMult(cpe1Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>(sc_brTot+1);
411 hQC->elementBits[2]->chBitrateEl = fMult(cpe2Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>(sc_brTot+1);
413 hQC->elementBits[0]->maxBitsEl = maxChannelBits;
414 hQC->elementBits[1]->maxBitsEl = 2*maxChannelBits;
415 hQC->elementBits[2]->maxBitsEl = 2*maxChannelBits;
421 hQC->elementBits[0]->relativeBitsEl = cm->elInfo[0].relativeBits;
422 hQC->elementBits[1]->relativeBitsEl = cm->elInfo[1].relativeBits;
423 hQC->elementBits[2]->relativeBitsEl = cm->elInfo[2].relativeBits;
424 hQC->elementBits[3]->relativeBitsEl = cm->elInfo[3].relativeBits;
440 hQC->elementBits[0]->chBitrateEl = fMult(sceRate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>sc_brTot;
441 hQC->elementBits[1]->chBitrateEl = fMult(cpe1Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>(sc_brTot+1);
442 hQC->elementBits[2]->chBitrateEl = fMult(cpe2Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>(sc_brTot+1);
443 hQC->elementBits[3]->chBitrateEl = fMult(lfeRate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>sc_brTot;
445 hQC->elementBits[0]->maxBitsEl = maxChannelBits;
446 hQC->elementBits[1]->maxBitsEl = 2*maxChannelBits;
447 hQC->elementBits[2]->maxBitsEl = 2*maxChannelBits;
448 hQC->elementBits[3]->maxBitsEl = maxLfeBits;
459 FIXP_DBL sceRate = hQC->elementBits[0]->relativeBitsEl = cm->elInfo[0].relativeBits;
460 FIXP_DBL cpe1Rate = hQC->elementBits[1]->relativeBitsEl = cm->elInfo[1].relativeBits;
461 FIXP_DBL cpe2Rate = hQC->elementBits[2]->relativeBitsEl = cm->elInfo[2].relativeBits;
462 FIXP_DBL cpe3Rate = hQC->elementBits[cpe3Idx]->relativeBitsEl = cm->elInfo[cpe3Idx].relativeBits;
463 FIXP_DBL lfeRate = hQC->elementBits[lfeIdx]->relativeBitsEl = cm->elInfo[lfeIdx].relativeBits;
472 hQC->elementBits[0]->chBitrateEl = fMult(sceRate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>sc_brTot;
473 hQC->elementBits[1]->chBitrateEl = fMult(cpe1Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>(sc_brTot+1);
474 hQC->elementBits[2]->chBitrateEl = fMult(cpe2Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>(sc_brTot+1);
475 hQC->elementBits[cpe3Idx]->chBitrateEl = fMult(cpe3Rate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>(sc_brTot+1);
476 hQC->elementBits[lfeIdx]->chBitrateEl = fMult(lfeRate, (FIXP_DBL)(bitrateTot<<sc_brTot))>>sc_brTot;
478 hQC->elementBits[0]->maxBitsEl = maxChannelBits;
479 hQC->elementBits[1]->maxBitsEl = 2*maxChannelBits;
480 hQC->elementBits[2]->maxBitsEl = 2*maxChannelBits;
481 hQC->elementBits[cpe3Idx]->maxBitsEl = 2*maxChannelBits;
482 hQC->elementBits[lfeIdx]->maxBitsEl = maxLfeBits;