/external/speex/libspeex/ |
D | filters.c | 103 yi = EXTRACT16(SATURATE(PSHR32(vout,14),32767)); in highpass() 128 scale = PSHR32(scale, SIG_SHIFT); in signal_div() 136 scale = PSHR32(scale, SIG_SHIFT-5); in signal_div() 140 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),8); in signal_div() 144 scale = PSHR32(scale, SIG_SHIFT-7); in signal_div() 150 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),6); in signal_div() 217 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT)); in compute_rms() 326 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767)); in filter_mem16() 346 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767)); in iir_mem16() 367 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767)); in fir_mem16() [all …]
|
D | preprocess.c | 311 …return SHL32(DIV32_16(PSHR32(MULT16_16(Q15_ONE-frac,table[ind]) + MULT16_16(frac,table[ind+1]),7),… in hypergeom_gain() 334 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[… in compute_gain_floor() 335 (1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]) )),15))); in compute_gain_floor() 344 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(MULT16_32_Q15(gain_ratio,PSHR32(noise[i],NOISE_SHIFT)) + echo… in compute_gain_floor() 345 (1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]) )),15))); in compute_gain_floor() 391 …in_floor[i] = FRAC_SCALING*sqrt(noise_floor*PSHR32(noise[i],NOISE_SHIFT) + echo_floor*echo[i])/sqr… in compute_gain_floor() 659 st->ps[i] = PSHR32(st->ps[i], 2*st->frame_shift); in preprocess_analysis() 781 if (!st->update_prob[i] || st->ps[i] < PSHR32(st->noise[i], NOISE_SHIFT)) in speex_preprocess_run() 797 …spx_word32_t tot_noise = ADD32(ADD32(ADD32(EXTEND32(1), PSHR32(st->noise[i],NOISE_SHIFT)) , st->ec… in speex_preprocess_run() 807 …st->prior[i] = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,st->post[i])), MULT16_16(Q15_ONE-gam… in speex_preprocess_run() [all …]
|
D | kiss_fftr.c | 238 f2k.i = PSHR32(ADD32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1); in kiss_fftr2() 247 freqdata[2*k-1] = PSHR32(f1kr + twr, 15); in kiss_fftr2() 248 freqdata[2*k] = PSHR32(f1ki + twi, 15); in kiss_fftr2() 249 freqdata[2*(ncfft-k)-1] = PSHR32(f1kr - twr, 15); in kiss_fftr2() 250 freqdata[2*(ncfft-k)] = PSHR32(twi - f1ki, 15); in kiss_fftr2()
|
D | stereo.c | 240 …stereo->smooth_left = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15))… in speex_decode_stereo() 241 …stereo->smooth_right = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15… in speex_decode_stereo() 267 …stereo->smooth_left = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15))… in speex_decode_stereo_int() 268 …stereo->smooth_right = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15… in speex_decode_stereo_int()
|
D | lsp.c | 273 *px = PSHR32(*px,2); in lpc_to_lsp() 274 *qx = PSHR32(*qx,2); in lpc_to_lsp() 279 P[m] = PSHR32(P[m],3); in lpc_to_lsp() 280 Q[m] = PSHR32(Q[m],3); in lpc_to_lsp() 506 a = PSHR32(xp[m][j+2] + xout1 + xq[m][j+2] - xout2, shift); in lsp_to_lpc()
|
D | mdf.c | 213 out[i] = SATURATE32(PSHR32(MULT16_32_Q15(radius,vout),15),32767); in filter_dc_notch16() 267 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum() 276 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum() 277 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT); in spectral_mul_accum() 284 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum() 294 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16() 303 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16() 304 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT); in spectral_mul_accum16() 311 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16() 846 … st->wtmp2[i] = EXTRACT16(PSHR32(st->W[chan*N*K*M + j*N*K + speak*N + i],NORMALIZE_SCALEDOWN+16)); in speex_echo_cancellation() [all …]
|
D | nb_celp.c | 754 target[i]=EXTRACT16(SATURATE(SUB32(sw[i],PSHR32(ringing[i],1)),32767)); in nb_encode() 802 real_exc[i] = EXTRACT16(SUB32(EXTEND32(real_exc[i]), PSHR32(exc32[i],SIG_SHIFT-1))); in nb_encode() 809 spx_word32_t f = PDIV32(ener,PSHR32(ol_gain,SIG_SHIFT)); in nb_encode() 816 fine_gain = PDIV32_16(ener,PSHR32(ol_gain,SIG_SHIFT)); in nb_encode() 853 … exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); in nb_encode() 872 … exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); in nb_encode() 1419 … exc[i]=EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); in nb_decode() 1424 innov_save[i] = EXTRACT16(PSHR32(innov[i], SIG_SHIFT)); in nb_decode() 1444 …_offset]=MULT16_16(spx_sqrt(MULT16_16_16(2,ol_pitch)),EXTRACT16(PSHR32(MULT16_16(g,PSHR32(ol_gain,… 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 | _kiss_fft_guts.h | 72 do{ (m).r = PSHR32( smul((a).r,(b).r) - smul((a).i,(b).i),17 ); \ 73 (m).i = PSHR32( smul((a).r,(b).i) + smul((a).i,(b).r),17 ); }while(0)
|
D | kiss_fft.c | 57 Fout2->r = PSHR32(SUB32(SHL32(EXTEND32(Fout->r), 14), tr), 15); in kf_bfly2() 58 Fout2->i = PSHR32(SUB32(SHL32(EXTEND32(Fout->i), 14), ti), 15); in kf_bfly2() 59 Fout->r = PSHR32(ADD32(SHL32(EXTEND32(Fout->r), 14), tr), 15); in kf_bfly2() 60 Fout->i = PSHR32(ADD32(SHL32(EXTEND32(Fout->i), 14), ti), 15); in kf_bfly2()
|
D | fixed_generic.h | 50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) macro 57 (PSHR32(x, shift)))
|
D | filterbank.c | 96 val = DIV32_16(mel - id1*mel_interval,EXTRACT16(PSHR32(mel_interval,15))); in filterbank_new() 167 ps[i] = EXTRACT16(PSHR32(tmp,15)); in filterbank_compute_psd16()
|
D | lpc.c | 97 r = DIV32_16(rr+PSHR32(error,1),ADD16(error,8)); in _spx_lpc()
|
D | cb_search.c | 94 t[n] = SUB16(t[n],PSHR32(MULT16_16(g,r[n]),13)); in target_update() 233 r2[j] = EXTRACT16(PSHR32(e[j] ,6)); in split_cb_search_shape_sign_N1() 506 r2[j] = EXTRACT16(PSHR32(e[j] ,6)); in split_cb_search_shape_sign()
|
D | resample.c | 310 …interp[0] = PSHR32(MULT16_16(QCONST16(-0.16667f, 15),x) + MULT16_16(QCONST16(0.16667f, 15),x3),15); in cubic_coef() 312 …interp[3] = PSHR32(MULT16_16(QCONST16(-0.33333f, 15),x) + MULT16_16(QCONST16(.5f,15),x2) - MULT16_… in cubic_coef() 417 out[out_stride * out_sample++] = PSHR32(sum, 15); in resampler_basic_direct_double() 540 out[out_stride * out_sample++] = PSHR32(sum,15); in resampler_basic_interpolate_double()
|
D | ltp.c | 520 new_target[i] = SUB16(new_target[i], EXTRACT16(PSHR32(tmp,6))); in pitch_gain_search_3tap() 797 res[i] = EXTRACT16(PSHR32(exc[i], SIG_SHIFT-1)); in forced_pitch_quant() 834 exc[i] = EXTRACT16(PSHR32(exc_out[i],13)); in forced_pitch_unquant()
|
D | arch.h | 170 #define PSHR32(a,shift) (a) macro
|
D | math_approx.h | 127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14)); in speex_rand()
|
/external/libopus/celt/ |
D | celt_lpc.c | 121 _y[i] = SATURATE16(PSHR32(sum, SIG_SHIFT)); in celt_fir() 128 _y[i ] = SATURATE16(ADD32(EXTEND32(_x[i ]), PSHR32(sum[0], SIG_SHIFT))); in celt_fir() 129 _y[i+1] = SATURATE16(ADD32(EXTEND32(_x[i+1]), PSHR32(sum[1], SIG_SHIFT))); in celt_fir() 130 _y[i+2] = SATURATE16(ADD32(EXTEND32(_x[i+2]), PSHR32(sum[2], SIG_SHIFT))); in celt_fir() 131 _y[i+3] = SATURATE16(ADD32(EXTEND32(_x[i+3]), PSHR32(sum[3], SIG_SHIFT))); in celt_fir() 138 _y[i] = SATURATE16(ADD32(EXTEND32(_x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir() 273 xx[i] = PSHR32(xptr[i], shift); in _celt_autocorr()
|
D | quant_bands.c | 194 f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c]; in quant_coarse_energy_impl() 246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); in quant_coarse_energy_impl() 250 tmp = PSHR32(MULT16_16(coef,oldE),8) + prev[c] + SHL32(q,7); in quant_coarse_energy_impl() 254 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7); in quant_coarse_energy_impl() 255 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); in quant_coarse_energy_impl() 482 tmp = PSHR32(MULT16_16(coef,oldEBands[i+c*m->nbEBands]),8) + prev[c] + SHL32(q,7); in unquant_coarse_energy() 486 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7); in unquant_coarse_energy() 487 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); in unquant_coarse_energy()
|
D | fixed_generic.h | 77 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) macro 90 #define ROUND16(x,a) (EXTRACT16(PSHR32((x),(a))))
|
D | fixed_debug.h | 60 #define PSHR(a,b) PSHR32(a,b) 226 #define PSHR32(a,shift) (celt_mips--,SHR32(ADD32((a),(((opus_val32)(1)<<((shift))>>1))),shift)) macro 229 #define ROUND16(x,a) (celt_mips--,EXTRACT16(PSHR32((x),(a))))
|
D | vq.c | 130 X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1)); in normalise_residual() 371 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector()
|
D | mathops.c | 79 rem = PSHR32(a,2)-MULT32_32_Q31(result, b); in frac_div32()
|
D | arch.h | 160 #define PSHR32(a,shift) (a) macro
|
/external/libopus/src/ |
D | mlp.c | 113 out[j] = tansig_approx(EXTRACT16(PSHR32(sum,17)));
|