Lines Matching refs:speech_nrg
96 opus_int32 speech_nrg, x_tmp; in silk_VAD_GetSA_Q8_c() local
204 speech_nrg = Xnrg[ b ] - psSilk_VAD->NL[ b ]; in silk_VAD_GetSA_Q8_c()
205 if( speech_nrg > 0 ) { in silk_VAD_GetSA_Q8_c()
220 if( speech_nrg < ( (opus_int32)1 << 20 ) ) { in silk_VAD_GetSA_Q8_c()
222 SNR_Q7 = silk_SMULWB( silk_LSHIFT( silk_SQRT_APPROX( speech_nrg ), 6 ), SNR_Q7 ); in silk_VAD_GetSA_Q8_c()
249 speech_nrg = 0; in silk_VAD_GetSA_Q8_c()
252 speech_nrg += ( b + 1 ) * silk_RSHIFT( Xnrg[ b ] - psSilk_VAD->NL[ b ], 4 ); in silk_VAD_GetSA_Q8_c()
256 speech_nrg = silk_RSHIFT32( speech_nrg, 1 ); in silk_VAD_GetSA_Q8_c()
259 if( speech_nrg <= 0 ) { in silk_VAD_GetSA_Q8_c()
261 } else if( speech_nrg < 16384 ) { in silk_VAD_GetSA_Q8_c()
262 speech_nrg = silk_LSHIFT32( speech_nrg, 16 ); in silk_VAD_GetSA_Q8_c()
265 speech_nrg = silk_SQRT_APPROX( speech_nrg ); in silk_VAD_GetSA_Q8_c()
266 SA_Q15 = silk_SMULWB( 32768 + speech_nrg, SA_Q15 ); in silk_VAD_GetSA_Q8_c()