Home
last modified time | relevance | path

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

12

/external/libopus/silk/
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()
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 ] + mid[ n + 2 ], mid[ n + 1 ], 1 ), 2 ); in silk_stereo_LR_to_MS()
89 … sum = silk_RSHIFT_ROUND( silk_ADD_LSHIFT( side[ n ] + side[ n + 2 ], side[ n + 1 ], 1 ), 2 ); 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()
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()
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()
Dmacros.h68 …MULWW(a32, b32) silk_MLA(silk_SMULWB((a32), (b32)), (a32), silk_RSHIFT_ROUND((b32), 16))
71 …32, b32, c32) silk_MLA(silk_SMLAWB((a32), (b32), (c32)), (b32), silk_RSHIFT_ROUND((c32), 16))
DNSQ_del_dec.c233 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_NSQ_del_dec()
234 pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_NSQ_del_dec()
284 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_NSQ_del_dec()
285 pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_NSQ_del_dec()
456 tmp1 = silk_RSHIFT_ROUND( tmp1, 4 ); /* Q10 */ in silk_noise_shape_quantizer_del_dec()
600 … pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); in silk_noise_shape_quantizer_del_dec()
601 xq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( in silk_noise_shape_quantizer_del_dec()
619 …>Seed = silk_ADD32_ovflw( psDD->Seed, silk_RSHIFT_ROUND( psSS->Q_Q10… in silk_noise_shape_quantizer_del_dec()
666 inv_gain_Q23 = silk_RSHIFT_ROUND( inv_gain_Q31, 8 ); in silk_nsq_del_dec_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()
DNSQ.c291 tmp1 = silk_RSHIFT_ROUND( tmp1, 3 ); /* Q10 */ in silk_noise_shape_quantizer()
293 tmp1 = silk_RSHIFT_ROUND( tmp1, 2 ); /* Q10 */ in silk_noise_shape_quantizer()
339 pulses[ i ] = (opus_int8)silk_RSHIFT_ROUND( q1_Q10, 10 ); in silk_noise_shape_quantizer()
352 xq[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( xq_Q14, Gain_Q10 ), 8 ) ); in silk_noise_shape_quantizer()
402 inv_gain_Q23 = silk_RSHIFT_ROUND( inv_gain_Q31, 8 ); in silk_nsq_scale_states()
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()
DLPC_analysis_filter.c97 out32 = silk_RSHIFT_ROUND( out32_Q12, 12 ); in silk_LPC_analysis_filter()
DPLC.c267 lag = silk_RSHIFT_ROUND( psPLC->pitchL_Q8, 8 ); in silk_PLC_conceal()
315 lag = silk_RSHIFT_ROUND( psPLC->pitchL_Q8, 8 ); in silk_PLC_conceal()
349 …frame[ i ] = (opus_int16)silk_SAT16( silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( sLPC_Q14_ptr[ MAX… in silk_PLC_conceal()
Dresampler_private_IIR_FIR.c60 *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q15, 15 ) ); in silk_resampler_private_IIR_FIR_INTERPOL()
DNLSF_stabilize.c113 …center_freq_Q15 = (opus_int16)silk_LIMIT_32( silk_RSHIFT_ROUND( (opus_int32)NLSF_Q15[I-1] + (opus_… in silk_NLSF_stabilize()
/external/libopus/silk/fixed/
Dprefilter_FIX.c86 res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( acc_Q11, 9 ); in silk_warped_LPC_analysis_filter_FIX()
136 B_Q10[ 0 ] = silk_RSHIFT_ROUND( psEncCtrl->GainsPre_Q14[ k ], 4 ); in silk_prefilter_FIX()
140 …tmp_32 = silk_RSHIFT_ROUND( tmp_32, 14 ); … in silk_prefilter_FIX()
200 …LTP_shp_buf[ LTP_shp_buf_idx ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sLF_MA_shp_Q12, 12 ) ); in silk_prefilt_FIX()
202 xw_Q3[i] = silk_RSHIFT_ROUND( silk_SUB32( sLF_MA_shp_Q12, n_LTP_Q12 ), 9 ); in silk_prefilt_FIX()
Dnoise_shape_analysis_FIX.c178 psEncCtrl->coding_quality_Q14 = silk_RSHIFT( silk_sigm_Q15( silk_RSHIFT_ROUND( SNR_adj_dB_Q7 - in silk_noise_shape_analysis_FIX()
318 …if ( silk_SMULWW( silk_RSHIFT_ROUND( psEncCtrl->Gains_Q16[ k ], 1 ), gain_mult_Q16 ) >= ( silk_int… in silk_noise_shape_analysis_FIX()
348 …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()
349 …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()
366 …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()
440 …psEncCtrl->HarmBoost_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmBoost_smth_Q16, … in silk_noise_shape_analysis_FIX()
441 …psEncCtrl->HarmShapeGain_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmShapeGain_smth_Q… in silk_noise_shape_analysis_FIX()
442 …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.c156 … Atmp1 = silk_RSHIFT_ROUND( Af_QA[ k ], QA - 17 ); /* Q17 */ in silk_burg_modified()
249 A_Q16[ k ] = -silk_RSHIFT_ROUND( Af_QA[ k ], QA - 16 ); in silk_burg_modified()
271 … Atmp1 = silk_RSHIFT_ROUND( Af_QA[ k ], QA - 16 ); /* Q16 */ in silk_burg_modified()
Dschur64_FIX.c74 rc_Q16[ k ] = silk_RSHIFT_ROUND( rc_tmp_Q31, 15 ); in silk_schur64()
DLTP_analysis_filter_FIX.c69 LTP_est = silk_RSHIFT_ROUND( LTP_est, 14 ); /* round and -> Q0*/ in silk_LTP_analysis_filter_FIX()
Dfind_LTP_FIX.c83 rr[ k ] = silk_RSHIFT_ROUND( rr[ k ], LTP_CORRS_HEAD_ROOM - LZs ); in silk_find_LTP_FIX()
242 LTP_coefs_Q14[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( LTP_coefs_Q16[ i ], 2 ) ); in silk_fit_LTP()

12