Home
last modified time | relevance | path

Searched refs:MULT16_16_Q15 (Results 1 – 10 of 10) sorted by relevance

/external/speex/libspeex/
Dpreprocess.c93 #define SQR16_Q15(x) (MULT16_16_Q15((x),(x)))
317 …return DIV32_16(SHL32(EXTEND32(32767),9),ADD16(512,MULT16_16_Q15(QCONST16(.60f,15),DIV32_16(32767,… in qcurve()
333 gain_floor[i] = MULT16_16_Q15(noise_gain, in compute_gain_floor()
343 gain_floor[i] = MULT16_16_Q15(echo_gain, in compute_gain_floor()
638 st->frame[i] = MULT16_16_Q15(st->frame[i], st->window[i]); in preprocess_analysis()
804 …gamma = QCONST16(.1f,15)+MULT16_16_Q15(QCONST16(.89f,15),SQR16_Q15(DIV32_16_Q15(st->old_ps[i],ADD3… in speex_preprocess_run()
825 Pframe = QCONST16(.1f,15)+MULT16_16_Q15(QCONST16(.899f,15),qcurve(DIV32_16(Zframe,st->nbands))); in speex_preprocess_run()
859 P1 = QCONST16(.199f,15)+MULT16_16_Q15(QCONST16(.8f,15),qcurve (st->zeta[i])); in speex_preprocess_run()
860 q = Q15_ONE-MULT16_16_Q15(Pframe,P1); in speex_preprocess_run()
863 /*Q8*/tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-E… in speex_preprocess_run()
[all …]
Dnb_celp.c313 …autocorr[0] = ADD16(autocorr[0],MULT16_16_Q15(autocorr[0],st->lpc_floor)); /* Noise floor in auto-… in nb_encode()
377 if ((nol_pitch_coef[i]>MULT16_16_Q15(nol_pitch_coef[0],27853)) && in nb_encode()
593 ol_pitch_coef = MULT16_16_Q15(QCONST16(.9,15), ol_pitch_coef); in nb_encode()
1049 pitch_gain = MULT16_16_Q15(fact,pitch_gain) + VERY_SMALL; in nb_decode_lost()
1052 …noise_gain = MULT16_16_Q15(innov_gain, MULT16_16_Q15(fact, SUB16(Q15ONE,MULT16_16_Q15(pitch_gain,p… in nb_decode_lost()
1064 st->exc[i]= MULT16_16_Q15(pitch_gain, (st->exc[i-pitch_val]+VERY_SMALL)) + in nb_decode_lost()
1368 …|| (tmp>MULT16_16_Q15(QCONST16(.6,15),best_pitch_gain)&&(ABS(best_pitch-2*pitch)<3||ABS(best_pitch… in nb_decode()
1369 …|| (MULT16_16_Q15(QCONST16(.67,15),tmp)>best_pitch_gain&&(ABS(2*best_pitch-pitch)<3||ABS(3*best_pi… in nb_decode()
1452 …exc[i]= ADD16(ADD16(MULT16_16_Q15(QCONST16(.7f,15),exc[i]) , MULT16_16_Q15(QCONST16(.3f,15),st->vo… in nb_decode()
1453 …SUB16(MULT16_16_Q15(Q15_ONE-MULT16_16_16(QCONST16(.85f,9),g),EXTRACT16(PSHR32(innov[i],SIG_SHIFT))… in nb_decode()
[all …]
Dfilters.c693 if ((nol_pitch_coef[i]>MULT16_16_Q15(nol_pitch_coef[0],19661)) && in multicomb()
764 c1 = (MULT16_16_Q15(QCONST16(.4,15),comb_gain)+QCONST16(.07,15)); in multicomb()
775 g1 = 32767 - MULT16_16_Q13(MULT16_16_Q15(c2, pgain1),pgain1); in multicomb()
776 g2 = 32767 - MULT16_16_Q13(MULT16_16_Q15(c2, pgain2),pgain2); 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()
Dsb_celp.c400 …autocorr[0] = ADD16(autocorr[0],MULT16_16_Q15(autocorr[0],st->lpc_floor)); /* Noise floor in auto-… in sb_encode()
656 gc = MULT16_16_Q15(QCONST16(0.87360,15),gc_quant_bound[qgc]); in sb_encode()
723 …st->innov_rms_save[sub] = MULT16_16_Q15(QCONST16(.70711f, 15), compute_rms(innov, st->subframeSize… in sb_encode()
854 st->last_ener = MULT16_16_Q15(QCONST16(.9f,15),st->last_ener); in sb_decode_lost()
1038 …exc[i]=SHL32(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i]),SHL32(g,6))… in sb_decode()
1039 …exc[i+1]=NEG32(SHL32(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i+1]),S… in sb_decode()
1048 gc = MULT16_16_Q15(QCONST16(0.87360,15),gc_quant_bound[qgc]); in sb_decode()
Dmdf.c198 …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()
493 st->prop[i] = MULT16_16_Q15(st->prop[i-1], decay); in speex_echo_state_init_mc()
935 …->e[chan*N+i+st->frame_size] = MULT16_16_Q15(st->window[i+st->frame_size],st->e[chan*N+i+st->frame… in speex_echo_cancellation()
1206 st->y[i] = MULT16_16_Q15(st->window[i],st->last_y[i]); in speex_echo_get_residual()
Dfixed_generic.h93 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15)) macro
Darch.h203 #define MULT16_16_Q15(a,b) ((a)*(b)) macro
Dpseudofloat.h258 r.m = MULT16_16_Q15(a,b); in FLOAT_MUL32U()
Dlsp.c331 dd = MULT16_16_Q15(delta,SUB16(FREQ_SCALE, MULT16_16_Q14(MULT16_16_Q14(xl,xl),14000))); in lpc_to_lsp()
Dfixed_debug.h368 static inline short MULT16_16_Q15(int a, int b) in MULT16_16_Q15() function