Lines Matching refs:FL2FXCONST_DBL

266   FIXP_DBL bit2PE_m = FL2FXCONST_DBL(1.18f/(1<<(1)));  in FDKaacEnc_InitBits2PeFactor()
324 if ( bit2PE >= (FL2FXCONST_DBL(0.35f) >> 2) ) { in FDKaacEnc_InitBits2PeFactor()
335 if(bit2PE_m >= (FL2FXCONST_DBL(0.6f))>>bit2PE_e) in FDKaacEnc_InitBits2PeFactor()
344 bit2PE_m += (FL2FXCONST_DBL(0.4f))>>bit2PE_e; in FDKaacEnc_InitBits2PeFactor()
347 bit2PE_m += (FL2FXCONST_DBL(0.3f))>>bit2PE_e; in FDKaacEnc_InitBits2PeFactor()
350 bit2PE_m += (FL2FXCONST_DBL(0.3f))>>bit2PE_e; in FDKaacEnc_InitBits2PeFactor()
353 bit2PE_m += (FL2FXCONST_DBL(0.0f))>>bit2PE_e; in FDKaacEnc_InitBits2PeFactor()
411 FIXP_DBL minSnrLimitLD64 = FL2FXCONST_DBL(-0.00503012648262f); /* ld64(0.8f) */ in FDKaacEnc_adaptMinSnr()
418 accu = FL2FXCONST_DBL(0.0f); in FDKaacEnc_adaptMinSnr()
427 if ((accu == FL2FXCONST_DBL(0.0f)) || (nSfb == 0)) { in FDKaacEnc_adaptMinSnr()
428 avgEnLD64 = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_adaptMinSnr()
433 …avgEnLD64 = avgEnLD64 + FL2FXCONST_DBL(0.09375f) - nSfbLD64; /* 0.09375f: compensate shift with 6… in FDKaacEnc_adaptMinSnr()
440 … = fMult((avgEnLD64 - qcOutChannel[ch]->sfbEnergyLdData[sfbGrp+sfb]),FL2FXCONST_DBL(0.3010299956f)… in FDKaacEnc_adaptMinSnr()
484 fMult(FL2FXCONST_DBL(0.63f), in FDKaacEnc_initAvoidHoleFlag()
522 … ( ((sfbEnLdData+(FIXP_DBL)SnrLdMin4) < (FIXP_DBL)avgEnLdData) && (sfbEn > FL2FXCONST_DBL(0.0)) ) { in FDKaacEnc_initAvoidHoleFlag()
545 …in5>>1) + (maxSfbEnLd>>1) + (qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb]>>1)) <= FL2FXCONST_DBL(-0.5f)) in FDKaacEnc_initAvoidHoleFlag()
546 maxThrLd = FL2FXCONST_DBL(-1.0f) ; in FDKaacEnc_initAvoidHoleFlag()
550 if (qcOutChanM->sfbEnergy[sfbGrp+sfb] > FL2FXCONST_DBL(0.0f)) in FDKaacEnc_initAvoidHoleFlag()
553 sfbMinSnrTmpLd = FL2FXCONST_DBL(0.0f); in FDKaacEnc_initAvoidHoleFlag()
557 if (qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb] <= FL2FXCONST_DBL(0.0f)) in FDKaacEnc_initAvoidHoleFlag()
560 if (qcOutChanS->sfbEnergy[sfbGrp+sfb] > FL2FXCONST_DBL(0.0f)) in FDKaacEnc_initAvoidHoleFlag()
563 sfbMinSnrTmpLd = FL2FXCONST_DBL(0.0f); in FDKaacEnc_initAvoidHoleFlag()
567 if (qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb] <= FL2FXCONST_DBL(0.0f)) in FDKaacEnc_initAvoidHoleFlag()
572 fMult(qcOutChanS->sfbEnergy[sfbGrp+sfb], FL2FXCONST_DBL(0.9f)); in FDKaacEnc_initAvoidHoleFlag()
576 fMult(qcOutChanM->sfbEnergy[sfbGrp+sfb], FL2FXCONST_DBL(0.9f)); in FDKaacEnc_initAvoidHoleFlag()
589 || (qcOutChan->sfbMinSnrLdData[sfbGrp+sfb] > FL2FXCONST_DBL(0.0f))) { in FDKaacEnc_initAvoidHoleFlag()
685 nrgSum14 = nrgSum12 = nrgSum34 = nrgTotal = FL2FXCONST_DBL(0.f); in FDKaacEnc_calcWeighting()
708 …adjThrStateElement->chaosMeasureEnFac[ch] = FDKmax( FL2FXCONST_DBL(0.1875f), fDivNorm(nLinesSum,ps… in FDKaacEnc_calcWeighting()
710 usePatch = (adjThrStateElement->chaosMeasureEnFac[ch] > FL2FXCONST_DBL(0.78125f)); in FDKaacEnc_calcWeighting()
726 if ( (sfbExePatch) && (psyOutChan->sfbEnergy[sfbGrp+sfb]>FL2FXCONST_DBL(0.f)) ) in FDKaacEnc_calcWeighting()
729 if (adjThrStateElement->chaosMeasureEnFac[ch] > FL2FXCONST_DBL(0.8125f)) { in FDKaacEnc_calcWeighting()
732 … else if (adjThrStateElement->chaosMeasureEnFac[ch] > FL2FXCONST_DBL(0.796875f)) { in FDKaacEnc_calcWeighting()
749 adjThrStateElement->chaosMeasureEnFac[ch] = FL2FXCONST_DBL(0.75f); in FDKaacEnc_calcWeighting()
908 if (qcOutChan->sfbMinSnrLdData[sfbGrp+sfb] > (FL2FXCONST_DBL(-1.0f) - sfbEnLdData) ){ in FDKaacEnc_reduceThresholdsCBR()
916 if ((sfbEnLdData+(FIXP_DBL)MAXVAL_DBL) > FL2FXCONST_DBL(9.6336206/LD_DATA_SCALING)){ in FDKaacEnc_reduceThresholdsCBR()
917 …sfbThrReducedLdData = fixMax(sfbThrReducedLdData, (sfbEnLdData - FL2FXCONST_DBL(9.6336206/LD_DATA_… in FDKaacEnc_reduceThresholdsCBR()
940 FIXP_DBL frameFormFactor = FL2FXCONST_DBL(0.f); in FDKaacEnc_calcChaosMeasure()
941 FIXP_DBL frameEnergy = FL2FXCONST_DBL(0.f); in FDKaacEnc_calcChaosMeasure()
960 …(fMultDiv2(FL2FXCONST_DBL(0.75f),CalcLdData((FIXP_DBL)frameNLines<<(DFRACT_BITS-1-SCALE_NLINES))) - in FDKaacEnc_calcChaosMeasure()
966 chaosMeasure = FL2FXCONST_DBL(1.f); in FDKaacEnc_calcChaosMeasure()
984 FIXP_DBL frameEnergy = FL2FXCONST_DBL(1e-10f); in FDKaacEnc_reduceThresholdsVBR()
985 FIXP_DBL chaosMeasure = FL2FXCONST_DBL(0.f); in FDKaacEnc_reduceThresholdsVBR()
996 #define CONST_CHAOS_MEAS_AVG_FAC_0 (FL2FXCONST_DBL(0.25f)) in FDKaacEnc_reduceThresholdsVBR()
997 #define CONST_CHAOS_MEAS_AVG_FAC_1 (FL2FXCONST_DBL(1.f-0.25f)) in FDKaacEnc_reduceThresholdsVBR()
999 #define MIN_LDTHRESH (FL2FXCONST_DBL(-0.515625f)) in FDKaacEnc_reduceThresholdsVBR()
1007 FIXP_DBL chEnergy = FL2FXCONST_DBL(0.f); in FDKaacEnc_reduceThresholdsVBR()
1011 chGroupEnergy[groupCnt][ch] = FL2FXCONST_DBL(0.f); in FDKaacEnc_reduceThresholdsVBR()
1021 …chChaosMeasure[ch] = FL2FXCONST_DBL(0.5f); /* assume a constant chaos measure of 0.5f for short bl… in FDKaacEnc_reduceThresholdsVBR()
1035 chaosMeasure = FL2FXCONST_DBL(1.f); in FDKaacEnc_reduceThresholdsVBR()
1047 …chaosMeasure = ((FL2FXCONST_DBL(0.2f)>>2) + fMult(FL2FXCONST_DBL(0.7f/(4.f*0.3f)), (chaosMeasure -… in FDKaacEnc_reduceThresholdsVBR()
1048 …chaosMeasure = (fixMin((FIXP_DBL)(FL2FXCONST_DBL(1.0f)>>2), fixMax((FIXP_DBL)(FL2FXCONST_DBL(0.1f)… in FDKaacEnc_reduceThresholdsVBR()
1058 FIXP_DBL groupEnergy = FL2FXCONST_DBL(0.f); in FDKaacEnc_reduceThresholdsVBR()
1101 …sfbThrExp = fMult(sfbThrExp, fMult( FL2FXCONST_DBL(2.82f/4.f), invSqrt4[psyOutChan->groupLen[group… in FDKaacEnc_reduceThresholdsVBR()
1104 sfbThrReducedLdData = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_reduceThresholdsVBR()
1107 if ((FIXP_DBL)redVal[groupNumber] >= FL2FXCONST_DBL(1.0f)-sfbThrExp) in FDKaacEnc_reduceThresholdsVBR()
1108 sfbThrReducedLdData = FL2FXCONST_DBL(0.0f); in FDKaacEnc_reduceThresholdsVBR()
1121 if ((FIXP_DBL)redVal[0] >= FL2FXCONST_DBL(1.0f)-sfbThrExp) { in FDKaacEnc_reduceThresholdsVBR()
1122 sfbThrReducedLdData = FL2FXCONST_DBL(0.0f); in FDKaacEnc_reduceThresholdsVBR()
1135 if (qcOutChan->sfbMinSnrLdData[sfbGrp+sfb] > (FL2FXCONST_DBL(-1.0f) - sfbEnLdData) ){ in FDKaacEnc_reduceThresholdsVBR()
1142 if (sfbThrReducedLdData<FL2FXCONST_DBL(-0.5f)) in FDKaacEnc_reduceThresholdsVBR()
1143 sfbThrReducedLdData = FL2FXCONST_DBL(-1.f); in FDKaacEnc_reduceThresholdsVBR()
1146 if ((sfbEnLdData+FL2FXCONST_DBL(1.0f)) > FL2FXCONST_DBL(9.6336206/LD_DATA_SCALING)){ in FDKaacEnc_reduceThresholdsVBR()
1147 …sfbThrReducedLdData = fixMax(sfbThrReducedLdData, sfbEnLdData - FL2FXCONST_DBL(9.6336206/LD_DATA_S… in FDKaacEnc_reduceThresholdsVBR()
1214 sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_correctThresh()
1236 if (sumLd < FL2FXCONST_DBL(0.f)) { in FDKaacEnc_correctThresh()
1240 … if ( sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] > (FL2FXCONST_DBL(-1.f) + sumLd) ) { in FDKaacEnc_correctThresh()
1250 else sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(1.0f); in FDKaacEnc_correctThresh()
1252 else sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_correctThresh()
1278 if ( (sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb]==FL2FXCONST_DBL(-1.0f)) || in FDKaacEnc_correctThresh()
1281 thrFactorLdData = FL2FXCONST_DBL(0.f); in FDKaacEnc_correctThresh()
1285 …ormFactorLdData - sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] - FL2FXCONST_DBL((float)LD_DATA… in FDKaacEnc_correctThresh()
1289 thrFactorLdData = FDKmin(tmp, FL2FXCONST_DBL(20.f/LD_DATA_SCALING)); in FDKaacEnc_correctThresh()
1296 if (thrFactorLdData < FL2FXCONST_DBL(0.f)) { in FDKaacEnc_correctThresh()
1297 if( sfbThrLdData > (FL2FXCONST_DBL(-1.f)-thrFactorLdData) ) { in FDKaacEnc_correctThresh()
1301 sfbThrReducedLdData = FL2FXCONST_DBL(-1.f); in FDKaacEnc_correctThresh()
1491 … (((FL2FXCONST_DBL(-0.02065512648f)>>1) + (qcOutChannel[0]->sfbMinSnrLdData[sfbGrp+sfb]>>1)) in FDKaacEnc_allowMoreHoles()
1495 … qcOutChannel[1]->sfbThresholdLdData[sfbGrp+sfb] = FL2FXCONST_DBL(0.015625f) + EnergyLd_R; in FDKaacEnc_allowMoreHoles()
1500 … (((FL2FXCONST_DBL(-0.02065512648f)>>1) + (qcOutChannel[1]->sfbMinSnrLdData[sfbGrp+sfb]>>1)) in FDKaacEnc_allowMoreHoles()
1504 … qcOutChannel[0]->sfbThresholdLdData[sfbGrp+sfb] = FL2FXCONST_DBL(0.015625f) + EnergyLd_L; in FDKaacEnc_allowMoreHoles()
1534 avgEn = FL2FXCONST_DBL(0.0f); in FDKaacEnc_allowMoreHoles()
1535 minEnLD64 = FL2FXCONST_DBL(0.0f); in FDKaacEnc_allowMoreHoles()
1559 if ( (avgEn == FL2FXCONST_DBL(0.0f)) || (ahCnt == 0) ) { in FDKaacEnc_allowMoreHoles()
1560 avgEnLD64 = FL2FXCONST_DBL(0.0f); in FDKaacEnc_allowMoreHoles()
1565 avgEnLD64 = avgEnLD64 + FL2FXCONST_DBL(0.09375f) - ahCntLD64; /* compensate shift with 6 */ in FDKaacEnc_allowMoreHoles()
1571 enLD64[0] = minEnLD64 + fMult((avgEnLD64-minEnLD64),FL2FXCONST_DBL(0.14285714285f)); in FDKaacEnc_allowMoreHoles()
1572 enLD64[1] = minEnLD64 + fMult((avgEnLD64-minEnLD64),FL2FXCONST_DBL(0.42857142857f)); in FDKaacEnc_allowMoreHoles()
1573 enLD64[2] = minEnLD64 + fMult((avgEnLD64-minEnLD64),FL2FXCONST_DBL(0.71428571428f)); in FDKaacEnc_allowMoreHoles()
1607 …qcOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb] = FL2FXCONST_DBL(0.015625f) + qcOutChannel[ch]->s… in FDKaacEnc_allowMoreHoles()
1654 FIXP_DBL value = FL2FXCONST_DBL(0.f); in CalcRedValPower()
1656 if (num>=FL2FXCONST_DBL(0.f)) { in CalcRedValPower()
1763 …while ((fixp_abs(redPeGlobal - desiredPe) > fMultI(FL2FXCONST_DBL(0.05f),desiredPe)) && (iter < ma… in FDKaacEnc_adaptThresholdsToPe()
1909 (fMultI(FL2FXCONST_DBL(0.15f),desiredPe) + desiredPe), in FDKaacEnc_adaptThresholdsToPe()
2050 …IXP_DBL minFacHi = FL2FXCONST_DBL(0.3f), maxFacHi = (FIXP_DBL)MAXVAL_DBL, minFacLo = FL2FXCONST_DB… in FDKaacEnc_adjustPeMinMax()
2053 INT minDiff_fix = fMultI(FL2FXCONST_DBL(0.1666666667f), currPe); in FDKaacEnc_adjustPeMinMax()
2261 FIXP_DBL POINT8 = FL2FXCONST_DBL(0.8f); in FDKaacEnc_AdjThrInit()
2262 FIXP_DBL POINT6 = FL2FXCONST_DBL(0.6f); in FDKaacEnc_AdjThrInit()
2299 atsElem->chaosMeasureOld = FL2FXCONST_DBL(0.3f); in FDKaacEnc_AdjThrInit()
2324 msaParam->maxRed = FL2FXCONST_DBL(0.00390625f); /* 0.25f/64.0f */ in FDKaacEnc_AdjThrInit()
2326 msaParam->startRatio = FL2FXCONST_DBL(0.05190512648f); /* ld64(10.0f) */ in FDKaacEnc_AdjThrInit()
2331 msaParam->redRatioFac = FL2FXCONST_DBL(-0.375f); /* -0.0375f * 10.0f */ in FDKaacEnc_AdjThrInit()
2333 msaParam->redOffs = FL2FXCONST_DBL(0.021484375); /* 1.375f/64.0f */ in FDKaacEnc_AdjThrInit()
2336 atsElem->peCorrectionFactor_m = FL2FXCONST_DBL(0.5f); /* 1.0 */ in FDKaacEnc_AdjThrInit()
2376 …(FDKaacEnc_bits2pe2(bitsLast, fMult(FL2FXCONST_DBL(1.2f/2.f), bits2PeFactor_m), bits2PeFactor_e+1)… in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2377 …(FDKaacEnc_bits2pe2(bitsLast, fMult(FL2FXCONST_DBL(0.65f), bits2PeFactor_m), bits2PeFactor_e )… in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2387 …leValue(fixMin( fMult(FL2FXCONST_DBL(1.1f/2.f), newFac), scaleValue(FL2FXCONST_DBL( 1.f/2.f), -sc… in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2390 …ixMax( fixMin( scaleValue(fMult(FL2FXCONST_DBL(0.9f/2.f), newFac), scaling), FL2FXCONST_DBL(1.15f/… in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2393 if ( ((newFac > FL2FXCONST_DBL(1.f/2.f)) && (corrFac < FL2FXCONST_DBL(1.f/2.f))) in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2394 || ((newFac < FL2FXCONST_DBL(1.f/2.f)) && (corrFac > FL2FXCONST_DBL(1.f/2.f)))) in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2396 corrFac = FL2FXCONST_DBL(1.f/2.f); in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2400 if ( (corrFac < FL2FXCONST_DBL(1.f/2.f) && newFac < corrFac) in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2401 || (corrFac > FL2FXCONST_DBL(1.f/2.f) && newFac > corrFac) ) in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2403 corrFac = fMult(FL2FXCONST_DBL(0.85f), corrFac) + fMult(FL2FXCONST_DBL(0.15f), newFac); in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2406 corrFac = fMult(FL2FXCONST_DBL(0.7f), corrFac) + fMult(FL2FXCONST_DBL(0.3f), newFac); in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2409 corrFac = fixMax( fixMin( corrFac, FL2FXCONST_DBL(1.15f/2.f) ), FL2FXCONST_DBL(0.85/2.f) ); in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2415 *correctionFac_m = FL2FXCONST_DBL(1.f/2.f); in FDKaacEnc_FDKaacEnc_calcPeCorrection()
2433 const FIXP_DBL amp = FL2FXCONST_DBL(0.005); in FDKaacEnc_calcPeCorrectionLowBitRes()
2434 const FIXP_DBL maxDiff = FL2FXCONST_DBL(0.25f); in FDKaacEnc_calcPeCorrectionLowBitRes()
2473 …orrectionFac_m = FDKmax(FDKmin((*correctionFac_m)+diff, FL2FXCONST_DBL(1.0f/2.f)), FL2FXCONST_DBL(… in FDKaacEnc_calcPeCorrectionLowBitRes()
2477 *correctionFac_m = FL2FXCONST_DBL(0.75/2.f); in FDKaacEnc_calcPeCorrectionLowBitRes()