/external/libopus/silk/ |
D | stereo_LR_to_MS.c | 66 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()
|
D | bwexpander.c | 47 … 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()
|
D | NLSF2A.c | 110 …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()
|
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() 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()
|
D | biquad_alt.c | 67 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()
|
D | ana_filt_bank_1.c | 71 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()
|
D | resampler_down2_3.c | 75 *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()
|
D | NSQ_del_dec.c | 239 … 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()
|
D | resampler_private_up2_HQ.c | 79 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()
|
D | NSQ.c | 274 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()
|
D | resampler_private_down_FIR.c | 83 *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()
|
D | macros.h | 96 …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))
|
D | bwexpander_32.c | 46 chirp_Q16 += silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, chirp_minus_one_Q16 ), 16 ); in silk_bwexpander_32()
|
D | resampler_down2.c | 71 out[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( out32, 11 ) ); in silk_resampler_down2()
|
/external/libopus/silk/fixed/mips/ |
D | prefilter_FIX_mipsr1.h | 104 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()
|
D | noise_shape_analysis_FIX_mipsr1.h | 68 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/ |
D | prefilter_FIX.c | 96 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()
|
D | noise_shape_analysis_FIX.c | 183 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()
|
D | process_gains_FIX.c | 49 …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()
|
D | burg_modified_FIX.c | 152 … 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/ |
D | sigproc_fix_mipsr1.h | 56 #undef silk_RSHIFT_ROUND 57 static inline int silk_RSHIFT_ROUND(int a, int shift) in silk_RSHIFT_ROUND() function
|
D | NSQ_del_dec_mipsr1.h | 233 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/ |
D | NSQ_del_dec_sse.c | 238 … 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()
|
D | NSQ_sse.c | 480 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/ |
D | prefilter_FIX_sse.c | 115 … 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()
|