Home
last modified time | relevance | path

Searched refs:MIN32 (Results 1 – 21 of 21) sorted by relevance

/external/libopus/celt/
Dfixed_c6x.h58 #undef MIN32
59 #define MIN32(a,b) _lmin(a,b)
Dfixed_c5x.h54 #undef MIN32
55 #define MIN32(a,b) _lmin(a,b) macro
Dfloat_cast.h141 x = MIN32(x, 32767); in FLOAT2INT16()
Dquant_bands.c153 return MIN32(200,SHR32(dist,2*DB_SHIFT-6)); in loss_distortion()
289 max_decay = MIN32(max_decay, SHL32(EXTEND32(nbAvailableBytes),DB_SHIFT-3)); in quant_coarse_energy()
291 max_decay = MIN32(max_decay, .125f*nbAvailableBytes); in quant_coarse_energy()
Dfixed_generic.h173 x = MIN32(x, 32767); in SIG2WORD16_generic()
Dmathops.h104 minval = MIN32(minval, x[i]); in celt_maxabs32()
Darch.h99 #define MIN32(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum 32-bit value. */ macro
Dcelt_encoder.c375 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()
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()
1339 target -= (opus_int32)MIN32(MULT16_32_Q15(max_frac,target), in compute_vbr()
1776 diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); in celt_encode_with_ec()
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()
Dmodes.c379 …window[i] = MIN32(32767,floor(.5+32768.*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_… in opus_custom_mode_create()
Dbands.c230 g = celt_exp2(MIN32(32.f, lg)); in denormalise_bands()
290 thresh = MULT16_32_Q15(QCONST16(0.5f, 15), MIN32(32767,thresh32)); in anti_collapse()
330 r = MULT16_16_Q14(23170, MIN32(23169, r)); in anti_collapse()
377 minE = MIN32(Ex, Ey); in compute_channel_weights()
Dpitch.c421 return EXTRACT16(MIN32(g, Q15ONE)); in compute_pitch_gain()
Dfixed_debug.h782 x = MIN32(x, 32767); in SIG2WORD16_generic()
Dcelt_decoder.c699 E1 = MIN32(E1, E2); in celt_decode_lost()
/external/speex/libspeexdsp/
Dpreprocess.c324 …noise_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),noise_suppress))… in compute_gain_floor()
325 …gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),effective_echo… in compute_gain_floor()
334 …echo_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),effective_echo_su… in compute_gain_floor()
335 …gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),noise_suppress… in compute_gain_floor()
691 st->Smin[i] = MIN32(st->Stmp[i], st->S[i]); in update_noise_prob()
697 st->Smin[i] = MIN32(st->Smin[i], st->S[i]); in update_noise_prob()
698 st->Stmp[i] = MIN32(st->Stmp[i], st->S[i]); in update_noise_prob()
851 st->gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in speex_preprocess_run()
858 theta = MIN32(theta, EXTEND32(32767)); in speex_preprocess_run()
859 /*Q8*/tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-E… in speex_preprocess_run()
[all …]
Darch.h78 #define MIN32(a,b) ((a) < (b) ? (a) : (b)) /**< Maximum 32-bit value. */ macro
Dmdf.c366 tmp = MIN32(ABS32(tmp), 536870912); in mdf_adjust_prop()
/external/libopus/src/
Danalysis.c573 float tt = MIN32(tonality2[i], MAX32(tonality2[i-1], tonality2[i+1])); in tonality_analysis()
655 tonal->highE[b] = MIN32(tonal->lowE[b]+15, tonal->highE[b]); in tonality_analysis()
733 mindist = MIN32(mindist, dist); in tonality_analysis()
Dopus_multistream_encoder.c336 maskLogE[1][i] = MIN32(maskLogE[0][i],maskLogE[2][i]); in surround_analysis()
Dopus_encoder.c704 mem->XY = MIN32(mem->XY, sqrt_xx*sqrt_yy); in compute_stereo_width()
715 return EXTRACT16(MIN32(Q15ONE, MULT16_16(20, mem->max_follower))); in compute_stereo_width()
/external/libopus/doc/
Dopus_update.patch47 + lg = MIN32(QCONST32(32.f, 16), lg);