Home
last modified time | relevance | path

Searched refs:Q15ONE (Results 1 – 16 of 16) 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.c241 st->prev_HB_gain = Q15ONE; in opus_encoder_init()
419 g1 = Q15ONE-g1; in stereo_fade()
420 g2 = Q15ONE-g2; in stereo_fade()
427 Q15ONE-w, g1), 15); in stereo_fade()
459 Q15ONE-w, g1), 15); in gain_fade()
468 Q15ONE-w, g1), 15); in gain_fade()
871 short_alpha = Q15ONE - MULT16_16(25, Q15ONE)/IMAX(50,frame_rate); in compute_stereo_width()
926 ldiff = MULT16_16(Q15ONE, ABS16(qrrt_xx-qrrt_yy))/(EPSILON+qrrt_xx+qrrt_yy); in compute_stereo_width()
934 return EXTRACT16(MIN32(Q15ONE, MULT16_16(20, mem->max_follower))); in compute_stereo_width()
1162 mode_voice = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[0][0]) in opus_encode_native()
[all …]
Dopus_decoder.c180 Q15ONE-w, in1[i*channels+c]), 15); in smooth_fade()
/external/libopus/celt/
Dcelt.c222 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g00),x[i-T0]) in comb_filter()
223 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g01),ADD32(x[i-T0+1],x[i-T0-1])) in comb_filter()
224 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g02),ADD32(x[i-T0+2],x[i-T0-2])) in comb_filter()
Darch.h101 #define Q15ONE 32767 macro
171 #define Q15ONE 1.0f macro
Dpitch.c152 opus_val16 tmp=Q15ONE; in pitch_downsample()
441 return EXTRACT16(MIN32(g, Q15ONE)); in compute_pitch_gain()
537 pg = Q15ONE; in remove_doubling()
Dbands.c358 renormalise_vector(X, N0<<LM, Q15ONE, arch); in anti_collapse()
1285 LM, lowband_out, Q15ONE, lowband_scratch, orig_fill); in quant_band_stereo()
1319 Q15ONE, lowband_scratch, fill); in quant_band_stereo()
1342 Q15ONE, lowband_scratch, fill); in quant_band_stereo()
1501 last?NULL:norm+M*eBands[i]-norm_offset, Q15ONE, lowband_scratch, x_cm); in quant_all_bands()
1504 last?NULL:norm2+M*eBands[i]-norm_offset, Q15ONE, lowband_scratch, y_cm); in quant_all_bands()
1514 last?NULL:norm+M*eBands[i]-norm_offset, Q15ONE, lowband_scratch, x_cm|y_cm); in quant_all_bands()
Dcelt_decoder.c495 renormalise_vector(X+boffs, blen, Q15ONE, st->arch); in celt_decode_lost()
509 opus_val16 fade = Q15ONE; in celt_decode_lost()
675 opus_val16 tmp_g = Q15ONE in celt_decode_lost()
676 - 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()
Dcelt_encoder.c1284 opus_val16 rate_factor = Q15ONE; in compute_vbr()
/external/speex/libspeex/
Darch.h98 #define Q15ONE 32767 macro
144 #define Q15ONE 1.0f macro
Dpreprocess.c863 /*Q8*/tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-E… in speex_preprocess_run()
1137 st->speech_prob_start = DIV32_16(MULT16_16(Q15ONE,*(spx_int32_t*)ptr), 100); in speex_preprocess_ctl()
1145 st->speech_prob_continue = DIV32_16(MULT16_16(Q15ONE,*(spx_int32_t*)ptr), 100); in speex_preprocess_ctl()
Dnb_celp.c1052 …noise_gain = MULT16_16_Q15(innov_gain, MULT16_16_Q15(fact, SUB16(Q15ONE,MULT16_16_Q15(pitch_gain,p… in nb_decode_lost()
/external/libopus/celt/tests/
Dtest_unit_mdct.c148 window[k] = Q15ONE; in test1d()