/external/libopus/silk/fixed/ |
D | noise_shape_analysis_FIX.c | 53 gain_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), gain_Q24, -lambda_Q16 ); in warped_gain() 77 nom_Q16 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 16 ), -(opus_int32)lambda_Q16, lambda_Q16 ); in limit_warped_coefs() 78 den_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), coefs_syn_Q24[ 0 ], lambda_Q16 ); in limit_warped_coefs() 80 den_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), coefs_ana_Q24[ 0 ], lambda_Q16 ); in limit_warped_coefs() 115 chirp_Q16 = SILK_FIX_CONST( 0.99, 16 ) - silk_DIV32_varQ( in limit_warped_coefs() 116 …silk_SMULWB( maxabs_Q24 - limit_Q24, silk_SMLABB( SILK_FIX_CONST( 0.8, 10 ), SILK_FIX_CONST( 0.1, … in limit_warped_coefs() 128 … nom_Q16 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 16 ), -(opus_int32)lambda_Q16, lambda_Q16 ); in limit_warped_coefs() 129 den_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), coefs_syn_Q24[ 0 ], lambda_Q16 ); in limit_warped_coefs() 131 den_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), coefs_ana_Q24[ 0 ], lambda_Q16 ); in limit_warped_coefs() 179 SILK_FIX_CONST( 20.0, 7 ), 4 ) ), 1 ); in silk_noise_shape_analysis_FIX() [all …]
|
D | process_gains_FIX.c | 49 …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()
|
D | find_pitch_lags_FIX.c | 93 …auto_corr[ 0 ] = silk_SMLAWB( auto_corr[ 0 ], auto_corr[ 0 ], SILK_FIX_CONST( FIND_PITCH_WHITE_NOI… in silk_find_pitch_lags_FIX() 110 …silk_bwexpander( A_Q12, psEnc->sCmn.pitchEstimationLPCOrder, SILK_FIX_CONST( FIND_PITCH_BANDWIDTH_… in silk_find_pitch_lags_FIX() 119 thrhld_Q13 = SILK_FIX_CONST( 0.6, 13 ); in silk_find_pitch_lags_FIX() 120 …thrhld_Q13 = silk_SMLABB( thrhld_Q13, SILK_FIX_CONST( -0.004, 13 ), psEnc->sCmn.pitchEstimationLPC… in silk_find_pitch_lags_FIX() 121 …thrhld_Q13 = silk_SMLAWB( thrhld_Q13, SILK_FIX_CONST( -0.1, 21 ), psEnc->sCmn.speech_activity_Q… in silk_find_pitch_lags_FIX() 122 …thrhld_Q13 = silk_SMLABB( thrhld_Q13, SILK_FIX_CONST( -0.15, 13 ), silk_RSHIFT( psEnc->sCmn.prevS… in silk_find_pitch_lags_FIX() 123 … thrhld_Q13 = silk_SMLAWB( thrhld_Q13, SILK_FIX_CONST( -0.1, 14 ), psEnc->sCmn.input_tilt_Q15 ); in silk_find_pitch_lags_FIX()
|
D | find_pred_coefs_FIX.c | 126 minInvGain_Q30 = SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN_AFTER_RESET, 30 ); in silk_find_pred_coefs_FIX() 128 …2lin( silk_SMLAWB( 16 << 7, (opus_int32)psEncCtrl->LTPredCodGain_Q7, SILK_FIX_CONST( 1.0 / 3, 16 )… in silk_find_pred_coefs_FIX() 130 silk_SMULWW( SILK_FIX_CONST( MAX_PREDICTION_POWER_GAIN, 0 ), in silk_find_pred_coefs_FIX() 131 …silk_SMLAWB( SILK_FIX_CONST( 0.25, 18 ), SILK_FIX_CONST( 0.75, 18 ), psEncCtrl->coding_quality_Q14… in silk_find_pred_coefs_FIX()
|
D | find_LTP_FIX.c | 97 regu = silk_SMLAWB( regu, rr[ k ], SILK_FIX_CONST( LTP_DAMPING/3, 16 ) ); in silk_find_LTP_FIX() 98 …regu = silk_SMLAWB( regu, matrix_ptr( WLTP_ptr, 0, 0, LTP_ORDER ), SILK_FIX_CONST( LTP_DAMPING/3, … in silk_find_LTP_FIX() 99 …( regu, matrix_ptr( WLTP_ptr, LTP_ORDER-1, LTP_ORDER-1, LTP_ORDER ), SILK_FIX_CONST( LTP_DAMPING/3… in silk_find_LTP_FIX() 217 SILK_FIX_CONST( LTP_SMOOTHING, 26 ), in silk_find_LTP_FIX() 218 …silk_RSHIFT( SILK_FIX_CONST( LTP_SMOOTHING, 26 ), 10 ) + temp32 ), /* Q10… in silk_find_LTP_FIX()
|
D | schur64_FIX.c | 62 rc_Q16[ k ] = -SILK_FIX_CONST( .99f, 16 ); in silk_schur64() 64 rc_Q16[ k ] = SILK_FIX_CONST( .99f, 16 ); in silk_schur64()
|
D | encode_frame_FIX.c | 56 if( psEnc->sCmn.speech_activity_Q8 < SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ) ) { in silk_encode_do_VAD_FIX() 165 gainMult_Q8 = SILK_FIX_CONST( 1, 8 ); in silk_encode_frame_FIX() 269 …_log2lin( silk_LSHIFT( nBits - maxBits, 7 ) / psEnc->sCmn.frame_length + SILK_FIX_CONST( 16, 7 ) ); in silk_encode_frame_FIX() 270 gain_factor_Q16 = silk_min_32( gain_factor_Q16, SILK_FIX_CONST( 2, 16 ) ); in silk_encode_frame_FIX() 272 gain_factor_Q16 = silk_max_32( gain_factor_Q16, SILK_FIX_CONST( 1.3, 16 ) ); in silk_encode_frame_FIX() 343 …if( psEnc->sCmn.LBRR_enabled && psEnc->sCmn.speech_activity_Q8 > SILK_FIX_CONST( LBRR_SPEECH_ACTIV… in silk_LBRR_encode_FIX()
|
D | schur_FIX.c | 74 rc_Q15[ k ] = -SILK_FIX_CONST( .99f, 15 ); in silk_schur() 76 rc_Q15[ k ] = SILK_FIX_CONST( .99f, 15 ); in silk_schur()
|
D | pitch_analysis_core_FIX.c | 252 if( Cmax < SILK_FIX_CONST( 0.2, 14 ) ) { in silk_pitch_analysis_core() 424 …silk_assert( nb_subfr * SILK_FIX_CONST( PE_SHORTLAG_BIAS, 13 ) == silk_SAT16( nb_subfr * SILK_FIX_… in silk_pitch_analysis_core() 425 …CCmax_new_b = CCmax_new - silk_RSHIFT( silk_SMULBB( nb_subfr * SILK_FIX_CONST( PE_SHORTLAG_BIAS, 1… in silk_pitch_analysis_core() 428 …silk_assert( nb_subfr * SILK_FIX_CONST( PE_PREVLAG_BIAS, 13 ) == silk_SAT16( nb_subfr * SILK_FIX_C… in silk_pitch_analysis_core() 433 …prev_lag_bias_Q13 = silk_RSHIFT( silk_SMULBB( nb_subfr * SILK_FIX_CONST( PE_PREVLAG_BIAS, 13 ), *L… in silk_pitch_analysis_core() 434 …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() 526 contour_bias_Q15 = silk_DIV32_16( SILK_FIX_CONST( PE_FLATCONTOUR_BIAS, 15 ), lag ); in silk_pitch_analysis_core()
|
D | LTP_scale_ctrl_FIX.c | 47 …silk_SMULWB( silk_SMULBB( round_loss, psEncCtrl->LTPredCodGain_Q7 ), SILK_FIX_CONST( 0.1, 9 ) ), 0… in silk_LTP_scale_ctrl_FIX()
|
D | burg_modified_FIX.c | 87 …CAb[ 0 ] = CAf[ 0 ] = C0 + silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ) + 1; … in silk_burg_modified() 116 …CAb[ 0 ] = CAf[ 0 ] = C0 + silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ) + 1; … in silk_burg_modified() 276 …*res_nrg = silk_SMLAWW( nrg, silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ), -tmp1 );/*… in silk_burg_modified()
|
/external/libopus/silk/ |
D | stereo_LR_to_MS.c | 97 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 …]
|
D | HP_variable_cutoff.c | 56 …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()
|
D | control_codec.c | 296 psEnc->sCmn.mu_LTP_Q9 = SILK_FIX_CONST( MU_LTP_QUANT_WB, 9 ); in silk_setup_fs() 299 psEnc->sCmn.mu_LTP_Q9 = SILK_FIX_CONST( MU_LTP_QUANT_MB, 9 ); in silk_setup_fs() 302 psEnc->sCmn.mu_LTP_Q9 = SILK_FIX_CONST( MU_LTP_QUANT_NB, 9 ); in silk_setup_fs() 324 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.8, 16 ); in silk_setup_complexity() 335 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.76, 16 ); in silk_setup_complexity() 346 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.74, 16 ); in silk_setup_complexity() 354 …psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 … in silk_setup_complexity() 357 psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.72, 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.7, 16 ); in silk_setup_complexity() [all …]
|
D | quant_LTP_gains.c | 65 opus_int32 gain_safety = SILK_FIX_CONST( 0.4, 7 ); in silk_quant_LTP_gains() 79 …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() 80 + SILK_FIX_CONST( 7, 7 ) ) - gain_safety; in silk_quant_LTP_gains() 98 + silk_lin2log( gain_safety + gain_Q7 ) - SILK_FIX_CONST( 7, 7 )); in silk_quant_LTP_gains()
|
D | process_NLSFs.c | 50 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()
|
D | NLSF_del_dec_quant.c | 79 out0_Q10 = silk_SUB16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant() 80 out1_Q10 = silk_SUB16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant() 82 out1_Q10 = silk_SUB16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant() 84 out0_Q10 = silk_ADD16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant() 86 out0_Q10 = silk_ADD16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant() 87 out1_Q10 = silk_ADD16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); in silk_NLSF_del_dec_quant()
|
D | tables_NLSF_CB_WB.c | 188 SILK_FIX_CONST( 0.15, 16 ), 189 SILK_FIX_CONST( 1.0 / 0.15, 6 ),
|
D | tables_NLSF_CB_NB_MB.c | 150 SILK_FIX_CONST( 0.18, 16 ), 151 SILK_FIX_CONST( 1.0 / 0.18, 6 ),
|
D | NLSF_decode.c | 50 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()
|
D | NLSF2A.c | 145 … sc_Q16 = SILK_FIX_CONST( 0.999, 16 ) - silk_DIV32( silk_LSHIFT( maxabs - silk_int16_MAX, 14 ), in silk_NLSF2A() 166 …if( silk_LPC_inverse_pred_gain( a_Q12, d ) < SILK_FIX_CONST( 1.0 / MAX_PREDICTION_POWER_GAIN, 30 )… in silk_NLSF2A()
|
D | init_encoder.c | 54 …psEnc->sCmn.variable_HP_smth1_Q15 = silk_LSHIFT( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUT… in silk_init_encoder()
|
D | stereo_decode_pred.c | 57 SILK_FIX_CONST( 0.5 / STEREO_QUANT_SUB_STEPS, 16 ) ); in silk_stereo_decode_pred()
|
D | control_SNR.c | 76 …Q7 = silk_SMLABB( psEncC->SNR_dB_Q7, 12 - psEncC->LBRR_GainIncreases, SILK_FIX_CONST( -0.25, 7 ) ); in silk_control_SNR()
|
/external/libopus/silk/float/ |
D | encode_frame_FLP.c | 55 if( psEnc->sCmn.speech_activity_Q8 < SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ) ) { in silk_encode_do_VAD_FLP() 161 gainMult_Q8 = SILK_FIX_CONST( 1, 8 ); in silk_encode_frame_FLP() 256 …_log2lin( silk_LSHIFT( nBits - maxBits, 7 ) / psEnc->sCmn.frame_length + SILK_FIX_CONST( 16, 7 ) ); in silk_encode_frame_FLP() 257 gain_factor_Q16 = silk_min_32( gain_factor_Q16, SILK_FIX_CONST( 2, 16 ) ); in silk_encode_frame_FLP() 259 gain_factor_Q16 = silk_max_32( gain_factor_Q16, SILK_FIX_CONST( 1.3, 16 ) ); in silk_encode_frame_FLP() 335 …if( psEnc->sCmn.LBRR_enabled && psEnc->sCmn.speech_activity_Q8 > SILK_FIX_CONST( LBRR_SPEECH_ACTIV… in silk_LBRR_encode_FLP()
|