Lines Matching refs:NSQ
39 silk_nsq_state *NSQ, /* I/O NSQ state */
53 silk_nsq_state *NSQ, /* I/O NSQ state */
79 …silk_nsq_state *NSQ, /* I/O NSQ state … in silk_NSQ_c() argument
105 NSQ->rand_seed = psIndices->Seed; in silk_NSQ_c()
108 lag = NSQ->lagPrev; in silk_NSQ_c()
110 silk_assert( NSQ->prev_gain_Q16 != 0 ); in silk_NSQ_c()
125 NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; in silk_NSQ_c()
126 NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; in silk_NSQ_c()
127 pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; in silk_NSQ_c()
138 NSQ->rewhite_flag = 0; in silk_NSQ_c()
149 … silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], in silk_NSQ_c()
152 NSQ->rewhite_flag = 1; in silk_NSQ_c()
153 NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; in silk_NSQ_c()
157 …silk_nsq_scale_states( psEncC, NSQ, x_Q3, x_sc_Q10, sLTP, sLTP_Q15, k, LTP_scale_Q14, Gains_Q16, p… in silk_NSQ_c()
159 …silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_… in silk_NSQ_c()
169 NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ]; in silk_NSQ_c()
173 …silk_memmove( NSQ->xq, &NSQ->xq[ psEncC->frame_length ], psEncC->ltp_mem_lengt… in silk_NSQ_c()
174 …silk_memmove( NSQ->sLTP_shp_Q14, &NSQ->sLTP_shp_Q14[ psEncC->frame_length ], psEncC->ltp_mem_lengt… in silk_NSQ_c()
186 silk_nsq_state *NSQ, /* I/O NSQ state */ in silk_noise_shape_quantizer() argument
218 shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; in silk_noise_shape_quantizer()
219 pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; in silk_noise_shape_quantizer()
223 psLPC_Q14 = &NSQ->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 ]; in silk_noise_shape_quantizer()
231 NSQ->rand_seed = silk_RAND( NSQ->rand_seed ); in silk_noise_shape_quantizer()
253 …n_AR_Q12 = silk_NSQ_noise_shape_feedback_loop(psLPC_Q14, NSQ->sAR2_Q14, AR_shp_Q13, shapingLPCOrde… in silk_noise_shape_quantizer()
255 n_AR_Q12 = silk_SMLAWB( n_AR_Q12, NSQ->sLF_AR_shp_Q14, Tilt_Q14 ); in silk_noise_shape_quantizer()
257 n_LF_Q12 = silk_SMULWB( NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - 1 ], LF_shp_Q14 ); in silk_noise_shape_quantizer()
258 n_LF_Q12 = silk_SMLAWT( n_LF_Q12, NSQ->sLF_AR_shp_Q14, LF_shp_Q14 ); in silk_noise_shape_quantizer()
282 if ( NSQ->rand_seed < 0 ) { in silk_noise_shape_quantizer()
326 if ( NSQ->rand_seed < 0 ) { in silk_noise_shape_quantizer()
341 NSQ->sLF_AR_shp_Q14 = sLF_AR_shp_Q14; in silk_noise_shape_quantizer()
343 … NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx ] = silk_SUB_LSHIFT32( sLF_AR_shp_Q14, n_LF_Q12, 2 ); in silk_noise_shape_quantizer()
344 sLTP_Q15[ NSQ->sLTP_buf_idx ] = silk_LSHIFT( LPC_exc_Q14, 1 ); in silk_noise_shape_quantizer()
345 NSQ->sLTP_shp_buf_idx++; in silk_noise_shape_quantizer()
346 NSQ->sLTP_buf_idx++; in silk_noise_shape_quantizer()
349 NSQ->rand_seed = silk_ADD32_ovflw( NSQ->rand_seed, pulses[ i ] ); in silk_noise_shape_quantizer()
353 … silk_memcpy( NSQ->sLPC_Q14, &NSQ->sLPC_Q14[ length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); in silk_noise_shape_quantizer()
358 silk_nsq_state *NSQ, /* I/O NSQ state */ in silk_nsq_scale_states() argument
378 if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { in silk_nsq_scale_states()
379 gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); in silk_nsq_scale_states()
391 NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; in silk_nsq_scale_states()
394 if( NSQ->rewhite_flag ) { in silk_nsq_scale_states()
399 for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { in silk_nsq_scale_states()
408 for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx; i++ ) { in silk_nsq_scale_states()
409 NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); in silk_nsq_scale_states()
413 if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { in silk_nsq_scale_states()
414 for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { in silk_nsq_scale_states()
419 NSQ->sLF_AR_shp_Q14 = silk_SMULWW( gain_adj_Q16, NSQ->sLF_AR_shp_Q14 ); in silk_nsq_scale_states()
423 NSQ->sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLPC_Q14[ i ] ); in silk_nsq_scale_states()
426 NSQ->sAR2_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sAR2_Q14[ i ] ); in silk_nsq_scale_states()