Home
last modified time | relevance | path

Searched refs:QCONST16 (Results 1 – 24 of 24) sorted by relevance

/external/libopus/celt/
Dcelt_encoder.c243 opus_val16 forward_decay = QCONST16(.0625f,15); in transient_analysis()
269 forward_decay = QCONST16(.03125f,15); in transient_analysis()
341 tmp[i] = mem0 + MULT16_16_P15(QCONST16(0.125f,15),tmp[i]-mem0); in transient_analysis()
400 …*tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis()
424 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision()
428 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
432 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision()
445 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision()
602 bias = MULT16_16_Q14(QCONST16(.04f,15), MAX16(-QCONST16(.25f,14), QCONST16(.5f,14)-tf_estimate)); in tf_analysis()
795 opus_val16 trim = QCONST16(5.f, 8); in alloc_trim_analysis()
[all …]
Dmodes.c318 mode->preemph[0] = QCONST16(0.3500061035f, 15); in opus_custom_mode_create()
319 mode->preemph[1] = -QCONST16(0.1799926758f, 15); in opus_custom_mode_create()
320 mode->preemph[2] = QCONST16(0.2719968125f, SIG_SHIFT); /* exact 1/preemph[3] */ in opus_custom_mode_create()
321 mode->preemph[3] = QCONST16(3.6765136719f, 13); in opus_custom_mode_create()
324 mode->preemph[0] = QCONST16(0.6000061035f, 15); in opus_custom_mode_create()
325 mode->preemph[1] = -QCONST16(0.1799926758f, 15); in opus_custom_mode_create()
326 mode->preemph[2] = QCONST16(0.4424998650f, SIG_SHIFT); /* exact 1/preemph[3] */ in opus_custom_mode_create()
327 mode->preemph[3] = QCONST16(2.2598876953f, 13); in opus_custom_mode_create()
330 mode->preemph[0] = QCONST16(0.7799987793f, 15); in opus_custom_mode_create()
331 mode->preemph[1] = -QCONST16(0.1000061035f, 15); in opus_custom_mode_create()
[all …]
Dquant_bands.c192 oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in quant_coarse_energy_impl()
197 decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT), in quant_coarse_energy_impl()
203 decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay; in quant_coarse_energy_impl()
285 max_decay = QCONST16(16.f,DB_SHIFT); in quant_coarse_energy()
295 max_decay = QCONST16(3.f,DB_SHIFT); in quant_coarse_energy()
377 q2 = (error[i+c*m->nbEBands]+QCONST16(.5f,DB_SHIFT))>>(DB_SHIFT-fine_quant[i]); in quant_fine_energy()
387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy()
416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in quant_energy_finalise()
482 oldEBands[i+c*m->nbEBands] = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in unquant_coarse_energy()
507 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in unquant_fine_energy()
[all …]
Dpitch.c148 opus_val16 c1 = QCONST16(.8f,15); in pitch_downsample()
198 tmp = MULT16_16_Q15(QCONST16(.9f,15), tmp); in pitch_downsample()
202 lpc2[0] = lpc[0] + QCONST16(.8f,SIG_SHIFT); in pitch_downsample()
381 if ((c-a) > MULT16_32_Q15(QCONST16(.7f,15),b-a)) in pitch_search()
383 else if ((a-c) > MULT16_32_Q15(QCONST16(.7f,15),b-c)) in pitch_search()
500 thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont); in remove_doubling()
504 thresh = MAX16(QCONST16(.4f,15), MULT16_16_Q15(QCONST16(.85f,15),g0)-cont); in remove_doubling()
506 thresh = MAX16(QCONST16(.5f,15), MULT16_16_Q15(QCONST16(.9f,15),g0)-cont); in remove_doubling()
523 if ((xcorr[2]-xcorr[0]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[0])) in remove_doubling()
525 else if ((xcorr[0]-xcorr[2]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[2])) in remove_doubling()
Dcelt.c199 {QCONST16(0.3066406250f, 15), QCONST16(0.2170410156f, 15), QCONST16(0.1296386719f, 15)}, in comb_filter()
200 {QCONST16(0.4638671875f, 15), QCONST16(0.2680664062f, 15), QCONST16(0.f, 15)}, in comb_filter()
201 {QCONST16(0.7998046875f, 15), QCONST16(0.1000976562f, 15), QCONST16(0.f, 15)}}; in comb_filter()
Dcelt_decoder.c556 decay = loss_count==0 ? QCONST16(1.5f, DB_SHIFT) : QCONST16(.5f, DB_SHIFT); in celt_decode_lost()
604 fade = QCONST16(.8f,15); in celt_decode_lost()
659 opus_val32 sum=QCONST16(1., SIG_SHIFT); in celt_decode_lost()
665 tmp = MULT16_16_Q15(QCONST16(.99f,15), tmp); in celt_decode_lost()
982 postfilter_gain = QCONST16(.09375f,15)*(qg+1);
1103 oldBandE[i] = -QCONST16(28.f,DB_SHIFT);
1147 max_background_increase = M*QCONST16(0.001f,DB_SHIFT);
1149 max_background_increase = QCONST16(1.f,DB_SHIFT);
1161 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
1166 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
[all …]
Dvq.c207 X[0] = QCONST16(1.f,14); in op_pvq_search_c()
211 sum = QCONST16(1.f,14); in op_pvq_search_c()
432 itheta = MULT16_16_Q15(QCONST16(0.63662f,15),celt_atan2p(side, mid)); in stereo_itheta()
Dbands.c290 thresh = MULT16_32_Q15(QCONST16(0.5f, 15), MIN32(32767,thresh32)); in anti_collapse()
419 l = MULT16_16(QCONST16(.70710678f, 15), X[j]); in stereo_split()
420 r = MULT16_16(QCONST16(.70710678f, 15), Y[j]); in stereo_split()
510 if (x2N < QCONST16(0.25f,13)) in spreading_decision()
512 if (x2N < QCONST16(0.0625f,13)) in spreading_decision()
514 if (x2N < QCONST16(0.015625f,13)) in spreading_decision()
640 tmp1 = MULT16_16(QCONST16(.70710678f,15), X[stride*2*j+i]); in haar1()
641 tmp2 = MULT16_16(QCONST16(.70710678f,15), X[stride*(2*j+1)+i]); in haar1()
1093 tmp = QCONST16(1.0f/256, 10); in quant_partition()
Dfixed_generic.h68 #define QCONST16(x,bits) ((opus_val16)(.5+(x)*(((opus_val32)1)<<(bits)))) macro
Darch.h216 #define QCONST16(x,bits) (x) macro
Dkiss_fft.c74 tw = QCONST16(0.7071067812f, 15); in kf_bfly2()
Dfixed_debug.h52 #define QCONST16(x,bits) ((opus_val16)(.5+(x)*(((opus_val32)1)<<(bits)))) macro
/external/speex/libspeexdsp/
Dpreprocess.c77 #define SPEECH_PROB_START_DEFAULT QCONST16(0.35f,15)
78 #define SPEECH_PROB_CONTINUE_DEFAULT QCONST16(0.20f,15)
260 spx_word16_t x = DIV32_16(MULT16_16(QCONST16(4.f,13),i),len); in conj_window()
263 if (x<QCONST16(1.f,13)) in conj_window()
265 } else if (x<QCONST16(2.f,13)) in conj_window()
267 x=QCONST16(2.f,13)-x; in conj_window()
269 } else if (x<QCONST16(3.f,13)) in conj_window()
271 x=x-QCONST16(2.f,13); in conj_window()
274 x=QCONST16(2.f,13)-x+QCONST16(2.f,13); /* 4 - x */ in conj_window()
276 x = MULT16_16_Q14(QCONST16(1.271903f,14), x); in conj_window()
[all …]
Dmdf.c198 …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()
379 prop[i] = DIV32(MULT16_16(QCONST16(.99f,15), prop[i]),prop_sum); in mdf_adjust_prop()
488 spx_word16_t decay = SHR32(spx_exp(NEG16(DIV32_16(QCONST16(2.4,11),M))),1); in speex_echo_state_init_mc()
489 st->prop[0] = QCONST16(.7, 15); in speex_echo_state_init_mc()
498 st->prop[i] = DIV32(MULT16_16(QCONST16(.8f,15), st->prop[i]),sum); in speex_echo_state_init_mc()
505 st->preemph = QCONST16(.9,15); in speex_echo_state_init_mc()
507 st->notch_radius = QCONST16(.9, 15); in speex_echo_state_init_mc()
509 st->notch_radius = QCONST16(.982, 15); in speex_echo_state_init_mc()
511 st->notch_radius = QCONST16(.992, 15); in speex_echo_state_init_mc()
[all …]
Dresample.c311 …interp[0] = PSHR32(MULT16_16(QCONST16(-0.16667f, 15),x) + MULT16_16(QCONST16(0.16667f, 15),x3),15); in cubic_coef()
313 …interp[3] = PSHR32(MULT16_16(QCONST16(-0.33333f, 15),x) + MULT16_16(QCONST16(.5f,15),x2) - MULT16_… in cubic_coef()
Dfixed_generic.h38 #define QCONST16(x,bits) ((spx_word16_t)(.5+(x)*(((spx_word32_t)1)<<(bits)))) macro
Darch.h150 #define QCONST16(x,bits) (x) macro
Dfixed_debug.h43 #define QCONST16(x,bits) ((spx_word16_t)(.5+(x)*(((spx_word32_t)1)<<(bits)))) macro
/external/libopus/celt/mips/
Dcelt_mipsr1.h69 {QCONST16(0.3066406250f, 15), QCONST16(0.2170410156f, 15), QCONST16(0.1296386719f, 15)}, in comb_filter()
70 {QCONST16(0.4638671875f, 15), QCONST16(0.2680664062f, 15), QCONST16(0.f, 15)}, in comb_filter()
71 {QCONST16(0.7998046875f, 15), QCONST16(0.1000976562f, 15), QCONST16(0.f, 15)}}; in comb_filter()
/external/libopus/src/
Dopus_multistream_encoder.c193QCONST16(0.5000000f, DB_SHIFT), QCONST16(0.2924813f, DB_SHIFT), QCONST16(0.1609640f, DB_SHIFT), QC… in logSum()
194QCONST16(0.0437314f, DB_SHIFT), QCONST16(0.0221971f, DB_SHIFT), QCONST16(0.0111839f, DB_SHIFT), QC… in logSum()
195 QCONST16(0.0028123f, DB_SHIFT) in logSum()
206 if (!(diff < QCONST16(8.f, DB_SHIFT))) /* inverted to catch NaNs */ in logSum()
260 maskLogE[c][i] = -QCONST16(28.f, DB_SHIFT); in surround_analysis()
306 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i-1]-QCONST16(1.f, DB_SHIFT)); in surround_analysis()
308 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i+1]-QCONST16(2.f, DB_SHIFT)); in surround_analysis()
321 maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); in surround_analysis()
322 maskLogE[2][i] = logSum(maskLogE[2][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); in surround_analysis()
Danalysis.c130 X = MULT16_32_Q15(QCONST16(0.6074371f, 15), Y); in silk_resampler_down2_hp()
139 X = MULT16_32_Q15(QCONST16(0.15063f, 15), Y); in silk_resampler_down2_hp()
145 X = MULT16_32_Q15(QCONST16(0.15063f, 15), Y); in silk_resampler_down2_hp()
Dopus_encoder.c694 if (MAX32(mem->XX, mem->YY)>QCONST16(8e-4f, 18)) in compute_stereo_width()
712 … mem->max_follower = MAX16(mem->max_follower-QCONST16(.02f,15)/frame_rate, mem->smoothed_width); in compute_stereo_width()
1156 … st->peak_signal_energy = MAX32(MULT16_32_Q15(QCONST16(0.999f, 15), st->peak_signal_energy), in opus_encode_native()
1698 HB_gain = Q15ONE - SHR32(celt_exp2(-celt_rate * QCONST16(1.f/1024, 10)), 1); in opus_encode_native()
1729 QCONST16(.5f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in opus_encode_native()
1737 masking_depth += QCONST16(.2f, DB_SHIFT); in opus_encode_native()
Dopus_decoder.c598 gain = celt_exp2(MULT16_16_P15(QCONST16(6.48814081e-4f, 25), st->decode_gain)); in opus_decode_frame()
/external/libopus/celt/x86/
Dvq_sse2.c101 X[0] = QCONST16(1.f,14); in op_pvq_search_sse2()