• Home
  • Raw
  • Download

Lines Matching refs:psSilk_VAD

39 …silk_VAD_state              *psSilk_VAD         /* I/O  Pointer to Silk VAD state                 …
47 …silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state … in silk_VAD_Init() argument
53 silk_memset( psSilk_VAD, 0, sizeof( silk_VAD_state ) ); in silk_VAD_Init()
58psSilk_VAD->NoiseLevelBias[ b ] = silk_max_32( silk_DIV32_16( VAD_NOISE_LEVELS_BIAS, b + 1 ), 1 ); in silk_VAD_Init()
63 psSilk_VAD->NL[ b ] = silk_MUL( 100, psSilk_VAD->NoiseLevelBias[ b ] ); in silk_VAD_Init()
64 psSilk_VAD->inv_NL[ b ] = silk_DIV32( silk_int32_MAX, psSilk_VAD->NL[ b ] ); in silk_VAD_Init()
66 psSilk_VAD->counter = 15; in silk_VAD_Init()
70 psSilk_VAD->NrgRatioSmth_Q8[ b ] = 100 * 256; /* 100 * 256 --> 20 dB SNR */ in silk_VAD_Init()
99 silk_VAD_state *psSilk_VAD = &psEncC->sVAD; in silk_VAD_GetSA_Q8_c() local
130 silk_ana_filt_bank_1( pIn, &psSilk_VAD->AnaState[ 0 ], in silk_VAD_GetSA_Q8_c()
134 silk_ana_filt_bank_1( X, &psSilk_VAD->AnaState1[ 0 ], in silk_VAD_GetSA_Q8_c()
138 silk_ana_filt_bank_1( X, &psSilk_VAD->AnaState2[ 0 ], in silk_VAD_GetSA_Q8_c()
150 X[ 0 ] -= psSilk_VAD->HPstate; in silk_VAD_GetSA_Q8_c()
151 psSilk_VAD->HPstate = HPstateTmp; in silk_VAD_GetSA_Q8_c()
166 Xnrg[ b ] = psSilk_VAD->XnrgSubfr[ b ]; in silk_VAD_GetSA_Q8_c()
190 psSilk_VAD->XnrgSubfr[ b ] = sumSquared; in silk_VAD_GetSA_Q8_c()
196 silk_VAD_GetNoiseLevels( &Xnrg[ 0 ], psSilk_VAD ); in silk_VAD_GetSA_Q8_c()
204 speech_nrg = Xnrg[ b ] - psSilk_VAD->NL[ b ]; in silk_VAD_GetSA_Q8_c()
208 … NrgToNoiseRatio_Q8[ b ] = silk_DIV32( silk_LSHIFT( Xnrg[ b ], 8 ), psSilk_VAD->NL[ b ] + 1 ); in silk_VAD_GetSA_Q8_c()
210 … NrgToNoiseRatio_Q8[ b ] = silk_DIV32( Xnrg[ b ], silk_RSHIFT( psSilk_VAD->NL[ b ], 8 ) + 1 ); 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()
284 psSilk_VAD->NrgRatioSmth_Q8[ b ] = silk_SMLAWB( psSilk_VAD->NrgRatioSmth_Q8[ b ], in silk_VAD_GetSA_Q8_c()
285 NrgToNoiseRatio_Q8[ b ] - psSilk_VAD->NrgRatioSmth_Q8[ b ], smooth_coef_Q16 ); in silk_VAD_GetSA_Q8_c()
288 SNR_Q7 = 3 * ( silk_lin2log( psSilk_VAD->NrgRatioSmth_Q8[b] ) - 8 * 128 ); in silk_VAD_GetSA_Q8_c()
305 …silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state … in silk_VAD_GetNoiseLevels() argument
313 if( psSilk_VAD->counter < 1000 ) { /* 1000 = 20 sec */ in silk_VAD_GetNoiseLevels()
314 min_coef = silk_DIV32_16( silk_int16_MAX, silk_RSHIFT( psSilk_VAD->counter, 4 ) + 1 ); in silk_VAD_GetNoiseLevels()
316 psSilk_VAD->counter++; in silk_VAD_GetNoiseLevels()
323 nl = psSilk_VAD->NL[ k ]; in silk_VAD_GetNoiseLevels()
327 nrg = silk_ADD_POS_SAT32( pX[ k ], psSilk_VAD->NoiseLevelBias[ k ] ); in silk_VAD_GetNoiseLevels()
347psSilk_VAD->inv_NL[ k ] = silk_SMLAWB( psSilk_VAD->inv_NL[ k ], inv_nrg - psSilk_VAD->inv_NL[ k ],… in silk_VAD_GetNoiseLevels()
348 silk_assert( psSilk_VAD->inv_NL[ k ] >= 0 ); in silk_VAD_GetNoiseLevels()
351 nl = silk_DIV32( silk_int32_MAX, psSilk_VAD->inv_NL[ k ] ); in silk_VAD_GetNoiseLevels()
358 psSilk_VAD->NL[ k ] = nl; in silk_VAD_GetNoiseLevels()