Lines Matching refs:qcInit
423 QC_INIT qcInit; in FDKaacEnc_Initialize() local
596 qcInit.channelMapping = &hAacEnc->channelMapping; in FDKaacEnc_Initialize()
597 qcInit.sceCpe = 0; in FDKaacEnc_Initialize()
600 qcInit.averageBits = (averageBitsPerFrame+7)&~7; in FDKaacEnc_Initialize()
601 qcInit.bitRes = MIN_BUFSIZE_PER_EFF_CHAN*cm->nChannelsEff; in FDKaacEnc_Initialize()
602 qcInit.maxBits = MIN_BUFSIZE_PER_EFF_CHAN*cm->nChannelsEff; in FDKaacEnc_Initialize()
603 …qcInit.maxBits = (config->maxBitsPerFrame!=-1) ? fixMin(qcInit.maxBits, config->maxBitsPer… in FDKaacEnc_Initialize()
604 qcInit.maxBits = fixMax(qcInit.maxBits, (averageBitsPerFrame+7)&~7); in FDKaacEnc_Initialize()
605 qcInit.minBits = (config->minBitsPerFrame!=-1) ? config->minBitsPerFrame : 0; in FDKaacEnc_Initialize()
606 qcInit.minBits = fixMin(qcInit.minBits, averageBitsPerFrame&~7); in FDKaacEnc_Initialize()
611 qcInit.averageBits = (averageBitsPerFrame+7)&~7; in FDKaacEnc_Initialize()
612 maxBitres = (MIN_BUFSIZE_PER_EFF_CHAN*cm->nChannelsEff) - qcInit.averageBits; in FDKaacEnc_Initialize()
613 …qcInit.bitRes = (config->bitreservoir!=-1) ? FDKmin(config->bitreservoir, maxBitres) : ma… in FDKaacEnc_Initialize()
615 …qcInit.maxBits = fixMin(MIN_BUFSIZE_PER_EFF_CHAN*cm->nChannelsEff, ((averageBitsPerFrame+7… in FDKaacEnc_Initialize()
616 …qcInit.maxBits = (config->maxBitsPerFrame!=-1) ? fixMin(qcInit.maxBits, config->maxBitsPer… in FDKaacEnc_Initialize()
617 …qcInit.maxBits = fixMin(MIN_BUFSIZE_PER_EFF_CHAN*cm->nChannelsEff, fixMax(qcInit.maxBits, … in FDKaacEnc_Initialize()
619 …qcInit.minBits = fixMax(0, ((averageBitsPerFrame-1)&~7)-qcInit.bitRes-transportEnc_GetStat… in FDKaacEnc_Initialize()
620 …qcInit.minBits = (config->minBitsPerFrame!=-1) ? fixMax(qcInit.minBits, config->minBitsPer… in FDKaacEnc_Initialize()
621 …qcInit.minBits = fixMin(qcInit.minBits, (averageBitsPerFrame - transportEnc_GetStaticBits(… in FDKaacEnc_Initialize()
624 qcInit.sampleRate = config->sampleRate; in FDKaacEnc_Initialize()
625 qcInit.advancedBitsToPe = isLowDelay(config->audioObjectType) ? 1 : 0 ; in FDKaacEnc_Initialize()
626 qcInit.nSubFrames = config->nSubFrames; in FDKaacEnc_Initialize()
627 qcInit.padding.paddingRest = config->sampleRate; in FDKaacEnc_Initialize()
631 qcInit.meanPe = FDKmax((INT)scaleValue(bw_ratio, qbw+1-(DFRACT_BITS-1)), 1); in FDKaacEnc_Initialize()
634 …mbfac = fDivNorm((MIN_BUFSIZE_PER_EFF_CHAN-744)*cm->nChannelsEff, qcInit.averageBits/qcInit.nSubFr… in FDKaacEnc_Initialize()
636 qcInit.maxBitFac = (qmbfac > 24) ? (mbfac >> (qmbfac - 24)):(mbfac << (24 - qmbfac)); in FDKaacEnc_Initialize()
640 qcInit.bitrateMode = QCDATA_BR_MODE_CBR; in FDKaacEnc_Initialize()
643 qcInit.bitrateMode = QCDATA_BR_MODE_VBR_1; in FDKaacEnc_Initialize()
646 qcInit.bitrateMode = QCDATA_BR_MODE_VBR_2; in FDKaacEnc_Initialize()
649 qcInit.bitrateMode = QCDATA_BR_MODE_VBR_3; in FDKaacEnc_Initialize()
652 qcInit.bitrateMode = QCDATA_BR_MODE_VBR_4; in FDKaacEnc_Initialize()
655 qcInit.bitrateMode = QCDATA_BR_MODE_VBR_5; in FDKaacEnc_Initialize()
658 qcInit.bitrateMode = QCDATA_BR_MODE_SFR; in FDKaacEnc_Initialize()
661 qcInit.bitrateMode = QCDATA_BR_MODE_FF; in FDKaacEnc_Initialize()
668 qcInit.invQuant = (config->useRequant)?2:0; in FDKaacEnc_Initialize()
678 qcInit.maxIterations = 2; in FDKaacEnc_Initialize()
682 qcInit.maxIterations = 5; in FDKaacEnc_Initialize()
685 qcInit.bitrate = config->bitRate - config->ancDataBitRate; in FDKaacEnc_Initialize()
687 qcInit.staticBits = transportEnc_GetStaticBits(hTpEnc, qcInit.averageBits/qcInit.nSubFrames); in FDKaacEnc_Initialize()
689 ErrorStatus = FDKaacEnc_QCInit(hAacEnc->qcKernel, &qcInit); in FDKaacEnc_Initialize()