Lines Matching refs:psEnc
38 …silk_encoder_state_FIX *psEnc, /* I/O encoder state … in silk_find_pitch_lags_FIX() argument
59 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length; in silk_find_pitch_lags_FIX()
62 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length ); in silk_find_pitch_lags_FIX()
64 x_buf = x - psEnc->sCmn.ltp_mem_length; in silk_find_pitch_lags_FIX()
72 ALLOC( Wsig, psEnc->sCmn.pitch_LPC_win_length, opus_int16 ); in silk_find_pitch_lags_FIX()
75 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length; in silk_find_pitch_lags_FIX()
77 silk_apply_sine_window( Wsig_ptr, x_buf_ptr, 1, psEnc->sCmn.la_pitch ); in silk_find_pitch_lags_FIX()
80 Wsig_ptr += psEnc->sCmn.la_pitch; in silk_find_pitch_lags_FIX()
81 x_buf_ptr += psEnc->sCmn.la_pitch; in silk_find_pitch_lags_FIX()
82 …silk_memcpy( Wsig_ptr, x_buf_ptr, ( psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la… in silk_find_pitch_lags_FIX()
85 Wsig_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); in silk_find_pitch_lags_FIX()
86 x_buf_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); in silk_find_pitch_lags_FIX()
87 silk_apply_sine_window( Wsig_ptr, x_buf_ptr, 2, psEnc->sCmn.la_pitch ); in silk_find_pitch_lags_FIX()
90 …silk_autocorr( auto_corr, &scale, Wsig, psEnc->sCmn.pitch_LPC_win_length, psEnc->sCmn.pitchEstimat… in silk_find_pitch_lags_FIX()
96 res_nrg = silk_schur( rc_Q15, auto_corr, psEnc->sCmn.pitchEstimationLPCOrder ); in silk_find_pitch_lags_FIX()
102 silk_k2a( A_Q24, rc_Q15, psEnc->sCmn.pitchEstimationLPCOrder ); in silk_find_pitch_lags_FIX()
105 for( i = 0; i < psEnc->sCmn.pitchEstimationLPCOrder; i++ ) { in silk_find_pitch_lags_FIX()
110 …silk_bwexpander( A_Q12, psEnc->sCmn.pitchEstimationLPCOrder, SILK_FIX_CONST( FIND_PITCH_BANDWIDTH_… in silk_find_pitch_lags_FIX()
115 silk_LPC_analysis_filter( res, x_buf, A_Q12, buf_len, psEnc->sCmn.pitchEstimationLPCOrder ); in silk_find_pitch_lags_FIX()
117 …if( psEnc->sCmn.indices.signalType != TYPE_NO_VOICE_ACTIVITY && psEnc->sCmn.first_frame_after_rese… in silk_find_pitch_lags_FIX()
120 …thrhld_Q13 = silk_SMLABB( thrhld_Q13, SILK_FIX_CONST( -0.004, 13 ), psEnc->sCmn.pitchEstimationLPC… in silk_find_pitch_lags_FIX()
121 …thrhld_Q13 = silk_SMLAWB( thrhld_Q13, SILK_FIX_CONST( -0.1, 21 ), psEnc->sCmn.speech_activity_Q… in silk_find_pitch_lags_FIX()
122 …thrhld_Q13 = silk_SMLABB( thrhld_Q13, SILK_FIX_CONST( -0.15, 13 ), silk_RSHIFT( psEnc->sCmn.prevS… in silk_find_pitch_lags_FIX()
123 … thrhld_Q13 = silk_SMLAWB( thrhld_Q13, SILK_FIX_CONST( -0.1, 14 ), psEnc->sCmn.input_tilt_Q15 ); in silk_find_pitch_lags_FIX()
129 …if( silk_pitch_analysis_core( res, psEncCtrl->pitchL, &psEnc->sCmn.indices.lagIndex, &psEnc->sCmn.… in silk_find_pitch_lags_FIX()
130 &psEnc->LTPCorr_Q15, psEnc->sCmn.prevLag, psEnc->sCmn.pitchEstimationThreshold_Q16, in silk_find_pitch_lags_FIX()
131 …(opus_int)thrhld_Q13, psEnc->sCmn.fs_kHz, psEnc->sCmn.pitchEstimationComplexity, psEnc->sCmn.nb_su… in silk_find_pitch_lags_FIX()
132 psEnc->sCmn.arch) == 0 ) in silk_find_pitch_lags_FIX()
134 psEnc->sCmn.indices.signalType = TYPE_VOICED; in silk_find_pitch_lags_FIX()
136 psEnc->sCmn.indices.signalType = TYPE_UNVOICED; in silk_find_pitch_lags_FIX()
140 psEnc->sCmn.indices.lagIndex = 0; in silk_find_pitch_lags_FIX()
141 psEnc->sCmn.indices.contourIndex = 0; in silk_find_pitch_lags_FIX()
142 psEnc->LTPCorr_Q15 = 0; in silk_find_pitch_lags_FIX()