Lines Matching refs:sCmn
161 x_ptr = x - psEnc->sCmn.la_shape; in silk_noise_shape_analysis_FIX()
166 SNR_adj_dB_Q7 = psEnc->sCmn.SNR_dB_Q7; in silk_noise_shape_analysis_FIX()
169 …psEncCtrl->input_quality_Q14 = ( opus_int )silk_RSHIFT( (opus_int32)psEnc->sCmn.input_quality_band… in silk_noise_shape_analysis_FIX()
170 + psEnc->sCmn.input_quality_bands_Q15[ 1 ], 2 ); in silk_noise_shape_analysis_FIX()
177 if( psEnc->sCmn.useCBR == 0 ) { in silk_noise_shape_analysis_FIX()
178 b_Q8 = SILK_FIX_CONST( 1.0, 8 ) - psEnc->sCmn.speech_activity_Q8; in silk_noise_shape_analysis_FIX()
185 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FIX()
191 … silk_SMLAWB( SILK_FIX_CONST( 6.0, 9 ), -SILK_FIX_CONST( 0.4, 18 ), psEnc->sCmn.SNR_dB_Q7 ), in silk_noise_shape_analysis_FIX()
199 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FIX()
201 psEnc->sCmn.indices.quantOffsetType = 0; in silk_noise_shape_analysis_FIX()
204 nSamples = silk_LSHIFT( psEnc->sCmn.fs_kHz, 1 ); in silk_noise_shape_analysis_FIX()
208 nSegs = silk_SMULBB( SUB_FRAME_LENGTH_MS, psEnc->sCmn.nb_subfr ) / 2; in silk_noise_shape_analysis_FIX()
223 psEnc->sCmn.indices.quantOffsetType = 0; in silk_noise_shape_analysis_FIX()
225 psEnc->sCmn.indices.quantOffsetType = 1; in silk_noise_shape_analysis_FIX()
237 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FIX()
239 …warping_Q16 = silk_SMLAWB( psEnc->sCmn.warping_Q16, (opus_int32)psEncCtrl->coding_quality_Q14, SIL… in silk_noise_shape_analysis_FIX()
247 ALLOC( x_windowed, psEnc->sCmn.shapeWinLength, opus_int16 ); in silk_noise_shape_analysis_FIX()
248 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FIX()
251 flat_part = psEnc->sCmn.fs_kHz * 3; in silk_noise_shape_analysis_FIX()
252 slope_part = silk_RSHIFT( psEnc->sCmn.shapeWinLength - flat_part, 1 ); in silk_noise_shape_analysis_FIX()
261 x_ptr += psEnc->sCmn.subfr_length; in silk_noise_shape_analysis_FIX()
263 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FIX()
265 …ion_FIX( auto_corr, &scale, x_windowed, warping_Q16, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapi… in silk_noise_shape_analysis_FIX()
268 …silk_autocorr( auto_corr, &scale, x_windowed, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOr… in silk_noise_shape_analysis_FIX()
276 nrg = silk_schur64( refl_coef_Q16, auto_corr, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FIX()
280 silk_k2a_Q16( AR_Q24, refl_coef_Q16, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FIX()
297 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FIX()
299 gain_mult_Q16 = warped_gain( AR_Q24, warping_Q16, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FIX()
315 silk_bwexpander_32( AR_Q24, psEnc->sCmn.shapingLPCOrder, BWExp_Q16 ); in silk_noise_shape_analysis_FIX()
317 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FIX()
319 …limit_warped_coefs( AR_Q24, warping_Q16, SILK_FIX_CONST( 3.999, 24 ), psEnc->sCmn.shapingLPCOrder … in silk_noise_shape_analysis_FIX()
322 for( i = 0; i < psEnc->sCmn.shapingLPCOrder; i++ ) { in silk_noise_shape_analysis_FIX()
326 …_fit( &psEncCtrl->AR_Q13[ k * MAX_SHAPE_LPC_ORDER ], AR_Q24, 13, 24, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FIX()
337 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FIX()
349 …SILK_FIX_CONST( LOW_QUALITY_LOW_FREQ_SHAPING_DECR, 13 ), psEnc->sCmn.input_quality_bands_Q15[ 0 ] … in silk_noise_shape_analysis_FIX()
350 strength_Q16 = silk_RSHIFT( silk_MUL( strength_Q16, psEnc->sCmn.speech_activity_Q8 ), 8 ); in silk_noise_shape_analysis_FIX()
351 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FIX()
354 opus_int fs_kHz_inv = silk_DIV32_16( SILK_FIX_CONST( 0.2, 14 ), psEnc->sCmn.fs_kHz ); in silk_noise_shape_analysis_FIX()
355 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FIX()
364 … silk_SMULWB( SILK_FIX_CONST( HARM_HP_NOISE_COEF, 24 ), psEnc->sCmn.speech_activity_Q8 ) ); in silk_noise_shape_analysis_FIX()
366 b_Q14 = silk_DIV32_16( 21299, psEnc->sCmn.fs_kHz ); /* 1.3_Q0 = 21299_Q14*/ in silk_noise_shape_analysis_FIX()
371 for( k = 1; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FIX()
380 if( USE_HARM_SHAPING && psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FIX()