/external/chromium_org/third_party/opus/src/silk/ |
D | sum_sqr_shift.c | 44 opus_int32 nrg_tmp, nrg; in silk_sum_sqr_shift() local 46 nrg = 0; in silk_sum_sqr_shift() 50 nrg = silk_SMLABB_ovflw( nrg, x[ i ], x[ i ] ); in silk_sum_sqr_shift() 51 nrg = silk_SMLABB_ovflw( nrg, x[ i + 1 ], x[ i + 1 ] ); in silk_sum_sqr_shift() 52 if( nrg < 0 ) { in silk_sum_sqr_shift() 54 nrg = (opus_int32)silk_RSHIFT_uint( (opus_uint32)nrg, 2 ); in silk_sum_sqr_shift() 62 nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, (opus_uint32)nrg_tmp, shft ); in silk_sum_sqr_shift() 63 if( nrg < 0 ) { in silk_sum_sqr_shift() 65 nrg = (opus_int32)silk_RSHIFT_uint( (opus_uint32)nrg, 2 ); in silk_sum_sqr_shift() 72 nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, nrg_tmp, shft ); in silk_sum_sqr_shift() [all …]
|
D | VAD.c | 305 opus_int32 nl, nrg, inv_nrg; in silk_VAD_GetNoiseLevels() local 321 nrg = silk_ADD_POS_SAT32( pX[ k ], psSilk_VAD->NoiseLevelBias[ k ] ); in silk_VAD_GetNoiseLevels() 322 silk_assert( nrg > 0 ); in silk_VAD_GetNoiseLevels() 325 inv_nrg = silk_DIV32( silk_int32_MAX, nrg ); in silk_VAD_GetNoiseLevels() 329 if( nrg > silk_LSHIFT( nl, 3 ) ) { in silk_VAD_GetNoiseLevels() 331 } else if( nrg < nl ) { in silk_VAD_GetNoiseLevels()
|
/external/libopus/silk/ |
D | sum_sqr_shift.c | 44 opus_int32 nrg_tmp, nrg; in silk_sum_sqr_shift() local 46 nrg = 0; in silk_sum_sqr_shift() 50 nrg = silk_SMLABB_ovflw( nrg, x[ i ], x[ i ] ); in silk_sum_sqr_shift() 51 nrg = silk_SMLABB_ovflw( nrg, x[ i + 1 ], x[ i + 1 ] ); in silk_sum_sqr_shift() 52 if( nrg < 0 ) { in silk_sum_sqr_shift() 54 nrg = (opus_int32)silk_RSHIFT_uint( (opus_uint32)nrg, 2 ); in silk_sum_sqr_shift() 62 nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, (opus_uint32)nrg_tmp, shft ); in silk_sum_sqr_shift() 63 if( nrg < 0 ) { in silk_sum_sqr_shift() 65 nrg = (opus_int32)silk_RSHIFT_uint( (opus_uint32)nrg, 2 ); in silk_sum_sqr_shift() 72 nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, nrg_tmp, shft ); in silk_sum_sqr_shift() [all …]
|
D | VAD.c | 305 opus_int32 nl, nrg, inv_nrg; in silk_VAD_GetNoiseLevels() local 321 nrg = silk_ADD_POS_SAT32( pX[ k ], psSilk_VAD->NoiseLevelBias[ k ] ); in silk_VAD_GetNoiseLevels() 322 silk_assert( nrg > 0 ); in silk_VAD_GetNoiseLevels() 325 inv_nrg = silk_DIV32( silk_int32_MAX, nrg ); in silk_VAD_GetNoiseLevels() 329 if( nrg > silk_LSHIFT( nl, 3 ) ) { in silk_VAD_GetNoiseLevels() 331 } else if( nrg < nl ) { in silk_VAD_GetNoiseLevels()
|
/external/chromium_org/third_party/opus/src/silk/float/ |
D | levinsondurbin_FLP.c | 42 silk_float min_nrg, nrg, t, km, Atmp1, Atmp2; in silk_levinsondurbin_FLP() local 45 nrg = corr[ 0 ]; in silk_levinsondurbin_FLP() 46 nrg = silk_max_float(min_nrg, nrg); in silk_levinsondurbin_FLP() 47 A[ 0 ] = corr[ 1 ] / nrg; in silk_levinsondurbin_FLP() 48 nrg -= A[ 0 ] * corr[ 1 ]; in silk_levinsondurbin_FLP() 49 nrg = silk_max_float(min_nrg, nrg); in silk_levinsondurbin_FLP() 59 km = t / nrg; in silk_levinsondurbin_FLP() 62 nrg -= km * t; in silk_levinsondurbin_FLP() 63 nrg = silk_max_float(min_nrg, nrg); in silk_levinsondurbin_FLP() 79 return nrg; in silk_levinsondurbin_FLP()
|
D | residual_energy_FLP.c | 47 silk_float tmp, nrg = 0.0f, regularization; in silk_residual_energy_covar_FLP() local 54 nrg = wxx; in silk_residual_energy_covar_FLP() 60 nrg -= 2.0f * tmp; in silk_residual_energy_covar_FLP() 68 nrg += c[ i ] * ( 2.0f * tmp + matrix_c_ptr( wXX, i, i, D ) * c[ i ] ); in silk_residual_energy_covar_FLP() 70 if( nrg > 0 ) { in silk_residual_energy_covar_FLP() 82 silk_assert( nrg == 0 ); in silk_residual_energy_covar_FLP() 83 nrg = 1.0f; in silk_residual_energy_covar_FLP() 86 return nrg; in silk_residual_energy_covar_FLP()
|
D | find_LTP_FLP.c | 51 silk_float w[ MAX_NB_SUBFR ], nrg[ MAX_NB_SUBFR ], regu; in silk_find_LTP_FLP() local 73 nrg[ k ] = silk_residual_energy_covar_FLP( b_ptr, WLTP_ptr, Rr, rr[ k ], LTP_ORDER ); in silk_find_LTP_FLP() 75 temp = Wght[ k ] / ( nrg[ k ] * Wght[ k ] + 0.01f * subfr_length ); in silk_find_LTP_FLP() 90 LPC_LTP_res_nrg += nrg[ k ] * Wght[ k ]; in silk_find_LTP_FLP()
|
D | noise_shape_analysis_FLP.c | 138 silk_float nrg, pre_nrg, log_energy, log_energy_prev, energy_variation; in silk_noise_shape_analysis_FLP() local 187 nrg = ( silk_float )nSamples + ( silk_float )silk_energy_FLP( pitch_res_ptr, nSamples ); in silk_noise_shape_analysis_FLP() 188 log_energy = silk_log2( nrg ); in silk_noise_shape_analysis_FLP() 258 …nrg = silk_levinsondurbin_FLP( &psEncCtrl->AR2[ k * MAX_SHAPE_LPC_ORDER ], auto_corr, psEnc->sCmn.… in silk_noise_shape_analysis_FLP() 259 psEncCtrl->Gains[ k ] = ( silk_float )sqrt( nrg ); in silk_noise_shape_analysis_FLP() 280 …nrg = silk_LPC_inverse_pred_gain_FLP( &psEncCtrl->AR1[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.… in silk_noise_shape_analysis_FLP() 281 psEncCtrl->GainsPre[ k ] = 1.0f - 0.7f * ( 1.0f - pre_nrg / nrg ); in silk_noise_shape_analysis_FLP()
|
/external/libopus/silk/float/ |
D | levinsondurbin_FLP.c | 42 silk_float min_nrg, nrg, t, km, Atmp1, Atmp2; in silk_levinsondurbin_FLP() local 45 nrg = corr[ 0 ]; in silk_levinsondurbin_FLP() 46 nrg = silk_max_float(min_nrg, nrg); in silk_levinsondurbin_FLP() 47 A[ 0 ] = corr[ 1 ] / nrg; in silk_levinsondurbin_FLP() 48 nrg -= A[ 0 ] * corr[ 1 ]; in silk_levinsondurbin_FLP() 49 nrg = silk_max_float(min_nrg, nrg); in silk_levinsondurbin_FLP() 59 km = t / nrg; in silk_levinsondurbin_FLP() 62 nrg -= km * t; in silk_levinsondurbin_FLP() 63 nrg = silk_max_float(min_nrg, nrg); in silk_levinsondurbin_FLP() 79 return nrg; in silk_levinsondurbin_FLP()
|
D | residual_energy_FLP.c | 47 silk_float tmp, nrg = 0.0f, regularization; in silk_residual_energy_covar_FLP() local 54 nrg = wxx; in silk_residual_energy_covar_FLP() 60 nrg -= 2.0f * tmp; in silk_residual_energy_covar_FLP() 68 nrg += c[ i ] * ( 2.0f * tmp + matrix_c_ptr( wXX, i, i, D ) * c[ i ] ); in silk_residual_energy_covar_FLP() 70 if( nrg > 0 ) { in silk_residual_energy_covar_FLP() 82 silk_assert( nrg == 0 ); in silk_residual_energy_covar_FLP() 83 nrg = 1.0f; in silk_residual_energy_covar_FLP() 86 return nrg; in silk_residual_energy_covar_FLP()
|
D | find_LTP_FLP.c | 51 silk_float w[ MAX_NB_SUBFR ], nrg[ MAX_NB_SUBFR ], regu; in silk_find_LTP_FLP() local 73 nrg[ k ] = silk_residual_energy_covar_FLP( b_ptr, WLTP_ptr, Rr, rr[ k ], LTP_ORDER ); in silk_find_LTP_FLP() 75 temp = Wght[ k ] / ( nrg[ k ] * Wght[ k ] + 0.01f * subfr_length ); in silk_find_LTP_FLP() 90 LPC_LTP_res_nrg += nrg[ k ] * Wght[ k ]; in silk_find_LTP_FLP()
|
D | noise_shape_analysis_FLP.c | 138 silk_float nrg, pre_nrg, log_energy, log_energy_prev, energy_variation; in silk_noise_shape_analysis_FLP() local 187 nrg = ( silk_float )nSamples + ( silk_float )silk_energy_FLP( pitch_res_ptr, nSamples ); in silk_noise_shape_analysis_FLP() 188 log_energy = silk_log2( nrg ); in silk_noise_shape_analysis_FLP() 258 …nrg = silk_levinsondurbin_FLP( &psEncCtrl->AR2[ k * MAX_SHAPE_LPC_ORDER ], auto_corr, psEnc->sCmn.… in silk_noise_shape_analysis_FLP() 259 psEncCtrl->Gains[ k ] = ( silk_float )sqrt( nrg ); in silk_noise_shape_analysis_FLP() 280 …nrg = silk_LPC_inverse_pred_gain_FLP( &psEncCtrl->AR1[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.… in silk_noise_shape_analysis_FLP() 281 psEncCtrl->GainsPre[ k ] = 1.0f - 0.7f * ( 1.0f - pre_nrg / nrg ); in silk_noise_shape_analysis_FLP()
|
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
D | lpc_analysis.c | 117 double nrg[4], chng, pg; in WebRtcIsac_GetVars() local 123 nrg[0] = 0.0001; in WebRtcIsac_GetVars() 125 nrg[0] += input[k]*input[k]; in WebRtcIsac_GetVars() 127 nrg[1] = 0.0001; in WebRtcIsac_GetVars() 129 nrg[1] += input[k]*input[k]; in WebRtcIsac_GetVars() 131 nrg[2] = 0.0001; in WebRtcIsac_GetVars() 133 nrg[2] += input[k]*input[k]; in WebRtcIsac_GetVars() 135 nrg[3] = 0.0001; in WebRtcIsac_GetVars() 137 nrg[3] += input[k]*input[k]; in WebRtcIsac_GetVars() 141 chng = 0.25 * (fabs(10.0 * log10(nrg[3] / nrg[2])) + in WebRtcIsac_GetVars() [all …]
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/main/source/ |
D | lpc_analysis.c | 117 double nrg[4], chng, pg; in WebRtcIsac_GetVars() local 123 nrg[0] = 0.0001; in WebRtcIsac_GetVars() 125 nrg[0] += input[k]*input[k]; in WebRtcIsac_GetVars() 127 nrg[1] = 0.0001; in WebRtcIsac_GetVars() 129 nrg[1] += input[k]*input[k]; in WebRtcIsac_GetVars() 131 nrg[2] = 0.0001; in WebRtcIsac_GetVars() 133 nrg[2] += input[k]*input[k]; in WebRtcIsac_GetVars() 135 nrg[3] = 0.0001; in WebRtcIsac_GetVars() 137 nrg[3] += input[k]*input[k]; in WebRtcIsac_GetVars() 141 chng = 0.25 * (fabs(10.0 * log10(nrg[3] / nrg[2])) + in WebRtcIsac_GetVars() [all …]
|
/external/libopus/silk/fixed/ |
D | residual_energy16_FIX.c | 45 opus_int32 c_max, w_max, tmp, tmp2, nrg; in silk_residual_energy16_covar_FIX() local 78 nrg = silk_RSHIFT( wxx, 1 + lshifts ) - tmp; /* Q: -lshifts - 1 */ in silk_residual_energy16_covar_FIX() 91 nrg = silk_ADD_LSHIFT32( nrg, tmp2, lshifts ); /* Q: -lshifts - 1 */ in silk_residual_energy16_covar_FIX() 94 if( nrg < 1 ) { in silk_residual_energy16_covar_FIX() 95 nrg = 1; in silk_residual_energy16_covar_FIX() 96 } else if( nrg > silk_RSHIFT( silk_int32_MAX, lshifts + 2 ) ) { in silk_residual_energy16_covar_FIX() 97 nrg = silk_int32_MAX >> 1; in silk_residual_energy16_covar_FIX() 99 nrg = silk_LSHIFT( nrg, lshifts + 1 ); /* Q0 */ in silk_residual_energy16_covar_FIX() 101 return nrg; in silk_residual_energy16_covar_FIX()
|
D | burg_modified_FIX.c | 58 opus_int32 C0, num, nrg, rc_Q31, invGain_Q30, Atmp_QA, Atmp1, tmp1, tmp2, x1, x2; in silk_burg_modified() local 175 …nrg = silk_ADD32( CAb[ 0 ], CAf[ 0 ] ); /*… in silk_burg_modified() 185 nrg = silk_ADD_LSHIFT32( nrg, silk_SMMUL( silk_ADD32( CAb[ k + 1 ], CAf[ k + 1 ] ), in silk_burg_modified() 194 if( silk_abs( num ) < nrg ) { in silk_burg_modified() 195 rc_Q31 = silk_DIV32_varQ( num, nrg, 31 ); in silk_burg_modified() 268 …nrg = CAf[ 0 ]; /* Q( … in silk_burg_modified() 272 …nrg = silk_SMLAWW( nrg, CAf[ k + 1 ], Atmp1 ); /* Q( -rsh… in silk_burg_modified() 276 …*res_nrg = silk_SMLAWW( nrg, silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ), -tmp1 );/*… in silk_burg_modified()
|
D | noise_shape_analysis_FIX.c | 155 opus_int32 nrg, pre_nrg_Q30, log_energy_Q7, log_energy_prev_Q7, energy_variation_Q7; in silk_noise_shape_analysis_FIX() local 215 silk_sum_sqr_shift( &nrg, &scale, pitch_res_ptr, nSamples ); in silk_noise_shape_analysis_FIX() 216 nrg += silk_RSHIFT( nSamples, scale ); /* Q(-scale)*/ in silk_noise_shape_analysis_FIX() 218 log_energy_Q7 = silk_lin2log( nrg ); in silk_noise_shape_analysis_FIX() 293 nrg = silk_schur64( refl_coef_Q16, auto_corr, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FIX() 294 silk_assert( nrg >= 0 ); in silk_noise_shape_analysis_FIX() 306 nrg >>= 1; in silk_noise_shape_analysis_FIX() 309 tmp32 = silk_SQRT_APPROX( nrg ); in silk_noise_shape_analysis_FIX() 337 nrg = silk_LPC_inverse_pred_gain_Q24( AR1_Q24, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FIX() 341 …insPre_Q14[ k ] = ( opus_int ) SILK_FIX_CONST( 0.3, 14 ) + silk_DIV32_varQ( pre_nrg_Q30, nrg, 14 ); in silk_noise_shape_analysis_FIX()
|
D | find_LTP_FIX.c | 62 …opus_int32 b_Q16[ LTP_ORDER ], delta_b_Q14[ LTP_ORDER ], d_Q14[ MAX_NB_SUBFR ], nrg[ MAX_NB_SUBFR … in silk_find_LTP_FIX() local 108 …nrg[ k ] = silk_residual_energy16_covar_FIX( b_Q14_ptr, WLTP_ptr, Rr, rr[ k ], LTP_ORDER, 14 ); /*… in silk_find_LTP_FIX() 112 …denom32 = silk_LSHIFT_SAT32( silk_SMULWB( nrg[ k ], Wght_Q15[ k ] ), 1 + extra_shifts ) + /* Q( -c… in silk_find_LTP_FIX() 152 …s_nrg = silk_ADD32( LPC_LTP_res_nrg, silk_RSHIFT( silk_ADD32( silk_SMULWB( nrg[ k ], Wght_Q15[ k ]… in silk_find_LTP_FIX()
|
/external/chromium_org/third_party/opus/src/silk/fixed/ |
D | residual_energy16_FIX.c | 45 opus_int32 c_max, w_max, tmp, tmp2, nrg; in silk_residual_energy16_covar_FIX() local 78 nrg = silk_RSHIFT( wxx, 1 + lshifts ) - tmp; /* Q: -lshifts - 1 */ in silk_residual_energy16_covar_FIX() 91 nrg = silk_ADD_LSHIFT32( nrg, tmp2, lshifts ); /* Q: -lshifts - 1 */ in silk_residual_energy16_covar_FIX() 94 if( nrg < 1 ) { in silk_residual_energy16_covar_FIX() 95 nrg = 1; in silk_residual_energy16_covar_FIX() 96 } else if( nrg > silk_RSHIFT( silk_int32_MAX, lshifts + 2 ) ) { in silk_residual_energy16_covar_FIX() 97 nrg = silk_int32_MAX >> 1; in silk_residual_energy16_covar_FIX() 99 nrg = silk_LSHIFT( nrg, lshifts + 1 ); /* Q0 */ in silk_residual_energy16_covar_FIX() 101 return nrg; in silk_residual_energy16_covar_FIX()
|
D | burg_modified_FIX.c | 58 opus_int32 C0, num, nrg, rc_Q31, invGain_Q30, Atmp_QA, Atmp1, tmp1, tmp2, x1, x2; in silk_burg_modified() local 175 …nrg = silk_ADD32( CAb[ 0 ], CAf[ 0 ] ); /*… in silk_burg_modified() 185 nrg = silk_ADD_LSHIFT32( nrg, silk_SMMUL( silk_ADD32( CAb[ k + 1 ], CAf[ k + 1 ] ), in silk_burg_modified() 194 if( silk_abs( num ) < nrg ) { in silk_burg_modified() 195 rc_Q31 = silk_DIV32_varQ( num, nrg, 31 ); in silk_burg_modified() 268 …nrg = CAf[ 0 ]; /* Q( … in silk_burg_modified() 272 …nrg = silk_SMLAWW( nrg, CAf[ k + 1 ], Atmp1 ); /* Q( -rsh… in silk_burg_modified() 276 …*res_nrg = silk_SMLAWW( nrg, silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ), -tmp1 );/*… in silk_burg_modified()
|
D | noise_shape_analysis_FIX.c | 155 opus_int32 nrg, pre_nrg_Q30, log_energy_Q7, log_energy_prev_Q7, energy_variation_Q7; in silk_noise_shape_analysis_FIX() local 215 silk_sum_sqr_shift( &nrg, &scale, pitch_res_ptr, nSamples ); in silk_noise_shape_analysis_FIX() 216 nrg += silk_RSHIFT( nSamples, scale ); /* Q(-scale)*/ in silk_noise_shape_analysis_FIX() 218 log_energy_Q7 = silk_lin2log( nrg ); in silk_noise_shape_analysis_FIX() 293 nrg = silk_schur64( refl_coef_Q16, auto_corr, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FIX() 294 silk_assert( nrg >= 0 ); in silk_noise_shape_analysis_FIX() 306 nrg >>= 1; in silk_noise_shape_analysis_FIX() 309 tmp32 = silk_SQRT_APPROX( nrg ); in silk_noise_shape_analysis_FIX() 337 nrg = silk_LPC_inverse_pred_gain_Q24( AR1_Q24, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FIX() 341 …insPre_Q14[ k ] = ( opus_int ) SILK_FIX_CONST( 0.3, 14 ) + silk_DIV32_varQ( pre_nrg_Q30, nrg, 14 ); in silk_noise_shape_analysis_FIX()
|
D | find_LTP_FIX.c | 62 …opus_int32 b_Q16[ LTP_ORDER ], delta_b_Q14[ LTP_ORDER ], d_Q14[ MAX_NB_SUBFR ], nrg[ MAX_NB_SUBFR … in silk_find_LTP_FIX() local 108 …nrg[ k ] = silk_residual_energy16_covar_FIX( b_Q14_ptr, WLTP_ptr, Rr, rr[ k ], LTP_ORDER, 14 ); /*… in silk_find_LTP_FIX() 112 …denom32 = silk_LSHIFT_SAT32( silk_SMULWB( nrg[ k ], Wght_Q15[ k ] ), 1 + extra_shifts ) + /* Q( -c… in silk_find_LTP_FIX() 152 …s_nrg = silk_ADD32( LPC_LTP_res_nrg, silk_RSHIFT( silk_ADD32( silk_SMULWB( nrg[ k ], Wght_Q15[ k ]… in silk_find_LTP_FIX()
|
/external/webrtc/src/modules/audio_processing/agc/ |
D | digital_agc.c | 313 WebRtc_Word32 nrg, max_nrg; in WebRtcAgc_ProcessDigital() local 417 nrg = WEBRTC_SPL_MUL_16_16(out[k * L + n], out[k * L + n]); in WebRtcAgc_ProcessDigital() 418 if (nrg > max_nrg) in WebRtcAgc_ProcessDigital() 420 max_nrg = nrg; in WebRtcAgc_ProcessDigital() 668 WebRtc_Word32 out, nrg, tmp32, tmp32b; in WebRtcAgc_ProcessVad() local 677 nrg = 0; in WebRtcAgc_ProcessVad() 706 nrg += WEBRTC_SPL_RSHIFT_W32(tmp32, 6); in WebRtcAgc_ProcessVad() 712 if (!(0xFFFF0000 & nrg)) in WebRtcAgc_ProcessVad() 719 if (!(0xFF000000 & (nrg << zeros))) in WebRtcAgc_ProcessVad() 723 if (!(0xF0000000 & (nrg << zeros))) in WebRtcAgc_ProcessVad() [all …]
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/agc/ |
D | digital_agc.c | 308 int32_t nrg, max_nrg; in WebRtcAgc_ProcessDigital() local 417 nrg = WEBRTC_SPL_MUL_16_16(out[k * L + n], out[k * L + n]); in WebRtcAgc_ProcessDigital() 418 if (nrg > max_nrg) in WebRtcAgc_ProcessDigital() 420 max_nrg = nrg; in WebRtcAgc_ProcessDigital() 673 int32_t out, nrg, tmp32, tmp32b; in WebRtcAgc_ProcessVad() local 682 nrg = 0; in WebRtcAgc_ProcessVad() 711 nrg += WEBRTC_SPL_RSHIFT_W32(tmp32, 6); in WebRtcAgc_ProcessVad() 717 if (!(0xFFFF0000 & nrg)) in WebRtcAgc_ProcessVad() 724 if (!(0xFF000000 & (nrg << zeros))) in WebRtcAgc_ProcessVad() 728 if (!(0xF0000000 & (nrg << zeros))) in WebRtcAgc_ProcessVad() [all …]
|
/external/aac/libSBRenc/src/ |
D | env_est.cpp | 501 mhLoweringEnergy(FIXP_DBL nrg, INT M) in mhLoweringEnergy() argument 514 tmpScale = CountLeadingBits(nrg); in mhLoweringEnergy() 515 nrg <<= tmpScale; in mhLoweringEnergy() 516 …nrg = fMult(nrg, FL2FXCONST_DBL(0.398107267f)); /* The maximum boost is 1.584893, so the maximum a… in mhLoweringEnergy() 517 nrg >>= tmpScale; in mhLoweringEnergy() 521 nrg >>= 1; in mhLoweringEnergy() 525 return nrg; in mhLoweringEnergy() 537 FIXP_DBL nrg, in nmhLoweringEnergy() argument 543 if (nrg>FL2FXCONST_DBL(0)) { in nmhLoweringEnergy() 546 FIXP_DBL gain = fMult(fDivNorm(nrgSum, nrg, &sc), GetInvInt(M+1)); in nmhLoweringEnergy() [all …]
|