/external/libopus/celt/ |
D | pitch.c | 101 Syy = MAX32(1, Syy); in find_best_pitch() 155 maxabs = MAX32(maxabs, maxabs_1); in pitch_downsample() 236 maxcorr = MAX32(maxcorr, sum); in celt_pitch_xcorr_c() 262 sum[0] = MAX32(sum[0], sum[1]); in celt_pitch_xcorr_c() 263 sum[2] = MAX32(sum[2], sum[3]); in celt_pitch_xcorr_c() 264 sum[0] = MAX32(sum[0], sum[2]); in celt_pitch_xcorr_c() 265 maxcorr = MAX32(maxcorr, sum[0]); in celt_pitch_xcorr_c() 275 maxcorr = MAX32(maxcorr, sum); in celt_pitch_xcorr_c() 319 shift = celt_ilog2(MAX32(1, MAX32(xmax, ymax)))-11; in pitch_search() 363 xcorr[i] = MAX32(-1, sum); in pitch_search() [all …]
|
D | fixed_c6x.h | 55 #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…
|
D | fixed_c5x.h | 51 #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…
|
D | mathops.h | 90 return MAX32(EXTEND32(maxval),-EXTEND32(minval)); in celt_maxabs16() 103 maxval = MAX32(maxval, x[i]); in celt_maxabs32() 106 return MAX32(maxval, -minval); in celt_maxabs32()
|
D | float_cast.h | 140 x = MAX32(x, -32768); in FLOAT2INT16()
|
D | quant_bands.c | 197 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() 485 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp); in unquant_coarse_energy()
|
D | celt_encoder.c | 375 id = MAX32(0,MIN32(127,MULT16_32_Q15(tmp[i]+EPSILON,norm))); /* Do not round to nearest */ in transient_analysis() 377 … id = (int)MAX32(0,MIN32(127,floor(64*norm*(tmp[i]+EPSILON)))); /* Do not round to nearest */ 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() 535 inp[i*upsample] = MAX32(-65536.f, MIN32(65536.f,inp[i*upsample])); in celt_preemphasis() 852 …trim -= MAX32(-QCONST16(2.f, 8), MIN32(QCONST16(2.f, 8), SHR32(diff+QCONST16(1.f, DB_SHIFT),DB_SHI… in alloc_trim_analysis() 1618 sample_max=MAX32(st->overlap_max, celt_maxabs16(pcm, C*(N-overlap)/st->upsample)); in celt_encode_with_ec() 1620 sample_max=MAX32(sample_max, st->overlap_max); in celt_encode_with_ec() 1739 bandE[i] = MAX32(bandE[i], EPSILON); in celt_encode_with_ec() 1776 diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); in celt_encode_with_ec()
|
D | fixed_generic.h | 172 x = MAX32(x, -32768); in SIG2WORD16_generic()
|
D | rate.c | 449 excess = MAX32(bit-cap[j],0); in interp_bits2pulses() 492 excess = MAX32(0,bit-(C<<BITRES)); in interp_bits2pulses()
|
D | arch.h | 100 #define MAX32(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 32-bit value. */ macro
|
D | mdct.c | 94 … trig[i] = (kiss_twiddle_scalar)MAX32(-32767,MIN32(32767,floor(.5+32768*cos(2*M_PI*(i+.125)/N)))); in clt_mdct_init()
|
D | bands.c | 319 Ediff = MAX32(0, Ediff); in anti_collapse() 382 shift = celt_ilog2(EPSILON+MAX32(Ex, Ey))-14; in compute_channel_weights() 396 int shift = celt_zlog2(MAX32(bandE[i], bandE[i+m->nbEBands]))-13; in intensity_stereo()
|
D | fixed_debug.h | 781 x = MAX32(x, -32768); in SIG2WORD16_generic()
|
/external/libopus/src/ |
D | analysis.c | 277 tonality_max = MAX32(tonality_max, tonal->info[pos].tonality); in tonality_get_info() 294 info_out->tonality = MAX32(tonality_avg/tonality_count, tonality_max-.2f); in tonality_get_info() 573 float tt = MIN32(tonality2[i], MAX32(tonality2[i-1], tonality2[i+1])); in tonality_analysis() 574 tonality[i] = .9f*MAX32(tonality[i], tt-.1f); in tonality_analysis() 619 tE += binE*MAX32(0, tonality[i]); in tonality_analysis() 651 tonal->lowE[b] = MAX32(tonal->highE[b]-15, tonal->lowE[b]); in tonality_analysis() 760 maxE = MAX32(maxE, E); in tonality_analysis() 767 tonal->meanE[b] = MAX32((1-alphaE2)*tonal->meanE[b], E); in tonality_analysis() 768 Em = MAX32(E, tonal->meanE[b]); in tonality_analysis() 780 bandwidth_mask = MAX32(.05f*bandwidth_mask, E); in tonality_analysis() [all …]
|
D | opus_encoder.c | 691 mem->XX = MAX32(0, mem->XX); in compute_stereo_width() 692 mem->XY = MAX32(0, mem->XY); in compute_stereo_width() 693 mem->YY = MAX32(0, mem->YY); in compute_stereo_width() 694 if (MAX32(mem->XX, mem->YY)>QCONST16(8e-4f, 18)) 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() 1739 rate_offset = MAX32(rate_offset, -2*st->silk_mode.bitRate/3); in opus_encode_native()
|
D | opus_multistream_encoder.c | 301 bandE[i] = MAX32(bandE[i], tmpE[i]); in surround_analysis()
|
/external/speex/libspeexdsp/ |
D | arch.h | 79 #define MAX32(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 32-bit value. */ macro
|
D | preprocess.c | 756 …st->echo_noise[i] = MAX32(MULT16_32_Q15(QCONST16(.6f,15),st->echo_noise[i]), st->residual_echo[i]); in speex_preprocess_run() 778 …st->noise[i] = MAX32(EXTEND32(0),MULT16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st-… in speex_preprocess_run() 1131 *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr)); in speex_preprocess_ctl() 1139 *(spx_int32_t*)ptr = MIN32(100,MAX32(0, *(spx_int32_t*)ptr)); in speex_preprocess_ctl()
|
D | mdf.c | 1046 See = MAX32(See, SHR32(MULT16_16(N, 100),6)); in speex_echo_cancellation()
|