Home
last modified time | relevance | path

Searched refs:Q15ONE (Results 1 – 15 of 15) sorted by relevance

/external/libopus/celt/mips/
Dcelt_mipsr1.h102 …asm volatile("MULT $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g00)), "r" ((int)x[i-T0])); in comb_filter()
104 …asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g01)), "r" ((int)ADD32(x[i… in comb_filter()
105 …asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g02)), "r" ((int)ADD32(x[i… in comb_filter()
/external/libopus/src/
Dopus_encoder.c259 st->prev_HB_gain = Q15ONE; in opus_encoder_init()
453 g1 = Q15ONE-g1; in stereo_fade()
454 g2 = Q15ONE-g2; in stereo_fade()
461 Q15ONE-w, g1), 15); in stereo_fade()
493 Q15ONE-w, g1), 15); in gain_fade()
502 Q15ONE-w, g1), 15); in gain_fade()
646 short_alpha = Q15ONE - MULT16_16(25, Q15ONE)/IMAX(50,frame_rate); in compute_stereo_width()
707 ldiff = MULT16_16(Q15ONE, ABS16(qrrt_xx-qrrt_yy))/(EPSILON+qrrt_xx+qrrt_yy); in compute_stereo_width()
715 return EXTRACT16(MIN32(Q15ONE, MULT16_16(20, mem->max_follower))); in compute_stereo_width()
1366 mode_voice = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[0][0]) in opus_encode_native()
[all …]
Danalysis.c794 E *= 256.f*(1.f/Q15ONE)*(1.f/Q15ONE); in tonality_analysis()
Dopus_decoder.c200 Q15ONE-w, in1[i*channels+c]), 15); in smooth_fade()
/external/libopus/celt/
Dcelt.c233 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g00),x[i-T0]) in comb_filter()
234 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g01),ADD32(x[i-T0+1],x[i-T0-1])) in comb_filter()
235 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g02),ADD32(x[i-T0+2],x[i-T0-2])) in comb_filter()
Darch.h129 #define Q15ONE 32767 macro
203 #define Q15ONE 1.0f macro
Dpitch.c145 opus_val16 tmp=Q15ONE; in pitch_downsample()
421 return EXTRACT16(MIN32(g, Q15ONE)); in compute_pitch_gain()
517 pg = Q15ONE; in remove_doubling()
Dbands.c359 renormalise_vector(X, N0<<LM, Q15ONE, arch); in anti_collapse()
1312 cm = quant_band(ctx, x2, N, mbits, B, lowband, LM, lowband_out, Q15ONE, in quant_band_stereo()
1345 cm = quant_band(ctx, X, N, mbits, B, lowband, LM, lowband_out, Q15ONE, in quant_band_stereo()
1363 cm |= quant_band(ctx, X, N, mbits, B, lowband, LM, lowband_out, Q15ONE, in quant_band_stereo()
1575 last?NULL:norm+M*eBands[i]-norm_offset, Q15ONE, lowband_scratch, x_cm); in quant_all_bands()
1578 last?NULL:norm2+M*eBands[i]-norm_offset, Q15ONE, lowband_scratch, y_cm); in quant_all_bands()
1654 last?NULL:norm+M*eBands[i]-norm_offset, Q15ONE, lowband_scratch, x_cm|y_cm); in quant_all_bands()
Dcelt_decoder.c577 renormalise_vector(X+boffs, blen, Q15ONE, st->arch); in celt_decode_lost()
593 opus_val16 fade = Q15ONE; in celt_decode_lost()
658 opus_val16 tmp=Q15ONE; in celt_decode_lost()
777 opus_val16 tmp_g = Q15ONE in celt_decode_lost()
778 - MULT16_16_Q15(window[i], Q15ONE-ratio); in celt_decode_lost()
Dmodes.c376 …window[i] = Q15ONE*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overl… in opus_custom_mode_create()
Dvq.c87 s = celt_cos_norm(EXTEND32(SUB16(Q15ONE,theta))); /* sin(theta) */ in exp_rotation()
Dkiss_fft.c458 st->scale = Q15ONE; in opus_fft_alloc_twiddles()
/external/speex/libspeexdsp/
Darch.h90 #define Q15ONE 32767 macro
136 #define Q15ONE 1.0f macro
Dpreprocess.c859 /*Q8*/tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-E… in speex_preprocess_run()
1132 st->speech_prob_start = DIV32_16(MULT16_16(Q15ONE,*(spx_int32_t*)ptr), 100); in speex_preprocess_ctl()
1140 st->speech_prob_continue = DIV32_16(MULT16_16(Q15ONE,*(spx_int32_t*)ptr), 100); in speex_preprocess_ctl()
/external/libopus/celt/tests/
Dtest_unit_mdct.c143 window[k] = Q15ONE; in test1d()