HomeSort by relevance Sort by last modified time
    Searched refs:MULT16_16_Q15 (Results 1 - 25 of 29) sorted by null

1 2

  /external/libopus/celt/
mathops.c 102 r = ADD16(23557, MULT16_16_Q15(n, ADD16(-13490, MULT16_16_Q15(n, 6713))));
107 r2 = MULT16_16_Q15(r, r);
108 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1);
113 return ADD16(r, MULT16_16_Q15(r, MULT16_16_Q15(y,
114 SUB16(MULT16_16_Q15(y, 12288), 16384))));
131 rt = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2],
132 MULT16_16_Q15(n, ADD16(C[3], MULT16_16_Q15(n, (C[4])))))))))
    [all...]
fixed_c5x.h 60 #undef MULT16_16_Q15
61 #define MULT16_16_Q15(a,b) (_smpy(a,b))
fixed_c6x.h 64 #undef MULT16_16_Q15
65 #define MULT16_16_Q15(a,b) (_smpy(a,b))
mathops.h 212 frac = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], MULT16_16_Q15(n, ADD16(C[3], MULT16_16_Q15(n, C[4]))))))));
231 return ADD16(D0, MULT16_16_Q15(frac, ADD16(D1, MULT16_16_Q15(frac, ADD16(D2 , MULT16_16_Q15(D3,frac))))));
celt.c 231 f = MULT16_16_Q15(window[i],window[i]);
233 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g00),x[i-T0])
234 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g01),ADD32(x[i-T0+1],x[i-T0-1]))
235 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g02),ADD32(x[i-T0+2],x[i-T0-2]))
236 + MULT16_32_Q15(MULT16_16_Q15(f,g10),x2)
237 + MULT16_32_Q15(MULT16_16_Q15(f,g11),ADD32(x1,x3))
238 + MULT16_32_Q15(MULT16_16_Q15(f,g12),ADD32(x0,x4));
pitch.c 82 num = MULT16_16_Q15(xcorr16,xcorr16);
205 tmp = MULT16_16_Q15(QCONST16(.9f,15), tmp);
206 lpc[i] = MULT16_16_Q15(lpc[i], tmp);
210 lpc2[1] = lpc[1] + MULT16_16_Q15(c1,lpc[0]);
211 lpc2[2] = lpc[2] + MULT16_16_Q15(c1,lpc[1]);
212 lpc2[3] = lpc[3] + MULT16_16_Q15(c1,lpc[2]);
213 lpc2[4] = MULT16_16_Q15(c1,lpc[3]);
507 thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont);
511 thresh = MAX16(QCONST16(.4f,15), MULT16_16_Q15(QCONST16(.85f,15),g0)-cont);
513 thresh = MAX16(QCONST16(.5f,15), MULT16_16_Q15(QCONST16(.9f,15),g0)-cont)
    [all...]
vq.c 84 theta = HALF16(MULT16_16_Q15(gain,gain));
222 iy[j] = MULT16_16_Q15(X[j],rcp);
276 Rxy = MULT16_16_Q15(Rxy,Rxy);
288 Rxy = MULT16_16_Q15(Rxy,Rxy);
432 itheta = MULT16_16_Q15(QCONST16(0.63662f,15),celt_atan2p(side, mid));
celt_lpc.c 238 xx[i] = MULT16_16_Q15(x[i],window[i]);
239 xx[n-i-1] = MULT16_16_Q15(x[n-i-1],window[i]);
arch.h 245 #define MULT16_16_Q15(a,b) ((a)*(b))
fixed_generic.h 153 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15))
celt_decoder.c 628 tmp = MULT16_16_Q15(QCONST16(.99f,15), tmp);
629 lpc[c*LPC_ORDER+i] = MULT16_16_Q15(lpc[c*LPC_ORDER+i], tmp);
685 attenuation = MULT16_16_Q15(fade, decay);
691 attenuation = MULT16_16_Q15(attenuation, decay);
694 SHL32(EXTEND32(MULT16_16_Q15(attenuation,
747 - MULT16_16_Q15(window[i], Q15ONE-ratio);
    [all...]
bands.c 151 X[j+c*N] = MULT16_16_Q15(VSHR32(freq[j+c*N],shift-1),g);
332 r = SHR32(MULT16_16_Q15(sqrt_1, r),shift);
509 x2N = MULT16_16(MULT16_16_Q15(x[j], x[j]), N);
    [all...]
quant_bands.c 355 *delayedIntra = ADD32(MULT16_32_Q15(MULT16_16_Q15(pred_coef[LM], pred_coef[LM]),*delayedIntra),
  /external/libopus/celt/mips/
celt_mipsr1.h 99 f = MULT16_16_Q15(window[i],window[i]);
102 asm volatile("MULT $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g00)), "r" ((int)x[i-T0]));
104 asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g01)), "r" ((int)ADD32(x[i-T0-1],x[i-T0+1])));
105 asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g02)), "r" ((int)ADD32(x[i-T0-2],x[i-T0+2])));
106 asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15(f,g10)), "r" ((int)x2));
107 asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15(f,g11)), "r" ((int)ADD32(x3,x1)));
108 asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15(f,g12)), "r" ((int)ADD32(x4,x0)));
  /external/speex/libspeex/
preprocess.c 93 #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((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT16(theta)),1))))
    [all...]
filters.c 693 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));
nb_celp.c 313 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);
    [all...]
mdf.c 198 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]);
    [all...]
arch.h 204 #define MULT16_16_Q15(a,b) ((a)*(b))
fixed_generic.h 97 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15))
sb_celp.c 400 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)
    [all...]
pseudofloat.h 258 r.m = MULT16_16_Q15(a,b);
fixed_debug.h 368 static inline short MULT16_16_Q15(int a, int b)
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);
lsp.c 331 dd = MULT16_16_Q15(delta,SUB16(FREQ_SCALE, MULT16_16_Q14(MULT16_16_Q14(xl,xl),14000)));
  /external/libopus/src/
opus_encoder.c 479 w = MULT16_16_Q15(window[i*inc], window[i*inc]);
483 diff = MULT16_16_Q15(g, diff);
491 diff = MULT16_16_Q15(g2, diff);
511 w = MULT16_16_Q15(window[i*inc], window[i*inc]);
514 out[i] = MULT16_16_Q15(g, in[i]);
520 w = MULT16_16_Q15(window[i*inc], window[i*inc]);
523 out[i*2] = MULT16_16_Q15(g, in[i*2]);
524 out[i*2+1] = MULT16_16_Q15(g, in[i*2+1]);
530 out[i*channels+c] = MULT16_16_Q15(g2, in[i*channels+c]);
722 width = MULT16_16_Q15(celt_sqrt(QCONST32(1.f,30)-MULT16_16(corr,corr)), ldiff)
    [all...]

Completed in 396 milliseconds

1 2