/external/libopus/celt/ |
D | mathops.c | 102 r = ADD16(23557, MULT16_16_Q15(n, ADD16(-13490, MULT16_16_Q15(n, 6713)))); in celt_rsqrt_norm() 107 r2 = MULT16_16_Q15(r, r); in celt_rsqrt_norm() 108 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1); in celt_rsqrt_norm() 113 return ADD16(r, MULT16_16_Q15(r, MULT16_16_Q15(y, in celt_rsqrt_norm() 114 SUB16(MULT16_16_Q15(y, 12288), 16384)))); in celt_rsqrt_norm() 131 rt = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], in celt_sqrt() 132 MULT16_16_Q15(n, ADD16(C[3], MULT16_16_Q15(n, (C[4]))))))))); in celt_sqrt() 192 r = ADD16(30840, MULT16_16_Q15(-15420, n)); in celt_rcp() 196 r = SUB16(r, MULT16_16_Q15(r, in celt_rcp() 197 ADD16(MULT16_16_Q15(r, n), ADD16(r, -32768)))); in celt_rcp() [all …]
|
D | celt.c | 134 g00 = MULT16_16_Q15(g0, gains[tapset0][0]); in comb_filter() 135 g01 = MULT16_16_Q15(g0, gains[tapset0][1]); in comb_filter() 136 g02 = MULT16_16_Q15(g0, gains[tapset0][2]); in comb_filter() 137 g10 = MULT16_16_Q15(g1, gains[tapset1][0]); in comb_filter() 138 g11 = MULT16_16_Q15(g1, gains[tapset1][1]); in comb_filter() 139 g12 = MULT16_16_Q15(g1, gains[tapset1][2]); in comb_filter() 148 f = MULT16_16_Q15(window[i],window[i]); in comb_filter() 150 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g00),x[i-T0]) in comb_filter() 151 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g01),ADD32(x[i-T0+1],x[i-T0-1])) in comb_filter() 152 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g02),ADD32(x[i-T0+2],x[i-T0-2])) in comb_filter() [all …]
|
D | mathops.h | 180 …frac = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], MULT16_16_Q15(n, ADD1… in celt_log2() 199 …return ADD16(D0, MULT16_16_Q15(frac, ADD16(D1, MULT16_16_Q15(frac, ADD16(D2 , MULT16_16_Q15(D3,fra… in celt_exp2_frac()
|
D | pitch.c | 82 num = MULT16_16_Q15(xcorr16,xcorr16); in find_best_pitch() 205 tmp = MULT16_16_Q15(QCONST16(.9f,15), tmp); in pitch_downsample() 206 lpc[i] = MULT16_16_Q15(lpc[i], tmp); in pitch_downsample() 210 lpc2[1] = lpc[1] + MULT16_16_Q15(c1,lpc[0]); in pitch_downsample() 211 lpc2[2] = lpc[2] + MULT16_16_Q15(c1,lpc[1]); in pitch_downsample() 212 lpc2[3] = lpc[3] + MULT16_16_Q15(c1,lpc[2]); in pitch_downsample() 213 lpc2[4] = MULT16_16_Q15(c1,lpc[3]); in pitch_downsample() 494 thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont); in remove_doubling() 498 thresh = MAX16(QCONST16(.4f,15), MULT16_16_Q15(QCONST16(.85f,15),g0)-cont); in remove_doubling() 500 thresh = MAX16(QCONST16(.5f,15), MULT16_16_Q15(QCONST16(.9f,15),g0)-cont); in remove_doubling()
|
D | bands.c | 145 X[j+c*N] = MULT16_16_Q15(VSHR32(freq[j+c*N],shift-1),g); in normalise_bands() 321 r = SHR32(MULT16_16_Q15(sqrt_1, r),shift); in anti_collapse() 384 l = MULT16_16_Q15(QCONST16(.70710678f,15), X[j]); in stereo_split() 385 r = MULT16_16_Q15(QCONST16(.70710678f,15), Y[j]); in stereo_split() 437 l = MULT16_16_Q15(mid, X[j]); in stereo_merge() 475 x2N = MULT16_16(MULT16_16_Q15(x[j], x[j]), N); in spreading_decision() 607 tmp1 = MULT16_16_Q15(QCONST16(.70710678f,15), X[stride*2*j+i]); in haar1() 608 tmp2 = MULT16_16_Q15(QCONST16(.70710678f,15), X[stride*(2*j+1)+i]); in haar1() 1185 lowband_out[j] = MULT16_16_Q15(n,X[j]); in quant_band() 1285 X[0] = MULT16_16_Q15(mid, X[0]); in quant_band_stereo() [all …]
|
D | vq.c | 79 theta = HALF16(MULT16_16_Q15(gain,gain)); in exp_rotation() 225 iy[j] = MULT16_16_Q15(X[j],rcp); in alg_quant() 278 Rxy = MULT16_16_Q15(Rxy,Rxy); in alg_quant() 409 itheta = MULT16_16_Q15(QCONST16(0.63662f,15),celt_atan2p(side, mid)); in stereo_itheta()
|
D | celt_lpc.c | 251 xx[i] = MULT16_16_Q15(x[i],window[i]); in _celt_autocorr() 252 xx[n-i-1] = MULT16_16_Q15(x[n-i-1],window[i]); in _celt_autocorr()
|
D | fixed_generic.h | 122 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15)) macro
|
D | arch.h | 192 #define MULT16_16_Q15(a,b) ((a)*(b)) macro
|
D | celt_decoder.c | 557 attenuation = MULT16_16_Q15(fade, decay); in celt_decode_lost() 563 attenuation = MULT16_16_Q15(attenuation, decay); in celt_decode_lost() 566 SHL32(EXTEND32(MULT16_16_Q15(attenuation, in celt_decode_lost() 616 - MULT16_16_Q15(window[i], Q15ONE-ratio); in celt_decode_lost()
|
D | celt_encoder.c | 778 sum = MULT16_16_Q15(QCONST16(1.f/8, 15), sum); in alloc_trim_analysis() 809 trim += MAX16(-QCONST16(4.f, 8), MULT16_16_Q15(QCONST16(.75f,15),logXC)); in alloc_trim_analysis() 1050 gain1 = MULT16_16_Q15(QCONST16(.7f,15),gain1); in run_prefilter() 1237 amount = MULT16_16_Q15(QCONST16(.0000031f, 30), IMAX(0, IMIN(32000, 96000-bitrate))); in compute_vbr() 1653 st->spec_avg += MULT16_16_Q15(QCONST16(.02f, 15), temporal_vbr); in celt_encode_with_ec()
|
D | quant_bands.c | 355 … *delayedIntra = ADD32(MULT16_32_Q15(MULT16_16_Q15(pred_coef[LM], pred_coef[LM]),*delayedIntra), in quant_coarse_energy()
|
D | fixed_debug.h | 587 #define MULT16_16_Q15(a, b) MULT16_16_Q15_(a, b, __FILE__, __LINE__) macro
|
/external/speex/libspeex/ |
D | 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,… 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 …]
|
D | filters.c | 693 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()
|
D | nb_celp.c | 313 …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 …]
|
D | sb_celp.c | 400 …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()
|
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() 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()
|
D | arch.h | 204 #define MULT16_16_Q15(a,b) ((a)*(b)) macro
|
D | fixed_generic.h | 97 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15)) macro
|
D | pseudofloat.h | 258 r.m = MULT16_16_Q15(a,b); in FLOAT_MUL32U()
|
D | fixed_debug.h | 368 static inline short MULT16_16_Q15(int a, int b) in MULT16_16_Q15() function
|
D | lsp.c | 331 dd = MULT16_16_Q15(delta,SUB16(FREQ_SCALE, MULT16_16_Q14(MULT16_16_Q14(xl,xl),14000))); in lpc_to_lsp()
|
/external/libopus/src/ |
D | opus_encoder.c | 419 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in stereo_fade() 423 diff = MULT16_16_Q15(g, diff); in stereo_fade() 431 diff = MULT16_16_Q15(g2, diff); in stereo_fade() 451 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in gain_fade() 454 out[i] = MULT16_16_Q15(g, in[i]); in gain_fade() 460 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in gain_fade() 463 out[i*2] = MULT16_16_Q15(g, in[i*2]); in gain_fade() 464 out[i*2+1] = MULT16_16_Q15(g, in[i*2+1]); in gain_fade() 470 out[i*channels+c] = MULT16_16_Q15(g2, in[i*channels+c]); in gain_fade() 911 width = MULT16_16_Q15(celt_sqrt(QCONST32(1.f,30)-MULT16_16(corr,corr)), ldiff); in compute_stereo_width()
|
D | opus_decoder.c | 182 opus_val16 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in smooth_fade()
|