Home
last modified time | relevance | path

Searched refs:silk_SMULBB (Results 1 – 25 of 48) sorted by relevance

12

/external/libopus/silk/fixed/
DcorrMatrix_FIX.c61 … inner_prod = silk_ADD_RSHIFT32( inner_prod, silk_SMULBB( ptr1[ i ], ptr2[i] ), rshifts ); in silk_corrVector_FIX()
97 energy -= silk_RSHIFT32( silk_SMULBB( x[ i ], x[ i ] ), *rshifts ); in silk_corrMatrix_FIX()
106 …energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr1[ L - j ] ), *rshifts … in silk_corrMatrix_FIX()
107 … energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr1[ -j ] ), *rshifts ) ); in silk_corrMatrix_FIX()
120 energy += silk_RSHIFT32( silk_SMULBB( ptr1[ i ], ptr2[i] ), *rshifts ); in silk_corrMatrix_FIX()
126 …energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr2[ L - j ] ), *rshifts … in silk_corrMatrix_FIX()
127 … energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr2[ -j ] ), *rshifts ) ); in silk_corrMatrix_FIX()
141 energy = silk_SUB32( energy, silk_SMULBB( ptr1[ L - j ], ptr2[ L - j ] ) ); in silk_corrMatrix_FIX()
Dpitch_analysis_core_FIX.c206 normalizer = silk_ADD32( normalizer, silk_SMULBB( SF_LENGTH_8KHZ, 4000 ) ); in silk_pitch_analysis_core()
223 silk_SMULBB( basis_ptr[ 0 ], basis_ptr[ 0 ] ) - in silk_pitch_analysis_core()
224 silk_SMULBB( basis_ptr[ SF_LENGTH_8KHZ ], basis_ptr[ SF_LENGTH_8KHZ ] ) ); 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()
426 …delta_lag_log2_sqr_Q7 = silk_RSHIFT( silk_SMULBB( delta_lag_log2_sqr_Q7, delta_lag_log2_sqr_Q7 ), … 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()
433 …CCmax_new > silk_SMULBB( nb_subfr, search_thres2_Q13 ) && /* Correlation needs to be high enough… in silk_pitch_analysis_core()
464 lag = silk_RSHIFT( silk_SMULBB( lag, 3 ), 1 ); in silk_pitch_analysis_core()
468 lag = silk_SMULBB( lag, 3 ); in silk_pitch_analysis_core()
693 energy -= silk_SMULBB( basis_ptr[ sf_length - i ], basis_ptr[ sf_length - i ] ); in silk_P_Ana_calc_energy_st3()
[all …]
/external/libopus/silk/
Dstereo_LR_to_MS.c99 …smooth_coef_Q16 = silk_SMULWB( silk_SMULBB( prev_speech_act_Q8, prev_speech_act_Q8 ), smooth_coef_… in silk_stereo_LR_to_MS()
146 pred_Q13[ 0 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 0 ] ), 14 ); in silk_stereo_LR_to_MS()
147 pred_Q13[ 1 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 1 ] ), 14 ); in silk_stereo_LR_to_MS()
161 pred_Q13[ 0 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 0 ] ), 14 ); in silk_stereo_LR_to_MS()
162 pred_Q13[ 1 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 1 ] ), 14 ); in silk_stereo_LR_to_MS()
174 pred_Q13[ 0 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 0 ] ), 14 ); in silk_stereo_LR_to_MS()
175 pred_Q13[ 1 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 1 ] ), 14 ); in silk_stereo_LR_to_MS()
203 …delta0_Q13 = -silk_RSHIFT_ROUND( silk_SMULBB( pred_Q13[ 0 ] - state->pred_prev_Q13[ 0 ], denom_Q16… in silk_stereo_LR_to_MS()
204 …delta1_Q13 = -silk_RSHIFT_ROUND( silk_SMULBB( pred_Q13[ 1 ] - state->pred_prev_Q13[ 1 ], denom_Q16… in silk_stereo_LR_to_MS()
Dcontrol_codec.c172 …ret += silk_resampler_init( temp_resampler_state, silk_SMULBB( psEnc->sCmn.fs_kHz, 1000 ), psEnc->… in silk_setup_resamplers()
182 …k_resampler_init( &psEnc->sCmn.resampler_state, psEnc->sCmn.API_fs_Hz, silk_SMULBB( fs_kHz, 1000 )… in silk_setup_resamplers()
218 psEnc->sCmn.frame_length = silk_SMULBB( PacketSize_ms, fs_kHz ); in silk_setup_fs()
219 psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS_2_SF, fs_kHz ); in silk_setup_fs()
228 psEnc->sCmn.frame_length = silk_SMULBB( 20, fs_kHz ); in silk_setup_fs()
229 psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS, fs_kHz ); in silk_setup_fs()
283 psEnc->sCmn.frame_length = silk_SMULBB( psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); in silk_setup_fs()
284 psEnc->sCmn.ltp_mem_length = silk_SMULBB( LTP_MEM_LENGTH_MS, fs_kHz ); in silk_setup_fs()
285 psEnc->sCmn.la_pitch = silk_SMULBB( LA_PITCH_MS, fs_kHz ); in silk_setup_fs()
286 psEnc->sCmn.max_pitch_lag = silk_SMULBB( 18, fs_kHz ); in silk_setup_fs()
[all …]
Dsum_sqr_shift.c52 nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); in silk_sum_sqr_shift()
58 nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); in silk_sum_sqr_shift()
67 nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); in silk_sum_sqr_shift()
73 nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); in silk_sum_sqr_shift()
Ddecoder_set_fs.c47 psDec->subfr_length = silk_SMULBB( SUB_FRAME_LENGTH_MS, fs_kHz ); in silk_decoder_set_fs()
48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); in silk_decoder_set_fs()
53 … ret += silk_resampler_init( &psDec->resampler_state, silk_SMULBB( fs_kHz, 1000 ), fs_API_Hz, 0 ); in silk_decoder_set_fs()
73 psDec->ltp_mem_length = silk_SMULBB( LTP_MEM_LENGTH_MS, fs_kHz ); in silk_decoder_set_fs()
DNLSF_del_dec_quant.c78 …out0_Q10_table[ i + NLSF_QUANT_MAX_AMPLITUDE_EXT ] = silk_RSHIFT( silk_SMULBB( out0_Q10, quant_ste… in silk_NLSF_del_dec_quant()
79 …out1_Q10_table[ i + NLSF_QUANT_MAX_AMPLITUDE_EXT ] = silk_RSHIFT( silk_SMULBB( out1_Q10, quant_ste… in silk_NLSF_del_dec_quant()
91 … pred_Q10 = silk_RSHIFT( silk_SMULBB( (opus_int16)pred_coef_Q8[ i ], prev_out_Q10[ j ] ), 8 ); in silk_NLSF_del_dec_quant()
93 ind_tmp = silk_RSHIFT( silk_SMULBB( inv_quant_step_size_Q6, res_Q10 ), 16 ); in silk_NLSF_del_dec_quant()
129 …RD_Q25[ j ] = silk_SMLABB( silk_MLA( RD_tmp_Q25, silk_SMULBB( diff_Q10, diff_Q10 ), w_Q5… in silk_NLSF_del_dec_quant()
131 …RD_Q25[ j + nStates ] = silk_SMLABB( silk_MLA( RD_tmp_Q25, silk_SMULBB( diff_Q10, diff_Q10 ), w_Q5… in silk_NLSF_del_dec_quant()
Ddecode_pulses.c85 …silk_shell_decoder( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], psRangeDec, sum_pulses[… in silk_decode_pulses()
87 …silk_memset( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], 0, SHELL_CODEC_FRAME_LENGTH * … in silk_decode_pulses()
97 pulses_ptr = &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ]; in silk_decode_pulses()
Dcontrol_audio_bandwidth.c51 fs_Hz = silk_SMULBB( fs_kHz, 1000 ); in silk_control_audio_bandwidth()
70 if( silk_SMULBB( orig_kHz, 1000 ) > psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth()
99 if( silk_SMULBB( orig_kHz, 1000 ) < psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth()
DPLC.c124 &psDecCtrl->LTPCoef_Q14[ silk_SMULBB( psDec->nb_subfr - 1 - j, LTP_ORDER ) ], in silk_PLC_update()
142 … psPLC->LTPCoef_Q14[ i ] = silk_RSHIFT( silk_SMULBB( psPLC->LTPCoef_Q14[ i ], scale_Q10 ), 10 ); in silk_PLC_update()
151 … psPLC->LTPCoef_Q14[ i ] = silk_RSHIFT( silk_SMULBB( psPLC->LTPCoef_Q14[ i ], scale_Q14 ), 14 ); in silk_PLC_update()
155 psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); in silk_PLC_update()
273 …rand_scale_Q14 = (opus_int16)silk_RSHIFT( silk_SMULBB( rand_scale_Q14, psPLC->prevLTP_scale_Q14 ),… in silk_PLC_conceal()
329 B_Q14[ j ] = silk_RSHIFT( silk_SMULBB( harm_Gain_Q15, B_Q14[ j ] ), 15 ); in silk_PLC_conceal()
333 rand_scale_Q14 = silk_RSHIFT( silk_SMULBB( rand_scale_Q14, rand_Gain_Q15 ), 15 ); in silk_PLC_conceal()
338 …psPLC->pitchL_Q8 = silk_min_32( psPLC->pitchL_Q8, silk_LSHIFT( silk_SMULBB( MAX_PITCH_LAG_MS, psDe… in silk_PLC_conceal()
DNSQ.c305 rd1_Q20 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
306 rd2_Q20 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
310 rd1_Q20 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
311 rd2_Q20 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
315 rd1_Q20 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
316 rd2_Q20 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
321 rd1_Q20 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
322 rd2_Q20 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
Dsigm_Q15.c63 … return( sigm_LUT_neg_Q15[ ind ] - silk_SMULBB( sigm_LUT_slope_Q10[ ind ], in_Q5 & 0x1F ) ); in silk_sigm_Q15()
72 … return( sigm_LUT_pos_Q15[ ind ] + silk_SMULBB( sigm_LUT_slope_Q10[ ind ], in_Q5 & 0x1F ) ); in silk_sigm_Q15()
Dlog2lin.c52 …out = silk_ADD_RSHIFT32( out, silk_MUL( out, silk_SMLAWB( frac_Q7, silk_SMULBB( frac_Q7, 128 - fra… in silk_log2lin()
55 …out = silk_MLA( out, silk_RSHIFT( out, 7 ), silk_SMLAWB( frac_Q7, silk_SMULBB( frac_Q7, 128 - frac… in silk_log2lin()
DNLSF_unpack.c49 … ec_ix [ i ] = silk_SMULBB( silk_RSHIFT( entry, 1 ) & 7, 2 * NLSF_QUANT_MAX_AMPLITUDE + 1 ); in silk_NLSF_unpack()
51 … ec_ix [ i + 1 ] = silk_SMULBB( silk_RSHIFT( entry, 5 ) & 7, 2 * NLSF_QUANT_MAX_AMPLITUDE + 1 ); in silk_NLSF_unpack()
Ddecode_pitch.c69 min_lag = silk_SMULBB( PE_MIN_LAG_MS, Fs_kHz ); in silk_decode_pitch()
70 max_lag = silk_SMULBB( PE_MAX_LAG_MS, Fs_kHz ); in silk_decode_pitch()
DNLSF_VQ.c60 diffw_Q24 = silk_SMULBB( diff_Q15, w_Q9_ptr[ m + 1 ] ); in silk_NLSF_VQ()
66 diffw_Q24 = silk_SMULBB( diff_Q15, w_Q9_ptr[ m ] ); in silk_NLSF_VQ()
Dcode_signs.c57 i = silk_SMULBB( 7, silk_ADD_LSHIFT( quantOffsetType, signalType, 1 ) ); in silk_encode_signs()
91 i = silk_SMULBB( 7, silk_ADD_LSHIFT( quantOffsetType, signalType, 1 ) ); in silk_decode_signs()
Dprocess_NLSFs.c80 …i_sqr_Q15 = silk_LSHIFT( silk_SMULBB( psEncC->indices.NLSFInterpCoef_Q2, psEncC->indices.NLSFInter… in silk_process_NLSFs()
83 silk_SMULBB( pNLSFW0_temp_QW[ i ], i_sqr_Q15 ), 16) ); in silk_process_NLSFs()
Dstereo_MS_to_LR.c57 …delta0_Q13 = silk_RSHIFT_ROUND( silk_SMULBB( pred_Q13[ 0 ] - state->pred_prev_Q13[ 0 ], denom_Q16 … in silk_stereo_MS_to_LR()
58 …delta1_Q13 = silk_RSHIFT_ROUND( silk_SMULBB( pred_Q13[ 1 ] - state->pred_prev_Q13[ 1 ], denom_Q16 … in silk_stereo_MS_to_LR()
DNSQ_del_dec.c487 rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
488 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
492 rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
493 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
497 rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
498 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
503 rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
504 rd2_Q10 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
DNLSF_encode.c90 …res_Q10[ i ] = (opus_int16)silk_RSHIFT( silk_SMULBB( pNLSF_Q15[ i ] - NLSF_tmp_Q15[ i ], W_tmp_Q9 … in silk_NLSF_encode()
91 … W_adj_Q5[ i ] = silk_DIV32_varQ( (opus_int32)pW_Q2[ i ], silk_SMULBB( W_tmp_Q9, W_tmp_Q9 ), 21 ); in silk_NLSF_encode()
Dinner_prod_aligned.c44 sum = silk_ADD_RSHIFT32( sum, silk_SMULBB( inVec1[ i ], inVec2[ i ] ), scale ); in silk_inner_prod_aligned_scale()
/external/libopus/silk/mips/
DNSQ_del_dec_mipsr1.h250 rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
251 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
255 rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
256 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
260 rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
261 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
266 rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
267 rd2_Q10 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
/external/libopus/silk/arm/
Dmacros_armv5e.h100 #undef silk_SMULBB
112 #define silk_SMULBB(a, b) (silk_SMULBB_armv5e(a, b)) macro
/external/libopus/silk/x86/
DNSQ_del_dec_sse4_1.c566 rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()
567 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()
571 rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()
572 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()
576 rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()
577 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()
582 rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()
583 rd2_Q10 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()

12