/external/libopus/silk/x86/ |
D | VAD_sse4_1.c | 70 celt_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); in silk_VAD_GetSA_Q8_sse4_1() 75 decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 ); in silk_VAD_GetSA_Q8_sse4_1() 76 decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 ); in silk_VAD_GetSA_Q8_sse4_1() 77 decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 ); in silk_VAD_GetSA_Q8_sse4_1() 108 X[ decimated_framelength - 1 ] = silk_RSHIFT( X[ decimated_framelength - 1 ], 1 ); in silk_VAD_GetSA_Q8_sse4_1() 111 X[ i - 1 ] = silk_RSHIFT( X[ i - 1 ], 1 ); in silk_VAD_GetSA_Q8_sse4_1() 122 …decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BA… in silk_VAD_GetSA_Q8_sse4_1() 125 dec_subframe_length = silk_RSHIFT( decimated_framelength, VAD_INTERNAL_SUBFRAMES_LOG2 ); in silk_VAD_GetSA_Q8_sse4_1() 153 x_tmp = silk_RSHIFT( in silk_VAD_GetSA_Q8_sse4_1() 166 Xnrg[ b ] = silk_ADD_POS_SAT32( Xnrg[ b ], silk_RSHIFT( sumSquared, 1 ) ); in silk_VAD_GetSA_Q8_sse4_1() [all …]
|
/external/libopus/silk/ |
D | VAD.c | 106 celt_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); in silk_VAD_GetSA_Q8_c() 111 decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 ); in silk_VAD_GetSA_Q8_c() 112 decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 ); in silk_VAD_GetSA_Q8_c() 113 decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 ); in silk_VAD_GetSA_Q8_c() 144 X[ decimated_framelength - 1 ] = silk_RSHIFT( X[ decimated_framelength - 1 ], 1 ); in silk_VAD_GetSA_Q8_c() 147 X[ i - 1 ] = silk_RSHIFT( X[ i - 1 ], 1 ); in silk_VAD_GetSA_Q8_c() 158 …decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BA… in silk_VAD_GetSA_Q8_c() 161 dec_subframe_length = silk_RSHIFT( decimated_framelength, VAD_INTERNAL_SUBFRAMES_LOG2 ); in silk_VAD_GetSA_Q8_c() 172 x_tmp = silk_RSHIFT( in silk_VAD_GetSA_Q8_c() 185 Xnrg[ b ] = silk_ADD_POS_SAT32( Xnrg[ b ], silk_RSHIFT( sumSquared, 1 ) ); in silk_VAD_GetSA_Q8_c() [all …]
|
D | biquad_alt.c | 57 A0_U_Q28 = silk_RSHIFT( -A_Q28[ 0 ], 14 ); /* upper part */ in silk_biquad_alt_stride1() 59 A1_U_Q28 = silk_RSHIFT( -A_Q28[ 1 ], 14 ); /* upper part */ in silk_biquad_alt_stride1() 75 out[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14 + (1<<14) - 1, 14 ) ); in silk_biquad_alt_stride1() 94 A0_U_Q28 = silk_RSHIFT( -A_Q28[ 0 ], 14 ); /* upper part */ in silk_biquad_alt_stride2_c() 96 A1_U_Q28 = silk_RSHIFT( -A_Q28[ 1 ], 14 ); /* upper part */ in silk_biquad_alt_stride2_c() 118 … out[ 2 * k + 0 ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14[ 0 ] + (1<<14) - 1, 14 ) ); in silk_biquad_alt_stride2_c() 119 … out[ 2 * k + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14[ 1 ] + (1<<14) - 1, 14 ) ); in silk_biquad_alt_stride2_c()
|
D | PLC.c | 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() 183 exc_buf_ptr[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT( in silk_PLC_energy() 228 prevGain_Q10[0] = silk_RSHIFT( psPLC->prevGain_Q16[ 0 ], 6); in silk_PLC_conceal() 229 prevGain_Q10[1] = silk_RSHIFT( psPLC->prevGain_Q16[ 1 ], 6); in silk_PLC_conceal() 237 if( silk_RSHIFT( energy1, shift2 ) < silk_RSHIFT( energy2, shift1 ) ) { in silk_PLC_conceal() 273 …rand_scale_Q14 = (opus_int16)silk_RSHIFT( silk_SMULBB( rand_scale_Q14, psPLC->prevLTP_scale_Q14 ),… in silk_PLC_conceal() 280 …down_scale_Q30 = silk_min_32( silk_RSHIFT( (opus_int32)1 << 30, LOG2_INV_LPC_GAIN_HIGH_THRES ), in… in silk_PLC_conceal() 281 …down_scale_Q30 = silk_max_32( silk_RSHIFT( (opus_int32)1 << 30, LOG2_INV_LPC_GAIN_LOW_THRES ), dow… in silk_PLC_conceal() 284 rand_Gain_Q15 = silk_RSHIFT( silk_SMULWB( down_scale_Q30, rand_Gain_Q15 ), 14 ); in silk_PLC_conceal() [all …]
|
D | Inlines.h | 88 y >>= silk_RSHIFT(lz, 1); in silk_SQRT_APPROX() 116 …b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_head… in silk_DIV32_varQ() 134 return silk_RSHIFT(result, lshift); in silk_DIV32_varQ() 159 …b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_head… in silk_INVERSE32_varQ() 176 return silk_RSHIFT(result, lshift); in silk_INVERSE32_varQ()
|
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() 52 …pred_Q8[ i + 1 ] = psNLSF_CB->pred_Q8[ i + ( silk_RSHIFT( entry, 4 ) & 1 ) * ( psNLSF_CB->order - … in silk_NLSF_unpack()
|
D | NLSF_del_dec_quant.c | 78 …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() 192 ind[ j ][ i ] += silk_RSHIFT( ind_sort[ j ], NLSF_QUANT_DEL_DEC_STATES_LOG2 ); in silk_NLSF_del_dec_quant() 211 indices[ 0 ] += silk_RSHIFT( ind_tmp, NLSF_QUANT_DEL_DEC_STATES_LOG2 ); in silk_NLSF_del_dec_quant()
|
D | stereo_LR_to_MS.c | 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()
|
D | code_signs.c | 37 #define silk_enc_map(a) ( silk_RSHIFT( (a), 15 ) + 1 ) 59 length = silk_RSHIFT( length + SHELL_CODEC_FRAME_LENGTH/2, LOG2_SHELL_CODEC_FRAME_LENGTH ); in silk_encode_signs() 93 length = silk_RSHIFT( length + SHELL_CODEC_FRAME_LENGTH/2, LOG2_SHELL_CODEC_FRAME_LENGTH ); in silk_decode_signs()
|
D | NLSF_stabilize.c | 103 min_center_Q15 += silk_RSHIFT( NDeltaMin_Q15[I], 1 ); in silk_NLSF_stabilize() 110 max_center_Q15 -= silk_RSHIFT( NDeltaMin_Q15[I], 1 ); in silk_NLSF_stabilize() 115 NLSF_Q15[I-1] = center_freq_Q15 - silk_RSHIFT( NDeltaMin_Q15[I], 1 ); in silk_NLSF_stabilize()
|
D | sigm_Q15.c | 62 ind = silk_RSHIFT( in_Q5, 5 ); in silk_sigm_Q15() 71 ind = silk_RSHIFT( in_Q5, 5 ); in silk_sigm_Q15()
|
D | log2lin.c | 48 out = silk_LSHIFT( 1, silk_RSHIFT( inLog_Q7, 7 ) ); 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 | CNG.c | 48 exc_mask = silk_RSHIFT( exc_mask, 1 ); in silk_CNG_exc() 54 idx = (opus_int)( silk_RSHIFT( seed, 24 ) & exc_mask ); in silk_CNG_exc() 144 gain_Q10 = silk_RSHIFT( gain_Q16, 6 ); in silk_CNG() 156 LPC_pred_Q10 = silk_RSHIFT( psDec->LPC_order, 1 ); in silk_CNG()
|
D | encode_pulses.c | 87 iter = silk_RSHIFT( frame_length, LOG2_SHELL_CODEC_FRAME_LENGTH ); in silk_encode_pulses() 125 abs_pulses_ptr[ k ] = silk_RSHIFT( abs_pulses_ptr[ k ], 1 ); in silk_encode_pulses() 192 bit = silk_RSHIFT( abs_q, j ) & 1; in silk_encode_pulses()
|
D | process_NLSFs.c | 82 pNLSFW_QW[ i ] = silk_ADD16( silk_RSHIFT( pNLSFW_QW[ i ], 1 ), silk_RSHIFT( in silk_process_NLSFs()
|
D | encode_indices.c | 78 …ec_enc_icdf( psRangeEnc, silk_RSHIFT( psIndices->GainsIndices[ 0 ], 3 ), silk_gain_iCDF[ psIndices… in silk_encode_indices() 134 … pitch_high_bits = silk_DIV32_16( psIndices->lagIndex, silk_RSHIFT( psEncC->fs_kHz, 1 ) ); in silk_encode_indices() 135 …pitch_low_bits = psIndices->lagIndex - silk_SMULBB( pitch_high_bits, silk_RSHIFT( psEncC->fs_kHz, … in silk_encode_indices()
|
D | NSQ.c | 134 HarmShapeFIRPacked_Q14 = silk_RSHIFT( HarmShapeGain_Q14[ k ], 2 ); in silk_NSQ_c() 135 … HarmShapeFIRPacked_Q14 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q14[ k ], 1 ), 16 ); in silk_NSQ_c() 218 Gain_Q10 = silk_RSHIFT( Gain_Q16, 6 ); in silk_noise_shape_quantizer() 287 q1_Q0 = silk_RSHIFT( q1_Q10, 10 ); in silk_noise_shape_quantizer() 292 q1_Q0 = silk_RSHIFT( q1_Q10 - rdo_offset, 10 ); in silk_noise_shape_quantizer() 294 q1_Q0 = silk_RSHIFT( q1_Q10 + rdo_offset, 10 ); in silk_noise_shape_quantizer()
|
D | A2NLSF.c | 146 dd = silk_RSHIFT( d, 1 ); in silk_A2NLSF() 206 nom = silk_LSHIFT( ylo, 8 - BIN_DIV_STEPS_A2NLSF_FIX ) + silk_RSHIFT( den, 1 ); in silk_A2NLSF() 212 ffrac += silk_DIV32( ylo, silk_RSHIFT( ylo - yhi, 8 - BIN_DIV_STEPS_A2NLSF_FIX ) ); in silk_A2NLSF()
|
D | NLSF2A.c | 97 f_int = silk_RSHIFT( NLSF[k], 15 - 7 ); in silk_NLSF2A() 113 dd = silk_RSHIFT( d, 1 ); in silk_NLSF2A()
|
/external/libopus/silk/fixed/ |
D | apply_sine_window_FIX.c | 80 S1_Q16 = f_Q16 + silk_RSHIFT( length, 3 ); in silk_apply_sine_window() 85 S1_Q16 = ( (opus_int32)1 << 16 ) + silk_RSHIFT( c_Q16, 1 ) + silk_RSHIFT( length, 4 ); in silk_apply_sine_window() 91 px_win[ k ] = (opus_int16)silk_SMULWB( silk_RSHIFT( S0_Q16 + S1_Q16, 1 ), px[ k ] ); in silk_apply_sine_window() 96 px_win[ k + 2 ] = (opus_int16)silk_SMULWB( silk_RSHIFT( S0_Q16 + S1_Q16, 1 ), px[ k + 2] ); in silk_apply_sine_window()
|
D | find_LPC_FIX.c | 76 res_nrg = res_nrg - silk_RSHIFT( res_tmp_nrg, shift ); in silk_find_LPC_FIX() 80 res_nrg = silk_RSHIFT( res_nrg, -shift ) - res_tmp_nrg; in silk_find_LPC_FIX() 106 res_nrg1 = silk_RSHIFT( res_nrg1, shift ); in silk_find_LPC_FIX() 109 res_nrg0 = silk_RSHIFT( res_nrg0, -shift ); in silk_find_LPC_FIX() 117 if( silk_RSHIFT( res_nrg_interp, shift ) < res_nrg ) { in silk_find_LPC_FIX() 124 if( res_nrg_interp < silk_RSHIFT( res_nrg, -shift ) ) { in silk_find_LPC_FIX()
|
D | residual_energy16_FIX.c | 65 …Qxtra = silk_min_int( Qxtra, silk_CLZ32( silk_MUL( D, silk_RSHIFT( silk_SMULWB( w_max, c_max ), 4 … in silk_residual_energy16_covar_FIX() 78 nrg = silk_RSHIFT( wxx, 1 + lshifts ) - tmp; /* Q: -lshifts - 1 */ in silk_residual_energy16_covar_FIX() 88 tmp = silk_SMLAWB( tmp, silk_RSHIFT( pRow[ i ], 1 ), cn[ i ] ); in silk_residual_energy16_covar_FIX() 96 } else if( nrg > silk_RSHIFT( silk_int32_MAX, lshifts + 2 ) ) { in silk_residual_energy16_covar_FIX()
|
D | noise_shape_analysis_FIX.c | 82 limit_Q20 = silk_RSHIFT(limit_Q24, 4); in limit_warped_coefs() 94 maxabs_Q20 = silk_RSHIFT(maxabs_Q24, 4); in limit_warped_coefs() 169 …psEncCtrl->input_quality_Q14 = ( opus_int )silk_RSHIFT( (opus_int32)psEnc->sCmn.input_quality_band… in silk_noise_shape_analysis_FIX() 173 psEncCtrl->coding_quality_Q14 = silk_RSHIFT( silk_sigm_Q15( silk_RSHIFT_ROUND( SNR_adj_dB_Q7 - in silk_noise_shape_analysis_FIX() 211 nrg += silk_RSHIFT( nSamples, scale ); /* Q(-scale)*/ in silk_noise_shape_analysis_FIX() 252 slope_part = silk_RSHIFT( psEnc->sCmn.shapeWinLength - flat_part, 1 ); in silk_noise_shape_analysis_FIX() 272 …auto_corr[0] = silk_ADD32( auto_corr[0], silk_max_32( silk_SMULWB( silk_RSHIFT( auto_corr[ 0 ], 4 … in silk_noise_shape_analysis_FIX() 350 strength_Q16 = silk_RSHIFT( silk_MUL( strength_Q16, psEnc->sCmn.speech_activity_Q8 ), 8 ); in silk_noise_shape_analysis_FIX()
|
D | schur_FIX.c | 56 C[ k ][ 0 ] = C[ k ][ 1 ] = silk_RSHIFT( c[ k ], 1 ); in silk_schur() 84 … rc_tmp_Q15 = -silk_DIV32_16( C[ k + 1 ][ 0 ], silk_max_32( silk_RSHIFT( C[ 0 ][ 1 ], 15 ), 1 ) ); in silk_schur()
|
/external/libopus/silk/fixed/mips/ |
D | noise_shape_analysis_FIX_mipsr1.h | 64 …psEncCtrl->input_quality_Q14 = ( opus_int )silk_RSHIFT( (opus_int32)psEnc->sCmn.input_quality_band… in silk_noise_shape_analysis_FIX() 68 psEncCtrl->coding_quality_Q14 = silk_RSHIFT( silk_sigm_Q15( silk_RSHIFT_ROUND( SNR_adj_dB_Q7 - in silk_noise_shape_analysis_FIX() 106 nrg += silk_RSHIFT( nSamples, scale ); /* Q(-scale)*/ in silk_noise_shape_analysis_FIX() 116 psEncCtrl->sparseness_Q8 = silk_RSHIFT( silk_sigm_Q15( silk_SMULWB( energy_variation_Q7 - in silk_noise_shape_analysis_FIX() 142 BWExp1_Q16 = silk_DIV32_16( silk_LSHIFT( BWExp1_Q16, 14 ), silk_RSHIFT( BWExp2_Q16, 2 ) ); in silk_noise_shape_analysis_FIX() 159 slope_part = silk_RSHIFT( psEnc->sCmn.shapeWinLength - flat_part, 1 ); in silk_noise_shape_analysis_FIX() 179 …auto_corr[0] = silk_ADD32( auto_corr[0], silk_max_32( silk_SMULWB( silk_RSHIFT( auto_corr[ 0 ], 4 … in silk_noise_shape_analysis_FIX() 269 strength_Q16 = silk_RSHIFT( silk_MUL( strength_Q16, psEnc->sCmn.speech_activity_Q8 ), 8 ); in silk_noise_shape_analysis_FIX()
|