/third_party/pulseaudio/speex/libspeexdsp/ |
H A D | math_approx.h | 126 res = MULT16_16(EXTRACT16(SHR32(*seed,16)),std); in speex_rand() 127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14)); in speex_rand() 225 return _spx_cos_pi_2(EXTRACT16(x)); in spx_cos_norm() 227 return NEG32(_spx_cos_pi_2(EXTRACT16(65536-x))); in spx_cos_norm() 299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14))); in spx_atan()
|
H A D | filterbank.c | 63 max_mel = toBARK(EXTRACT16(sampling/2)); in filterbank_new() 82 curr_freq = EXTRACT16(MULT16_32_P15(i,df)); in filterbank_new() 96 val = DIV32_16(mel - id1*mel_interval,EXTRACT16(PSHR32(mel_interval,15))); in filterbank_new() 167 ps[i] = EXTRACT16(PSHR32(tmp,15)); in filterbank_compute_psd16()
|
H A D | fixed_debug.h | 77 #define EXTRACT16(x) _EXTRACT16(x, __FILE__, __LINE__) macro 83 fprintf (stderr, "EXTRACT16: input is not short: %d in %s: line %d\n", x, file, line); in _EXTRACT16() 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 | preprocess.c | 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() 803 st->prior[i] = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,st->post[i])), MULT16_16(Q15_ONE-gamma,DIV32_16_Q8(st->old_ps[i],tot_noise))), 15)); in speex_preprocess_run() 823 effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppress), MULT16_16(Pframe, st->echo_suppress_active)),15)); in speex_preprocess_run() 851 st->gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in speex_preprocess_run() 859 /*Q8*/tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT16(theta)),1)))); in speex_preprocess_run() 861 /*Q8*/tmp = EXTRACT16(PSHR3 in speex_preprocess_run() [all...] |
H A D | mdf.c | 357 tmp += MULT16_16(EXTRACT16(SHR32(W[p*N*M + i*N+j],18)), EXTRACT16(SHR32(W[p*N*M + i*N+j],18))); in mdf_adjust_prop() 742 st->input[chan*st->frame_size+i] = EXTRACT16(tmp32); in speex_echo_cancellation() 766 st->x[speak*N+i+st->frame_size] = EXTRACT16(tmp32); in speex_echo_cancellation() 840 st->wtmp2[i] = EXTRACT16(PSHR32(st->W[chan*N*K*M + j*N*K + speak*N + i],NORMALIZE_SCALEDOWN+16)); in speex_echo_cancellation() 925 st->foreground[i] = EXTRACT16(PSHR32(st->W[i],16)); in speex_echo_cancellation() 1264 st->wtmp2[i] = EXTRACT16(PSHR32(st->W[j*N+i],16+NORMALIZE_SCALEDOWN)); in speex_echo_ctl()
|
H A D | arch.h | 159 #define EXTRACT16(x) (x) macro
|
H A D | fixed_generic.h | 43 #define EXTRACT16(x) ((spx_word16_t)(x)) macro
|
H A D | pseudofloat.h | 228 return EXTRACT16((EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e); in FLOAT_EXTRACT16()
|
H A D | resample.c | 312 interp[1] = EXTRACT16(EXTEND32(x) + SHR32(SUB32(EXTEND32(x2),EXTEND32(x3)),1)); in cubic_coef()
|
/third_party/pulseaudio/speex/tmv/ |
H A D | preprocess_tm.h | 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() 791 gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in preprocess_compute_emgain() 799 tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+priori),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT16(theta)),1)))); in preprocess_compute_emgain() 801 tmp = EXTRACT16(PSHR32(MULT16_16(PDIV32_16(SHL32(EXTEND32(q),8),(Q15_ONE-q)),tmp),8)); in preprocess_compute_emgain() 846 g = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in preprocess_compute_linear_gain() 1072 effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppress), in speex_preprocess_run()
|
H A D | mdf_tm.h | 375 x[i] = EXTRACT16(tmp32); in mdf_preemph() 541 wtmp2[i] = EXTRACT16(PSHR32(W[i],NORMALIZE_SCALEDOWN+16)); in mdf_update_weight()
|