Lines Matching refs:psyConf
574 PSY_CONFIGURATION *psyConf, in FDKaacEnc_InitPsyConfiguration() argument
583 FDKmemclear(psyConf, sizeof(PSY_CONFIGURATION)); in FDKaacEnc_InitPsyConfiguration()
584 psyConf->granuleLength = granuleLength; in FDKaacEnc_InitPsyConfiguration()
585 psyConf->filterbank = filterbank; in FDKaacEnc_InitPsyConfiguration()
587 psyConf->allowIS = (useIS) && ( (bitrate/bandwidth) < 5 ); in FDKaacEnc_InitPsyConfiguration()
590 …us = FDKaacEnc_initSfbTable(samplerate,blocktype,granuleLength,psyConf->sfbOffset,&psyConf->sfbCnt… in FDKaacEnc_InitPsyConfiguration()
595 FDKaacEnc_initBarcValues(psyConf->sfbCnt, in FDKaacEnc_InitPsyConfiguration()
596 psyConf->sfbOffset, in FDKaacEnc_InitPsyConfiguration()
597 psyConf->sfbOffset[psyConf->sfbCnt], in FDKaacEnc_InitPsyConfiguration()
601 FDKaacEnc_InitMinPCMResolution(psyConf->sfbCnt, in FDKaacEnc_InitPsyConfiguration()
602 psyConf->sfbOffset, in FDKaacEnc_InitPsyConfiguration()
603 psyConf->sfbPcmQuantThreshold); in FDKaacEnc_InitPsyConfiguration()
606 FDKaacEnc_initSpreading(psyConf->sfbCnt, in FDKaacEnc_InitPsyConfiguration()
608 psyConf->sfbMaskLowFactor, in FDKaacEnc_InitPsyConfiguration()
609 psyConf->sfbMaskHighFactor, in FDKaacEnc_InitPsyConfiguration()
610 psyConf->sfbMaskLowFactorSprEn, in FDKaacEnc_InitPsyConfiguration()
611 psyConf->sfbMaskHighFactorSprEn, in FDKaacEnc_InitPsyConfiguration()
617 …psyConf->maxAllowedIncreaseFactor = 2; /* integer … in FDKaacEnc_InitPsyConfiguration()
618 …psyConf->minRemainingThresholdFactor = (FIXP_SGL)0x0148; /* FL2FXCONST_SGL(0.01f); */ /* fract … in FDKaacEnc_InitPsyConfiguration()
620 psyConf->clipEnergy = (FIXP_DBL)0x773593ff; /* FL2FXCONST_DBL(1.0e9*NORM_PCM_ENERGY); */ in FDKaacEnc_InitPsyConfiguration()
623 psyConf->lowpassLine = (INT)((2*bandwidth*frameLengthLong)/samplerate); in FDKaacEnc_InitPsyConfiguration()
624 psyConf->lowpassLineLFE = LFE_LOWPASS_LINE; in FDKaacEnc_InitPsyConfiguration()
627 psyConf->lowpassLine = (INT)((2*bandwidth*frameLengthShort)/samplerate); in FDKaacEnc_InitPsyConfiguration()
628 psyConf->lowpassLineLFE = 0; /* LFE only in lonf blocks */ in FDKaacEnc_InitPsyConfiguration()
630 psyConf->clipEnergy >>= 6; in FDKaacEnc_InitPsyConfiguration()
633 for (sfb = 0; sfb < psyConf->sfbCnt; sfb++){ in FDKaacEnc_InitPsyConfiguration()
634 if (psyConf->sfbOffset[sfb] >= psyConf->lowpassLine) in FDKaacEnc_InitPsyConfiguration()
637 psyConf->sfbActive = FDKmax(sfb, 1); in FDKaacEnc_InitPsyConfiguration()
639 for (sfb = 0; sfb < psyConf->sfbCnt; sfb++){ in FDKaacEnc_InitPsyConfiguration()
640 if (psyConf->sfbOffset[sfb] >= psyConf->lowpassLineLFE) in FDKaacEnc_InitPsyConfiguration()
643 psyConf->sfbActiveLFE = sfb; in FDKaacEnc_InitPsyConfiguration()
644 psyConf->sfbActive = FDKmax(psyConf->sfbActive, psyConf->sfbActiveLFE); in FDKaacEnc_InitPsyConfiguration()
649 psyConf->sfbOffset[psyConf->sfbCnt], in FDKaacEnc_InitPsyConfiguration()
650 psyConf->sfbOffset, in FDKaacEnc_InitPsyConfiguration()
651 psyConf->sfbActive, in FDKaacEnc_InitPsyConfiguration()
653 psyConf->sfbMinSnrLdData); in FDKaacEnc_InitPsyConfiguration()