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 celt_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length ); in silk_find_pitch_lags_FIX()
70 ALLOC( Wsig, psEnc->sCmn.pitch_LPC_win_length, opus_int16 ); in silk_find_pitch_lags_FIX()
73 x_ptr = x + buf_len - psEnc->sCmn.pitch_LPC_win_length; in silk_find_pitch_lags_FIX()
75 silk_apply_sine_window( Wsig_ptr, x_ptr, 1, psEnc->sCmn.la_pitch ); in silk_find_pitch_lags_FIX()
78 Wsig_ptr += psEnc->sCmn.la_pitch; in silk_find_pitch_lags_FIX()
79 x_ptr += psEnc->sCmn.la_pitch; in silk_find_pitch_lags_FIX()
80 …silk_memcpy( Wsig_ptr, x_ptr, ( psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pit… in silk_find_pitch_lags_FIX()
83 Wsig_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); in silk_find_pitch_lags_FIX()
84 x_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); in silk_find_pitch_lags_FIX()
85 silk_apply_sine_window( Wsig_ptr, x_ptr, 2, psEnc->sCmn.la_pitch ); in silk_find_pitch_lags_FIX()
88 …silk_autocorr( auto_corr, &scale, Wsig, psEnc->sCmn.pitch_LPC_win_length, psEnc->sCmn.pitchEstimat… in silk_find_pitch_lags_FIX()
94 res_nrg = silk_schur( rc_Q15, auto_corr, psEnc->sCmn.pitchEstimationLPCOrder ); in silk_find_pitch_lags_FIX()
100 silk_k2a( A_Q24, rc_Q15, psEnc->sCmn.pitchEstimationLPCOrder ); in silk_find_pitch_lags_FIX()
103 for( i = 0; i < psEnc->sCmn.pitchEstimationLPCOrder; i++ ) { in silk_find_pitch_lags_FIX()
108 …silk_bwexpander( A_Q12, psEnc->sCmn.pitchEstimationLPCOrder, SILK_FIX_CONST( FIND_PITCH_BANDWIDTH_… in silk_find_pitch_lags_FIX()
113 …silk_LPC_analysis_filter( res, x, A_Q12, buf_len, psEnc->sCmn.pitchEstimationLPCOrder, psEnc->sCmn… in silk_find_pitch_lags_FIX()
115 …if( psEnc->sCmn.indices.signalType != TYPE_NO_VOICE_ACTIVITY && psEnc->sCmn.first_frame_after_rese… in silk_find_pitch_lags_FIX()
118 …thrhld_Q13 = silk_SMLABB( thrhld_Q13, SILK_FIX_CONST( -0.004, 13 ), psEnc->sCmn.pitchEstimationLPC… in silk_find_pitch_lags_FIX()
119 …thrhld_Q13 = silk_SMLAWB( thrhld_Q13, SILK_FIX_CONST( -0.1, 21 ), psEnc->sCmn.speech_activity_Q… in silk_find_pitch_lags_FIX()
120 …thrhld_Q13 = silk_SMLABB( thrhld_Q13, SILK_FIX_CONST( -0.15, 13 ), silk_RSHIFT( psEnc->sCmn.prevS… in silk_find_pitch_lags_FIX()
121 … thrhld_Q13 = silk_SMLAWB( thrhld_Q13, SILK_FIX_CONST( -0.1, 14 ), psEnc->sCmn.input_tilt_Q15 ); in silk_find_pitch_lags_FIX()
127 …if( silk_pitch_analysis_core( res, psEncCtrl->pitchL, &psEnc->sCmn.indices.lagIndex, &psEnc->sCmn.… in silk_find_pitch_lags_FIX()
128 &psEnc->LTPCorr_Q15, psEnc->sCmn.prevLag, psEnc->sCmn.pitchEstimationThreshold_Q16, in silk_find_pitch_lags_FIX()
129 …(opus_int)thrhld_Q13, psEnc->sCmn.fs_kHz, psEnc->sCmn.pitchEstimationComplexity, psEnc->sCmn.nb_su… in silk_find_pitch_lags_FIX()
130 psEnc->sCmn.arch) == 0 ) in silk_find_pitch_lags_FIX()
132 psEnc->sCmn.indices.signalType = TYPE_VOICED; in silk_find_pitch_lags_FIX()
134 psEnc->sCmn.indices.signalType = TYPE_UNVOICED; in silk_find_pitch_lags_FIX()
138 psEnc->sCmn.indices.lagIndex = 0; in silk_find_pitch_lags_FIX()
139 psEnc->sCmn.indices.contourIndex = 0; in silk_find_pitch_lags_FIX()
140 psEnc->LTPCorr_Q15 = 0; in silk_find_pitch_lags_FIX()