/external/libopus/silk/ |
D | VQ_WMat_EC.c | 60 diff_Q14[ 0 ] = in_Q14[ 0 ] - silk_LSHIFT( cb_row_Q7[ 0 ], 7 ); in silk_VQ_WMat_EC() 61 diff_Q14[ 1 ] = in_Q14[ 1 ] - silk_LSHIFT( cb_row_Q7[ 1 ], 7 ); in silk_VQ_WMat_EC() 62 diff_Q14[ 2 ] = in_Q14[ 2 ] - silk_LSHIFT( cb_row_Q7[ 2 ], 7 ); in silk_VQ_WMat_EC() 63 diff_Q14[ 3 ] = in_Q14[ 3 ] - silk_LSHIFT( cb_row_Q7[ 3 ], 7 ); in silk_VQ_WMat_EC() 64 diff_Q14[ 4 ] = in_Q14[ 4 ] - silk_LSHIFT( cb_row_Q7[ 4 ], 7 ); in silk_VQ_WMat_EC() 79 sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); in silk_VQ_WMat_EC() 87 sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); in silk_VQ_WMat_EC() 94 sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); in silk_VQ_WMat_EC() 100 sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); in silk_VQ_WMat_EC()
|
D | stereo_MS_to_LR.c | 62 … sum = silk_LSHIFT( silk_ADD_LSHIFT( x1[ n ] + x1[ n + 2 ], x1[ n + 1 ], 1 ), 9 ); /* Q11 */ in silk_stereo_MS_to_LR() 63 … sum = silk_SMLAWB( silk_LSHIFT( (opus_int32)x2[ n + 1 ], 8 ), sum, pred0_Q13 ); /* Q8 */ in silk_stereo_MS_to_LR() 64 … sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)x1[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ in silk_stereo_MS_to_LR() 70 … sum = silk_LSHIFT( silk_ADD_LSHIFT( x1[ n ] + x1[ n + 2 ], x1[ n + 1 ], 1 ), 9 ); /* Q11 */ in silk_stereo_MS_to_LR() 71 … sum = silk_SMLAWB( silk_LSHIFT( (opus_int32)x2[ n + 1 ], 8 ), sum, pred0_Q13 ); /* Q8 */ in silk_stereo_MS_to_LR() 72 … sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)x1[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ in silk_stereo_MS_to_LR()
|
D | NLSF2A.c | 53 out[0] = silk_LSHIFT( 1, QA ); in silk_NLSF2A_find_poly() 57 …out[k+1] = silk_LSHIFT( out[k-1], 1 ) - (opus_int32)silk_RSHIFT_ROUND64( silk_SMULL( ftmp, out[k] … in silk_NLSF2A_find_poly() 100 f_frac = NLSF[k] - silk_LSHIFT( f_int, 15 - 7 ); in silk_NLSF2A() 110 …cos_LSF_QA[ordering[k]] = silk_RSHIFT_ROUND( silk_LSHIFT( cos_val, 8 ) + silk_MUL( delta, f_frac )… in silk_NLSF2A() 145 … sc_Q16 = SILK_FIX_CONST( 0.999, 16 ) - silk_DIV32( silk_LSHIFT( maxabs - silk_int16_MAX, 14 ), in silk_NLSF2A() 157 a32_QA1[ k ] = silk_LSHIFT( (opus_int32)a_Q12[ k ], QA + 1 - 12 ); in silk_NLSF2A() 169 silk_bwexpander_32( a32_QA1, d, 65536 - silk_LSHIFT( 2, i ) ); in silk_NLSF2A()
|
D | A2NLSF.c | 58 p[ k - 2 ] -= silk_LSHIFT( p[ k ], 1 ); in silk_A2NLSF_trans_poly() 73 x_Q16 = silk_LSHIFT( x, 4 ); in silk_A2NLSF_eval_poly() 90 P[dd] = silk_LSHIFT( 1, 16 ); in silk_A2NLSF_init() 91 Q[dd] = silk_LSHIFT( 1, 16 ); in silk_A2NLSF_init() 191 nom = silk_LSHIFT( ylo, 8 - BIN_DIV_STEPS_A2NLSF_FIX ) + silk_RSHIFT( den, 1 ); in silk_A2NLSF() 199 …NLSF[ root_ix ] = (opus_int16)silk_min_32( silk_LSHIFT( (opus_int32)k, 8 ) + ffrac, silk_int16_MAX… in silk_A2NLSF() 213 ylo = silk_LSHIFT( 1 - ( root_ix & 2 ), 12 ); in silk_A2NLSF()
|
D | HP_variable_cutoff.c | 50 …pitch_freq_Hz_Q16 = silk_DIV32_16( silk_LSHIFT( silk_MUL( psEncC1->fs_kHz, 1000 ), 16 ), psEncC1->… in silk_HP_variable_cutoff() 55 …pitch_freq_log_Q7 = silk_SMLAWB( pitch_freq_log_Q7, silk_SMULWB( silk_LSHIFT( -quality_Q15, 2 ), q… in silk_HP_variable_cutoff() 74 silk_LSHIFT( silk_lin2log( VARIABLE_HP_MIN_CUTOFF_HZ ), 8 ), in silk_HP_variable_cutoff() 75 silk_LSHIFT( silk_lin2log( VARIABLE_HP_MAX_CUTOFF_HZ ), 8 ) ); in silk_HP_variable_cutoff()
|
D | Inlines.h | 111 …a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm … in silk_DIV32_varQ() 113 …b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm … in silk_DIV32_varQ() 156 …b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm … in silk_INVERSE32_varQ() 162 …result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm … in silk_INVERSE32_varQ() 165 …err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 … in silk_INVERSE32_varQ()
|
D | stereo_LR_to_MS.c | 122 width_Q14 = silk_DIV32_varQ( silk_LSHIFT( mid_side_rates_bps[ 1 ], 1 ) - min_mid_rate_bps, in silk_stereo_LR_to_MS() 201 w_Q24 = silk_LSHIFT( state->width_prev_Q14, 10 ); in silk_stereo_LR_to_MS() 205 deltaw_Q24 = silk_LSHIFT( silk_SMULWB( width_Q14 - state->width_prev_Q14, denom_Q16 ), 10 ); in silk_stereo_LR_to_MS() 210 … sum = silk_LSHIFT( silk_ADD_LSHIFT( mid[ n ] + mid[ n + 2 ], mid[ n + 1 ], 1 ), 9 ); /* Q11 */ in silk_stereo_LR_to_MS() 212 … sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)mid[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ in silk_stereo_LR_to_MS() 218 w_Q24 = silk_LSHIFT( width_Q14, 10 ); in silk_stereo_LR_to_MS() 220 … sum = silk_LSHIFT( silk_ADD_LSHIFT( mid[ n ] + mid[ n + 2 ], mid[ n + 1 ], 1 ), 9 ); /* Q11 */ in silk_stereo_LR_to_MS() 222 … sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)mid[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ in silk_stereo_LR_to_MS()
|
D | NLSF_decode.c | 48 out_Q10 = silk_LSHIFT( indices[ i ], 10 ); in silk_NLSF_residual_dequant() 80 pNLSF_Q15[ i ] = silk_LSHIFT( (opus_int16)pCB_element[ i ], 7 ); in silk_NLSF_decode() 94 W_tmp_Q9 = silk_SQRT_APPROX( silk_LSHIFT( (opus_int32)W_tmp_QW[ i ], 18 - NLSF_W_Q ) ); in silk_NLSF_decode() 95 …NLSF_Q15_tmp = silk_ADD32( pNLSF_Q15[ i ], silk_DIV32_16( silk_LSHIFT( (opus_int32)res_Q10[ i ], 1… in silk_NLSF_decode()
|
D | LPC_inv_pred_gain.c | 60 rc_Q31 = -silk_LSHIFT( Anew_QA[ k ], 31 - QA ); in LPC_inverse_pred_gain_QA() 73 invGain_Q30 = silk_LSHIFT( silk_SMMUL( invGain_Q30, rc_mult1_Q30 ), 2 ); in LPC_inverse_pred_gain_QA() 94 rc_Q31 = -silk_LSHIFT( Anew_QA[ 0 ], 31 - QA ); in LPC_inverse_pred_gain_QA() 101 invGain_Q30 = silk_LSHIFT( silk_SMMUL( invGain_Q30, rc_mult1_Q30 ), 2 ); in LPC_inverse_pred_gain_QA()
|
D | PLC.c | 57 psDec->sPLC.pitchL_Q8 = silk_LSHIFT( psDec->frame_length, 8 - 1 ); in silk_PLC_Reset() 125 psPLC->pitchL_Q8 = silk_LSHIFT( psDecCtrl->pitchL[ psDec->nb_subfr - 1 - j ], 8 ); in silk_PLC_update() 137 tmp = silk_LSHIFT( V_PITCH_GAIN_START_MIN_Q14, 10 ); in silk_PLC_update() 146 tmp = silk_LSHIFT( V_PITCH_GAIN_START_MAX_Q14, 14 ); in silk_PLC_update() 153 psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); in silk_PLC_update() 260 down_scale_Q30 = silk_LSHIFT( down_scale_Q30, LOG2_INV_LPC_GAIN_HIGH_THRES ); in silk_PLC_conceal() 314 …psPLC->pitchL_Q8 = silk_min_32( psPLC->pitchL_Q8, silk_LSHIFT( silk_SMULBB( MAX_PITCH_LAG_MS, psDe… in silk_PLC_conceal() 402 psPLC->conc_energy = silk_LSHIFT( psPLC->conc_energy, LZ ); in silk_PLC_glue_frames() 407 gain_Q16 = silk_LSHIFT( silk_SQRT_APPROX( frac_Q24 ), 4 ); in silk_PLC_glue_frames() 410 slope_Q16 = silk_LSHIFT( slope_Q16, 2 ); in silk_PLC_glue_frames()
|
D | LP_variable_cutoff.c | 115 fac_Q16 = silk_LSHIFT( TRANSITION_FRAMES - psLP->transition_frame_no, 16 - 6 ); in silk_LP_variable_cutoff() 117 …fac_Q16 = silk_DIV32_16( silk_LSHIFT( TRANSITION_FRAMES - psLP->transition_frame_no, 16 ), TRANSIT… in silk_LP_variable_cutoff() 120 fac_Q16 -= silk_LSHIFT( ind, 16 ); in silk_LP_variable_cutoff()
|
D | NSQ.c | 130 … HarmShapeFIRPacked_Q14 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q14[ k ], 1 ), 16 ); in silk_NSQ() 138 if( ( k & ( 3 - silk_LSHIFT( LSF_interpolation_flag, 1 ) ) ) == 0 ) { in silk_NSQ() 286 n_LTP_Q13 = silk_LSHIFT( n_LTP_Q13, 1 ); in silk_noise_shape_quantizer() 308 q1_Q10 = silk_SUB32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); in silk_noise_shape_quantizer() 324 q1_Q10 = silk_ADD32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); in silk_noise_shape_quantizer() 342 exc_Q14 = silk_LSHIFT( q1_Q10, 4 ); in silk_noise_shape_quantizer() 361 sLTP_Q15[ NSQ->sLTP_buf_idx ] = silk_LSHIFT( LPC_exc_Q14, 1 ); in silk_noise_shape_quantizer() 414 inv_gain_Q31 = silk_LSHIFT( silk_SMULWB( inv_gain_Q31, LTP_scale_Q14 ), 2 ); in silk_nsq_scale_states()
|
D | control_SNR.c | 67 frac_Q6 = silk_DIV32( silk_LSHIFT( TargetRate_bps - rateTable[ k - 1 ], 6 ), in silk_control_SNR() 69 …psEncC->SNR_dB_Q7 = silk_LSHIFT( silk_SNR_table_Q1[ k - 1 ], 6 ) + silk_MUL( frac_Q6, silk_SNR_tab… in silk_control_SNR()
|
D | resampler_down2.c | 52 in32 = silk_LSHIFT( (opus_int32)in[ 2 * k ], 10 ); in silk_resampler_down2() 61 in32 = silk_LSHIFT( (opus_int32)in[ 2 * k + 1 ], 10 ); in silk_resampler_down2()
|
D | ana_filt_bank_1.c | 53 in32 = silk_LSHIFT( (opus_int32)in[ 2 * k ], 10 ); in silk_ana_filt_bank_1() 62 in32 = silk_LSHIFT( (opus_int32)in[ 2 * k + 1 ], 10 ); in silk_ana_filt_bank_1()
|
D | stereo_find_predictor.c | 66 …mid_res_amp_Q0[ 0 ] = silk_SMLAWB( mid_res_amp_Q0[ 0 ], silk_LSHIFT( silk_SQRT_APPROX( nrgx ), sca… in silk_stereo_find_predictor() 71 …mid_res_amp_Q0[ 1 ] = silk_SMLAWB( mid_res_amp_Q0[ 1 ], silk_LSHIFT( silk_SQRT_APPROX( nrgy ), sca… in silk_stereo_find_predictor()
|
D | VAD.c | 206 … NrgToNoiseRatio_Q8[ b ] = silk_DIV32( silk_LSHIFT( Xnrg[ b ], 8 ), psSilk_VAD->NL[ b ] + 1 ); in silk_VAD_GetSA_Q8() 220 SNR_Q7 = silk_SMULWB( silk_LSHIFT( silk_SQRT_APPROX( speech_nrg ), 6 ), SNR_Q7 ); in silk_VAD_GetSA_Q8() 242 psEncC->input_tilt_Q15 = silk_LSHIFT( silk_sigm_Q15( input_tilt ) - 16384, 1 ); in silk_VAD_GetSA_Q8() 329 if( nrg > silk_LSHIFT( nl, 3 ) ) { in silk_VAD_GetNoiseLevels()
|
/external/libopus/silk/fixed/ |
D | schur_FIX.c | 61 C[ k ][ 0 ] = C[ k ][ 1 ] = silk_LSHIFT( c[ k ], lz ); in silk_schur() 95 C[ n + k + 1 ][ 0 ] = silk_SMLAWB( Ctmp1, silk_LSHIFT( Ctmp2, 1 ), rc_tmp_Q15 ); in silk_schur() 96 C[ n ][ 1 ] = silk_SMLAWB( Ctmp2, silk_LSHIFT( Ctmp1, 1 ), rc_tmp_Q15 ); in silk_schur()
|
D | noise_shape_analysis_FIX.c | 184 b_Q8 = silk_SMULWB( silk_LSHIFT( b_Q8, 8 ), b_Q8 ); in silk_noise_shape_analysis_FIX() 210 nSamples = silk_LSHIFT( psEnc->sCmn.fs_kHz, 1 ); in silk_noise_shape_analysis_FIX() 252 BWExp1_Q16 = silk_DIV32_16( silk_LSHIFT( BWExp1_Q16, 14 ), silk_RSHIFT( BWExp2_Q16, 2 ) ); in silk_noise_shape_analysis_FIX() 386 …psEncCtrl->LF_shp_Q14[ k ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - silk_SMULWB( streng… in silk_noise_shape_analysis_FIX() 396 psEncCtrl->LF_shp_Q14[ 0 ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - in silk_noise_shape_analysis_FIX() 409 …HarmBoost_Q16 = silk_SMULWB( silk_SMULWB( SILK_FIX_CONST( 1.0, 17 ) - silk_LSHIFT( psEncCtrl->codi… in silk_noise_shape_analysis_FIX() 414 …SILK_FIX_CONST( 1.0, 16 ) - silk_LSHIFT( psEncCtrl->input_quality_Q14, 2 ), SILK_FIX_CONST( LOW_IN… in silk_noise_shape_analysis_FIX() 419 …SILK_FIX_CONST( 1.0, 16 ) - silk_SMULWB( SILK_FIX_CONST( 1.0, 18 ) - silk_LSHIFT( psEncCtrl->codin… in silk_noise_shape_analysis_FIX() 423 HarmShapeGain_Q16 = silk_SMULWB( silk_LSHIFT( HarmShapeGain_Q16, 1 ), in silk_noise_shape_analysis_FIX() 424 silk_SQRT_APPROX( silk_LSHIFT( psEnc->LTPCorr_Q15, 15 ) ) ); in silk_noise_shape_analysis_FIX()
|
D | prefilter_FIX.c | 67 state[ 0 ] = silk_LSHIFT( input[ n ], 14 ); in silk_warped_LPC_analysis_filter_FIX() 86 res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( acc_Q11, 9 ); in silk_warped_LPC_analysis_filter_FIX() 126 … HarmShapeFIRPacked_Q12 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q12, 1 ), 16 ); in silk_prefilter_FIX() 196 sLF_AR_shp_Q12 = silk_SUB32( st_res_Q12[ i ], silk_LSHIFT( n_Tilt_Q10, 2 ) ); in silk_prefilt_FIX() 197 sLF_MA_shp_Q12 = silk_SUB32( sLF_AR_shp_Q12, silk_LSHIFT( n_LF_Q10, 2 ) ); in silk_prefilt_FIX()
|
D | k2a_FIX.c | 49 … A_Q24[ n ] = silk_SMLAWB( A_Q24[ n ], silk_LSHIFT( Atmp[ k - n - 1 ], 1 ), rc_Q15[ k ] ); in silk_k2a() 51 A_Q24[ k ] = -silk_LSHIFT( (opus_int32)rc_Q15[ k ], 9 ); in silk_k2a()
|
D | schur64_FIX.c | 82 C[ n + k + 1 ][ 0 ] = Ctmp1_Q30 + silk_SMMUL( silk_LSHIFT( Ctmp2_Q30, 1 ), rc_tmp_Q31 ); in silk_schur64() 83 C[ n ][ 1 ] = Ctmp2_Q30 + silk_SMMUL( silk_LSHIFT( Ctmp1_Q30, 1 ), rc_tmp_Q31 ); in silk_schur64()
|
D | pitch_analysis_core_FIX.c | 182 target_ptr = &frame_4kHz[ silk_LSHIFT( SF_LENGTH_4KHZ, 2 ) ]; in silk_pitch_analysis_core() 232 … sum = silk_SMLAWB( sum, sum, silk_LSHIFT( -i, 4 ) ); /* Q14 */ in silk_pitch_analysis_core() 238 … sum = silk_LSHIFT( (opus_int32)C[ i - MIN_LAG_4KHZ ], 1 ); /* Q14 */ in silk_pitch_analysis_core() 239 … sum = silk_SMLAWB( sum, sum, silk_LSHIFT( -i, 4 ) ); /* Q14 */ in silk_pitch_analysis_core() 265 d_srch[ i ] = silk_LSHIFT( d_srch[ i ] + MIN_LAG_4KHZ, 1 ); in silk_pitch_analysis_core() 372 prevLag = silk_DIV32_16( silk_LSHIFT( prevLag, 1 ), 3 ); in silk_pitch_analysis_core() 460 *LTPCorr_Q15 = (opus_int)silk_LSHIFT( silk_DIV32_16( CCmax, nb_subfr ), 2 ); in silk_pitch_analysis_core() 490 lag = silk_LSHIFT( lag, 1 ); in silk_pitch_analysis_core() 632 target_ptr = &frame[ silk_LSHIFT( sf_length, 2 ) ]; /* Pointer to middle of frame */ in silk_P_Ana_calc_corr_st3() 702 target_ptr = &frame[ silk_LSHIFT( sf_length, 2 ) ]; in silk_P_Ana_calc_energy_st3()
|
D | find_pitch_lags_FIX.c | 82 …silk_memcpy( Wsig_ptr, x_buf_ptr, ( psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la… in silk_find_pitch_lags_FIX() 85 Wsig_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); in silk_find_pitch_lags_FIX() 86 x_buf_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); in silk_find_pitch_lags_FIX()
|
D | apply_sine_window_FIX.c | 93 S0_Q16 = silk_SMULWB( S1_Q16, c_Q16 ) + silk_LSHIFT( S1_Q16, 1 ) - S0_Q16 + 1; in silk_apply_sine_window() 98 S1_Q16 = silk_SMULWB( S0_Q16, c_Q16 ) + silk_LSHIFT( S0_Q16, 1 ) - S1_Q16; in silk_apply_sine_window()
|