Home
last modified time | relevance | path

Searched refs:MULT16_32_Q15 (Results 1 – 25 of 31) sorted by relevance

12

/external/libopus/celt/
Dcelt.c102 + MULT16_32_Q15(g10,x2) in comb_filter_const()
103 + MULT16_32_Q15(g11,ADD32(x1,x3)) in comb_filter_const()
104 + MULT16_32_Q15(g12,ADD32(x0,x4)); in comb_filter_const()
150 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g00),x[i-T0]) in comb_filter()
151 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g01),ADD32(x[i-T0+1],x[i-T0-1])) in comb_filter()
152 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g02),ADD32(x[i-T0+2],x[i-T0-2])) in comb_filter()
153 + MULT16_32_Q15(MULT16_16_Q15(f,g10),x2) in comb_filter()
154 + MULT16_32_Q15(MULT16_16_Q15(f,g11),ADD32(x1,x3)) in comb_filter()
155 + MULT16_32_Q15(MULT16_16_Q15(f,g12),ADD32(x0,x4)); in comb_filter()
Dmdct.c139 *yp++ = MULT16_32_Q15(*wp2, xp1[N2]) + MULT16_32_Q15(*wp1,*xp2); in clt_mdct_forward()
140 *yp++ = MULT16_32_Q15(*wp1, *xp1) - MULT16_32_Q15(*wp2, xp2[-N2]); in clt_mdct_forward()
159 *yp++ = -MULT16_32_Q15(*wp1, xp1[-N2]) + MULT16_32_Q15(*wp2, *xp2); in clt_mdct_forward()
160 *yp++ = MULT16_32_Q15(*wp2, *xp1) + MULT16_32_Q15(*wp1, xp2[N2]); in clt_mdct_forward()
304 *yp1++ = MULT16_32_Q15(*wp2, x2) - MULT16_32_Q15(*wp1, x1); in clt_mdct_backward()
305 *xp1-- = MULT16_32_Q15(*wp1, x2) + MULT16_32_Q15(*wp2, x1); in clt_mdct_backward()
Dpitch.c83 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()
196 ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); in pitch_downsample()
388 if ((c-a) > MULT16_32_Q15(QCONST16(.7f,15),b-a)) in pitch_search()
390 else if ((a-c) > MULT16_32_Q15(QCONST16(.7f,15),b-c)) in pitch_search()
447 g = g0 = VSHR32(MULT16_32_Q15(celt_rsqrt_norm(t), xy),sh+1); in remove_doubling()
483 g1 = VSHR32(MULT16_32_Q15(celt_rsqrt_norm(t), xy),sh+1); in remove_doubling()
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()
Dcelt_decoder.c217 m = MULT16_32_Q15(coef0, tmp) in deemphasis()
218 - MULT16_32_Q15(coef1, x[j]); in deemphasis()
219 tmp = SHL32(MULT16_32_Q15(coef3, tmp), 2); in deemphasis()
231 m = MULT16_32_Q15(coef0, tmp); in deemphasis()
240 m = MULT16_32_Q15(coef0, tmp); in deemphasis()
498 ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); in celt_decode_lost()
618 MULT16_32_Q15(tmp_g, buf[DECODE_BUFFER_SIZE-N+i]); in celt_decode_lost()
623 MULT16_32_Q15(ratio, buf[DECODE_BUFFER_SIZE-N+i]); in celt_decode_lost()
641 MULT16_32_Q15(window[i], etmp[overlap-1-i]) in celt_decode_lost()
642 + MULT16_32_Q15(window[overlap-i-1], etmp[i]); in celt_decode_lost()
Dmathops.c78 result = MULT16_32_Q15(rcp, a); in frac_div32()
80 result = ADD32(result, SHL32(MULT16_32_Q15(rcp, rem),2)); in frac_div32()
Dcelt_encoder.c349 id = IMAX(0,IMIN(127,MULT16_32_Q15(tmp[i],norm))); /* Do not round to nearest */ in transient_analysis()
516 m = MULT16_32_Q15(coef1, inp[i]) - MULT16_32_Q15(coef0, tmp); in celt_preemphasis()
527 m = - MULT16_32_Q15(coef0, x); in celt_preemphasis()
880 sumMS = MULT16_32_Q15(QCONST16(0.707107f, 15), sumMS); in stereo_analysis()
885 return MULT16_32_Q15((m->eBands[13]<<(LM+1))+thetas, sumMS) in stereo_analysis()
886 > MULT16_32_Q15(m->eBands[13]<<(LM+1), sumLR); in stereo_analysis()
1174 target -= (opus_int32)MIN32(MULT16_32_Q15(max_frac,target), in compute_vbr()
1182 target += (opus_int32)SHL32(MULT16_32_Q15(tf_estimate-tf_calibration, target),1); in compute_vbr()
1229 target = base_target + (opus_int32)MULT16_32_Q15(rate_factor, target-base_target); in compute_vbr()
1239 target += (opus_int32)MULT16_32_Q15(tvbr_factor, target); in compute_vbr()
[all …]
Dfixed_generic.h46 #define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),((b)&0x0000… macro
Darch.h181 #define MULT16_32_Q15(a,b) ((a)*(b)) macro
D_kiss_fft_guts.h58 # define S_MUL(a,b) MULT16_32_Q15(b, a)
/external/libopus/celt/arm/
Dfixed_armv4.h48 #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))
Dfixed_armv5e.h52 #undef MULT16_32_Q15
64 #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv5e(a, b)) macro
/external/speex/libspeex/
Dmdf.c208 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 …]
Dfixed_arm4.h51 #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
Dpreprocess.c334 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[… in compute_gain_floor()
344 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(MULT16_32_Q15(gain_ratio,PSHR32(noise[i],NOISE_SHIFT)) + echo… in compute_gain_floor()
671 …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()
672 … + MULT16_32_Q15(QCONST16(.1f,15),st->ps[i]) + MULT16_32_Q15(QCONST16(.05f,15),st->ps[i+1]); in update_noise_prob()
673 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()
674 …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()
707 if (MULT16_32_Q15(QCONST16(.4f,15),st->S[i]) > st->Smin[i]) in update_noise_prob()
760 …st->echo_noise[i] = MAX32(MULT16_32_Q15(QCONST16(.6f,15),st->echo_noise[i]), st->residual_echo[i]); in speex_preprocess_run()
782 …st->noise[i] = MAX32(EXTEND32(0),MULT16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st-… in speex_preprocess_run()
855 st->gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in speex_preprocess_run()
[all …]
Dfixed_arm5e.h56 #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
Dfixed_bfin.h105 #undef MULT16_32_Q15
106 static inline spx_word32_t MULT16_32_Q15(spx_word16_t a, spx_word32_t b) in MULT16_32_Q15() function
Dresample.c471 …sum = MULT16_32_Q15(interp[0],accum[0]) + MULT16_32_Q15(interp[1],accum[1]) + MULT16_32_Q15(interp… in resampler_basic_interpolate_single()
534 …sum = MULT16_32_Q15(interp[0],accum[0]) + MULT16_32_Q15(interp[1],accum[1]) + MULT16_32_Q15(interp… in resampler_basic_interpolate_double()
Dstereo.c234 …e_right = DIV32(QCONST32(1., 22), spx_sqrt(MULT16_32_Q15(e_ratio, ADD32(QCONST32(1., 16), balance)… in speex_decode_stereo()
261 …e_right = DIV32(QCONST32(1., 22), spx_sqrt(MULT16_32_Q15(e_ratio, ADD32(QCONST32(1., 16), balance)… in speex_decode_stereo_int()
Dfixed_debug.h313 #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)))
Darch.h192 #define MULT16_32_Q15(a,b) ((a)*(b)) macro
Dfixed_generic.h86 #define MULT16_32_Q15(a,b) ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x00007fff)),15… macro
Dfilterbank.c46 …6(26829,spx_atan(SHR32(MULT16_16(97,n),2))) + MULT16_16(4588,spx_atan(MULT16_32_Q15(20,MULT16_16(n…
Dnb_celp.c407 …spx_sqrt(QCONST32(1.,28)-MULT16_32_Q15(QCONST16(.8,15),SHL32(MULT16_16(ol_pitch_coef,ol_pitch_coef… in nb_encode()
613 ol_gain = MULT16_32_Q15(28406,ol_gain_table[qe]); in nb_encode()
866 … signal_mul(innov2, innov2, MULT16_32_Q15(QCONST16(0.454545f,15),ener), st->subframeSize); in nb_encode()
1245 st->mem_sp[i] = MULT16_32_Q15(fact,st->mem_sp[i]); in nb_decode()
1275 ol_gain = MULT16_32_Q15(28406,ol_gain_table[qe]); in nb_decode()
1413 … signal_mul(innov2, innov2, MULT16_32_Q15(QCONST16(0.454545f,15),ener), st->subframeSize); in nb_decode()
/external/libopus/celt/x86/
Dpitch_sse.h149 + MULT16_32_Q15(g10,x[i-T]) in comb_filter_const()
150 + MULT16_32_Q15(g11,ADD32(x[i-T+1],x[i-T-1])) in comb_filter_const()
151 + MULT16_32_Q15(g12,ADD32(x[i-T+2],x[i-T-2])); in comb_filter_const()
/external/libopus/src/
Dopus_encoder.c894 mem->XX += MULT16_32_Q15(short_alpha, xx-mem->XX); in compute_stereo_width()
895 mem->XY += MULT16_32_Q15(short_alpha, xy-mem->XY); in compute_stereo_width()
896 mem->YY += MULT16_32_Q15(short_alpha, yy-mem->YY); in compute_stereo_width()
1134 mode_voice = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[0][0]) in opus_encode_native()
1135 + MULT16_32_Q15(stereo_width,mode_thresholds[1][0])); in opus_encode_native()
1136 mode_music = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[1][1]) in opus_encode_native()
1137 + MULT16_32_Q15(stereo_width,mode_thresholds[1][1])); in opus_encode_native()

12