Home | History | Annotate | Download | only in src

Lines Matching refs:psyConf

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