Lines Matching refs:sCmn
145 x_ptr = x - psEnc->sCmn.la_shape; in silk_noise_shape_analysis_FLP()
150 SNR_adj_dB = psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ); in silk_noise_shape_analysis_FLP()
153 …psEncCtrl->input_quality = 0.5f * ( psEnc->sCmn.input_quality_bands_Q15[ 0 ] + psEnc->sCmn.input_q… in silk_noise_shape_analysis_FLP()
158 if( psEnc->sCmn.useCBR == 0 ) { in silk_noise_shape_analysis_FLP()
160 b = 1.0f - psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); in silk_noise_shape_analysis_FLP()
164 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FLP()
169 …SNR_adj_dB += ( -0.4f * psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ) + 6.0f ) * ( 1.0f - psEncCtrl->inpu… in silk_noise_shape_analysis_FLP()
176 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FLP()
178 psEnc->sCmn.indices.quantOffsetType = 0; in silk_noise_shape_analysis_FLP()
182 nSamples = 2 * psEnc->sCmn.fs_kHz; in silk_noise_shape_analysis_FLP()
186 for( k = 0; k < silk_SMULBB( SUB_FRAME_LENGTH_MS, psEnc->sCmn.nb_subfr ) / 2; k++ ) { in silk_noise_shape_analysis_FLP()
199 psEnc->sCmn.indices.quantOffsetType = 0; in silk_noise_shape_analysis_FLP()
201 psEnc->sCmn.indices.quantOffsetType = 1; in silk_noise_shape_analysis_FLP()
220 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FLP()
222 … warping = (silk_float)psEnc->sCmn.warping_Q16 / 65536.0f + 0.01f * psEncCtrl->coding_quality; in silk_noise_shape_analysis_FLP()
230 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
233 flat_part = psEnc->sCmn.fs_kHz * 3; in silk_noise_shape_analysis_FLP()
234 slope_part = ( psEnc->sCmn.shapeWinLength - flat_part ) / 2; in silk_noise_shape_analysis_FLP()
243 x_ptr += psEnc->sCmn.subfr_length; in silk_noise_shape_analysis_FLP()
245 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FLP()
248 psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
251 …silk_autocorrelation_FLP( auto_corr, x_windowed, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLP… in silk_noise_shape_analysis_FLP()
258 …ondurbin_FLP( &psEncCtrl->AR2[ k * MAX_SHAPE_LPC_ORDER ], auto_corr, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
261 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FLP()
263 …*= warped_gain( &psEncCtrl->AR2[ k * MAX_SHAPE_LPC_ORDER ], warping, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
267 …silk_bwexpander_FLP( &psEncCtrl->AR2[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.shapingLPCOrder, BWEx… in silk_noise_shape_analysis_FLP()
273 psEnc->sCmn.shapingLPCOrder * sizeof( silk_float ) ); in silk_noise_shape_analysis_FLP()
276 …silk_bwexpander_FLP( &psEncCtrl->AR1[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.shapingLPCOrder, BWEx… in silk_noise_shape_analysis_FLP()
279 …C_inverse_pred_gain_FLP( &psEncCtrl->AR2[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
280 …C_inverse_pred_gain_FLP( &psEncCtrl->AR1[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
285 warping, 3.999f, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
294 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
300 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
308 …strength = LOW_FREQ_SHAPING * ( 1.0f + LOW_QUALITY_LOW_FREQ_SHAPING_DECR * ( psEnc->sCmn.input_qua… in silk_noise_shape_analysis_FLP()
309 strength *= psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); in silk_noise_shape_analysis_FLP()
310 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FLP()
313 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
314 b = 0.2f / psEnc->sCmn.fs_kHz + 3.0f / psEncCtrl->pitchL[ k ]; in silk_noise_shape_analysis_FLP()
319 … (1 - HP_NOISE_COEF) * HARM_HP_NOISE_COEF * psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); in silk_noise_shape_analysis_FLP()
321 b = 1.3f / psEnc->sCmn.fs_kHz; in silk_noise_shape_analysis_FLP()
324 for( k = 1; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
340 if( USE_HARM_SHAPING && psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FLP()
357 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()