• Home
  • Raw
  • Download

Lines Matching refs:psEnc

148 …silk_encoder_state_FLP          *psEnc,                             /* I/O  Encoder state FLP     …  in silk_noise_shape_analysis_FLP()  argument
154 silk_shape_state_FLP *psShapeSt = &psEnc->sShape; in silk_noise_shape_analysis_FLP()
165 x_ptr = x - psEnc->sCmn.la_shape; in silk_noise_shape_analysis_FLP()
170 SNR_adj_dB = psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ); in silk_noise_shape_analysis_FLP()
173 …psEncCtrl->input_quality = 0.5f * ( psEnc->sCmn.input_quality_bands_Q15[ 0 ] + psEnc->sCmn.input_q… in silk_noise_shape_analysis_FLP()
178 if( psEnc->sCmn.useCBR == 0 ) { in silk_noise_shape_analysis_FLP()
180 b = 1.0f - psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); in silk_noise_shape_analysis_FLP()
184 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FLP()
186 SNR_adj_dB += HARM_SNR_INCR_dB * psEnc->LTPCorr; in silk_noise_shape_analysis_FLP()
189 …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()
196 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FLP()
198 psEnc->sCmn.indices.quantOffsetType = 0; in silk_noise_shape_analysis_FLP()
201 nSamples = 2 * psEnc->sCmn.fs_kHz; in silk_noise_shape_analysis_FLP()
205 nSegs = silk_SMULBB( SUB_FRAME_LENGTH_MS, psEnc->sCmn.nb_subfr ) / 2; in silk_noise_shape_analysis_FLP()
218 psEnc->sCmn.indices.quantOffsetType = 0; in silk_noise_shape_analysis_FLP()
220 psEnc->sCmn.indices.quantOffsetType = 1; in silk_noise_shape_analysis_FLP()
232 warping = (silk_float)psEnc->sCmn.warping_Q16 / 65536.0f + 0.01f * psEncCtrl->coding_quality; in silk_noise_shape_analysis_FLP()
237 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
240 flat_part = psEnc->sCmn.fs_kHz * 3; in silk_noise_shape_analysis_FLP()
241 slope_part = ( psEnc->sCmn.shapeWinLength - flat_part ) / 2; in silk_noise_shape_analysis_FLP()
250 x_ptr += psEnc->sCmn.subfr_length; in silk_noise_shape_analysis_FLP()
252 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FLP()
255 psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
258 …silk_autocorrelation_FLP( auto_corr, x_windowed, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLP… in silk_noise_shape_analysis_FLP()
265 nrg = silk_schur_FLP( rc, auto_corr, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
266 silk_k2a_FLP( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], rc, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
269 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FLP()
271 …[ k ] *= warped_gain( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], warping, psEnc->sCmn.shapingLPCOr… in silk_noise_shape_analysis_FLP()
275 …silk_bwexpander_FLP( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.shapingLPCOrder, BWExp… in silk_noise_shape_analysis_FLP()
277 if( psEnc->sCmn.warping_Q16 > 0 ) { in silk_noise_shape_analysis_FLP()
279 …2monic_coefs( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], warping, 3.999f, psEnc->sCmn.shapingLPCOr… in silk_noise_shape_analysis_FLP()
282 … limit_coefs( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], 3.999f, psEnc->sCmn.shapingLPCOrder ); in silk_noise_shape_analysis_FLP()
292 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
301 …strength = LOW_FREQ_SHAPING * ( 1.0f + LOW_QUALITY_LOW_FREQ_SHAPING_DECR * ( psEnc->sCmn.input_qua… in silk_noise_shape_analysis_FLP()
302 strength *= psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); in silk_noise_shape_analysis_FLP()
303 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FLP()
306 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
307 b = 0.2f / psEnc->sCmn.fs_kHz + 3.0f / psEncCtrl->pitchL[ k ]; in silk_noise_shape_analysis_FLP()
312 … (1 - HP_NOISE_COEF) * HARM_HP_NOISE_COEF * psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); in silk_noise_shape_analysis_FLP()
314 b = 1.3f / psEnc->sCmn.fs_kHz; in silk_noise_shape_analysis_FLP()
317 for( k = 1; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
327 if( USE_HARM_SHAPING && psEnc->sCmn.indices.signalType == TYPE_VOICED ) { in silk_noise_shape_analysis_FLP()
336 HarmShapeGain *= ( silk_float )sqrt( psEnc->LTPCorr ); in silk_noise_shape_analysis_FLP()
344 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()