Lines Matching refs:psSilk_VAD
38 …silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state …
45 …silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state … in silk_VAD_Init() argument
51 silk_memset( psSilk_VAD, 0, sizeof( silk_VAD_state ) ); in silk_VAD_Init()
56 … psSilk_VAD->NoiseLevelBias[ b ] = silk_max_32( silk_DIV32_16( VAD_NOISE_LEVELS_BIAS, b + 1 ), 1 ); in silk_VAD_Init()
61 psSilk_VAD->NL[ b ] = silk_MUL( 100, psSilk_VAD->NoiseLevelBias[ b ] ); in silk_VAD_Init()
62 psSilk_VAD->inv_NL[ b ] = silk_DIV32( silk_int32_MAX, psSilk_VAD->NL[ b ] ); in silk_VAD_Init()
64 psSilk_VAD->counter = 15; in silk_VAD_Init()
68 psSilk_VAD->NrgRatioSmth_Q8[ b ] = 100 * 256; /* 100 * 256 --> 20 dB SNR */ in silk_VAD_Init()
97 silk_VAD_state *psSilk_VAD = &psEncC->sVAD; in silk_VAD_GetSA_Q8() local
128 silk_ana_filt_bank_1( pIn, &psSilk_VAD->AnaState[ 0 ], in silk_VAD_GetSA_Q8()
132 silk_ana_filt_bank_1( X, &psSilk_VAD->AnaState1[ 0 ], in silk_VAD_GetSA_Q8()
136 silk_ana_filt_bank_1( X, &psSilk_VAD->AnaState2[ 0 ], in silk_VAD_GetSA_Q8()
148 X[ 0 ] -= psSilk_VAD->HPstate; in silk_VAD_GetSA_Q8()
149 psSilk_VAD->HPstate = HPstateTmp; in silk_VAD_GetSA_Q8()
164 Xnrg[ b ] = psSilk_VAD->XnrgSubfr[ b ]; in silk_VAD_GetSA_Q8()
188 psSilk_VAD->XnrgSubfr[ b ] = sumSquared; in silk_VAD_GetSA_Q8()
194 silk_VAD_GetNoiseLevels( &Xnrg[ 0 ], psSilk_VAD ); in silk_VAD_GetSA_Q8()
202 speech_nrg = Xnrg[ b ] - psSilk_VAD->NL[ b ]; in silk_VAD_GetSA_Q8()
206 … NrgToNoiseRatio_Q8[ b ] = silk_DIV32( silk_LSHIFT( Xnrg[ b ], 8 ), psSilk_VAD->NL[ b ] + 1 ); in silk_VAD_GetSA_Q8()
208 … NrgToNoiseRatio_Q8[ b ] = silk_DIV32( Xnrg[ b ], silk_RSHIFT( psSilk_VAD->NL[ b ], 8 ) + 1 ); in silk_VAD_GetSA_Q8()
250 speech_nrg += ( b + 1 ) * silk_RSHIFT( Xnrg[ b ] - psSilk_VAD->NL[ b ], 4 ); in silk_VAD_GetSA_Q8()
283 psSilk_VAD->NrgRatioSmth_Q8[ b ] = silk_SMLAWB( psSilk_VAD->NrgRatioSmth_Q8[ b ], in silk_VAD_GetSA_Q8()
284 NrgToNoiseRatio_Q8[ b ] - psSilk_VAD->NrgRatioSmth_Q8[ b ], smooth_coef_Q16 ); in silk_VAD_GetSA_Q8()
287 SNR_Q7 = 3 * ( silk_lin2log( psSilk_VAD->NrgRatioSmth_Q8[b] ) - 8 * 128 ); in silk_VAD_GetSA_Q8()
301 …silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state … in silk_VAD_GetNoiseLevels() argument
309 if( psSilk_VAD->counter < 1000 ) { /* 1000 = 20 sec */ in silk_VAD_GetNoiseLevels()
310 min_coef = silk_DIV32_16( silk_int16_MAX, silk_RSHIFT( psSilk_VAD->counter, 4 ) + 1 ); in silk_VAD_GetNoiseLevels()
317 nl = psSilk_VAD->NL[ k ]; in silk_VAD_GetNoiseLevels()
321 nrg = silk_ADD_POS_SAT32( pX[ k ], psSilk_VAD->NoiseLevelBias[ k ] ); in silk_VAD_GetNoiseLevels()
341 …psSilk_VAD->inv_NL[ k ] = silk_SMLAWB( psSilk_VAD->inv_NL[ k ], inv_nrg - psSilk_VAD->inv_NL[ k ],… in silk_VAD_GetNoiseLevels()
342 silk_assert( psSilk_VAD->inv_NL[ k ] >= 0 ); in silk_VAD_GetNoiseLevels()
345 nl = silk_DIV32( silk_int32_MAX, psSilk_VAD->inv_NL[ k ] ); in silk_VAD_GetNoiseLevels()
352 psSilk_VAD->NL[ k ] = nl; in silk_VAD_GetNoiseLevels()
356 psSilk_VAD->counter++; in silk_VAD_GetNoiseLevels()