Lines Matching refs:NSQ

37     silk_nsq_state      *NSQ,                   /* I/O  NSQ state                       */
50 silk_nsq_state *NSQ, /* I/O NSQ state */
73 …silk_nsq_state *NSQ, /* I/O NSQ state … in silk_NSQ() argument
99 NSQ->rand_seed = psIndices->Seed; in silk_NSQ()
102 lag = NSQ->lagPrev; in silk_NSQ()
104 silk_assert( NSQ->prev_gain_Q16 != 0 ); in silk_NSQ()
119 NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; in silk_NSQ()
120 NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; in silk_NSQ()
121 pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; in silk_NSQ()
132 NSQ->rewhite_flag = 0; in silk_NSQ()
143 … silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], in silk_NSQ()
146 NSQ->rewhite_flag = 1; in silk_NSQ()
147 NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; in silk_NSQ()
151 …silk_nsq_scale_states( psEncC, NSQ, x_Q3, x_sc_Q10, sLTP, sLTP_Q15, k, LTP_scale_Q14, Gains_Q16, p… in silk_NSQ()
153 …silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_… in silk_NSQ()
163 NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ]; in silk_NSQ()
167 …silk_memmove( NSQ->xq, &NSQ->xq[ psEncC->frame_length ], psEncC->ltp_mem_lengt… in silk_NSQ()
168 …silk_memmove( NSQ->sLTP_shp_Q14, &NSQ->sLTP_shp_Q14[ psEncC->frame_length ], psEncC->ltp_mem_lengt… in silk_NSQ()
176 silk_nsq_state *NSQ, /* I/O NSQ state */ in silk_noise_shape_quantizer() argument
204 shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; in silk_noise_shape_quantizer()
205 pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; in silk_noise_shape_quantizer()
209 psLPC_Q14 = &NSQ->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 ]; in silk_noise_shape_quantizer()
213 NSQ->rand_seed = silk_RAND( NSQ->rand_seed ); in silk_noise_shape_quantizer()
256 tmp1 = NSQ->sAR2_Q14[ 0 ]; in silk_noise_shape_quantizer()
257 NSQ->sAR2_Q14[ 0 ] = tmp2; in silk_noise_shape_quantizer()
261 tmp2 = NSQ->sAR2_Q14[ j - 1 ]; in silk_noise_shape_quantizer()
262 NSQ->sAR2_Q14[ j - 1 ] = tmp1; in silk_noise_shape_quantizer()
264 tmp1 = NSQ->sAR2_Q14[ j + 0 ]; in silk_noise_shape_quantizer()
265 NSQ->sAR2_Q14[ j + 0 ] = tmp2; in silk_noise_shape_quantizer()
268 NSQ->sAR2_Q14[ shapingLPCOrder - 1 ] = tmp1; in silk_noise_shape_quantizer()
272 n_AR_Q12 = silk_SMLAWB( n_AR_Q12, NSQ->sLF_AR_shp_Q14, Tilt_Q14 ); in silk_noise_shape_quantizer()
274 n_LF_Q12 = silk_SMULWB( NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - 1 ], LF_shp_Q14 ); in silk_noise_shape_quantizer()
275 n_LF_Q12 = silk_SMLAWT( n_LF_Q12, NSQ->sLF_AR_shp_Q14, LF_shp_Q14 ); in silk_noise_shape_quantizer()
299 if ( NSQ->rand_seed < 0 ) { in silk_noise_shape_quantizer()
343 if ( NSQ->rand_seed < 0 ) { in silk_noise_shape_quantizer()
358 NSQ->sLF_AR_shp_Q14 = sLF_AR_shp_Q14; in silk_noise_shape_quantizer()
360NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx ] = silk_SUB_LSHIFT32( sLF_AR_shp_Q14, n_LF_Q12, 2 ); in silk_noise_shape_quantizer()
361 sLTP_Q15[ NSQ->sLTP_buf_idx ] = silk_LSHIFT( LPC_exc_Q14, 1 ); in silk_noise_shape_quantizer()
362 NSQ->sLTP_shp_buf_idx++; in silk_noise_shape_quantizer()
363 NSQ->sLTP_buf_idx++; in silk_noise_shape_quantizer()
366 NSQ->rand_seed = silk_ADD32_ovflw( NSQ->rand_seed, pulses[ i ] ); in silk_noise_shape_quantizer()
370 … silk_memcpy( NSQ->sLPC_Q14, &NSQ->sLPC_Q14[ length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); in silk_noise_shape_quantizer()
375 silk_nsq_state *NSQ, /* I/O NSQ state */ in silk_nsq_scale_states() argument
395 if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { in silk_nsq_scale_states()
396 gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); in silk_nsq_scale_states()
408 NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; in silk_nsq_scale_states()
411 if( NSQ->rewhite_flag ) { in silk_nsq_scale_states()
416 for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { in silk_nsq_scale_states()
425 for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx; i++ ) { in silk_nsq_scale_states()
426 NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); in silk_nsq_scale_states()
430 if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { in silk_nsq_scale_states()
431 for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { in silk_nsq_scale_states()
436 NSQ->sLF_AR_shp_Q14 = silk_SMULWW( gain_adj_Q16, NSQ->sLF_AR_shp_Q14 ); in silk_nsq_scale_states()
440 NSQ->sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLPC_Q14[ i ] ); in silk_nsq_scale_states()
443 NSQ->sAR2_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sAR2_Q14[ i ] ); in silk_nsq_scale_states()