Home
last modified time | relevance | path

Searched refs:MAX32 (Results 1 – 19 of 19) sorted by relevance

/external/libopus/celt/
Dpitch.c101 Syy = MAX32(1, Syy); in find_best_pitch()
162 maxabs = MAX32(maxabs, maxabs_1); in pitch_downsample()
248 maxcorr = MAX32(maxcorr, sum); in celt_pitch_xcorr_c()
278 sum[0] = MAX32(sum[0], sum[1]); in celt_pitch_xcorr_c()
279 sum[2] = MAX32(sum[2], sum[3]); in celt_pitch_xcorr_c()
280 sum[0] = MAX32(sum[0], sum[2]); in celt_pitch_xcorr_c()
281 maxcorr = MAX32(maxcorr, sum[0]); in celt_pitch_xcorr_c()
295 maxcorr = MAX32(maxcorr, sum); in celt_pitch_xcorr_c()
339 shift = celt_ilog2(MAX32(1, MAX32(xmax, ymax)))-11; in pitch_search()
383 xcorr[i] = MAX32(-1, sum); in pitch_search()
[all …]
Dfixed_c6x.h55 #undef MAX32
56 #define MAX32(a,b) _lmax(a,b)
67 #define celt_maxabs16(x, len) MAX32(EXTEND32(maxval((DATA *)x, len)),-EXTEND32(minval((DATA *)x, le…
Dfixed_c5x.h51 #undef MAX32
52 #define MAX32(a,b) _lmax(a,b) macro
76 #define celt_maxabs16(x, len) MAX32(EXTEND32(maxval((DATA *)x, len)),-EXTEND32(minval((DATA *)x, le…
Dmathops.h57 return MAX32(EXTEND32(maxval),-EXTEND32(minval)); in celt_maxabs16()
70 maxval = MAX32(maxval, x[i]); in celt_maxabs32()
73 return MAX32(maxval, -minval); in celt_maxabs32()
Dfloat_cast.h134 x = MAX32(x, -32768); in FLOAT2INT16()
Dquant_bands.c197 decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT), in quant_coarse_energy_impl()
252 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp); in quant_coarse_energy_impl()
484 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp); in unquant_coarse_energy()
Dcelt_encoder.c346 id = MAX32(0,MIN32(127,MULT16_32_Q15(tmp[i]+EPSILON,norm))); /* Do not round to nearest */ in transient_analysis()
348 … id = (int)MAX32(0,MIN32(127,floor(64*norm*(tmp[i]+EPSILON)))); /* Do not round to nearest */ in transient_analysis()
366 …*tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis()
501 inp[i*upsample] = MAX32(-65536.f, MIN32(65536.f,inp[i*upsample])); in celt_preemphasis()
1515 sample_max=MAX32(st->overlap_max, celt_maxabs16(pcm, C*(N-overlap)/st->upsample)); in celt_encode_with_ec()
1517 sample_max=MAX32(sample_max, st->overlap_max); in celt_encode_with_ec()
1629 bandE[i] = MAX32(bandE[i], EPSILON); in celt_encode_with_ec()
1666 diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); in celt_encode_with_ec()
Dfixed_generic.h161 x = MAX32(x, -32768); in SIG2WORD16_generic()
Darch.h75 #define MAX32(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 32-bit value. */ macro
Drate.c444 excess = MAX32(bit-cap[j],0); in interp_bits2pulses()
487 excess = MAX32(0,bit-(C<<BITRES)); in interp_bits2pulses()
Dmdct.c94 … trig[i] = (kiss_twiddle_scalar)MAX32(-32767,MIN32(32767,floor(.5+32768*cos(2*M_PI*(i+.125)/N)))); in clt_mdct_init()
Dfixed_debug.h774 x = MAX32(x, -32768); in SIG2WORD16_generic()
Dbands.c318 Ediff = MAX32(0, Ediff); in anti_collapse()
371 int shift = celt_zlog2(MAX32(bandE[i], bandE[i+m->nbEBands]))-13; in intensity_stereo()
/external/libopus/src/
Danalysis.c375 tonal->highE[b] = MAX32(logE[b], tonal->highE[b]-.1f); in tonality_analysis()
434 maxE = MAX32(maxE, E); in tonality_analysis()
435 tonal->meanE[b] = MAX32((1-alphaE2)*tonal->meanE[b], E); in tonality_analysis()
436 E = MAX32(E, tonal->meanE[b]); in tonality_analysis()
438 bandwidth_mask = MAX32(.05f*bandwidth_mask, E); in tonality_analysis()
451 tonal->Etracker = MAX32(tonal->Etracker-.03f, frame_loudness); in tonality_analysis()
Dopus_encoder.c910 mem->XX = MAX32(0, mem->XX); in compute_stereo_width()
911 mem->XY = MAX32(0, mem->XY); in compute_stereo_width()
912 mem->YY = MAX32(0, mem->YY); in compute_stereo_width()
913 if (MAX32(mem->XX, mem->YY)>QCONST16(8e-4f, 18)) in compute_stereo_width()
1566 rate_offset = MAX32(rate_offset, -2*st->silk_mode.bitRate/3); in opus_encode_native()
/external/speex/libspeex/
Darch.h87 #define MAX32(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 32-bit value. */ macro
Dpreprocess.c760 …st->echo_noise[i] = MAX32(MULT16_32_Q15(QCONST16(.6f,15),st->echo_noise[i]), st->residual_echo[i]); in speex_preprocess_run()
782 …st->noise[i] = MAX32(EXTEND32(0),MULT16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st-… in speex_preprocess_run()
1136 *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr)); in speex_preprocess_ctl()
1144 *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr)); in speex_preprocess_ctl()
Dltp.c636 …*cumul_gain = MULT16_32_Q13(SHL16(params->gain_cdbk[4*best_gain_index+3],8), MAX32(1024,*cumul_gai… in pitch_search_3tap()
638 *cumul_gain = 0.03125*MAX32(1024,*cumul_gain)*params->gain_cdbk[4*best_gain_index+3]; in pitch_search_3tap()
Dmdf.c1046 See = MAX32(See, SHR32(MULT16_16(N, 100),6)); in speex_echo_cancellation()