• Home
  • Raw
  • Download

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()
124 NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; in silk_NSQ_c()
125 NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; in silk_NSQ_c()
126 pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; in silk_NSQ_c()
137 NSQ->rewhite_flag = 0; in silk_NSQ_c()
148 … silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], in silk_NSQ_c()
151 NSQ->rewhite_flag = 1; in silk_NSQ_c()
152 NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; in silk_NSQ_c()
156 …silk_nsq_scale_states( psEncC, NSQ, x16, x_sc_Q10, sLTP, sLTP_Q15, k, LTP_scale_Q14, Gains_Q16, pi… in silk_NSQ_c()
158 …silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_… in silk_NSQ_c()
168 NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ]; in silk_NSQ_c()
171 …silk_memmove( NSQ->xq, &NSQ->xq[ psEncC->frame_length ], psEncC->ltp_mem_lengt… in silk_NSQ_c()
172 …silk_memmove( NSQ->sLTP_shp_Q14, &NSQ->sLTP_shp_Q14[ psEncC->frame_length ], psEncC->ltp_mem_lengt… in silk_NSQ_c()
184 silk_nsq_state *NSQ, /* I/O NSQ state */ in silk_noise_shape_quantizer() argument
216 shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; in silk_noise_shape_quantizer()
217 pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; in silk_noise_shape_quantizer()
221 psLPC_Q14 = &NSQ->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 ]; in silk_noise_shape_quantizer()
229 NSQ->rand_seed = silk_RAND( NSQ->rand_seed ); in silk_noise_shape_quantizer()
251 …n_AR_Q12 = silk_NSQ_noise_shape_feedback_loop(&NSQ->sDiff_shp_Q14, NSQ->sAR2_Q14, AR_shp_Q13, shap… in silk_noise_shape_quantizer()
253 n_AR_Q12 = silk_SMLAWB( n_AR_Q12, NSQ->sLF_AR_shp_Q14, Tilt_Q14 ); in silk_noise_shape_quantizer()
255 n_LF_Q12 = silk_SMULWB( NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - 1 ], LF_shp_Q14 ); in silk_noise_shape_quantizer()
256 n_LF_Q12 = silk_SMLAWT( n_LF_Q12, NSQ->sLF_AR_shp_Q14, LF_shp_Q14 ); in silk_noise_shape_quantizer()
280 if( NSQ->rand_seed < 0 ) { in silk_noise_shape_quantizer()
337 if ( NSQ->rand_seed < 0 ) { in silk_noise_shape_quantizer()
351 NSQ->sDiff_shp_Q14 = silk_SUB_LSHIFT32( xq_Q14, x_sc_Q10[ i ], 4 ); in silk_noise_shape_quantizer()
352 sLF_AR_shp_Q14 = silk_SUB_LSHIFT32( NSQ->sDiff_shp_Q14, n_AR_Q12, 2 ); in silk_noise_shape_quantizer()
353 NSQ->sLF_AR_shp_Q14 = sLF_AR_shp_Q14; in silk_noise_shape_quantizer()
355NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx ] = silk_SUB_LSHIFT32( sLF_AR_shp_Q14, n_LF_Q12, 2 ); in silk_noise_shape_quantizer()
356 sLTP_Q15[ NSQ->sLTP_buf_idx ] = silk_LSHIFT( LPC_exc_Q14, 1 ); in silk_noise_shape_quantizer()
357 NSQ->sLTP_shp_buf_idx++; in silk_noise_shape_quantizer()
358 NSQ->sLTP_buf_idx++; in silk_noise_shape_quantizer()
361 NSQ->rand_seed = silk_ADD32_ovflw( NSQ->rand_seed, pulses[ i ] ); in silk_noise_shape_quantizer()
365 … silk_memcpy( NSQ->sLPC_Q14, &NSQ->sLPC_Q14[ length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); in silk_noise_shape_quantizer()
370 silk_nsq_state *NSQ, /* I/O NSQ state */ in silk_nsq_scale_states() argument
396 if( NSQ->rewhite_flag ) { in silk_nsq_scale_states()
401 for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { in silk_nsq_scale_states()
408 if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { in silk_nsq_scale_states()
409 gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); in silk_nsq_scale_states()
412 for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx; i++ ) { in silk_nsq_scale_states()
413 NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); in silk_nsq_scale_states()
417 if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { in silk_nsq_scale_states()
418 for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { in silk_nsq_scale_states()
423 NSQ->sLF_AR_shp_Q14 = silk_SMULWW( gain_adj_Q16, NSQ->sLF_AR_shp_Q14 ); in silk_nsq_scale_states()
424 NSQ->sDiff_shp_Q14 = silk_SMULWW( gain_adj_Q16, NSQ->sDiff_shp_Q14 ); in silk_nsq_scale_states()
428 NSQ->sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLPC_Q14[ i ] ); in silk_nsq_scale_states()
431 NSQ->sAR2_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sAR2_Q14[ i ] ); in silk_nsq_scale_states()
435 NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; in silk_nsq_scale_states()