Searched refs:speech_nrg (Results 1 – 2 of 2) sorted by relevance
/external/libopus/silk/x86/ |
D | VAD_sse.c | 59 opus_int32 speech_nrg, x_tmp; in silk_VAD_GetSA_Q8_sse4_1() local 185 speech_nrg = Xnrg[ b ] - psSilk_VAD->NL[ b ]; in silk_VAD_GetSA_Q8_sse4_1() 186 if( speech_nrg > 0 ) { in silk_VAD_GetSA_Q8_sse4_1() 201 if( speech_nrg < ( (opus_int32)1 << 20 ) ) { in silk_VAD_GetSA_Q8_sse4_1() 203 SNR_Q7 = silk_SMULWB( silk_LSHIFT( silk_SQRT_APPROX( speech_nrg ), 6 ), SNR_Q7 ); in silk_VAD_GetSA_Q8_sse4_1() 230 speech_nrg = 0; in silk_VAD_GetSA_Q8_sse4_1() 233 speech_nrg += ( b + 1 ) * silk_RSHIFT( Xnrg[ b ] - psSilk_VAD->NL[ b ], 4 ); in silk_VAD_GetSA_Q8_sse4_1() 237 if( speech_nrg <= 0 ) { in silk_VAD_GetSA_Q8_sse4_1() 239 } else if( speech_nrg < 32768 ) { in silk_VAD_GetSA_Q8_sse4_1() 241 speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); in silk_VAD_GetSA_Q8_sse4_1() [all …]
|
/external/libopus/silk/ |
D | VAD.c | 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 if( speech_nrg <= 0 ) { in silk_VAD_GetSA_Q8_c() 258 } else if( speech_nrg < 32768 ) { in silk_VAD_GetSA_Q8_c() 260 speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); in silk_VAD_GetSA_Q8_c() [all …]
|