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

/external/speex/libspeex/
H A 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,x))));
333 gain_floor[i] = MULT16_16_Q15(noise_gain,
343 gain_floor[i] = MULT16_16_Q15(echo_gain,
638 st->frame[i] = MULT16_16_Q15(st->frame[i], st->window[i]);
804 gamma = QCONST16(.1f,15)+MULT16_16_Q15(QCONST16(.89f,15),SQR16_Q15(DIV32_16_Q15(st->old_ps[i],ADD32(st->old_ps[i],tot_noise))));
825 Pframe = QCONST16(.1f,15)+MULT16_16_Q15(QCONST16(.899f,15),qcurve(DIV32_16(Zframe,st->nbands)));
859 P1 = QCONST16(.199f,15)+MULT16_16_Q15(QCONST16(.8f,15),qcurve (st->zeta[i]));
860 q = Q15_ONE-MULT16_16_Q15(Pframe,P1);
863 /*Q8*/tmp = MULT16_16_Q15((SHL3
[all...]
H A Dfilters.c693 if ((nol_pitch_coef[i]>MULT16_16_Q15(nol_pitch_coef[0],19661)) &&
764 c1 = (MULT16_16_Q15(QCONST16(.4,15),comb_gain)+QCONST16(.07,15));
775 g1 = 32767 - MULT16_16_Q13(MULT16_16_Q15(c2, pgain1),pgain1);
776 g2 = 32767 - MULT16_16_Q13(MULT16_16_Q15(c2, pgain2),pgain2);
789 gain0 = MULT16_16_Q15(QCONST16(.7,15),MULT16_16_Q14(g1,gg1));
790 gain1 = MULT16_16_Q15(QCONST16(.3,15),MULT16_16_Q14(g2,gg2));
792 gain0 = MULT16_16_Q15(QCONST16(.6,15),MULT16_16_Q14(g1,gg1));
793 gain1 = MULT16_16_Q15(QCONST16(.6,15),MULT16_16_Q14(g2,gg2));
H A Dnb_celp.c313 autocorr[0] = ADD16(autocorr[0],MULT16_16_Q15(autocorr[0],st->lpc_floor)); /* Noise floor in auto-correlation domain */
377 if ((nol_pitch_coef[i]>MULT16_16_Q15(nol_pitch_coef[0],27853)) &&
593 ol_pitch_coef = MULT16_16_Q15(QCONST16(.9,15), ol_pitch_coef);
1049 pitch_gain = MULT16_16_Q15(fact,pitch_gain) + VERY_SMALL;
1052 noise_gain = MULT16_16_Q15(innov_gain, MULT16_16_Q15(fact, SUB16(Q15ONE,MULT16_16_Q15(pitch_gain,pitch_gain))));
1064 st->exc[i]= MULT16_16_Q15(pitch_gain, (st->exc[i-pitch_val]+VERY_SMALL)) +
1368 || (tmp>MULT16_16_Q15(QCONST16(.6,15),best_pitch_gain)&&(ABS(best_pitch-2*pitch)<3||ABS(best_pitch-3*pitch)<4||ABS(best_pitch-4*pitch)<5))
1369 || (MULT16_16_Q15(QCONST1
[all...]
H A Dmdf.c198 den2 = MULT16_16_Q15(radius,radius) + MULT16_16_Q15(QCONST16(.7,15),MULT16_16_Q15(32767-radius,32767-radius));
374 prop[i] += MULT16_16_Q15(QCONST16(.1f,15),max_sum);
493 st->prop[i] = MULT16_16_Q15(st->prop[i-1], decay);
935 st->e[chan*N+i+st->frame_size] = MULT16_16_Q15(st->window[i+st->frame_size],st->e[chan*N+i+st->frame_size]) + MULT16_16_Q15(st->window[i],st->y[chan*N+i+st->frame_size]);
1206 st->y[i] = MULT16_16_Q15(st->window[i],st->last_y[i]);
H A Darch.h203 #define MULT16_16_Q15(a,b) ((a)*(b)) macro
H A Dfixed_generic.h93 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15)) macro
H A Dsb_celp.c400 autocorr[0] = ADD16(autocorr[0],MULT16_16_Q15(autocorr[0],st->lpc_floor)); /* Noise floor in auto-correlation domain */
656 gc = MULT16_16_Q15(QCONST16(0.87360,15),gc_quant_bound[qgc]);
723 st->innov_rms_save[sub] = MULT16_16_Q15(QCONST16(.70711f, 15), compute_rms(innov, st->subframeSize));
854 st->last_ener = MULT16_16_Q15(QCONST16(.9f,15),st->last_ener);
1038 exc[i]=SHL32(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i]),SHL32(g,6)),SIG_SHIFT);
1039 exc[i+1]=NEG32(SHL32(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i+1]),SHL32(g,6)),SIG_SHIFT));
1048 gc = MULT16_16_Q15(QCONST16(0.87360,15),gc_quant_bound[qgc]);
H A Dpseudofloat.h258 r.m = MULT16_16_Q15(a,b);
H A Dfixed_debug.h368 static inline short MULT16_16_Q15(int a, int b) function
373 fprintf (stderr, "MULT16_16_Q15: inputs are not short: %d %d\n", a, b);
379 fprintf (stderr, "MULT16_16_Q15: output is not short: %d\n", (int)res);
H A Dlsp.c331 dd = MULT16_16_Q15(delta,SUB16(FREQ_SCALE, MULT16_16_Q14(MULT16_16_Q14(xl,xl),14000)));

Completed in 160 milliseconds