/external/libopus/celt/arm/ |
D | celt_mdct_ne10.c | 84 *yp++ = MULT16_32_Q15(*wp2, xp1[N2]) + MULT16_32_Q15(*wp1,*xp2); in clt_mdct_forward_neon() 85 *yp++ = MULT16_32_Q15(*wp1, *xp1) - MULT16_32_Q15(*wp2, xp2[-N2]); in clt_mdct_forward_neon() 104 *yp++ = -MULT16_32_Q15(*wp1, xp1[-N2]) + MULT16_32_Q15(*wp2, *xp2); in clt_mdct_forward_neon() 105 *yp++ = MULT16_32_Q15(*wp2, *xp1) + MULT16_32_Q15(*wp1, xp2[N2]); in clt_mdct_forward_neon() 251 *yp1++ = MULT16_32_Q15(*wp2, x2) - MULT16_32_Q15(*wp1, x1); in clt_mdct_backward_neon() 252 *xp1-- = MULT16_32_Q15(*wp1, x2) + MULT16_32_Q15(*wp2, x1); in clt_mdct_backward_neon()
|
D | fixed_armv4.h | 48 #undef MULT16_32_Q15 62 #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv4(a, b)) macro 69 #define MAC16_32_Q15(c, a, b) ADD32(c, MULT16_32_Q15(a, b))
|
D | fixed_armv5e.h | 52 #undef MULT16_32_Q15 64 #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv5e(a, b)) macro
|
/external/libopus/celt/ |
D | mdct.c | 163 *yp++ = MULT16_32_Q15(*wp2, xp1[N2]) + MULT16_32_Q15(*wp1,*xp2); in clt_mdct_forward_c() 164 *yp++ = MULT16_32_Q15(*wp1, *xp1) - MULT16_32_Q15(*wp2, xp2[-N2]); in clt_mdct_forward_c() 183 *yp++ = -MULT16_32_Q15(*wp1, xp1[-N2]) + MULT16_32_Q15(*wp2, *xp2); in clt_mdct_forward_c() 184 *yp++ = MULT16_32_Q15(*wp2, *xp1) + MULT16_32_Q15(*wp1, xp2[N2]); in clt_mdct_forward_c() 336 *yp1++ = SUB32_ovflw(MULT16_32_Q15(*wp2, x2), MULT16_32_Q15(*wp1, x1)); in clt_mdct_backward_c() 337 *xp1-- = ADD32_ovflw(MULT16_32_Q15(*wp1, x2), MULT16_32_Q15(*wp2, x1)); in clt_mdct_backward_c()
|
D | celt.c | 175 + MULT16_32_Q15(g10,x2) in comb_filter_const_c() 176 + MULT16_32_Q15(g11,ADD32(x1,x3)) in comb_filter_const_c() 177 + MULT16_32_Q15(g12,ADD32(x0,x4)); in comb_filter_const_c() 233 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g00),x[i-T0]) in comb_filter() 234 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g01),ADD32(x[i-T0+1],x[i-T0-1])) in comb_filter() 235 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g02),ADD32(x[i-T0+2],x[i-T0-2])) in comb_filter() 236 + MULT16_32_Q15(MULT16_16_Q15(f,g10),x2) in comb_filter() 237 + MULT16_32_Q15(MULT16_16_Q15(f,g11),ADD32(x1,x3)) in comb_filter() 238 + MULT16_32_Q15(MULT16_16_Q15(f,g12),ADD32(x0,x4)); in comb_filter()
|
D | pitch.c | 83 if (MULT16_32_Q15(num,best_den[1]) > MULT16_32_Q15(best_num[1],Syy)) in find_best_pitch() 85 if (MULT16_32_Q15(num,best_den[0]) > MULT16_32_Q15(best_num[0],Syy)) in find_best_pitch() 189 ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); in pitch_downsample() 381 if ((c-a) > MULT16_32_Q15(QCONST16(.7f,15),b-a)) in pitch_search() 383 else if ((a-c) > MULT16_32_Q15(QCONST16(.7f,15),b-c)) in pitch_search() 419 g = MULT16_32_Q15(den, xy); in compute_pitch_gain() 523 if ((xcorr[2]-xcorr[0]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[0])) in remove_doubling() 525 else if ((xcorr[0]-xcorr[2]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[2])) in remove_doubling()
|
D | fixed_c6x.h | 43 #undef MULT16_32_Q15 44 #define MULT16_32_Q15(a,b) (_mpylill(a, b) >> 15) macro
|
D | fixed_c5x.h | 70 #undef MULT16_32_Q15 71 #define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),(b)),15)) macro
|
D | celt_decoder.c | 253 m0 = MULT16_32_Q15(coef0, tmp0); in deemphasis_stereo_simple() 254 m1 = MULT16_32_Q15(coef0, tmp1); in deemphasis_stereo_simple() 305 m = MULT16_32_Q15(coef0, tmp) in deemphasis() 306 - MULT16_32_Q15(coef1, x[j]); in deemphasis() 307 tmp = SHL32(MULT16_32_Q15(coef3, tmp), 2); in deemphasis() 319 m = MULT16_32_Q15(coef0, tmp); in deemphasis() 331 m = MULT16_32_Q15(coef0, tmp); in deemphasis() 340 m = MULT16_32_Q15(coef0, tmp); in deemphasis() 653 ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); in celt_decode_lost() 786 MULT16_32_Q15(tmp_g, buf[DECODE_BUFFER_SIZE-N+i]); in celt_decode_lost() [all …]
|
D | mathops.c | 79 result = MULT16_32_Q15(rcp, a); in frac_div32() 81 result = ADD32(result, SHL32(MULT16_32_Q15(rcp, rem),2)); in frac_div32()
|
D | fixed_generic.h | 55 #define MULT16_32_Q15(a,b) ((opus_val32)SHR((opus_int64)((opus_val16)(a))*(b),15)) macro 57 #define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),((b)&0x0000… macro
|
D | celt_encoder.c | 375 id = MAX32(0,MIN32(127,MULT16_32_Q15(tmp[i]+EPSILON,norm))); /* Do not round to nearest */ in transient_analysis() 552 m = MULT16_32_Q15(coef1, inp[i]) - MULT16_32_Q15(coef0, tmp); in celt_preemphasis() 901 sumMS = MULT16_32_Q15(QCONST16(0.707107f, 15), sumMS); in stereo_analysis() 906 return MULT16_32_Q15((m->eBands[13]<<(LM+1))+thetas, sumMS) in stereo_analysis() 907 > MULT16_32_Q15(m->eBands[13]<<(LM+1), sumLR); in stereo_analysis() 1339 target -= (opus_int32)MIN32(MULT16_32_Q15(max_frac,target), in compute_vbr() 1346 target += (opus_int32)SHL32(MULT16_32_Q15(tf_estimate-tf_calibration, target),1); in compute_vbr() 1390 target = base_target + (opus_int32)MULT16_32_Q15(QCONST16(0.67f, 15), target-base_target); in compute_vbr() 1399 target += (opus_int32)MULT16_32_Q15(tvbr_factor, target); in compute_vbr() 1738 bandE[i] = IMIN(bandE[i], MULT16_32_Q15(QCONST16(1e-4f,15),bandE[0])); in celt_encode_with_ec() [all …]
|
/external/rnnoise/src/ |
D | pitch.c | 84 if (MULT16_32_Q15(num,best_den[1]) > MULT16_32_Q15(best_num[1],Syy)) in find_best_pitch() 86 if (MULT16_32_Q15(num,best_den[0]) > MULT16_32_Q15(best_num[0],Syy)) in find_best_pitch() 197 ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); in pitch_downsample() 375 if ((c-a) > MULT16_32_Q15(QCONST16(.7f,15),b-a)) in pitch_search() 377 else if ((a-c) > MULT16_32_Q15(QCONST16(.7f,15),b-c)) in pitch_search() 411 g = MULT16_32_Q15(den, xy); in compute_pitch_gain() 513 if ((xcorr[2]-xcorr[0]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[0])) in remove_doubling() 515 else if ((xcorr[0]-xcorr[2]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[2])) in remove_doubling()
|
/external/speex/libspeexdsp/ |
D | mdf.c | 208 mem[0] = mem[1] + SHL32(SHL32(-EXTEND32(vin),15) + MULT16_32_Q15(radius,vout),1); in filter_dc_notch16() 212 mem[1] = SHL32(EXTEND32(vin),15) - MULT16_32_Q15(den2,vout); in filter_dc_notch16() 213 out[i] = SATURATE32(PSHR32(MULT16_32_Q15(radius,vout),15),32767); in filter_dc_notch16() 902 …st->Davg1 = ADD32(MULT16_32_Q15(QCONST16(.6f,15),st->Davg1), MULT16_32_Q15(QCONST16(.4f,15),SUB32(… in speex_echo_cancellation() 903 …st->Davg2 = ADD32(MULT16_32_Q15(QCONST16(.85f,15),st->Davg2), MULT16_32_Q15(QCONST16(.15f,15),SUB3… in speex_echo_cancellation() 904 …D(FLOAT_MULT(VAR1_SMOOTH, st->Dvar1), FLOAT_MUL32U(MULT16_32_Q15(QCONST16(.4f,15),Sff), MULT16_32_… in speex_echo_cancellation() 905 …D(FLOAT_MULT(VAR2_SMOOTH, st->Dvar2), FLOAT_MUL32U(MULT16_32_Q15(QCONST16(.15f,15),Sff), MULT16_32… in speex_echo_cancellation() 1057 st->power[j] = MULT16_32_Q15(ss_1,st->power[j]) + 1 + MULT16_32_Q15(ss,st->Xf[j]); in speex_echo_cancellation() 1068 …st->Eh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Eh[j]), st->spec_average,… in speex_echo_cancellation() 1069 …st->Yh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Yh[j]), st->spec_average,… in speex_echo_cancellation() [all …]
|
D | fixed_arm4.h | 51 #undef MULT16_32_Q15 52 static inline spx_word32_t MULT16_32_Q15(spx_word16_t x, spx_word32_t y) { in MULT16_32_Q15() function
|
D | preprocess.c | 330 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[… in compute_gain_floor() 340 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(MULT16_32_Q15(gain_ratio,PSHR32(noise[i],NOISE_SHIFT)) + echo… in compute_gain_floor() 667 …st->S[i] = MULT16_32_Q15(QCONST16(.8f,15),st->S[i]) + MULT16_32_Q15(QCONST16(.05f,15),st->ps[i-1]… in update_noise_prob() 668 … + MULT16_32_Q15(QCONST16(.1f,15),st->ps[i]) + MULT16_32_Q15(QCONST16(.05f,15),st->ps[i+1]); in update_noise_prob() 669 st->S[0] = MULT16_32_Q15(QCONST16(.8f,15),st->S[0]) + MULT16_32_Q15(QCONST16(.2f,15),st->ps[0]); in update_noise_prob() 670 …st->S[N-1] = MULT16_32_Q15(QCONST16(.8f,15),st->S[N-1]) + MULT16_32_Q15(QCONST16(.2f,15),st->ps[N… in update_noise_prob() 703 if (MULT16_32_Q15(QCONST16(.4f,15),st->S[i]) > st->Smin[i]) in update_noise_prob() 756 …st->echo_noise[i] = MAX32(MULT16_32_Q15(QCONST16(.6f,15),st->echo_noise[i]), st->residual_echo[i]); in speex_preprocess_run() 778 …st->noise[i] = MAX32(EXTEND32(0),MULT16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st-… in speex_preprocess_run() 851 st->gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in speex_preprocess_run() [all …]
|
D | fixed_arm5e.h | 56 #undef MULT16_32_Q15 57 static inline spx_word32_t MULT16_32_Q15(spx_word16_t x, spx_word32_t y) { in MULT16_32_Q15() function
|
D | fixed_bfin.h | 108 #undef MULT16_32_Q15 109 static inline spx_word32_t MULT16_32_Q15(spx_word16_t a, spx_word32_t b) in MULT16_32_Q15() function
|
D | resample.c | 478 … MULT16_32_Q15(interp[0],SHR32(accum[0], 1)) + MULT16_32_Q15(interp[1],SHR32(accum[1], 1)) + MULT1… in resampler_basic_interpolate_single() 541 …sum = MULT16_32_Q15(interp[0],accum[0]) + MULT16_32_Q15(interp[1],accum[1]) + MULT16_32_Q15(interp… in resampler_basic_interpolate_double()
|
D | fixed_debug.h | 313 #define MULT16_32_Q15(a,b) MULT16_32_QX(a,b,15) macro 315 #define MAC16_32_Q15(c,a,b) ADD32((c),MULT16_32_Q15((a),(b)))
|
D | arch.h | 184 #define MULT16_32_Q15(a,b) ((a)*(b)) macro
|
/external/libopus/celt/mips/ |
D | fixed_generic_mipsr1.h | 91 #undef MULT16_32_Q15 92 static inline int MULT16_32_Q15(int a, int b) in MULT16_32_Q15() function
|
D | mdct_mipsr1.h | 281 *yp1++ = MULT16_32_Q15(*wp2, x2) - MULT16_32_Q15(*wp1, x1); in clt_mdct_backward() 282 *xp1-- = MULT16_32_Q15(*wp1, x2) + MULT16_32_Q15(*wp2, x1); in clt_mdct_backward()
|
/external/libopus/celt/x86/ |
D | pitch_sse.c | 177 + MULT16_32_Q15(g10,x[i-T]) in comb_filter_const_sse() 178 + MULT16_32_Q15(g11,ADD32(x[i-T+1],x[i-T-1])) in comb_filter_const_sse() 179 + MULT16_32_Q15(g12,ADD32(x[i-T+2],x[i-T-2])); in comb_filter_const_sse()
|
/external/libopus/src/ |
D | opus_encoder.c | 688 mem->XX += MULT16_32_Q15(short_alpha, xx-mem->XX); in compute_stereo_width() 689 mem->XY += MULT16_32_Q15(short_alpha, xy-mem->XY); in compute_stereo_width() 690 mem->YY += MULT16_32_Q15(short_alpha, yy-mem->YY); in compute_stereo_width() 1135 … st->peak_signal_energy = MAX32(MULT16_32_Q15(QCONST16(0.999f, 15), st->peak_signal_energy), in opus_encode_native() 1369 mode_voice = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[0][0]) in opus_encode_native() 1370 + MULT16_32_Q15(stereo_width,mode_thresholds[1][0])); in opus_encode_native() 1371 mode_music = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[1][1]) in opus_encode_native() 1372 + MULT16_32_Q15(stereo_width,mode_thresholds[1][1])); in opus_encode_native()
|