/external/aac/libFDK/include/ |
D | fixpoint_math.h | 104 FIXP_DBL CalcLdData(FIXP_DBL op); 106 void LdDataVector(FIXP_DBL *srcVector, FIXP_DBL *destVector, INT number); 108 FIXP_DBL CalcInvLdData(FIXP_DBL op); 112 FIXP_DBL CalcLdInt(INT i); 116 inline FIXP_DBL sqrtFixp_lookup(FIXP_DBL x) in sqrtFixp_lookup() 130 inline FIXP_DBL sqrtFixp_lookup(FIXP_DBL x, INT *x_e) in sqrtFixp_lookup() 135 if (x == (FIXP_DBL)0) { in sqrtFixp_lookup() 157 return (FIXP_DBL)(LONG)(t>>1); in sqrtFixp_lookup() 162 FIXP_DBL sqrtFixp(FIXP_DBL op); 166 FIXP_DBL invSqrtNorm2(FIXP_DBL op, INT *shift); [all …]
|
D | fixmadd.h | 115 inline FIXP_DBL fixmadddiv2_DD (FIXP_DBL x, const FIXP_DBL a, const FIXP_DBL b) in fixmadddiv2_DD() 120 inline FIXP_DBL fixmadddiv2_SD (FIXP_DBL x, const FIXP_SGL a, const FIXP_DBL b) { in fixmadddiv2_SD() 130 inline FIXP_DBL fixmadddiv2_DS (FIXP_DBL x, const FIXP_DBL a, const FIXP_SGL b) { in fixmadddiv2_DS() 140 inline FIXP_DBL fixmadddiv2_SS (FIXP_DBL x, const FIXP_SGL a, const FIXP_SGL b) in fixmadddiv2_SS() 145 inline FIXP_DBL fixmsubdiv2_DD (FIXP_DBL x, const FIXP_DBL a, const FIXP_DBL b) in fixmsubdiv2_DD() 150 inline FIXP_DBL fixmsubdiv2_SD (FIXP_DBL x, const FIXP_SGL a, const FIXP_DBL b) { in fixmsubdiv2_SD() 160 inline FIXP_DBL fixmsubdiv2_DS (FIXP_DBL x, const FIXP_DBL a, const FIXP_SGL b) { in fixmsubdiv2_DS() 170 inline FIXP_DBL fixmsubdiv2_SS (FIXP_DBL x, const FIXP_SGL a, const FIXP_SGL b) in fixmsubdiv2_SS() 177 inline FIXP_DBL fixmadddiv2BitExact_DD (FIXP_DBL x, const FIXP_DBL a, const FIXP_DBL b) { in fixmadddiv2BitExact_DD() 183 inline FIXP_DBL fixmadddiv2BitExact_SD (FIXP_DBL x, const FIXP_SGL a, const FIXP_DBL b) { in fixmadddiv2BitExact_SD() [all …]
|
D | cplx_mul.h | 111 inline void cplxMultDiv2( FIXP_DBL *c_Re, in cplxMultDiv2() 112 FIXP_DBL *c_Im, in cplxMultDiv2() 113 const FIXP_DBL a_Re, in cplxMultDiv2() 114 const FIXP_DBL a_Im, in cplxMultDiv2() 126 inline void cplxMultDiv2( FIXP_DBL *c_Re, in cplxMultDiv2() 127 FIXP_DBL *c_Im, in cplxMultDiv2() 128 const FIXP_DBL a_Re, in cplxMultDiv2() 129 const FIXP_DBL a_Im, in cplxMultDiv2() 139 inline void cplxMultAddDiv2( FIXP_DBL *c_Re, in cplxMultAddDiv2() 140 FIXP_DBL *c_Im, in cplxMultAddDiv2() [all …]
|
D | common_fix.h | 111 #define FIXP_PCM FIXP_DBL 112 #define FX_PCM2FX_DBL(x) ((FIXP_DBL)(x)) 149 typedef LONG FIXP_DBL; typedef 163 (FIXP_DBL)( ( (val) >= 0) ? … 174 #define FX_ACC2FX_DBL(val) ((FIXP_DBL)((val)>>(ACCU_BITS-DFRACT_BITS))) 176 #define FX_SGL2FX_DBL(val) ((FIXP_DBL)((LONG)(val)<<(DFRACT_BITS-FRACT_BITS))) 223 FDK_INLINE FIXP_DBL fAbs(FIXP_DBL x) in fAbs() 238 FDK_INLINE INT fNormz(FIXP_DBL x) in fNormz() 242 FDK_INLINE INT fNorm(FIXP_DBL x) in fNorm() 262 FDK_INLINE FIXP_DBL fMultAddDiv2(FIXP_DBL x, FIXP_DBL a, FIXP_DBL b) in fMultAddDiv2() [all …]
|
D | FDK_trigFcts.h | 98 #define Q(format) ((FIXP_DBL)(((LONG)1) << (format))) 121 FIXP_DBL fixp_atan(FIXP_DBL x); 122 FIXP_DBL fixp_atan2(FIXP_DBL y, FIXP_DBL x); 124 FIXP_DBL fixp_cos(FIXP_DBL x, int scale); 125 FIXP_DBL fixp_sin(FIXP_DBL x, int scale); 144 static inline FIXP_DBL fixp_sin_cos_residual_inline(FIXP_DBL x, int scale, FIXP_DBL *sine, FIXP_DBL… in fixp_sin_cos_residual_inline() 146 FIXP_DBL residual; in fixp_sin_cos_residual_inline() 194 *sine = (FIXP_DBL)((sl * ssign) << (DFRACT_BITS-FRACT_BITS)); in fixp_sin_cos_residual_inline() 195 *cosine = (FIXP_DBL)((cl * csign) << (DFRACT_BITS-FRACT_BITS)); in fixp_sin_cos_residual_inline() 197 *sine = (FIXP_DBL)(sl * ssign); in fixp_sin_cos_residual_inline() [all …]
|
D | autocorr2nd.h | 99 FIXP_DBL r00r; 100 FIXP_DBL r11r; 101 FIXP_DBL r22r; 102 FIXP_DBL r01r; 103 FIXP_DBL r02r; 104 FIXP_DBL r12r; 105 FIXP_DBL r01i; 106 FIXP_DBL r02i; 107 FIXP_DBL r12i; 108 FIXP_DBL det; [all …]
|
D | FDK_hybrid.h | 116 FIXP_DBL *bufferLFReal[3]; /*!< LF real filter states. */ 117 FIXP_DBL *bufferLFImag[3]; /*!< LF imag filter states. */ 118 FIXP_DBL *bufferHFReal[13]; /*!< HF real delay lines. */ 119 FIXP_DBL *bufferHFImag[13]; /*!< HF imag delay lines. */ 127 FIXP_DBL *pLFmemory; /*!< Pointer to LF states buffer. */ 128 FIXP_DBL *pHFmemory; /*!< Pointer to HF states buffer. */ 164 FIXP_DBL *const pLFmemory, 166 FIXP_DBL *const pHFmemory, 218 const FIXP_DBL *const pQmfReal, 219 const FIXP_DBL *const pQmfImag, [all …]
|
/external/aac/libFDK/src/ |
D | fixpoint_math.cpp | 100 static const FIXP_DBL ldCoeff[MAX_LD_PRECISION] = { 142 FIXP_DBL CalcLdData(FIXP_DBL op) in CalcLdData() 152 void LdDataVector( FIXP_DBL *srcVector, in LdDataVector() 153 FIXP_DBL *destVector, in LdDataVector() 180 static const FIXP_DBL pow2Coeff[MAX_POW2_PRECISION] = { 216 FIXP_DBL mul_dbl_sgl_rnd (const FIXP_DBL op1, const FIXP_SGL op2) in mul_dbl_sgl_rnd() 218 FIXP_DBL prod; in mul_dbl_sgl_rnd() 228 return((FIXP_DBL)prod); in mul_dbl_sgl_rnd() 286 LNK_SECTION_CODE_L1 FIXP_DBL CalcInvLdData(FIXP_DBL x) in CalcInvLdData() 300 UINT lookup3f = lookup3 + (UINT)(LONG)fMultDiv2((FIXP_DBL)(0x0016302F),(FIXP_SGL)frac); in CalcInvLdData() [all …]
|
D | FDK_trigFcts.cpp | 103 static const FIXP_DBL f_atan_expand_range[MAXSFTAB-(MINSFTAB-1)] = 132 FIXP_DBL fixp_atan2(FIXP_DBL y, FIXP_DBL x) in fixp_atan2() 134 FIXP_DBL q; in fixp_atan2() 135 FIXP_DBL at; // atan out in fixp_atan2() 136 FIXP_DBL at2; // atan2 out in fixp_atan2() 137 FIXP_DBL ret = FL2FXCONST_DBL(-1.0f); in fixp_atan2() 239 FIXP_DBL fixp_atan(FIXP_DBL x) in fixp_atan() 242 FIXP_DBL result, temp; in fixp_atan() 245 FIXP_DBL ONEBY3P56 = (FIXP_DBL)0x26800000; // 1.0/3.56 in q31 in fixp_atan() 246 FIXP_DBL P281 = (FIXP_DBL)0x00013000; // 0.281 in q18 in fixp_atan() [all …]
|
/external/aac/libAACenc/src/ |
D | psy_configuration.cpp | 288 static FIXP_DBL FDKaacEnc_BarcLineValue(INT noOfLines, INT fftLine, LONG samplingFreq) in FDKaacEnc_BarcLineValue() 291 FIXP_DBL FOURBY3EM4 = (FIXP_DBL)0x45e7b273; /* 4.0/3 * 0.0001 in q43 */ in FDKaacEnc_BarcLineValue() 292 FIXP_DBL PZZZ76 = (FIXP_DBL)0x639d5e4a; /* 0.00076 in q41 */ in FDKaacEnc_BarcLineValue() 293 FIXP_DBL ONE3P3 = (FIXP_DBL)0x35333333; /* 13.3 in q26 */ in FDKaacEnc_BarcLineValue() 294 FIXP_DBL THREEP5 = (FIXP_DBL)0x1c000000; /* 3.5 in q27 */ in FDKaacEnc_BarcLineValue() 295 FIXP_DBL INV480 = (FIXP_DBL)0x44444444; // 1/480 in q39 in FDKaacEnc_BarcLineValue() 297 FIXP_DBL center_freq, x1, x2; in FDKaacEnc_BarcLineValue() 298 FIXP_DBL bvalFFTLine, atan1, atan2; in FDKaacEnc_BarcLineValue() 320 center_freq = (FIXP_DBL)0; in FDKaacEnc_BarcLineValue() 343 FIXP_DBL *sfbPCMquantThreshold) in FDKaacEnc_InitMinPCMResolution() [all …]
|
D | metadata_compressor.cpp | 133 FIXP_DBL x1; 134 FIXP_DBL x2; 135 FIXP_DBL y1; 136 FIXP_DBL y2; 144 FIXP_DBL maxBoostThr[2]; /*!< Max boost threshold. */ 145 FIXP_DBL boostThr[2]; /*!< Boost threshold. */ 146 FIXP_DBL earlyCutThr[2]; /*!< Early cut threshold. */ 147 FIXP_DBL cutThr[2]; /*!< Cut threshold. */ 148 FIXP_DBL maxCutThr[2]; /*!< Max cut threshold. */ 150 FIXP_DBL boostFac[2]; /*!< Precalculated factor for boost compression. */ [all …]
|
D | band_nrg.h | 99 const FIXP_DBL *mdctSpectrum, 105 FIXP_DBL 107 const FIXP_DBL *mdctSpectrum, 111 FIXP_DBL *bandEnergy, 112 FIXP_DBL *bandEnergyLdData, 118 const FIXP_DBL *mdctSpectrum, 122 FIXP_DBL *bandEnergy, 123 FIXP_DBL *bandEnergyLdData 128 const FIXP_DBL *mdctSpectrum, 132 FIXP_DBL *bandEnergy [all …]
|
D | tonality.cpp | 94 static const FIXP_DBL normlog = (FIXP_DBL)0xd977d949; /*FL2FXCONST_DBL(-0.4342944819f * FDKlog(2.0)… 96 static void FDKaacEnc_CalcSfbTonality(FIXP_DBL *RESTRICT spectrum, 98 FIXP_DBL *RESTRICT chaosMeasure, 102 FIXP_DBL *RESTRICT sfbEnergyLD64 ); 105 void FDKaacEnc_CalculateFullTonality(FIXP_DBL *RESTRICT spectrum, in FDKaacEnc_CalculateFullTonality() 107 FIXP_DBL *RESTRICT sfbEnergyLD64, in FDKaacEnc_CalculateFullTonality() 118 FIXP_DBL alpha_0 = FL2FXCONST_DBL(0.25f); /* used in smooth ChaosMeasure */ in FDKaacEnc_CalculateFullTonality() 119 FIXP_DBL alpha_1 = FL2FXCONST_DBL(1.0f-0.25f); /* used in smooth ChaosMeasure */ in FDKaacEnc_CalculateFullTonality() 126 C_ALLOC_SCRATCH_START(chaosMeasurePerLine, FIXP_DBL, (1024)); in FDKaacEnc_CalculateFullTonality() 134 FIXP_DBL tmp = fMultDiv2(alpha_1, chaosMeasurePerLine[j]); in FDKaacEnc_CalculateFullTonality() [all …]
|
D | band_nrg.cpp | 101 FDKaacEnc_CalcSfbMaxScaleSpec(const FIXP_DBL *RESTRICT mdctSpectrum, in FDKaacEnc_CalcSfbMaxScaleSpec() 107 FIXP_DBL maxSpc, tmp; in FDKaacEnc_CalcSfbMaxScaleSpec() 110 maxSpc = (FIXP_DBL)0; in FDKaacEnc_CalcSfbMaxScaleSpec() 115 sfbMaxScaleSpec[i] = (maxSpc==(FIXP_DBL)0) ? (DFRACT_BITS-2) : CntLeadingZeros(maxSpc)-1; in FDKaacEnc_CalcSfbMaxScaleSpec() 126 FIXP_DBL 127 FDKaacEnc_CheckBandEnergyOptim(const FIXP_DBL *RESTRICT mdctSpectrum, in FDKaacEnc_CheckBandEnergyOptim() 131 FIXP_DBL *RESTRICT bandEnergy, in FDKaacEnc_CheckBandEnergyOptim() 132 FIXP_DBL *RESTRICT bandEnergyLdData, in FDKaacEnc_CheckBandEnergyOptim() 136 FIXP_DBL maxNrgLd = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_CheckBandEnergyOptim() 137 FIXP_DBL maxNrg = 0; in FDKaacEnc_CheckBandEnergyOptim() [all …]
|
D | adj_thr_data.h | 98 FIXP_DBL clipSaveLow, clipSaveHigh; 99 FIXP_DBL minBitSave, maxBitSave; 100 FIXP_DBL clipSpendLow, clipSpendHigh; 101 FIXP_DBL minBitSpend, maxBitSpend; 110 FIXP_DBL maxRed; 111 FIXP_DBL startRatio; 112 FIXP_DBL maxRatio; 113 FIXP_DBL redRatioFac; 114 FIXP_DBL redOffs; 123 FIXP_DBL bits2PeFactor_m; [all …]
|
D | intensity.cpp | 139 …FIXP_DBL corr_thresh; /*!< Only set an IS seed it left/right channel correlation i… 141 …FIXP_DBL total_error_thresh; /*!< When expanding the IS region to more SFBs only accept a… 144 …FIXP_DBL local_error_thresh; /*!< When expanding the IS region to more SFBs only accept a… 147 …FIXP_DBL direction_deviation_thresh; /*!< The maximum allowed change of the intensity direction (… 149 …FIXP_DBL is_region_min_loudness; /*!< IS regions need to have a minimal percentage of the ove… 153 …FIXP_DBL left_right_ratio_threshold; /*!< No IS if the panning angle is not far from the middle, … 174 calcSfbMaxScale(const FIXP_DBL *mdctSpectrum, in calcSfbMaxScale() 180 FIXP_DBL maxSpc; in calcSfbMaxScale() 184 FIXP_DBL tmp = fixp_abs((FIXP_DBL)mdctSpectrum[i]); in calcSfbMaxScale() 242 FDKaacEnc_prepareIntensityDecision(const FIXP_DBL *sfbEnergyLeft, in FDKaacEnc_prepareIntensityDecision() [all …]
|
/external/aac/libSBRdec/src/ |
D | psdec.h | 164 #define FIXP_SQRT05 ((FIXP_DBL)0x5a827980) /* 1/SQRT2 */ 168 …FIXP_DBL H11r[NO_IID_GROUPS]; /*!< coefficients of the sub-subband groups … 169 …FIXP_DBL H12r[NO_IID_GROUPS]; /*!< coefficients of the sub-subband groups … 170 …FIXP_DBL H21r[NO_IID_GROUPS]; /*!< coefficients of the sub-subband groups … 171 …FIXP_DBL H22r[NO_IID_GROUPS]; /*!< coefficients of the sub-subband groups … 173 …FIXP_DBL DeltaH11r[NO_IID_GROUPS]; /*!< coefficients of the sub-subband groups … 174 …FIXP_DBL DeltaH12r[NO_IID_GROUPS]; /*!< coefficients of the sub-subband groups … 175 …FIXP_DBL DeltaH21r[NO_IID_GROUPS]; /*!< coefficients of the sub-subband groups … 176 …FIXP_DBL DeltaH22r[NO_IID_GROUPS]; /*!< coefficients of the sub-subband groups … 271 …FIXP_DBL aaQmfDelayBufReal[(NO_QMF_CHANNELS-FIRST_DELAY_SB) + (MAX_DELAY_BUFFER_SIZE-1)*(NO_DELAY_… [all …]
|
D | psdec_hybrid.cpp | 169 static void slotBasedDualChannelFiltering( const FIXP_DBL *pQmfReal, in slotBasedDualChannelFiltering() 170 const FIXP_DBL *pQmfImag, in slotBasedDualChannelFiltering() 172 FIXP_DBL *mHybridReal, in slotBasedDualChannelFiltering() 173 FIXP_DBL *mHybridImag) in slotBasedDualChannelFiltering() 176 FIXP_DBL t1, t3, t5, t6; in slotBasedDualChannelFiltering() 352 #define FIXP_HYB FIXP_DBL 374 static void slotBasedEightChannelFiltering( const FIXP_DBL *pQmfReal, in slotBasedEightChannelFiltering() 375 const FIXP_DBL *pQmfImag, in slotBasedEightChannelFiltering() 377 FIXP_DBL *mHybridReal, in slotBasedEightChannelFiltering() 378 FIXP_DBL *mHybridImag) in slotBasedEightChannelFiltering() [all …]
|
D | psdec_hybrid.h | 123 FIXP_DBL mQmfBufferRealSlot[3][HYBRID_FILTER_LENGTH]; /**< Stores old Qmf samples. */ 124 FIXP_DBL mQmfBufferImagSlot[3][HYBRID_FILTER_LENGTH]; 132 fillHybridDelayLine( FIXP_DBL **fixpQmfReal, 133 FIXP_DBL **fixpQmfImag, 134 FIXP_DBL fixpHybridLeftR[12], 135 FIXP_DBL fixpHybridLeftI[12], 136 FIXP_DBL fixpHybridRightR[12], 137 FIXP_DBL fixpHybridRightI[12], 141 slotBasedHybridAnalysis ( FIXP_DBL *fixpQmfReal, 142 FIXP_DBL *fixpQmfImag, [all …]
|
/external/aac/libFDK/include/arm/ |
D | fixmadd_arm.h | 101 inline FIXP_DBL fixmadddiv2_DD (FIXP_DBL x, const FIXP_DBL a, const FIXP_DBL b) { in fixmadddiv2_DD() 109 inline FIXP_DBL fixmsubdiv2_DD (FIXP_DBL x, const FIXP_DBL a, const FIXP_DBL b) { in fixmsubdiv2_DD() 117 inline FIXP_DBL fixmadddiv2_DD (FIXP_DBL x, const FIXP_DBL a, const FIXP_DBL b) { in fixmadddiv2_DD() 130 inline FIXP_DBL fixmadddiv2_DS (FIXP_DBL x, const FIXP_DBL a, const FIXP_SGL b) { in fixmadddiv2_DS() 144 inline FIXP_DBL fixmsubdiv2BitExact_DD (FIXP_DBL x, const FIXP_DBL a, const FIXP_DBL b) { in fixmsubdiv2BitExact_DD() 152 inline FIXP_DBL fixmsubdiv2BitExact_DS (FIXP_DBL x, const FIXP_DBL a, const FIXP_SGL b) { in fixmsubdiv2BitExact_DS()
|
D | cplx_mul.h | 104 inline void cplxMultDiv2( FIXP_DBL *c_Re, in cplxMultDiv2() 105 FIXP_DBL *c_Im, in cplxMultDiv2() 106 const FIXP_DBL a_Re, in cplxMultDiv2() 107 const FIXP_DBL a_Im, in cplxMultDiv2() 128 inline void cplxMultDiv2( FIXP_DBL *c_Re, in cplxMultDiv2() 129 FIXP_DBL *c_Im, in cplxMultDiv2() 130 const FIXP_DBL a_Re, in cplxMultDiv2() 131 const FIXP_DBL a_Im, in cplxMultDiv2() 152 inline void cplxMultAddDiv2( FIXP_DBL *c_Re, in cplxMultAddDiv2() 153 FIXP_DBL *c_Im, in cplxMultAddDiv2() [all …]
|
/external/aac/libSBRenc/src/ |
D | sbr_ram.h | 103 #define ENV_TRANSIENTS_BYTE ( (sizeof(FIXP_DBL)*(MAX_NUM_CHANNELS*3*QMF_MAX_TIME_SLOTS)) ) 105 #define ENV_R_BUFF_BYTE ( (sizeof(FIXP_DBL)*((QMF_MAX_TIME_SLOTS) * MAX_HYBRID_BANDS)) ) 106 #define ENV_I_BUFF_BYTE ( (sizeof(FIXP_DBL)*((QMF_MAX_TIME_SLOTS) * MAX_HYBRID_BANDS)) ) 107 #define Y_BUF_CH_BYTE ( (2*sizeof(FIXP_DBL)*((QMF_MAX_TIME_SLOTS) * MAX_HYBRID_BANDS)) ) 110 #define ENV_R_BUF_PS_BYTE ( (sizeof(FIXP_DBL)*QMF_MAX_TIME_SLOTS * QMF_CHANNELS / 2) ) 111 #define ENV_I_BUF_PS_BYTE ( (sizeof(FIXP_DBL)*QMF_MAX_TIME_SLOTS * QMF_CHANNELS / 2) ) 113 #define TON_BUF_CH_BYTE ( (sizeof(FIXP_DBL)*(MAX_NO_OF_ESTIMATES*MAX_FREQ_COEFFS)) ) 144 H_ALLOC_MEM(Ram_SbrDynamic_RAM, FIXP_DBL) 150 H_ALLOC_MEM(Ram_Sbr_quotaMatrix, FIXP_DBL) 166 H_ALLOC_MEM(Ram_Sbr_envYBuffer, FIXP_DBL) [all …]
|
D | invf_est.h | 98 const FIXP_DBL *quantStepsSbr; 99 const FIXP_DBL *quantStepsOrig; 100 const FIXP_DBL *nrgBorders; 112 FIXP_DBL origQuotaMean[INVF_SMOOTHING_LENGTH+1]; 113 FIXP_DBL sbrQuotaMean[INVF_SMOOTHING_LENGTH+1]; 114 FIXP_DBL origQuotaMeanStrongest[INVF_SMOOTHING_LENGTH+1]; 115 FIXP_DBL sbrQuotaMeanStrongest[INVF_SMOOTHING_LENGTH+1]; 117 FIXP_DBL origQuotaMeanFilt; 118 FIXP_DBL sbrQuotaMeanFilt; 119 FIXP_DBL origQuotaMeanStrongestFilt; [all …]
|
D | mh_det.h | 97 FIXP_DBL thresHoldDiff; /*!< threshold for tonality difference */ 98 FIXP_DBL thresHoldDiffGuide; /*!< threshold for tonality difference for the guide */ 99 FIXP_DBL thresHoldTone; /*!< threshold for tonality for a sine */ 100 FIXP_DBL invThresHoldTone; 101 FIXP_DBL thresHoldToneGuide; /*!< threshold for tonality for a sine for the guide */ 102 FIXP_DBL sfmThresSbr; /*!< tonality flatness measure threshold for the SBR signal.*/ 103 FIXP_DBL sfmThresOrig; /*!< tonality flatness measure threshold for the original signal.*/ 104 FIXP_DBL decayGuideOrig; /*!< decay value of the tonality value of the guide for the tone. */ 105 …FIXP_DBL decayGuideDiff; /*!< decay value of the tonality value of the guide for the tonality … 106 FIXP_DBL derivThresMaxLD64; /*!< threshold for detecting LP character in a signal. */ [all …]
|
D | tran_det.cpp | 95 #define ABS_THRES ((FIXP_DBL)16) 109 static FIXP_DBL spectralChange(FIXP_DBL Energies[NUMBER_TIME_SLOTS_2304][MAX_FREQ_COEFFS], in spectralChange() 111 FIXP_DBL EnergyTotal, in spectralChange() 119 FIXP_DBL delta,tmp0,tmp1,tmp2; in spectralChange() 120 FIXP_DBL accu1,accu2,delta_sum,result; in spectralChange() 129 FIXP_DBL pos_weight; in spectralChange() 131 pos_weight = /*FL2FXCONST_DBL(1.0)*/ (FIXP_DBL)MAXVAL_DBL - (fMult(pos_weight, pos_weight)<<2); in spectralChange() 163 (EnergyTotal>>NRG_SCALE)+(FIXP_DBL)1, in spectralChange() 164 … (FIXP_DBL)MAXVAL_DBL >> fixMin(scaleEnergies[0],(DFRACT_BITS-1)) ); in spectralChange() 166 delta_sum += (FIXP_DBL)(fMult(sqrtFixp(result), delta)); in spectralChange() [all …]
|