/third_party/pulseaudio/speex/libspeexdsp/ |
H A D | fixed_generic.h | 75 #define MULT16_16(a,b) (((spx_word32_t)(spx_word16_t)(a))*((spx_word32_t)(spx_word16_t)(b))) macro 77 #define MAC16_16(c,a,b) (ADD32((c),MULT16_16((a),(b)))) 78 #define MULT16_32_Q12(a,b) ADD32(MULT16_16((a),SHR((b),12)), SHR(MULT16_16((a),((b)&0x00000fff)),12)) 79 #define MULT16_32_Q13(a,b) ADD32(MULT16_16((a),SHR((b),13)), SHR(MULT16_16((a),((b)&0x00001fff)),13)) 80 #define MULT16_32_Q14(a,b) ADD32(MULT16_16((a),SHR((b),14)), SHR(MULT16_16((a),((b)&0x00003fff)),14)) 82 #define MULT16_32_Q11(a,b) ADD32(MULT16_16((a),SHR((b),11)), SHR(MULT16_16(( [all...] |
H A D | filterbank.c | 46 #define toBARK(n) (MULT16_16(26829,spx_atan(SHR32(MULT16_16(97,n),2))) + MULT16_16(4588,spx_atan(MULT16_32_Q15(20,MULT16_16(n,n)))) + MULT16_16(3355,n)) 62 df = DIV32(SHL32(sampling,15),MULT16_16(2,len)); in filterbank_new() 165 tmp = MULT16_16(mel[id1],bank->filter_left[i]); in filterbank_compute_psd16() 166 tmp += MULT16_16(mel[id2],bank->filter_right[i]); in filterbank_compute_psd16()
|
H A D | preprocess.c | 88 #define SQR16(x) (MULT16_16((x),(x))) 258 spx_word16_t x = DIV32_16(MULT16_16(32767,i),len); in conj_window() 260 spx_word16_t x = DIV32_16(MULT16_16(QCONST16(4.f,13),i),len); in conj_window() 307 return SHL32(DIV32_16(PSHR32(MULT16_16(Q15_ONE-frac,table[ind]) + MULT16_16(frac,table[ind+1]),7),(spx_sqrt(SHL32(xx,15)+6711))),7); in hypergeom_gain() 324 noise_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),noise_suppress)),1))); in compute_gain_floor() 325 gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),effective_echo_suppress-noise_suppress)),1))); in compute_gain_floor() 334 echo_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),effective_echo_suppress)),1))); in compute_gain_floor() 335 gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),noise_suppress-effective_echo_suppress)),1))); in compute_gain_floor() 651 ps[0]=MULT16_16(s in preprocess_analysis() [all...] |
H A D | mdf.c | 231 ps[0]=MULT16_16(X[0],X[0]); in power_spectrum() 234 ps[j] = MULT16_16(X[i],X[i]) + MULT16_16(X[i+1],X[i+1]); in power_spectrum() 236 ps[j]=MULT16_16(X[i],X[i]); in power_spectrum() 243 ps[0]+=MULT16_16(X[0],X[0]); in power_spectrum_accum() 246 ps[j] += MULT16_16(X[i],X[i]) + MULT16_16(X[i+1],X[i+1]); in power_spectrum_accum() 248 ps[j]+=MULT16_16(X[i],X[i]); in power_spectrum_accum() 267 tmp1 = SUB32(MAC16_16(tmp1, X[j*N+i],TOP16(Y[j*N+i])), MULT16_16(X[j*N+i+1],TOP16(Y[j*N+i+1]))); in spectral_mul_accum() 294 tmp1 = SUB32(MAC16_16(tmp1, X[j*N+i],Y[j*N+i]), MULT16_16( in spectral_mul_accum16() [all...] |
H A D | resample.c | 311 interp[0] = PSHR32(MULT16_16(QCONST16(-0.16667f, 15),x) + MULT16_16(QCONST16(0.16667f, 15),x3),15); in cubic_coef() 313 interp[3] = PSHR32(MULT16_16(QCONST16(-0.33333f, 15),x) + MULT16_16(QCONST16(.5f,15),x2) - MULT16_16(QCONST16(0.16667f, 15),x3),15); in cubic_coef() 354 for(j=0;j<N;j++) sum += MULT16_16(sinct[j], iptr[j]); in resampler_basic_direct_single() 361 accum[0] += MULT16_16(sinct[j], iptr[j]); in resampler_basic_direct_single() 362 accum[1] += MULT16_16(sinct[j+1], iptr[j+1]); in resampler_basic_direct_single() 363 accum[2] += MULT16_16(sinct[j+2], iptr[j+2]); in resampler_basic_direct_single() 364 accum[3] += MULT16_16(sinc in resampler_basic_direct_single() [all...] |
H A D | fixed_arm5e.h | 38 #undef MULT16_16 macro 39 static inline spx_word32_t MULT16_16(spx_word16_t x, spx_word16_t y) { in MULT16_16() function
|
H A D | fixed_debug.h | 253 #define MULT16_16(a, b) _MULT16_16(a, b, __FILE__, __LINE__) macro 259 fprintf (stderr, "MULT16_16: inputs are not short: %d %d in %s: line %d\n", a, b, file, line); in _MULT16_16() 263 fprintf (stderr, "MULT16_16: output is not int: %d in %s: line %d\n", (int)res, file, line); in _MULT16_16() 268 #define MAC16_16(c,a,b) (spx_mips--,ADD32((c),MULT16_16((a),(b)))) 269 #define MAC16_16_Q11(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),11))))) 270 #define MAC16_16_Q13(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),13))))) 271 #define MAC16_16_P13(c,a,b) (EXTRACT16(ADD32((c),SHR32(ADD32(4096,MULT16_16((a),(b))),13))))
|
H A D | kiss_fftr.c | 243 twr = SHR32(SUB32(MULT16_16(f2k.r,st->super_twiddles[k].r),MULT16_16(f2k.i,st->super_twiddles[k].i)), 1); in kiss_fftr2() 244 twi = SHR32(ADD32(MULT16_16(f2k.i,st->super_twiddles[k].r),MULT16_16(f2k.r,st->super_twiddles[k].i)), 1); in kiss_fftr2()
|
H A D | kiss_fft.c | 54 tr = SHR32(SUB32(MULT16_16(Fout2->r , tw1->r),MULT16_16(Fout2->i , tw1->i)), 1); in kf_bfly2() 55 ti = SHR32(ADD32(MULT16_16(Fout2->i , tw1->r),MULT16_16(Fout2->r , tw1->i)), 1); in kf_bfly2()
|
H A D | arch.h | 182 #define MULT16_16(a,b) ((spx_word32_t)(a)*(spx_word32_t)(b)) macro
|
H A D | math_approx.h | 126 res = MULT16_16(EXTRACT16(SHR32(*seed,16)),std); in speex_rand()
|
/third_party/pulseaudio/speex/tmv/ |
H A D | fftwrap_tm.h | 176 ps[0] = MULT16_16(X[0],X[0]); in power_spectrum() 210 ps[0]=MULT16_16(xx,xx); in power_spectrum() 220 ps[j] = MULT16_16(xi,xi) + MULT16_16(xii,xii); in power_spectrum() 226 ps[j]=MULT16_16(xx,xx); in power_spectrum()
|
H A D | preprocess_tm.h | 163 #define _MULT16_32_Q15(a,b,c) ADD32(MULT16_16((a),(b)), SHR(MULT16_16((a),(c)),15)) 689 priori = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,posti)), MULT16_16(Q15_ONE-gamma,DIV32_16_Q8(opsi,tot_noise))), 15)); in preprocess_compute_SNR() 713 zeta[0] = PSHR32(ADD32(MULT16_16(QCONST16(.7f,15),zeta[0]), MULT16_16(QCONST16(.3f,15),iprior)),15); in preprocess_smooth_SNR() 723 zeta[i] = PSHR32(ADD32(ADD32(ADD32(MULT16_16(QCONST16(.7f,15),zetai), MULT16_16(QCONST16(.15f,15),priori)), in preprocess_smooth_SNR() 724 MULT16_16(QCONST16(.075f,15),iprior)), MULT16_16(QCONST1 in preprocess_smooth_SNR() [all...] |
H A D | fixed_tm.h | 77 #undef MULT16_16 macro 85 #define MULT16_16(a,b) ((int)(a) * (int)(b)) macro
|
H A D | mdf_tm.h | 785 { screwed_up = mux( SHR32(Sff, 2) > ADD32(Sdd, SHR32(MULT16_16(N, 10000),6)), screwed_up+1, 0); in mdf_check() 1046 if ( Sxx > SHR32(MULT16_16(N, 1000),6) ) in mdf_adapt() 1169 See = MAX32(See, SHR32(MULT16_16(N, 100),6)); in speex_echo_cancellation()
|