Home
last modified time | relevance | path

Searched refs:SILK_FIX_CONST (Results 1 – 25 of 35) sorted by relevance

12

/external/libopus/silk/fixed/mips/
Dnoise_shape_analysis_FIX_mipsr1.h69 SILK_FIX_CONST( 20.0, 7 ), 4 ) ), 1 ); in silk_noise_shape_analysis_FIX()
73 b_Q8 = SILK_FIX_CONST( 1.0, 8 ) - psEnc->sCmn.speech_activity_Q8; in silk_noise_shape_analysis_FIX()
76 …silk_SMULBB( SILK_FIX_CONST( -BG_SNR_DECR_dB, 7 ) >> ( 4 + 1 ), b_Q8 ), … in silk_noise_shape_analysis_FIX()
77 …silk_SMULWB( SILK_FIX_CONST( 1.0, 14 ) + psEncCtrl->input_quality_Q14, psEncCtrl->coding_quality_Q… in silk_noise_shape_analysis_FIX()
82 …SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, SILK_FIX_CONST( HARM_SNR_INCR_dB, 8 ), psEnc->LTPCorr_… in silk_noise_shape_analysis_FIX()
86 … 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()
87 SILK_FIX_CONST( 1.0, 14 ) - psEncCtrl->input_quality_Q14 ); in silk_noise_shape_analysis_FIX()
117 SILK_FIX_CONST( 5.0, 7 ), SILK_FIX_CONST( 0.1, 16 ) ) ), 7 ); in silk_noise_shape_analysis_FIX()
120 if( psEncCtrl->sparseness_Q8 > SILK_FIX_CONST( SPARSENESS_THRESHOLD_QNT_OFFSET, 8 ) ) { in silk_noise_shape_analysis_FIX()
127 …B_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, SILK_FIX_CONST( SPARSE_SNR_INCR_dB, 15 ), psEncCtrl->sparseness… in silk_noise_shape_analysis_FIX()
[all …]
/external/libopus/silk/fixed/
Dnoise_shape_analysis_FIX.c53 gain_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), gain_Q24, -lambda_Q16 ); in warped_gain()
76 nom_Q16 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 16 ), -(opus_int32)lambda_Q16, lambda_Q16 ); in limit_warped_coefs()
77 den_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), coefs_Q24[ 0 ], lambda_Q16 ); in limit_warped_coefs()
110 chirp_Q16 = SILK_FIX_CONST( 0.99, 16 ) - silk_DIV32_varQ( in limit_warped_coefs()
111 …silk_SMULWB( maxabs_Q20 - limit_Q20, silk_SMLABB( SILK_FIX_CONST( 0.8, 10 ), SILK_FIX_CONST( 0.1, … in limit_warped_coefs()
121 … nom_Q16 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 16 ), -(opus_int32)lambda_Q16, lambda_Q16 ); in limit_warped_coefs()
122 den_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), coefs_Q24[ 0 ], lambda_Q16 ); in limit_warped_coefs()
174 SILK_FIX_CONST( 20.0, 7 ), 4 ) ), 1 ); 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()
181 …silk_SMULBB( SILK_FIX_CONST( -BG_SNR_DECR_dB, 7 ) >> ( 4 + 1 ), b_Q8 ), … in silk_noise_shape_analysis_FIX()
[all …]
Dprocess_gains_FIX.c49 …s_Q16 = -silk_sigm_Q15( silk_RSHIFT_ROUND( psEncCtrl->LTPredCodGain_Q7 - SILK_FIX_CONST( 12.0, 7 )… in silk_process_gains_FIX()
58 …silk_SMULWB( SILK_FIX_CONST( 21 + 16 / 0.33, 7 ) - psEnc->sCmn.SNR_dB_Q7, SILK_FIX_CONST( 0.33, 16… in silk_process_gains_FIX()
99 …trl->LTPredCodGain_Q7 + silk_RSHIFT( psEnc->sCmn.input_tilt_Q15, 8 ) > SILK_FIX_CONST( 1.0, 7 ) ) { in silk_process_gains_FIX()
108 psEncCtrl->Lambda_Q10 = SILK_FIX_CONST( LAMBDA_OFFSET, 10 ) in silk_process_gains_FIX()
109 …+ silk_SMULBB( SILK_FIX_CONST( LAMBDA_DELAYED_DECISIONS, 10 ), psEnc->sCmn.nStatesDelayedDecision ) in silk_process_gains_FIX()
110 …+ silk_SMULWB( SILK_FIX_CONST( LAMBDA_SPEECH_ACT, 18 ), psEnc->sCmn.speech_activity_Q8 ) in silk_process_gains_FIX()
111 …+ silk_SMULWB( SILK_FIX_CONST( LAMBDA_INPUT_QUALITY, 12 ), psEncCtrl->input_quality_Q14 ) in silk_process_gains_FIX()
112 …+ silk_SMULWB( SILK_FIX_CONST( LAMBDA_CODING_QUALITY, 12 ), psEncCtrl->coding_quality_Q14 ) in silk_process_gains_FIX()
113 …+ silk_SMULWB( SILK_FIX_CONST( LAMBDA_QUANT_OFFSET, 16 ), quant_offset_Q10 … in silk_process_gains_FIX()
116 silk_assert( psEncCtrl->Lambda_Q10 < SILK_FIX_CONST( 2, 10 ) ); in silk_process_gains_FIX()
Dfind_pitch_lags_FIX.c91 …auto_corr[ 0 ] = silk_SMLAWB( auto_corr[ 0 ], auto_corr[ 0 ], SILK_FIX_CONST( FIND_PITCH_WHITE_NOI… 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()
117 thrhld_Q13 = SILK_FIX_CONST( 0.6, 13 ); 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()
Dfind_pred_coefs_FIX.c124 minInvGain_Q30 = SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN_AFTER_RESET, 30 ); in silk_find_pred_coefs_FIX()
126 …2lin( silk_SMLAWB( 16 << 7, (opus_int32)psEncCtrl->LTPredCodGain_Q7, SILK_FIX_CONST( 1.0 / 3, 16 )… in silk_find_pred_coefs_FIX()
128 silk_SMULWW( SILK_FIX_CONST( MAX_PREDICTION_POWER_GAIN, 0 ), in silk_find_pred_coefs_FIX()
129 …silk_SMLAWB( SILK_FIX_CONST( 0.25, 18 ), SILK_FIX_CONST( 0.75, 18 ), psEncCtrl->coding_quality_Q14… in silk_find_pred_coefs_FIX()
Dschur64_FIX.c63 rc_Q16[ k ] = -SILK_FIX_CONST( .99f, 16 ); in silk_schur64()
65 rc_Q16[ k ] = SILK_FIX_CONST( .99f, 16 ); in silk_schur64()
Dschur_FIX.c75 rc_Q15[ k ] = -SILK_FIX_CONST( .99f, 15 ); in silk_schur()
77 rc_Q15[ k ] = SILK_FIX_CONST( .99f, 15 ); in silk_schur()
Dpitch_analysis_core_FIX.c258 if( Cmax < SILK_FIX_CONST( 0.2, 14 ) ) { in silk_pitch_analysis_core()
418 …silk_assert( nb_subfr * SILK_FIX_CONST( PE_SHORTLAG_BIAS, 13 ) == silk_SAT16( nb_subfr * SILK_FIX_… in silk_pitch_analysis_core()
419 …CCmax_new_b = CCmax_new - silk_RSHIFT( silk_SMULBB( nb_subfr * SILK_FIX_CONST( PE_SHORTLAG_BIAS, 1… in silk_pitch_analysis_core()
422 …silk_assert( nb_subfr * SILK_FIX_CONST( PE_PREVLAG_BIAS, 13 ) == silk_SAT16( nb_subfr * SILK_FIX_C… in silk_pitch_analysis_core()
427 …prev_lag_bias_Q13 = silk_RSHIFT( silk_SMULBB( nb_subfr * SILK_FIX_CONST( PE_PREVLAG_BIAS, 13 ), *L… in silk_pitch_analysis_core()
428 …UL( prev_lag_bias_Q13, delta_lag_log2_sqr_Q7 ), delta_lag_log2_sqr_Q7 + SILK_FIX_CONST( 0.5, 7 ) ); in silk_pitch_analysis_core()
502 contour_bias_Q15 = silk_DIV32_16( SILK_FIX_CONST( PE_FLATCONTOUR_BIAS, 15 ), lag ); in silk_pitch_analysis_core()
DLTP_scale_ctrl_FIX.c47 …silk_SMULWB( silk_SMULBB( round_loss, psEncCtrl->LTPredCodGain_Q7 ), SILK_FIX_CONST( 0.1, 9 ) ), 0… in silk_LTP_scale_ctrl_FIX()
Dburg_modified_FIX.c83 …CAb[ 0 ] = CAf[ 0 ] = C0 + silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ) + 1; … in silk_burg_modified_c()
112 …CAb[ 0 ] = CAf[ 0 ] = C0 + silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ) + 1; … in silk_burg_modified_c()
277 …*res_nrg = silk_SMLAWW( nrg, silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ), -tmp1 );/*… in silk_burg_modified_c()
Dencode_frame_FIX.c50 const opus_int activity_threshold = SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ); in silk_encode_do_VAD_FIX()
169 gainMult_Q8 = SILK_FIX_CONST( 1, 8 ); in silk_encode_frame_FIX()
328 …_log2lin( silk_LSHIFT( nBits - maxBits, 7 ) / psEnc->sCmn.frame_length + SILK_FIX_CONST( 16, 7 ) ); in silk_encode_frame_FIX()
406 …if( psEnc->sCmn.LBRR_enabled && psEnc->sCmn.speech_activity_Q8 > SILK_FIX_CONST( LBRR_SPEECH_ACTIV… in silk_LBRR_encode_FIX()
/external/libopus/silk/
Dstereo_LR_to_MS.c97 SILK_FIX_CONST( STEREO_RATIO_SMOOTH_COEF / 2, 16 ) : in silk_stereo_LR_to_MS()
98 SILK_FIX_CONST( STEREO_RATIO_SMOOTH_COEF, 16 ); in silk_stereo_LR_to_MS()
105 frac_Q16 = silk_min( frac_Q16, SILK_FIX_CONST( 1, 16 ) ); in silk_stereo_LR_to_MS()
116 …mid_side_rates_bps[ 0 ] = silk_DIV32_varQ( total_rate_bps, SILK_FIX_CONST( 8 + 5, 16 ) + frac_3_Q1… in silk_stereo_LR_to_MS()
123 silk_SMULWB( SILK_FIX_CONST( 1, 16 ) + frac_3_Q16, min_mid_rate_bps ), 14+2 ); in silk_stereo_LR_to_MS()
124 width_Q14 = silk_LIMIT( width_Q14, 0, SILK_FIX_CONST( 1, 14 ) ); in silk_stereo_LR_to_MS()
127 width_Q14 = SILK_FIX_CONST( 1, 14 ); in silk_stereo_LR_to_MS()
142 …min_mid_rate_bps || silk_SMULWB( frac_Q16, state->smth_width_Q14 ) < SILK_FIX_CONST( 0.05, 14 ) ) ) in silk_stereo_LR_to_MS()
157 …min_mid_rate_bps || silk_SMULWB( frac_Q16, state->smth_width_Q14 ) < SILK_FIX_CONST( 0.02, 14 ) ) ) in silk_stereo_LR_to_MS()
168 } else if( state->smth_width_Q14 > SILK_FIX_CONST( 0.95, 14 ) ) { in silk_stereo_LR_to_MS()
[all …]
DLPC_inv_pred_gain.c36 #define A_LIMIT SILK_FIX_CONST( 0.99975, QA )
50 invGain_Q30 = SILK_FIX_CONST( 1, 30 ); in LPC_inverse_pred_gain_QA_c()
61 rc_mult1_Q30 = silk_SUB32( SILK_FIX_CONST( 1, 30 ), silk_SMMUL( rc_Q31, rc_Q31 ) ); in LPC_inverse_pred_gain_QA_c()
70 if( invGain_Q30 < SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN, 30 ) ) { in LPC_inverse_pred_gain_QA_c()
107 rc_mult1_Q30 = silk_SUB32( SILK_FIX_CONST( 1, 30 ), silk_SMMUL( rc_Q31, rc_Q31 ) ); in LPC_inverse_pred_gain_QA_c()
114 if( invGain_Q30 < SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN, 30 ) ) { in LPC_inverse_pred_gain_QA_c()
DHP_variable_cutoff.c56 …pitch_freq_log_Q7 - ( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUTOFF_HZ, 16 ) ) - ( 16 << 7 … in silk_HP_variable_cutoff()
66 …lta_freq_Q7 = silk_LIMIT_32( delta_freq_Q7, -SILK_FIX_CONST( VARIABLE_HP_MAX_DELTA_FREQ, 7 ), SILK… in silk_HP_variable_cutoff()
70 …silk_SMULBB( psEncC1->speech_activity_Q8, delta_freq_Q7 ), SILK_FIX_CONST( VARIABLE_HP_SMTH_COEF1,… in silk_HP_variable_cutoff()
Dcontrol_codec.c318 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.8, 16 ); in silk_setup_complexity()
328 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.76, 16 ); in silk_setup_complexity()
338 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.8, 16 ); in silk_setup_complexity()
348 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.76, 16 ); in silk_setup_complexity()
358 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.74, 16 ); in silk_setup_complexity()
365 …psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 … in silk_setup_complexity()
368 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.72, 16 ); in silk_setup_complexity()
375 …psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 … in silk_setup_complexity()
378 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.7, 16 ); in silk_setup_complexity()
385 …psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 … in silk_setup_complexity()
[all …]
Dprocess_NLSFs.c50 silk_assert( psEncC->speech_activity_Q8 <= SILK_FIX_CONST( 1.0, 8 ) ); in silk_process_NLSFs()
57 …NLSF_mu_Q20 = silk_SMLAWB( SILK_FIX_CONST( 0.003, 20 ), SILK_FIX_CONST( -0.001, 28 ), psEncC->spee… in silk_process_NLSFs()
64 silk_assert( NLSF_mu_Q20 <= SILK_FIX_CONST( 0.005, 20 ) ); in silk_process_NLSFs()
Dquant_LTP_gains.c67 opus_int32 gain_safety = SILK_FIX_CONST( 0.4, 7 ); in silk_quant_LTP_gains()
82 …max_gain_Q7 = silk_log2lin( ( SILK_FIX_CONST( MAX_SUM_LOG_GAIN_DB / 6.0, 7 ) - sum_log_gain_tmp_Q7… in silk_quant_LTP_gains()
83 + SILK_FIX_CONST( 7, 7 ) ) - gain_safety; in silk_quant_LTP_gains()
103 + silk_lin2log( gain_safety + gain_Q7 ) - SILK_FIX_CONST( 7, 7 )); in silk_quant_LTP_gains()
DNLSF_del_dec_quant.c68 out0_Q10 = silk_SUB16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant()
69 out1_Q10 = silk_SUB16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant()
71 out1_Q10 = silk_SUB16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant()
73 out0_Q10 = silk_ADD16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant()
75 out0_Q10 = silk_ADD16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant()
76 out1_Q10 = silk_ADD16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant()
Dtables_NLSF_CB_NB_MB.c185 SILK_FIX_CONST( 0.18, 16 ),
186 SILK_FIX_CONST( 1.0 / 0.18, 6 ),
Dtables_NLSF_CB_WB.c223 SILK_FIX_CONST( 0.15, 16 ),
224 SILK_FIX_CONST( 1.0 / 0.15, 6 ),
DNLSF_decode.c50 out_Q10 = silk_SUB16( out_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_residual_dequant()
52 out_Q10 = silk_ADD16( out_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_residual_dequant()
Dinit_encoder.c54 …psEnc->sCmn.variable_HP_smth1_Q15 = silk_LSHIFT( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUT… in silk_init_encoder()
Dstereo_decode_pred.c57 SILK_FIX_CONST( 0.5 / STEREO_QUANT_SUB_STEPS, 16 ) ); in silk_stereo_decode_pred()
/external/libopus/silk/arm/
DLPC_inv_pred_gain_neon_intr.c37 #define A_LIMIT SILK_FIX_CONST( 0.99975, QA )
68 invGain_Q30 = SILK_FIX_CONST( 1, 30 ); in LPC_inverse_pred_gain_QA_neon()
82 rc_mult1_Q30 = silk_SUB32( SILK_FIX_CONST( 1, 30 ), silk_SMMUL( rc_Q31, rc_Q31 ) ); in LPC_inverse_pred_gain_QA_neon()
91 if( invGain_Q30 < SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN, 30 ) ) { in LPC_inverse_pred_gain_QA_neon()
175 rc_mult1_Q30 = silk_SUB32( SILK_FIX_CONST( 1, 30 ), silk_SMMUL( rc_Q31, rc_Q31 ) ); in LPC_inverse_pred_gain_QA_neon()
182 if( invGain_Q30 < SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN, 30 ) ) { in LPC_inverse_pred_gain_QA_neon()
/external/libopus/silk/float/
Dencode_frame_FLP.c49 const opus_int activity_threshold = SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ); in silk_encode_do_VAD_FLP()
166 gainMult_Q8 = SILK_FIX_CONST( 1, 8 ); in silk_encode_frame_FLP()
316 …_log2lin( silk_LSHIFT( nBits - maxBits, 7 ) / psEnc->sCmn.frame_length + SILK_FIX_CONST( 16, 7 ) ); in silk_encode_frame_FLP()
398 …if( psEnc->sCmn.LBRR_enabled && psEnc->sCmn.speech_activity_Q8 > SILK_FIX_CONST( LBRR_SPEECH_ACTIV… in silk_LBRR_encode_FLP()

12