/external/aac/libDRCdec/src/ |
D | drcDec_rom.cpp | 144 FL2FXCONST_DBL(1.0000000000 / (float)(1 << 2)), 145 FL2FXCONST_DBL(0.9440608763 / (float)(1 << 2)), 146 FL2FXCONST_DBL(0.8912509381 / (float)(1 << 2)), 147 FL2FXCONST_DBL(0.8413951416 / (float)(1 << 2)), 148 FL2FXCONST_DBL(0.7943282347 / (float)(1 << 2)), 149 FL2FXCONST_DBL(0.7498942093 / (float)(1 << 2)), 150 FL2FXCONST_DBL(0.7079457844 / (float)(1 << 2)), 151 FL2FXCONST_DBL(0.6683439176 / (float)(1 << 2)), 152 FL2FXCONST_DBL(0.6309573445 / (float)(1 << 2)), 153 FL2FXCONST_DBL(0.5956621435 / (float)(1 << 2)), [all …]
|
/external/aac/libAACenc/src/ |
D | aacEnc_rom.cpp | 865 FL2FXCONST_DBL(0.3968502629920499), FL2FXCONST_DBL(0.3978840634868335), 866 FL2FXCONST_DBL(0.3989185359354711), FL2FXCONST_DBL(0.3999536794661432), 867 FL2FXCONST_DBL(0.4009894932098531), FL2FXCONST_DBL(0.4020259763004115), 868 FL2FXCONST_DBL(0.4030631278744227), FL2FXCONST_DBL(0.4041009470712695), 869 FL2FXCONST_DBL(0.4051394330330996), FL2FXCONST_DBL(0.4061785849048110), 870 FL2FXCONST_DBL(0.4072184018340380), FL2FXCONST_DBL(0.4082588829711372), 871 FL2FXCONST_DBL(0.4093000274691739), FL2FXCONST_DBL(0.4103418344839078), 872 FL2FXCONST_DBL(0.4113843031737798), FL2FXCONST_DBL(0.4124274326998980), 873 FL2FXCONST_DBL(0.4134712222260245), FL2FXCONST_DBL(0.4145156709185620), 874 FL2FXCONST_DBL(0.4155607779465400), FL2FXCONST_DBL(0.4166065424816022), [all …]
|
D | intensity.cpp | 113 #define IS_CORR_THRESH FL2FXCONST_DBL(0.95f) 118 #define IS_TOTAL_ERROR_THRESH FL2FXCONST_DBL(0.04f) 119 #define IS_LOCAL_ERROR_THRESH FL2FXCONST_DBL(0.01f) 125 FL2FXCONST_DBL(2.0f / (1 << IS_DIRECTION_DEVIATION_THRESH_SF)) 129 #define IS_REGION_MIN_LOUDNESS FL2FXCONST_DBL(0.1f) 139 #define IS_LEFT_RIGHT_RATIO_THRESH FL2FXCONST_DBL(0.7f) 202 maxSpc = FL2FXCONST_DBL(0.0); in calcSfbMaxScale() 207 sfbMaxScale = (maxSpc == FL2FXCONST_DBL(0.0)) ? (DFRACT_BITS - 2) in calcSfbMaxScale() 286 overallLoudness[grpCounter] = FL2FXCONST_DBL(0.0f); in FDKaacEnc_prepareIntensityDecision() 294 FL2FXCONST_DBL(60.f / (1 << (REAL_SCALE_SF + LD_DATA_SHIFT))), in FDKaacEnc_prepareIntensityDecision() [all …]
|
D | metadata_compressor.cpp | 108 #define FIXP_ILOG2_DIV2 (FL2FXCONST_DBL(ILOG2 / 2)) 228 FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), 229 FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), 230 FL2FXCONST_DBL(((1.f / 5.f) - 1.f)), FL2FXCONST_DBL(((1.f / 5.f) - 1.f))}; 232 FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), 233 FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), FL2FXCONST_DBL(((1.f / 1.f) - 1.f)), 234 FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), FL2FXCONST_DBL(((1.f / 2.f) - 1.f))}; 236 FL2FXCONST_DBL(((1.f / 20.f) - 1.f)), FL2FXCONST_DBL(((1.f / 20.f) - 1.f)), 237 FL2FXCONST_DBL(((1.f / 20.f) - 1.f)), FL2FXCONST_DBL(((1.f / 2.f) - 1.f)), 238 FL2FXCONST_DBL(((1.f / 20.f) - 1.f)), FL2FXCONST_DBL(((1.f / 20.f) - 1.f))}; [all …]
|
D | adj_thr.cpp | 157 #define FL2B2PE(value) FL2FXCONST_DBL((value) / (1 << 2)) 323 FIXP_DBL bit2PE_m = FL2FXCONST_DBL(1.18f / (1 << (1))); in FDKaacEnc_InitBits2PeFactor() 347 FL2FXCONST_DBL(0.0f); /* bits2PE factor entry in table that is the in FDKaacEnc_InitBits2PeFactor() 349 FIXP_DBL stopPF = FL2FXCONST_DBL(0.0f); /* bits2PE factor entry in table in FDKaacEnc_InitBits2PeFactor() 352 FIXP_DBL slope = FL2FXCONST_DBL( in FDKaacEnc_InitBits2PeFactor() 384 const FIXP_DBL maxBit2PE = FL2FXCONST_DBL(3.f / 4.f); in FDKaacEnc_InitBits2PeFactor() 394 if (bit2PE >= (FL2FXCONST_DBL(0.35f) >> 2)) { in FDKaacEnc_InitBits2PeFactor() 403 if (bit2PE_m >= (FL2FXCONST_DBL(0.6f)) >> bit2PE_e) { in FDKaacEnc_InitBits2PeFactor() 414 bit2PE_m += (FL2FXCONST_DBL(0.4f)) >> bit2PE_e; in FDKaacEnc_InitBits2PeFactor() 416 bit2PE_m += (FL2FXCONST_DBL(0.3f)) >> bit2PE_e; in FDKaacEnc_InitBits2PeFactor() [all …]
|
D | sf_estim.cpp | 117 static const FIXP_DBL PE_C1 = FL2FXCONST_DBL( 119 static const FIXP_DBL PE_C2 = FL2FXCONST_DBL( 121 static const FIXP_DBL PE_C3 = FL2FXCONST_DBL(0.5593573f); /* 1-C2/C1 */ 143 formFactor = FL2FXCONST_DBL(0.0f); in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel() 154 sfbFormFactorLdData[sfbGrp + sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_FDKaacEnc_CalcFormFactorChannel() 192 FL2FXCONST_DBL(0.109375); /* AS_PE_FAC_SHIFT*ld64(2) */ in FDKaacEnc_calcSfbRelevantLines() 252 FIXP_DBL specPe = FL2FXCONST_DBL(0.0f); in FDKaacEnc_calcSingleSpecPe() 258 ldRatio = sfbConstPePart - fMult(FL2FXCONST_DBL(0.375f), scfFract); in FDKaacEnc_calcSingleSpecPe() 261 specPe = fMult(FL2FXCONST_DBL(0.7f), fMult(nLines, ldRatio)); in FDKaacEnc_calcSingleSpecPe() 263 specPe = fMult(FL2FXCONST_DBL(0.7f), in FDKaacEnc_calcSingleSpecPe() [all …]
|
D | band_nrg.cpp | 149 FIXP_DBL maxNrgLd = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_CheckBandEnergyOptim() 167 if (bandEnergyLdData[i] != FL2FXCONST_DBL(-1.0f)) { in FDKaacEnc_CheckBandEnergyOptim() 168 bandEnergyLdData[i] -= scale * FL2FXCONST_DBL(2.0 / 64); in FDKaacEnc_CheckBandEnergyOptim() 199 FIXP_DBL maxNrgLd = FL2FXCONST_DBL(0.0f); in FDKaacEnc_CalcBandEnergyOptimLong() 206 FIXP_DBL tmp = FL2FXCONST_DBL(0.0); in FDKaacEnc_CalcBandEnergyOptimLong() 227 FIXP_DBL scaleDiff = (sfbMaxScaleSpec[i] - 4) * FL2FXCONST_DBL(2.0 / 64); in FDKaacEnc_CalcBandEnergyOptimLong() 230 ((FL2FXCONST_DBL(-1.f) >> 1) + (scaleDiff >> 1))) in FDKaacEnc_CalcBandEnergyOptimLong() 232 : FL2FXCONST_DBL(-1.f); in FDKaacEnc_CalcBandEnergyOptimLong() 244 while (maxNrgLd > FL2FXCONST_DBL(0.0f)) { in FDKaacEnc_CalcBandEnergyOptimLong() 245 maxNrgLd -= FL2FXCONST_DBL(2.0 / 64); in FDKaacEnc_CalcBandEnergyOptimLong() [all …]
|
D | channel_map.cpp | 288 it_cnt, FL2FXCONST_DBL(0.4f)); in FDKaacEnc_InitChannelMapping() 290 it_cnt, FL2FXCONST_DBL(0.6f)); in FDKaacEnc_InitChannelMapping() 296 it_cnt, FL2FXCONST_DBL(0.3f)); in FDKaacEnc_InitChannelMapping() 298 it_cnt, FL2FXCONST_DBL(0.4f)); in FDKaacEnc_InitChannelMapping() 300 it_cnt, FL2FXCONST_DBL(0.3f)); in FDKaacEnc_InitChannelMapping() 306 it_cnt, FL2FXCONST_DBL(0.26f)); in FDKaacEnc_InitChannelMapping() 308 it_cnt, FL2FXCONST_DBL(0.37f)); in FDKaacEnc_InitChannelMapping() 310 it_cnt, FL2FXCONST_DBL(0.37f)); in FDKaacEnc_InitChannelMapping() 316 it_cnt, FL2FXCONST_DBL(0.24f)); in FDKaacEnc_InitChannelMapping() 318 it_cnt, FL2FXCONST_DBL(0.35f)); in FDKaacEnc_InitChannelMapping() [all …]
|
D | quantize.cpp | 120 FIXP_DBL k = FL2FXCONST_DBL(0.0f); in FDKaacEnc_quantizeLines() 126 k = FL2FXCONST_DBL(0.23f) >> kShift; in FDKaacEnc_quantizeLines() 128 k = FL2FXCONST_DBL(-0.0946f + 0.5f) >> kShift; in FDKaacEnc_quantizeLines() 133 if (accu < FL2FXCONST_DBL(0.0f)) { in FDKaacEnc_quantizeLines() 150 } else if (accu > FL2FXCONST_DBL(0.0f)) { in FDKaacEnc_quantizeLines() 264 mdctSpectrum[line] = FL2FXCONST_DBL(0.0f); in FDKaacEnc_invQuantizeLines() 320 xfsf = FL2FXCONST_DBL(0.0f); in FDKaacEnc_calcSfbDist() 328 return FL2FXCONST_DBL(0.0f); in FDKaacEnc_calcSfbDist() 369 FIXP_DBL energy = FL2FXCONST_DBL(0.0f); in FDKaacEnc_calcSfbQuantEnergyAndDist() 370 FIXP_DBL distortion = FL2FXCONST_DBL(0.0f); in FDKaacEnc_calcSfbQuantEnergyAndDist() [all …]
|
D | noisedet.cpp | 121 if (refVal <= FL2FXCONST_DBL(0.0)) in FDKaacEnc_fuzzyIsSmaller() 181 fhelp1 = fhelp2 = fhelp3 = fhelp4 = FL2FXCONST_DBL(0.0f); in FDKaacEnc_noiseDetect() 212 FL2FXCONST_DBL(0.495), /* 1/2 * loLim (0.99f/2) */ in FDKaacEnc_noiseDetect() 213 FL2FXCONST_DBL(0.505)); /* 1/2 * hiLim (1.01f/2) */ in FDKaacEnc_noiseDetect() 226 testVal, refVal, FL2FXCONST_DBL(0.45f), /* 1/2 * loLim (0.9f/2) */ in FDKaacEnc_noiseDetect() 227 FL2FXCONST_DBL(0.55f)); /* 1/2 * hiLim (1.1f/2) */ in FDKaacEnc_noiseDetect()
|
/external/aac/libFDK/src/ |
D | FDK_trigFcts.cpp | 122 FL2FXCONST_DBL(7.775862990872099e-001), 123 FL2FXCONST_DBL(7.814919928673978e-001), 124 FL2FXCONST_DBL(7.834450483314648e-001), 125 FL2FXCONST_DBL(7.844216021392089e-001), 126 FL2FXCONST_DBL(7.849098823026687e-001), 127 FL2FXCONST_DBL(7.851540227918509e-001), 128 FL2FXCONST_DBL(7.852760930873737e-001), 129 FL2FXCONST_DBL(7.853371282415015e-001), 130 FL2FXCONST_DBL(7.853676458193612e-001), 131 FL2FXCONST_DBL(7.853829046083906e-001), [all …]
|
D | FDK_hybrid.cpp | 136 #define FL2FXCONST_HTB FL2FXCONST_DBL 481 FIXP_DBL accu1 = FL2FXCONST_DBL(0.f); in FDKhybridSynthesisApply() 482 FIXP_DBL accu2 = FL2FXCONST_DBL(0.f); in FDKhybridSynthesisApply() 558 FL2FXCONST_DBL(0.f), FL2FXCONST_DBL(-0.70710678118655f), in fourChannelFiltering() 559 FL2FXCONST_DBL(-1.f), FL2FXCONST_DBL(-0.70710678118655f), in fourChannelFiltering() 560 FL2FXCONST_DBL(0.f), FL2FXCONST_DBL(0.70710678118655f), in fourChannelFiltering() 561 FL2FXCONST_DBL(1.f), FL2FXCONST_DBL(0.70710678118655f), in fourChannelFiltering() 562 FL2FXCONST_DBL(0.f), FL2FXCONST_DBL(-0.70710678118655f), in fourChannelFiltering() 563 FL2FXCONST_DBL(-1.f), FL2FXCONST_DBL(-0.70710678118655f), in fourChannelFiltering() 564 FL2FXCONST_DBL(0.f)}; in fourChannelFiltering() [all …]
|
/external/aac/libSBRdec/src/ |
D | hbe.cpp | 136 {FL2FXCONST_DBL(0.39840335f), FL2FXCONST_DBL(0.39840335f), 137 FL2FXCONST_DBL(-0.39840335f)}, 138 {FL2FXCONST_DBL(0.39840335f), FL2FXCONST_DBL(-0.39840335f), 139 FL2FXCONST_DBL(-0.39840335f)}, 140 {FL2FXCONST_DBL(-0.39840335f), FL2FXCONST_DBL(-0.39840335f), 141 FL2FXCONST_DBL(0.39840335f)}, 142 {FL2FXCONST_DBL(-0.39840335f), FL2FXCONST_DBL(0.39840335f), 143 FL2FXCONST_DBL(0.39840335f)}}; 146 FL2FXCONST_DBL(0.39840335f), FL2FXCONST_DBL(-0.39840335f), 147 FL2FXCONST_DBL(-0.39840335f), FL2FXCONST_DBL(0.39840335f)}; [all …]
|
D | sbr_rom.cpp | 180 {FL2FXCONST_DBL(0.00f), FL2FXCONST_DBL(0.6f), FL2FXCONST_DBL(0.75f), 181 FL2FXCONST_DBL(0.90f), FL2FXCONST_DBL(0.98f)}, /* < 5000 */ 182 {FL2FXCONST_DBL(0.00f), FL2FXCONST_DBL(0.6f), FL2FXCONST_DBL(0.75f), 183 FL2FXCONST_DBL(0.90f), FL2FXCONST_DBL(0.98f)}, /* 5000 < 6000 */ 184 {FL2FXCONST_DBL(0.00f), FL2FXCONST_DBL(0.6f), FL2FXCONST_DBL(0.75f), 185 FL2FXCONST_DBL(0.90f), FL2FXCONST_DBL(0.98f)}, /* 6000 < 6500 */ 186 {FL2FXCONST_DBL(0.00f), FL2FXCONST_DBL(0.6f), FL2FXCONST_DBL(0.75f), 187 FL2FXCONST_DBL(0.90f), FL2FXCONST_DBL(0.98f)}, /* 6500 < 7000 */ 188 {FL2FXCONST_DBL(0.00f), FL2FXCONST_DBL(0.6f), FL2FXCONST_DBL(0.75f), 189 FL2FXCONST_DBL(0.90f), FL2FXCONST_DBL(0.98f)}, /* 7000 < 7500 */ [all …]
|
/external/aac/libSACdec/src/ |
D | sac_calcM1andM2.cpp | 114 ((FIXP_DBL)FL2FXCONST_DBL(0.70710678118f)) /* FDKsqrt(2.0) scaled by 0.5 */ 250 FIXP_DBL H11re[MAX_PARAMETER_BANDS] = {FL2FXCONST_DBL(0.0f)}; in SpatialDecCalculateM1andM2_212() 251 FIXP_DBL H12re[MAX_PARAMETER_BANDS] = {FL2FXCONST_DBL(0.0f)}; in SpatialDecCalculateM1andM2_212() 252 FIXP_DBL H21re[MAX_PARAMETER_BANDS] = {FL2FXCONST_DBL(0.0f)}; in SpatialDecCalculateM1andM2_212() 253 FIXP_DBL H22re[MAX_PARAMETER_BANDS] = {FL2FXCONST_DBL(0.0f)}; in SpatialDecCalculateM1andM2_212() 254 FIXP_DBL H11im[MAX_PARAMETER_BANDS] = {FL2FXCONST_DBL(0.0f)}; in SpatialDecCalculateM1andM2_212() 255 FIXP_DBL H21im[MAX_PARAMETER_BANDS] = {FL2FXCONST_DBL(0.0f)}; in SpatialDecCalculateM1andM2_212() 373 H11[band] = H21[band] = H12[band] = H22[band] = FL2FXCONST_DBL(0.f); in param2UMX_PS__FDK() 410 FL2FXCONST_DBL(0.530542153566195f), 411 FL2FXCONST_DBL(0.719796896243647f), [all …]
|
D | sac_stp.cpp | 121 #define SF_SCALE_LD64 FL2FXCONST_DBL(0.03125) /* LD64((1<<SF_SCALE))*/ 122 #define STP_LPF_COEFF1__FDK FL2FXCONST_DBL(0.950f) /* 0.95 */ 123 #define ONE_MINUS_STP_LPF_COEFF1__FDK FL2FXCONST_DBL(0.05f) /* 1.0 - 0.95 */ 124 #define STP_LPF_COEFF2__FDK FL2FXCONST_DBL(0.450f) /* 0.45 */ 126 FL2FXCONST_DBL(1.0f - 0.450f) /* 1.0 - 0.45 */ 128 FL2FXCONST_DBL(2.82f / (float)(1 << SF_SCALE)) /* scaled by SF_SCALE */ 130 FL2FXCONST_DBL(1.0f / 2.82f / (float)(1 << SF_SCALE)) /* scaled by SF_SCALE \ 133 FL2FXCONST_DBL(ABS_THR / \ 136 FL2FXCONST_DBL(ABS_THR * 32.0f * 32.0f / \ 139 FL2FXCONST_DBL(3.02222222222 / (1 << SF_SCALE)) /* see 4. below */ [all …]
|
D | sac_smoothing.cpp | 180 one_minus_delta__FDK = FL2FXCONST_DBL(0.0f); in SpatialDecSmoothM1andM2() 181 else if (delta__FDK == FL2FXCONST_DBL(0.0f)) in SpatialDecSmoothM1andM2() 184 one_minus_delta__FDK = (FL2FXCONST_DBL(0.5f) - (delta__FDK >> 1)) << 1; in SpatialDecSmoothM1andM2() 242 delta__FDK = (FIXP_DBL)((INT)(FL2FXCONST_DBL(0.0078125f)) * dSlots); in SpatialDecSmoothOPD() 245 one_minus_delta__FDK = FL2FXCONST_DBL(0.0f); in SpatialDecSmoothOPD() 246 else if (delta__FDK == FL2FXCONST_DBL(0.0f)) in SpatialDecSmoothOPD() 249 one_minus_delta__FDK = (FL2FXCONST_DBL(0.5f) - (delta__FDK >> 1)) << 1; in SpatialDecSmoothOPD() 274 if (fixp_abs(tmp) > fMult((quantCoarse ? FL2FXCONST_DBL(50.f / 180.f) in SpatialDecSmoothOPD() 275 : FL2FXCONST_DBL(25.f / 180.f)), in SpatialDecSmoothOPD()
|
/external/aac/libSBRenc/src/ |
D | mh_det.cpp | 117 FL2FXCONST_DBL(20.0f * RELAXATION_FLOAT), /*!< thresHoldDiff */ 118 FL2FXCONST_DBL(1.26f * RELAXATION_FLOAT), /*!< thresHoldDiffGuide */ 119 FL2FXCONST_DBL(15.0f * RELAXATION_FLOAT), /*!< thresHoldTone */ 120 FL2FXCONST_DBL((1.0f / 15.0f) * 122 FL2FXCONST_DBL(1.26f * RELAXATION_FLOAT), /*!< thresHoldToneGuide */ 123 FL2FXCONST_DBL(0.3f) >> SFM_SHIFT, /*!< sfmThresSbr */ 124 FL2FXCONST_DBL(0.1f) >> SFM_SHIFT, /*!< sfmThresOrig */ 125 FL2FXCONST_DBL(0.3f), /*!< decayGuideOrig */ 126 FL2FXCONST_DBL(0.5f), /*!< decayGuideDiff */ 127 FL2FXCONST_DBL(-0.000112993269), [all …]
|
D | invf_est.cpp | 272 detectorValues->avgNrg = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 289 origQuota = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 290 sbrQuota = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 304 origQuotaMeanStrongest = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 305 sbrQuotaMeanStrongest = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 347 detectorValues->origQuotaMeanFilt = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 348 detectorValues->sbrQuotaMeanFilt = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 349 detectorValues->origQuotaMeanStrongestFilt = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 350 detectorValues->sbrQuotaMeanStrongestFilt = FL2FXCONST_DBL(0.0f); in calculateDetectorValues() 437 (fMultDiv2(FL2FXCONST_DBL(2.f * 0.375f), in decisionAlgorithm() [all …]
|
D | tran_det.cpp | 144 delta_sum = FL2FXCONST_DBL(0.0f); in spectralChange() 152 pos_weight = FL2FXCONST_DBL(0.5f) - (len1 * GetInvInt(len1 + len2)); in spectralChange() 197 FIXP_DBL accu1 = FL2FXCONST_DBL(0.f); in spectralChange() 198 FIXP_DBL accu2 = FL2FXCONST_DBL(0.f); in spectralChange() 217 #define LN2 FL2FXCONST_DBL(0.6931471806f) /* ln(2) */ in spectralChange() 269 FIXP_DBL accu1 = FL2FXCONST_DBL(0.0f); in addLowbandEnergies() 270 FIXP_DBL accu2 = FL2FXCONST_DBL(0.0f); in addLowbandEnergies() 330 FIXP_DBL accu = FL2FXCONST_DBL(0.0f); in addHighbandEnergies() 342 accu = FL2FXCONST_DBL(0.0f); in addHighbandEnergies() 362 nrgTotal = FL2FXCONST_DBL(0.0f); in addHighbandEnergies() [all …]
|
D | nf_est.cpp | 170 accu = FL2FXCONST_DBL(0.0f); in smoothingOfNoiseLevels() 220 FIXP_DBL meanOrig = FL2FXCONST_DBL(0.0f), meanSbr = FL2FXCONST_DBL(0.0f), in qmfBasedNoiseFloorDetection() 234 accu = FL2FXCONST_DBL(0.0f); in qmfBasedNoiseFloorDetection() 241 accu = FL2FXCONST_DBL(0.0f); in qmfBasedNoiseFloorDetection() 250 accu = FL2FXCONST_DBL(0.0f); in qmfBasedNoiseFloorDetection() 257 accu = FL2FXCONST_DBL(0.0f); in qmfBasedNoiseFloorDetection() 266 if (meanOrig <= FL2FXCONST_DBL(0.000976562f * RELAXATION_FLOAT) && in qmfBasedNoiseFloorDetection() 267 meanSbr <= FL2FXCONST_DBL(0.000976562f * RELAXATION_FLOAT)) { in qmfBasedNoiseFloorDetection() 268 meanOrig = FL2FXCONST_DBL(101.5936673f * RELAXATION_FLOAT); in qmfBasedNoiseFloorDetection() 269 meanSbr = FL2FXCONST_DBL(101.5936673f * RELAXATION_FLOAT); in qmfBasedNoiseFloorDetection() [all …]
|
D | env_est.cpp | 153 FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), in FDKsbrEnc_GetTonality() 154 FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f)}; in FDKsbrEnc_GetTonality() 158 FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), in FDKsbrEnc_GetTonality() 159 FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f)}; in FDKsbrEnc_GetTonality() 160 FIXP_DBL globalTonality = FL2FXCONST_DBL(0.0f); in FDKsbrEnc_GetTonality() 171 energyBand[b] = FL2FXCONST_DBL(0.0f); in FDKsbrEnc_GetTonality() 221 tonalityBand[e] = FL2FXCONST_DBL(0.0f); in FDKsbrEnc_GetTonality() 254 FIXP_DBL max_val = FL2FXCONST_DBL(0.0f); in FDKsbrEnc_getEnergyFromCplxQmfData() 352 FIXP_DBL max_val = FL2FXCONST_DBL(0.0f); in FDKsbrEnc_getEnergyFromCplxQmfDataFull() 489 if ((FIXP_DBL)NoiseLevels[i] > FL2FXCONST_DBL(0.46875f)) { in sbrNoiseFloorLevelsQuantisation() [all …]
|
/external/aac/libFDK/include/ |
D | fixpoint_math.h | 124 FL2FXCONST_DBL(-1.0), FL2FXCONST_DBL(-1.0 / 2.0), 125 FL2FXCONST_DBL(-1.0 / 3.0), FL2FXCONST_DBL(-1.0 / 4.0), 126 FL2FXCONST_DBL(-1.0 / 5.0), FL2FXCONST_DBL(-1.0 / 6.0), 127 FL2FXCONST_DBL(-1.0 / 7.0), FL2FXCONST_DBL(-1.0 / 8.0), 128 FL2FXCONST_DBL(-1.0 / 9.0), FL2FXCONST_DBL(-1.0 / 10.0)}; 203 int set_zero = (x < FL2FXCONST_DBL(-31.0 / 64.0)) ? 0 : 1; in CalcInvLdData() 204 int set_max = (x >= FL2FXCONST_DBL(31.0 / 64.0)) | (x == FL2FXCONST_DBL(0.0)); in CalcInvLdData() 210 int exp = fMin(31, ((x > FL2FXCONST_DBL(0.0f)) ? (31 - (int)(x >> 25)) in CalcInvLdData() 298 if (val == FL2FXCONST_DBL(0.0)) { in invSqrtNorm2() 307 FDK_ASSERT(val > FL2FXCONST_DBL(0.0)); in invSqrtNorm2() [all …]
|
/external/aac/libPCMutils/src/ |
D | limiter.cpp | 140 attackConst = fPow(FL2FXCONST_DBL(0.1f), 0, exponent, 0, &e_ans); in pcmLimiter_Create() 145 releaseConst = fPow(FL2FXCONST_DBL(0.1f), 0, exponent, 0, &e_ans); in pcmLimiter_Create() 176 FIXP_DBL minGain = FL2FXCONST_DBL(1.0f / (1 << 1)); in pcmLimiter_Apply() 278 gain = FL2FXCONST_DBL(1.0f / (1 << 1)); in pcmLimiter_Apply() 312 if (gain < FL2FXCONST_DBL(1.0f / (1 << 1))) { in pcmLimiter_Apply() 384 limiter->cor = FL2FXCONST_DBL(1.0f / (1 << 1)); in pcmLimiter_Reset() 385 limiter->smoothState0 = FL2FXCONST_DBL(1.0f / (1 << 1)); in pcmLimiter_Reset() 386 limiter->minGain = FL2FXCONST_DBL(1.0f / (1 << 1)); in pcmLimiter_Reset() 389 FL2FXCONST_DBL(1.0f / (1 << TDL_GAIN_SCALING)); in pcmLimiter_Reset() 391 FL2FXCONST_DBL(1.0f / (1 << TDL_GAIN_SCALING)); in pcmLimiter_Reset() [all …]
|
/external/aac/libSACenc/src/ |
D | sacenc_dmx_tdom_enh.cpp | 115 #define PI_M (FL2FXCONST_DBL(PI_FLT / (1 << PI_E))) 118 #define ALPHA_M (FL2FXCONST_DBL(ALPHA_FLT * (1 << ALPHA_E))) 200 if (src1_m == FL2FXCONST_DBL(0.f)) { in fixpAdd() 203 } else if (src2_m == FL2FXCONST_DBL(0.f)) { in fixpAdd() 233 if ((value1 != FL2FXCONST_DBL(0.f)) && (*pValue2 != FL2FXCONST_DBL(0.f))) { in fixpAddNorm() 297 hEnhancedTimeDmx->prev_XNrg_m = FL2FXCONST_DBL(0.f); in fdk_sacenc_init_enhancedTimeDomainDmx() 369 partialL = partialR = partialX = FL2FXCONST_DBL(0.f); in fdk_sacenc_apply_enhancedTimeDomainDmx() 480 fMult(FL2FXCONST_DBL(1.f - ALPHA_FLT), gainLeft_m); in fdk_sacenc_apply_enhancedTimeDomainDmx() 482 fMult(FL2FXCONST_DBL(1.f - ALPHA_FLT), gainRight_m); in fdk_sacenc_apply_enhancedTimeDomainDmx() 509 if (Icc_m >= FL2FXCONST_DBL(0.f)) { in calculateRatio() [all …]
|