Lines Matching refs:psDec
39 …silk_decoder_state *psDec, /* I/O Decoder state … in silk_decode_core() argument
56 silk_assert( psDec->prev_gain_Q16 != 0 ); in silk_decode_core()
58 ALLOC( sLTP, psDec->ltp_mem_length, opus_int16 ); in silk_decode_core()
59 ALLOC( sLTP_Q15, psDec->ltp_mem_length + psDec->frame_length, opus_int32 ); in silk_decode_core()
60 ALLOC( res_Q14, psDec->subfr_length, opus_int32 ); in silk_decode_core()
61 ALLOC( sLPC_Q14, psDec->subfr_length + MAX_LPC_ORDER, opus_int32 ); in silk_decode_core()
63 …offset_Q10 = silk_Quantization_Offsets_Q10[ psDec->indices.signalType >> 1 ][ psDec->indices.quant… in silk_decode_core()
65 if( psDec->indices.NLSFInterpCoef_Q2 < 1 << 2 ) { in silk_decode_core()
72 rand_seed = psDec->indices.Seed; in silk_decode_core()
73 for( i = 0; i < psDec->frame_length; i++ ) { in silk_decode_core()
75 psDec->exc_Q14[ i ] = silk_LSHIFT( (opus_int32)pulses[ i ], 14 ); in silk_decode_core()
76 if( psDec->exc_Q14[ i ] > 0 ) { in silk_decode_core()
77 psDec->exc_Q14[ i ] -= QUANT_LEVEL_ADJUST_Q10 << 4; in silk_decode_core()
79 if( psDec->exc_Q14[ i ] < 0 ) { in silk_decode_core()
80 psDec->exc_Q14[ i ] += QUANT_LEVEL_ADJUST_Q10 << 4; in silk_decode_core()
82 psDec->exc_Q14[ i ] += offset_Q10 << 4; in silk_decode_core()
84 psDec->exc_Q14[ i ] = -psDec->exc_Q14[ i ]; in silk_decode_core()
91 silk_memcpy( sLPC_Q14, psDec->sLPC_Q14_buf, MAX_LPC_ORDER * sizeof( opus_int32 ) ); in silk_decode_core()
93 pexc_Q14 = psDec->exc_Q14; in silk_decode_core()
95 sLTP_buf_idx = psDec->ltp_mem_length; in silk_decode_core()
97 for( k = 0; k < psDec->nb_subfr; k++ ) { in silk_decode_core()
102 silk_memcpy( A_Q12_tmp, A_Q12, psDec->LPC_order * sizeof( opus_int16 ) ); in silk_decode_core()
104 signalType = psDec->indices.signalType; in silk_decode_core()
110 if( psDecCtrl->Gains_Q16[ k ] != psDec->prev_gain_Q16 ) { in silk_decode_core()
111 gain_adj_Q16 = silk_DIV32_varQ( psDec->prev_gain_Q16, psDecCtrl->Gains_Q16[ k ], 16 ); in silk_decode_core()
123 psDec->prev_gain_Q16 = psDecCtrl->Gains_Q16[ k ]; in silk_decode_core()
126 if( psDec->lossCnt && psDec->prevSignalType == TYPE_VOICED && in silk_decode_core()
127 psDec->indices.signalType != TYPE_VOICED && k < MAX_NB_SUBFR/2 ) { in silk_decode_core()
133 psDecCtrl->pitchL[ k ] = psDec->lagPrev; in silk_decode_core()
143 start_idx = psDec->ltp_mem_length - lag - psDec->LPC_order - LTP_ORDER / 2; in silk_decode_core()
147 …silk_memcpy( &psDec->outBuf[ psDec->ltp_mem_length ], xq, 2 * psDec->subfr_length * sizeof( opus_i… in silk_decode_core()
150 …silk_LPC_analysis_filter( &sLTP[ start_idx ], &psDec->outBuf[ start_idx + k * psDec->subfr_length … in silk_decode_core()
151 A_Q12, psDec->ltp_mem_length - start_idx, psDec->LPC_order, arch ); in silk_decode_core()
159 …sLTP_Q15[ sLTP_buf_idx - i - 1 ] = silk_SMULWB( inv_gain_Q31, sLTP[ psDec->ltp_mem_length - i - 1 … in silk_decode_core()
175 for( i = 0; i < psDec->subfr_length; i++ ) { in silk_decode_core()
197 for( i = 0; i < psDec->subfr_length; i++ ) { in silk_decode_core()
199 celt_assert( psDec->LPC_order == 10 || psDec->LPC_order == 16 ); in silk_decode_core()
201 LPC_pred_Q10 = silk_RSHIFT( psDec->LPC_order, 1 ); in silk_decode_core()
212 if( psDec->LPC_order == 16 ) { in silk_decode_core()
229 … silk_memcpy( sLPC_Q14, &sLPC_Q14[ psDec->subfr_length ], MAX_LPC_ORDER * sizeof( opus_int32 ) ); in silk_decode_core()
230 pexc_Q14 += psDec->subfr_length; in silk_decode_core()
231 pxq += psDec->subfr_length; in silk_decode_core()
235 silk_memcpy( psDec->sLPC_Q14_buf, sLPC_Q14, MAX_LPC_ORDER * sizeof( opus_int32 ) ); in silk_decode_core()