/external/speex/libspeex/ |
D | preprocess.c | 81 #define SPEECH_PROB_START_DEFAULT QCONST16(0.35f,15) 82 #define SPEECH_PROB_CONTINUE_DEFAULT QCONST16(0.20f,15) 264 spx_word16_t x = DIV32_16(MULT16_16(QCONST16(4.f,13),i),len); in conj_window() 267 if (x<QCONST16(1.f,13)) in conj_window() 269 } else if (x<QCONST16(2.f,13)) in conj_window() 271 x=QCONST16(2.f,13)-x; in conj_window() 273 } else if (x<QCONST16(3.f,13)) in conj_window() 275 x=x-QCONST16(2.f,13); in conj_window() 278 x=QCONST16(2.f,13)-x+QCONST16(2.f,13); /* 4 - x */ in conj_window() 280 x = MULT16_16_Q14(QCONST16(1.271903f,14), x); in conj_window() [all …]
|
D | modes.c | 188 QCONST16(.5,15), 209 QCONST16(.6,15), 230 QCONST16(.55,15), 251 QCONST16(.45,15), 272 QCONST16(.3,15), 293 QCONST16(.2,15), 314 QCONST16(.1,15), 331 QCONST16(.0002,15), /*lpc_floor*/
|
D | stereo.c | 240 … EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15)), e_left, QCONST16(0.… in speex_decode_stereo() 241 …XTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15)), e_right, QCONST16(0.… in speex_decode_stereo() 267 … EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15)), e_left, QCONST16(0.… in speex_decode_stereo_int() 268 …XTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15)), e_right, QCONST16(0.… in speex_decode_stereo_int()
|
D | modes_wb.c | 190 QCONST16(.0002,15), /*lpc_floor*/ 191 QCONST16(0.9f,15), 236 QCONST16(.0002,15), /*lpc_floor*/ 237 QCONST16(0.7f,15),
|
D | mdf.c | 198 …den2 = MULT16_16_Q15(radius,radius) + MULT16_16_Q15(QCONST16(.7,15),MULT16_16_Q15(32767-radius,327… in filter_dc_notch16() 374 prop[i] += MULT16_16_Q15(QCONST16(.1f,15),max_sum); in mdf_adjust_prop() 379 prop[i] = DIV32(MULT16_16(QCONST16(.99f,15), prop[i]),prop_sum); in mdf_adjust_prop() 488 spx_word16_t decay = SHR32(spx_exp(NEG16(DIV32_16(QCONST16(2.4,11),M))),1); in speex_echo_state_init_mc() 489 st->prop[0] = QCONST16(.7, 15); in speex_echo_state_init_mc() 498 st->prop[i] = DIV32(MULT16_16(QCONST16(.8f,15), st->prop[i]),sum); in speex_echo_state_init_mc() 505 st->preemph = QCONST16(.9,15); in speex_echo_state_init_mc() 507 st->notch_radius = QCONST16(.9, 15); in speex_echo_state_init_mc() 509 st->notch_radius = QCONST16(.982, 15); in speex_echo_state_init_mc() 511 st->notch_radius = QCONST16(.992, 15); in speex_echo_state_init_mc() [all …]
|
D | nb_celp.c | 175 st->old_lsp[i]= DIV32(MULT16_16(QCONST16(3.1415927f, LSP_SHIFT), i+1), st->lpcSize+1); in nb_encoder_init() 406 ol_gain = MULT16_16(g, MULT16_16_Q14(QCONST16(1.1,14), in nb_encode() 407 …spx_sqrt(QCONST32(1.,28)-MULT16_32_Q15(QCONST16(.8,15),SHL32(MULT16_16(ol_pitch_coef,ol_pitch_coef… in nb_encode() 593 ol_pitch_coef = MULT16_16_Q15(QCONST16(.9,15), ol_pitch_coef); in nb_encode() 604 ol_pitch_coef=MULT16_16_P15(QCONST16(0.066667,15),SHL16(quant,GAIN_SHIFT)); in nb_encode() 862 target[i]=MULT16_16_P13(QCONST16(2.2f,13), target[i]); in nb_encode() 866 … signal_mul(innov2, innov2, MULT16_32_Q15(QCONST16(0.454545f,15),ener), st->subframeSize); in nb_encode() 1068 bw_lpc(QCONST16(.98,15), st->interp_qlpc, st->interp_qlpc, st->lpcSize); in nb_decode_lost() 1208 bw_lpc(QCONST16(0.93f,15), st->interp_qlpc, lpc, st->lpcSize); in nb_decode() 1266 ol_pitch_coef=MULT16_16_P15(QCONST16(0.066667,15),SHL16(quant,GAIN_SHIFT)); in nb_decode() [all …]
|
D | filters.c | 752 pgain1 = QCONST16(1., 14); in multicomb() 756 pgain2 = QCONST16(1., 14); in multicomb() 764 c1 = (MULT16_16_Q15(QCONST16(.4,15),comb_gain)+QCONST16(.07,15)); in multicomb() 765 c2 = QCONST16(.5,15)+MULT16_16_Q14(QCONST16(1.72,14),(c1-QCONST16(.07,15))); in multicomb() 789 gain0 = MULT16_16_Q15(QCONST16(.7,15),MULT16_16_Q14(g1,gg1)); in multicomb() 790 gain1 = MULT16_16_Q15(QCONST16(.3,15),MULT16_16_Q14(g2,gg2)); in multicomb() 792 gain0 = MULT16_16_Q15(QCONST16(.6,15),MULT16_16_Q14(g1,gg1)); in multicomb() 793 gain1 = MULT16_16_Q15(QCONST16(.6,15),MULT16_16_Q14(g2,gg2)); in multicomb()
|
D | sb_celp.c | 254 st->old_lsp[i]= DIV32(MULT16_16(QCONST16(3.1415927f, LSP_SHIFT), i+1), st->lpcSize+1); in sb_encoder_init() 651 gc = MULT16_16_P15(QCONST16(0.70711f,15),gc); in sb_encode() 656 gc = MULT16_16_Q15(QCONST16(0.87360,15),gc_quant_bound[qgc]); in sb_encode() 659 gc = MULT16_16_P14(QCONST16(1.4142f,14), gc); in sb_encode() 707 target[i]=MULT16_16_P13(QCONST16(2.5f,13), target[i]); in sb_encode() 712 signal_mul(innov2, innov2, MULT16_32_P15(QCONST16(0.4f,15),scale), st->subframeSize); in sb_encode() 723 …st->innov_rms_save[sub] = MULT16_16_Q15(QCONST16(.70711f, 15), compute_rms(innov, st->subframeSize… in sb_encode() 845 bw_lpc(QCONST16(0.99f,15), st->interp_qlpc, st->interp_qlpc, st->lpcSize); in sb_decode_lost() 854 st->last_ener = MULT16_16_Q15(QCONST16(.9f,15),st->last_ener); in sb_decode_lost() 1032 g= spx_exp(MULT16_16(QCONST16(.125f,11),(quant-10))); in sb_decode() [all …]
|
D | resample.c | 306 …interp[0] = PSHR32(MULT16_16(QCONST16(-0.16667f, 15),x) + MULT16_16(QCONST16(0.16667f, 15),x3),15); in cubic_coef() 308 …interp[3] = PSHR32(MULT16_16(QCONST16(-0.33333f, 15),x) + MULT16_16(QCONST16(.5f,15),x2) - MULT16_… in cubic_coef()
|
D | fixed_generic.h | 38 #define QCONST16(x,bits) ((spx_word16_t)(.5+(x)*(((spx_word32_t)1)<<(bits)))) macro
|
D | arch.h | 158 #define QCONST16(x,bits) (x) macro
|
D | fixed_debug.h | 43 #define QCONST16(x,bits) ((spx_word16_t)(.5+(x)*(((spx_word32_t)1)<<(bits)))) macro
|