Home
last modified time | relevance | path

Searched refs:MAX32 (Results 1 – 15 of 15) 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()
238 maxcorr = MAX32(maxcorr, sum);
273 sum[0] = MAX32(sum[0], sum[1]); in celt_pitch_xcorr_c()
274 sum[2] = MAX32(sum[2], sum[3]); in celt_pitch_xcorr_c()
275 sum[0] = MAX32(sum[0], sum[2]); in celt_pitch_xcorr_c()
276 maxcorr = MAX32(maxcorr, sum[0]); in celt_pitch_xcorr_c()
287 maxcorr = MAX32(maxcorr, sum); in celt_pitch_xcorr_c()
331 shift = celt_ilog2(MAX32(1, MAX32(xmax, ymax)))-11; in pitch_search()
370 xcorr[i] = MAX32(-1, sum); in pitch_search()
[all …]
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()
Darch.h78 #define MAX32(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 32-bit value. */ macro
Drate.c444 excess = MAX32(bit-cap[j],0); in interp_bits2pulses()
486 excess = MAX32(0,bit-(C<<BITRES)); in interp_bits2pulses()
Dbands.c108 maxval = MAX32(maxval, X[j+c*N]); in compute_band_energies()
109 maxval = MAX32(maxval, -X[j+c*N]); in compute_band_energies()
308 Ediff = MAX32(0, Ediff); in anti_collapse()
361 int shift = celt_zlog2(MAX32(bandE[i], bandE[i+m->nbEBands]))-13; in intensity_stereo()
Dcelt_encoder.c498 inp[i*upsample] = MAX32(-65536.f, MIN32(65536.f,inp[i*upsample])); in celt_preemphasis()
1445 sample_max=MAX32(st->overlap_max, celt_maxabs16(pcm, C*(N-overlap)/st->upsample)); in celt_encode_with_ec()
1447 sample_max=MAX32(sample_max, st->overlap_max); in celt_encode_with_ec()
1555 bandE[i] = MAX32(bandE[i], EPSILON); in celt_encode_with_ec()
1592 diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); in celt_encode_with_ec()
Dcelt_decoder.c182 x = MAX32(x, -32768); in SIG2WORD16()
/external/libopus/src/
Danalysis.c343 tonal->highE[b] = MAX32(logE[b], tonal->highE[b]-.1f); in tonality_analysis()
402 maxE = MAX32(maxE, E); in tonality_analysis()
403 tonal->meanE[b] = MAX32((1-alphaE2)*tonal->meanE[b], E); in tonality_analysis()
404 E = MAX32(E, tonal->meanE[b]); in tonality_analysis()
406 bandwidth_mask = MAX32(.05f*bandwidth_mask, E); in tonality_analysis()
419 tonal->Etracker = MAX32(tonal->Etracker-.03f, frame_loudness); in tonality_analysis()
Dopus_encoder.c897 mem->XX = MAX32(0, mem->XX); in compute_stereo_width()
898 mem->XY = MAX32(0, mem->XY); in compute_stereo_width()
899 mem->YY = MAX32(0, mem->YY); in compute_stereo_width()
900 if (MAX32(mem->XX, mem->YY)>QCONST16(8e-4f, 18)) in compute_stereo_width()
1526 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()