Lines Matching refs:psPLC
104 silk_PLC_struct *psPLC; in silk_PLC_update() local
106 psPLC = &psDec->sPLC; in silk_PLC_update()
123 silk_memcpy( psPLC->LTPCoef_Q14, in silk_PLC_update()
127 psPLC->pitchL_Q8 = silk_LSHIFT( psDecCtrl->pitchL[ psDec->nb_subfr - 1 - j ], 8 ); in silk_PLC_update()
131 silk_memset( psPLC->LTPCoef_Q14, 0, LTP_ORDER * sizeof( opus_int16 ) ); in silk_PLC_update()
132 psPLC->LTPCoef_Q14[ LTP_ORDER / 2 ] = LTP_Gain_Q14; in silk_PLC_update()
142 … psPLC->LTPCoef_Q14[ i ] = silk_RSHIFT( silk_SMULBB( psPLC->LTPCoef_Q14[ i ], scale_Q10 ), 10 ); in silk_PLC_update()
151 … psPLC->LTPCoef_Q14[ i ] = silk_RSHIFT( silk_SMULBB( psPLC->LTPCoef_Q14[ i ], scale_Q14 ), 14 ); in silk_PLC_update()
155 psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); in silk_PLC_update()
156 silk_memset( psPLC->LTPCoef_Q14, 0, LTP_ORDER * sizeof( opus_int16 )); in silk_PLC_update()
160 …silk_memcpy( psPLC->prevLPC_Q12, psDecCtrl->PredCoef_Q12[ 1 ], psDec->LPC_order * sizeof( opus_int… in silk_PLC_update()
161 psPLC->prevLTP_scale_Q14 = psDecCtrl->LTP_scale_Q14; in silk_PLC_update()
164 …silk_memcpy( psPLC->prevGain_Q16, &psDecCtrl->Gains_Q16[ psDec->nb_subfr - 2 ], 2 * sizeof( opus_i… in silk_PLC_update()
166 psPLC->subfr_length = psDec->subfr_length; in silk_PLC_update()
167 psPLC->nb_subfr = psDec->nb_subfr; in silk_PLC_update()
216 silk_PLC_struct *psPLC = &psDec->sPLC; in silk_PLC_conceal() local
228 prevGain_Q10[0] = silk_RSHIFT( psPLC->prevGain_Q16[ 0 ], 6); in silk_PLC_conceal()
229 prevGain_Q10[1] = silk_RSHIFT( psPLC->prevGain_Q16[ 1 ], 6); in silk_PLC_conceal()
232 silk_memset( psPLC->prevLPC_Q12, 0, sizeof( psPLC->prevLPC_Q12 ) ); in silk_PLC_conceal()
239 …rand_ptr = &psDec->exc_Q14[ silk_max_int( 0, ( psPLC->nb_subfr - 1 ) * psPLC->subfr_length - RAND_… in silk_PLC_conceal()
242 …rand_ptr = &psDec->exc_Q14[ silk_max_int( 0, psPLC->nb_subfr * psPLC->subfr_length - RAND_BUF_SIZE… in silk_PLC_conceal()
246 B_Q14 = psPLC->LTPCoef_Q14; in silk_PLC_conceal()
247 rand_scale_Q14 = psPLC->randScale_Q14; in silk_PLC_conceal()
258 silk_bwexpander( psPLC->prevLPC_Q12, psDec->LPC_order, SILK_FIX_CONST( BWE_COEF, 16 ) ); in silk_PLC_conceal()
261 silk_memcpy( A_Q12, psPLC->prevLPC_Q12, psDec->LPC_order * sizeof( opus_int16 ) ); in silk_PLC_conceal()
273 …rand_scale_Q14 = (opus_int16)silk_RSHIFT( silk_SMULBB( rand_scale_Q14, psPLC->prevLTP_scale_Q14 ),… in silk_PLC_conceal()
278 invGain_Q30 = silk_LPC_inverse_pred_gain( psPLC->prevLPC_Q12, psDec->LPC_order, arch ); in silk_PLC_conceal()
288 rand_seed = psPLC->rand_seed; in silk_PLC_conceal()
289 lag = silk_RSHIFT_ROUND( psPLC->pitchL_Q8, 8 ); in silk_PLC_conceal()
297 inv_gain_Q30 = silk_INVERSE32_varQ( psPLC->prevGain_Q16[ 1 ], 46 ); in silk_PLC_conceal()
337 psPLC->pitchL_Q8 = silk_SMLAWB( psPLC->pitchL_Q8, psPLC->pitchL_Q8, PITCH_DRIFT_FAC_Q16 ); in silk_PLC_conceal()
338 …psPLC->pitchL_Q8 = silk_min_32( psPLC->pitchL_Q8, silk_LSHIFT( silk_SMULBB( MAX_PITCH_LAG_MS, psDe… in silk_PLC_conceal()
339 lag = silk_RSHIFT_ROUND( psPLC->pitchL_Q8, 8 ); in silk_PLC_conceal()
383 psPLC->rand_seed = rand_seed; in silk_PLC_conceal()
384 psPLC->randScale_Q14 = rand_scale_Q14; in silk_PLC_conceal()
400 silk_PLC_struct *psPLC; in silk_PLC_glue_frames() local
401 psPLC = &psDec->sPLC; in silk_PLC_glue_frames()
405 silk_sum_sqr_shift( &psPLC->conc_energy, &psPLC->conc_energy_shift, frame, length ); in silk_PLC_glue_frames()
407 psPLC->last_frame_lost = 1; in silk_PLC_glue_frames()
414 if( energy_shift > psPLC->conc_energy_shift ) { in silk_PLC_glue_frames()
415 … psPLC->conc_energy = silk_RSHIFT( psPLC->conc_energy, energy_shift - psPLC->conc_energy_shift ); in silk_PLC_glue_frames()
416 } else if( energy_shift < psPLC->conc_energy_shift ) { in silk_PLC_glue_frames()
417 energy = silk_RSHIFT( energy, psPLC->conc_energy_shift - energy_shift ); in silk_PLC_glue_frames()
421 if( energy > psPLC->conc_energy ) { in silk_PLC_glue_frames()
425 LZ = silk_CLZ32( psPLC->conc_energy ); in silk_PLC_glue_frames()
427 psPLC->conc_energy = silk_LSHIFT( psPLC->conc_energy, LZ ); in silk_PLC_glue_frames()
430 frac_Q24 = silk_DIV32( psPLC->conc_energy, silk_max( energy, 1 ) ); in silk_PLC_glue_frames()
446 psPLC->last_frame_lost = 0; in silk_PLC_glue_frames()