Home
last modified time | relevance | path

Searched refs:DIV32_16_Q8 (Results 1 - 2 of 2) sorted by relevance

/third_party/pulseaudio/speex/libspeexdsp/
H A Dpreprocess.c92 static inline spx_word16_t DIV32_16_Q8(spx_word32_t a, spx_word32_t b) in DIV32_16_Q8() function
160 #define DIV32_16_Q8(a,b) ((a)/(b)) macro
796 st->post[i] = SUB16(DIV32_16_Q8(ps[i],tot_noise), QCONST16(1.f,SNR_SHIFT)); in speex_preprocess_run()
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()
/third_party/pulseaudio/speex/tmv/
H A Dpreprocess_tm.h681 posti = SUB16(DIV32_16_Q8(ps[i],tot_noise), QCONST16(1.f,SNR_SHIFT)); in preprocess_compute_SNR()
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()

Completed in 4 milliseconds