Searched defs:SNR_SHIFT (Results 1 - 1 of 1) sorted by relevance
/external/speex/libspeex/ |
H A D | preprocess.c | 149 #define SNR_SHIFT 8 macro 168 #define SNR_SHIFT 0 macro 309 return ADD32(EXTEND32(Q15_ONE),EXTEND32(DIV32_16(QCONST32(.1296,23), SHR32(xx,EXPIN_SHIFT-SNR_SHIFT)))); 491 st->post[i]=SHL16(1, SNR_SHIFT); 492 st->prior[i]=SHL16(1, SNR_SHIFT); 800 st->post[i] = SUB16(DIV32_16_Q8(ps[i],tot_noise), QCONST16(1.f,SNR_SHIFT)); 801 st->post[i]=MIN16(st->post[i], QCONST16(100.f,SNR_SHIFT)); 808 st->prior[i]=MIN16(st->prior[i], QCONST16(100.f,SNR_SHIFT)); 850 prior_ratio = PDIV32_16(SHL32(EXTEND32(st->prior[i]), 15), ADD16(st->prior[i], SHL32(1,SNR_SHIFT))); 851 theta = MULT16_32_P15(prior_ratio, QCONST32(1.f,EXPIN_SHIFT)+SHL32(EXTEND32(st->post[i]),EXPIN_SHIFT-SNR_SHIFT)); [all...] |
Completed in 21 milliseconds