/external/libopus/silk/fixed/ |
D | corrMatrix_FIX.c | 60 inner_prod += silk_RSHIFT32( silk_SMULBB( ptr1[ i ], ptr2[i] ), rshifts ); in silk_corrVector_FIX() 99 energy -= silk_RSHIFT32( silk_SMULBB( x[ i ], x[ i ] ), rshifts_local ); in silk_corrMatrix_FIX() 112 …energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr1[ L - j ] ), rshifts_l… in silk_corrMatrix_FIX() 113 …energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr1[ -j ] ), rshifts_local )… in silk_corrMatrix_FIX() 125 energy += silk_RSHIFT32( silk_SMULBB( ptr1[ i ], ptr2[i] ), rshifts_local ); in silk_corrMatrix_FIX() 131 …energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr2[ L - j ] ), rshifts_l… in silk_corrMatrix_FIX() 132 …energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr2[ -j ] ), rshifts_local )… in silk_corrMatrix_FIX() 146 energy = silk_SUB32( energy, silk_SMULBB( ptr1[ L - j ], ptr2[ L - j ] ) ); in silk_corrMatrix_FIX()
|
D | pitch_analysis_core_FIX.c | 200 normalizer = silk_ADD32( normalizer, silk_SMULBB( SF_LENGTH_8KHZ, 4000 ) ); in silk_pitch_analysis_core() 217 silk_SMULBB( basis_ptr[ 0 ], basis_ptr[ 0 ] ) - in silk_pitch_analysis_core() 218 silk_SMULBB( basis_ptr[ SF_LENGTH_8KHZ ], basis_ptr[ SF_LENGTH_8KHZ ] ) ); 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() 432 …delta_lag_log2_sqr_Q7 = silk_RSHIFT( silk_SMULBB( delta_lag_log2_sqr_Q7, delta_lag_log2_sqr_Q7 ), … 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() 439 …CCmax_new > silk_SMULBB( nb_subfr, search_thres2_Q13 ) && /* Correlation needs to be high enough… in silk_pitch_analysis_core() 488 lag = silk_RSHIFT( silk_SMULBB( lag, 3 ), 1 ); in silk_pitch_analysis_core() 492 lag = silk_SMULBB( lag, 3 ); in silk_pitch_analysis_core() 716 energy -= silk_SMULBB( basis_ptr[ sf_length - i ], basis_ptr[ sf_length - i ] ); in silk_P_Ana_calc_energy_st3() [all …]
|
D | solve_LS_FIX.c | 132 …diag_min_value = silk_max_32( silk_SMMUL( silk_ADD_SAT32( A[ 0 ], A[ silk_SMULBB( M, M ) - 1 ] ), … in silk_LDL_factorize_FIX() 145 tmp_32 = silk_SUB32( silk_SMULBB( loop_count + 1, diag_min_value ), tmp_32 ); in silk_LDL_factorize_FIX() 245 tmp_32 = silk_SMLAWW( tmp_32, ptr32[ silk_SMULBB( j, M ) ], x_Q16[ j ] ); in silk_LS_SolveLast_FIX()
|
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()
|
/external/libopus/silk/ |
D | stereo_LR_to_MS.c | 99 …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()
|
D | control_codec.c | 173 …ret += silk_resampler_init( temp_resampler_state, silk_SMULBB( psEnc->sCmn.fs_kHz, 1000 ), psEnc->… in silk_setup_resamplers() 183 …k_resampler_init( &psEnc->sCmn.resampler_state, psEnc->sCmn.API_fs_Hz, silk_SMULBB( fs_kHz, 1000 )… in silk_setup_resamplers() 219 psEnc->sCmn.frame_length = silk_SMULBB( PacketSize_ms, fs_kHz ); in silk_setup_fs() 220 psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS_2_SF, fs_kHz ); in silk_setup_fs() 229 psEnc->sCmn.frame_length = silk_SMULBB( 20, fs_kHz ); in silk_setup_fs() 230 psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS, fs_kHz ); in silk_setup_fs() 286 psEnc->sCmn.frame_length = silk_SMULBB( psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); in silk_setup_fs() 287 psEnc->sCmn.ltp_mem_length = silk_SMULBB( LTP_MEM_LENGTH_MS, fs_kHz ); in silk_setup_fs() 288 psEnc->sCmn.la_pitch = silk_SMULBB( LA_PITCH_MS, fs_kHz ); in silk_setup_fs() 289 psEnc->sCmn.max_pitch_lag = silk_SMULBB( 18, fs_kHz ); in silk_setup_fs() [all …]
|
D | decoder_set_fs.c | 47 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()
|
D | decode_pulses.c | 85 …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()
|
D | control_audio_bandwidth.c | 45 fs_Hz = silk_SMULBB( fs_kHz, 1000 ); in silk_control_audio_bandwidth() 64 if( silk_SMULBB( psEncC->fs_kHz, 1000 ) > psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth() 93 if( silk_SMULBB( psEncC->fs_kHz, 1000 ) < psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth()
|
D | sigm_Q15.c | 63 … 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()
|
D | log2lin.c | 52 …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()
|
D | PLC.c | 122 &psDecCtrl->LTPCoef_Q14[ silk_SMULBB( psDec->nb_subfr - 1 - j, LTP_ORDER ) ], in silk_PLC_update() 140 … psPLC->LTPCoef_Q14[ i ] = silk_RSHIFT( silk_SMULBB( psPLC->LTPCoef_Q14[ i ], scale_Q10 ), 10 ); in silk_PLC_update() 149 … psPLC->LTPCoef_Q14[ i ] = silk_RSHIFT( silk_SMULBB( psPLC->LTPCoef_Q14[ i ], scale_Q14 ), 14 ); in silk_PLC_update() 153 psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); in silk_PLC_update() 251 …rand_scale_Q14 = (opus_int16)silk_RSHIFT( silk_SMULBB( rand_scale_Q14, psPLC->prevLTP_scale_Q14 ),… in silk_PLC_conceal() 307 B_Q14[ j ] = silk_RSHIFT( silk_SMULBB( harm_Gain_Q15, B_Q14[ j ] ), 15 ); in silk_PLC_conceal() 310 rand_scale_Q14 = silk_RSHIFT( silk_SMULBB( rand_scale_Q14, rand_Gain_Q15 ), 15 ); 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()
|
D | NLSF_unpack.c | 49 … 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()
|
D | NSQ.c | 311 rd1_Q20 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer() 312 rd2_Q20 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer() 316 rd1_Q20 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer() 317 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() 327 rd1_Q20 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer() 328 rd2_Q20 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer()
|
D | decode_pitch.c | 69 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()
|
D | sum_sqr_shift.c | 60 nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); in silk_sum_sqr_shift() 71 nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); in silk_sum_sqr_shift()
|
D | code_signs.c | 57 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()
|
D | stereo_MS_to_LR.c | 57 …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()
|
D | NSQ_del_dec.c | 473 rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec() 474 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec() 478 rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec() 479 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec() 483 rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec() 484 rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec() 489 rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec() 490 rd2_Q10 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); in silk_noise_shape_quantizer_del_dec()
|
D | inner_prod_aligned.c | 44 sum = silk_ADD_RSHIFT32( sum, silk_SMULBB( inVec1[ i ], inVec2[ i ] ), scale ); in silk_inner_prod_aligned_scale()
|
D | A2NLSF.c | 227 NLSF[ k ] = (opus_int16)silk_SMULBB( k + 1, NLSF[ 0 ] ); in silk_A2NLSF() 233 … silk_bwexpander_32( a_Q16, d, 65536 - silk_SMULBB( 10 + i, i ) ); /* 10_Q16 = 0.00015*/ in silk_A2NLSF()
|
D | interpolate.c | 49 … xi[ i ] = (opus_int16)silk_ADD_RSHIFT( x0[ i ], silk_SMULBB( x1[ i ] - x0[ i ], ifact_Q2 ), 2 ); in silk_interpolate()
|
D | NLSF_VQ.c | 55 sum_error_Q30 = silk_SMULBB( diff_Q15, diff_Q15 ); in silk_NLSF_VQ()
|
D | HP_variable_cutoff.c | 70 …silk_SMULBB( psEncC1->speech_activity_Q8, delta_freq_Q7 ), SILK_FIX_CONST( VARIABLE_HP_SMTH_COEF1,… in silk_HP_variable_cutoff()
|
/external/libopus/silk/arm/ |
D | macros_armv5e.h | 95 #undef silk_SMULBB 107 #define silk_SMULBB(a, b) (silk_SMULBB_armv5e(a, b)) macro
|