Home
last modified time | relevance | path

Searched refs:silk_RSHIFT_ROUND (Results 1 – 25 of 41) sorted by relevance

12

/external/libopus/silk/
Dstereo_LR_to_MS.c66 mid[ n ] = (opus_int16)silk_RSHIFT_ROUND( sum, 1 ); in silk_stereo_LR_to_MS()
67 side[ n ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( diff, 1 ) ); in silk_stereo_LR_to_MS()
80 …sum = silk_RSHIFT_ROUND( silk_ADD_LSHIFT( mid[ n ] + (opus_int32)mid[ n + 2 ], mid[ n + 1 ], 1 ), … in silk_stereo_LR_to_MS()
89 …sum = silk_RSHIFT_ROUND( silk_ADD_LSHIFT( side[ n ] + (opus_int32)side[ n + 2 ], side[ n + 1 ], 1 … 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()
213 x2[ n - 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); in silk_stereo_LR_to_MS()
223 x2[ n - 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); in silk_stereo_LR_to_MS()
Dbwexpander.c47 … ar[ i ] = (opus_int16)silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, ar[ i ] ), 16 ); in silk_bwexpander()
48 chirp_Q16 += silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, chirp_minus_one_Q16 ), 16 ); in silk_bwexpander()
50 ar[ d - 1 ] = (opus_int16)silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, ar[ d - 1 ] ), 16 ); in silk_bwexpander()
DNLSF2A.c110 …cos_LSF_QA[ordering[k]] = silk_RSHIFT_ROUND( silk_LSHIFT( cos_val, 8 ) + silk_MUL( delta, f_frac )… in silk_NLSF2A()
140 …maxabs = silk_RSHIFT_ROUND( maxabs, QA + 1 - 12 ); /* QA+… in silk_NLSF2A()
156 …a_Q12[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( a32_QA1[ k ], QA + 1 - 12 ) ); /* QA+1 ->… in silk_NLSF2A()
161 …a_Q12[ k ] = (opus_int16)silk_RSHIFT_ROUND( a32_QA1[ k ], QA + 1 - 12 ); /* QA+1 ->… in silk_NLSF2A()
171 …a_Q12[ k ] = (opus_int16)silk_RSHIFT_ROUND( a32_QA1[ k ], QA + 1 - 12 ); /* QA+1 -> Q12… in silk_NLSF2A()
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()
65 x2[ n + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); in silk_stereo_MS_to_LR()
73 x2[ n + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); in silk_stereo_MS_to_LR()
Dbiquad_alt.c67 S[ 0 ] = S[1] + silk_RSHIFT_ROUND( silk_SMULWB( out32_Q14, A0_L_Q28 ), 14 ); in silk_biquad_alt()
71 S[ 1 ] = silk_RSHIFT_ROUND( silk_SMULWB( out32_Q14, A1_L_Q28 ), 14 ); in silk_biquad_alt()
Dana_filt_bank_1.c71 outL[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_ADD32( out_2, out_1 ), 11 ) ); in silk_ana_filt_bank_1()
72 outH[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SUB32( out_2, out_1 ), 11 ) ); in silk_ana_filt_bank_1()
Dresampler_down2_3.c75 *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); in silk_resampler_down2_3()
83 *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); in silk_resampler_down2_3()
DNSQ_del_dec.c239 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_NSQ_del_dec_c()
240 pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_NSQ_del_dec_c()
290 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_NSQ_del_dec_c()
291 pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_NSQ_del_dec_c()
452 tmp1 = silk_RSHIFT_ROUND( tmp1, 4 ); /* Q10 */ in silk_noise_shape_quantizer_del_dec()
596 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_noise_shape_quantizer_del_dec()
597 xq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_noise_shape_quantizer_del_dec()
615 …>Seed = silk_ADD32_ovflw( psDD->Seed, silk_RSHIFT_ROUND( psSS->Q_Q10… in silk_noise_shape_quantizer_del_dec()
663 inv_gain_Q23 = silk_RSHIFT_ROUND( inv_gain_Q31, 8 ); in silk_nsq_del_dec_scale_states()
Dresampler_private_up2_HQ.c79 out[ 2 * k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( out32_1, 10 ) ); in silk_resampler_private_up2_HQ()
100 out[ 2 * k + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( out32_1, 10 ) ); in silk_resampler_private_up2_HQ()
DNSQ.c274 tmp1 = silk_RSHIFT_ROUND( tmp1, 3 ); /* Q10 */ in silk_noise_shape_quantizer()
276 tmp1 = silk_RSHIFT_ROUND( tmp1, 2 ); /* Q10 */ in silk_noise_shape_quantizer()
322 pulses[ i ] = (opus_int8)silk_RSHIFT_ROUND( q1_Q10, 10 ); in silk_noise_shape_quantizer()
335 xq[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( xq_Q14, Gain_Q10 ), 8 ) ); in silk_noise_shape_quantizer()
385 inv_gain_Q23 = silk_RSHIFT_ROUND( inv_gain_Q31, 8 ); in silk_nsq_scale_states()
Dresampler_private_down_FIR.c83 *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); in silk_resampler_private_down_FIR_INTERPOL()
106 *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); in silk_resampler_private_down_FIR_INTERPOL()
135 *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); in silk_resampler_private_down_FIR_INTERPOL()
Dmacros.h96 …MULWW(a32, b32) silk_MLA(silk_SMULWB((a32), (b32)), (a32), silk_RSHIFT_ROUND((b32), 16))
103 …32, b32, c32) silk_MLA(silk_SMLAWB((a32), (b32), (c32)), (b32), silk_RSHIFT_ROUND((c32), 16))
Dbwexpander_32.c46 chirp_Q16 += silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, chirp_minus_one_Q16 ), 16 ); in silk_bwexpander_32()
Dresampler_down2.c71 out[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( out32, 11 ) ); in silk_resampler_down2()
/external/libopus/silk/fixed/mips/
Dprefilter_FIX_mipsr1.h104 res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( acc_Q11, 9 ); in silk_warped_LPC_analysis_filter_FIX()
108 … res_Q2[ n+1 ] = silk_LSHIFT( (opus_int32)input[ n+1 ], 2 ) - silk_RSHIFT_ROUND( acc_Q22, 9 ); in silk_warped_LPC_analysis_filter_FIX()
154 …LTP_shp_buf[ LTP_shp_buf_idx ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sLF_MA_shp_Q12, 12 ) ); in silk_prefilt_FIX()
156 xw_Q3[i] = silk_RSHIFT_ROUND( silk_SUB32( sLF_MA_shp_Q12, n_LTP_Q12 ), 9 ); in silk_prefilt_FIX()
172 …LTP_shp_buf[ LTP_shp_buf_idx ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sLF_MA_shp_Q12, 12 ) ); in silk_prefilt_FIX()
174 xw_Q3[i] = silk_RSHIFT_ROUND( sLF_MA_shp_Q12, 9 ); in silk_prefilt_FIX()
Dnoise_shape_analysis_FIX_mipsr1.h68 psEncCtrl->coding_quality_Q14 = silk_RSHIFT( silk_sigm_Q15( silk_RSHIFT_ROUND( SNR_adj_dB_Q7 - in silk_noise_shape_analysis_FIX()
209 …if ( silk_SMULWW( silk_RSHIFT_ROUND( psEncCtrl->Gains_Q16[ k ], 1 ), gain_mult_Q16 ) >= ( silk_int… in silk_noise_shape_analysis_FIX()
239 …l->AR1_Q13[ k * MAX_SHAPE_LPC_ORDER + i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( AR1_Q24[ i … in silk_noise_shape_analysis_FIX()
240 …l->AR2_Q13[ k * MAX_SHAPE_LPC_ORDER + i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( AR2_Q24[ i … in silk_noise_shape_analysis_FIX()
257 …gain_mult_Q16 = SILK_FIX_CONST( 1.0, 16 ) + silk_RSHIFT_ROUND( silk_MLA( SILK_FIX_CONST( INPUT_TIL… in silk_noise_shape_analysis_FIX()
331 …psEncCtrl->HarmBoost_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmBoost_smth_Q16, … in silk_noise_shape_analysis_FIX()
332 …psEncCtrl->HarmShapeGain_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmShapeGain_smth_Q… in silk_noise_shape_analysis_FIX()
333 …psEncCtrl->Tilt_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->Tilt_smth_Q16, … in silk_noise_shape_analysis_FIX()
/external/libopus/silk/fixed/
Dprefilter_FIX.c96 res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( acc_Q11, 9 ); in silk_warped_LPC_analysis_filter_FIX_c()
146 B_Q10[ 0 ] = silk_RSHIFT_ROUND( psEncCtrl->GainsPre_Q14[ k ], 4 ); in silk_prefilter_FIX()
150 …tmp_32 = silk_RSHIFT_ROUND( tmp_32, 14 ); … in silk_prefilter_FIX()
211 …LTP_shp_buf[ LTP_shp_buf_idx ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sLF_MA_shp_Q12, 12 ) ); in silk_prefilt_FIX()
213 xw_Q3[i] = silk_RSHIFT_ROUND( silk_SUB32( sLF_MA_shp_Q12, n_LTP_Q12 ), 9 ); in silk_prefilt_FIX()
Dnoise_shape_analysis_FIX.c183 psEncCtrl->coding_quality_Q14 = silk_RSHIFT( silk_sigm_Q15( silk_RSHIFT_ROUND( SNR_adj_dB_Q7 - in silk_noise_shape_analysis_FIX()
323 …if ( silk_SMULWW( silk_RSHIFT_ROUND( psEncCtrl->Gains_Q16[ k ], 1 ), gain_mult_Q16 ) >= ( silk_int… in silk_noise_shape_analysis_FIX()
353 …l->AR1_Q13[ k * MAX_SHAPE_LPC_ORDER + i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( AR1_Q24[ i … in silk_noise_shape_analysis_FIX()
354 …l->AR2_Q13[ k * MAX_SHAPE_LPC_ORDER + i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( AR2_Q24[ i … in silk_noise_shape_analysis_FIX()
371 …gain_mult_Q16 = SILK_FIX_CONST( 1.0, 16 ) + silk_RSHIFT_ROUND( silk_MLA( SILK_FIX_CONST( INPUT_TIL… in silk_noise_shape_analysis_FIX()
445 …psEncCtrl->HarmBoost_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmBoost_smth_Q16, … in silk_noise_shape_analysis_FIX()
446 …psEncCtrl->HarmShapeGain_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmShapeGain_smth_Q… in silk_noise_shape_analysis_FIX()
447 …psEncCtrl->Tilt_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->Tilt_smth_Q16, … in silk_noise_shape_analysis_FIX()
Dprocess_gains_FIX.c49 …s_Q16 = -silk_sigm_Q15( silk_RSHIFT_ROUND( psEncCtrl->LTPredCodGain_Q7 - SILK_FIX_CONST( 12.0, 7 )… in silk_process_gains_FIX()
65 ResNrgPart = silk_RSHIFT_ROUND( ResNrgPart, psEncCtrl->ResNrgQ[ k ] ); in silk_process_gains_FIX()
Dburg_modified_FIX.c152 … Atmp1 = silk_RSHIFT_ROUND( Af_QA[ k ], QA - 17 ); /* Q17 */ in silk_burg_modified_c()
250 A_Q16[ k ] = -silk_RSHIFT_ROUND( Af_QA[ k ], QA - 16 ); in silk_burg_modified_c()
272 … Atmp1 = silk_RSHIFT_ROUND( Af_QA[ k ], QA - 16 ); /* Q16 */ in silk_burg_modified_c()
/external/libopus/silk/mips/
Dsigproc_fix_mipsr1.h56 #undef silk_RSHIFT_ROUND
57 static inline int silk_RSHIFT_ROUND(int a, int shift) in silk_RSHIFT_ROUND() function
DNSQ_del_dec_mipsr1.h233 tmp1 = silk_RSHIFT_ROUND( tmp1, 4 ); /* Q10 */ in silk_noise_shape_quantizer_del_dec()
377 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_noise_shape_quantizer_del_dec()
378 xq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_noise_shape_quantizer_del_dec()
396 …>Seed = silk_ADD32_ovflw( psDD->Seed, silk_RSHIFT_ROUND( psSS->Q_Q10… in silk_noise_shape_quantizer_del_dec()
/external/libopus/silk/x86/
DNSQ_del_dec_sse.c238 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_NSQ_del_dec_sse4_1()
239 pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_NSQ_del_dec_sse4_1()
289 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_NSQ_del_dec_sse4_1()
290 pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_NSQ_del_dec_sse4_1()
548 … tmp1 = silk_RSHIFT_ROUND( tmp1, 4 ); /* Q10 */ in silk_noise_shape_quantizer_del_dec_sse4_1()
692 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_noise_shape_quantizer_del_dec_sse4_1()
693 xq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_noise_shape_quantizer_del_dec_sse4_1()
711 …>Seed = silk_ADD32_ovflw( psDD->Seed, silk_RSHIFT_ROUND( psSS->Q_Q10… in silk_noise_shape_quantizer_del_dec_sse4_1()
760 inv_gain_Q23 = silk_RSHIFT_ROUND( inv_gain_Q31, 8 ); in silk_nsq_del_dec_scale_states_sse4_1()
DNSQ_sse.c480 tmp1 = silk_RSHIFT_ROUND( tmp1, 3 ); /* Q10 */ in silk_noise_shape_quantizer_10_16_sse4_1()
482 tmp1 = silk_RSHIFT_ROUND( tmp1, 2 ); /* Q10 */ in silk_noise_shape_quantizer_10_16_sse4_1()
508 pulses[ i ] = (opus_int8)silk_RSHIFT_ROUND( q1_Q10, 10 ); in silk_noise_shape_quantizer_10_16_sse4_1()
596 … xq[i] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( psLPC_Q14[ i ], Gain_Q10 ), 8 ) ); in silk_noise_shape_quantizer_10_16_sse4_1()
633 inv_gain_Q23 = silk_RSHIFT_ROUND( inv_gain_Q31, 8 ); in silk_nsq_scale_states_sse4_1()
/external/libopus/silk/fixed/x86/
Dprefilter_FIX_sse.c115 … res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( ( 5 + sum ), 9); in silk_warped_LPC_analysis_filter_FIX_sse4_1()
158 res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( acc_Q11, 9 ); in silk_warped_LPC_analysis_filter_FIX_sse4_1()

12