Home
last modified time | relevance | path

Searched refs:MIN32 (Results 1 – 20 of 20) 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.h135 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()
Dmathops.h71 minval = MIN32(minval, x[i]); in celt_maxabs32()
Dfixed_generic.h162 x = MIN32(x, 32767); in SIG2WORD16_generic()
Darch.h74 #define MIN32(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum 32-bit value. */ macro
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()
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()
501 inp[i*upsample] = MAX32(-65536.f, MIN32(65536.f,inp[i*upsample])); in celt_preemphasis()
1234 target -= (opus_int32)MIN32(MULT16_32_Q15(max_frac,target), in compute_vbr()
1666 diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); in celt_encode_with_ec()
Dpitch.c441 return EXTRACT16(MIN32(g, Q15ONE)); in compute_pitch_gain()
Dfixed_debug.h775 x = MIN32(x, 32767); in SIG2WORD16_generic()
Dbands.c289 thresh = MULT16_32_Q15(QCONST16(0.5f, 15), MIN32(32767,thresh32)); in anti_collapse()
329 r = MULT16_16_Q14(23170, MIN32(23169, r)); in anti_collapse()
Dcelt_decoder.c600 E1 = MIN32(E1, E2); in celt_decode_lost()
/external/speex/libspeex/
Dpreprocess.c328 …noise_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),noise_suppress))… in compute_gain_floor()
329 …gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),effective_echo… in compute_gain_floor()
338 …echo_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),effective_echo_su… in compute_gain_floor()
339 …gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),noise_suppress… in compute_gain_floor()
695 st->Smin[i] = MIN32(st->Stmp[i], st->S[i]); in update_noise_prob()
701 st->Smin[i] = MIN32(st->Smin[i], st->S[i]); in update_noise_prob()
702 st->Stmp[i] = MIN32(st->Stmp[i], st->S[i]); in update_noise_prob()
855 st->gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in speex_preprocess_run()
862 theta = MIN32(theta, EXTEND32(32767)); in speex_preprocess_run()
863 /*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.h86 #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.c374 tonal->lowE[b] = MIN32(logE[b], tonal->lowE[b]+.01f); in tonality_analysis()
Dopus_multistream_encoder.c332 maskLogE[1][i] = MIN32(maskLogE[0][i],maskLogE[2][i]); in surround_analysis()
Dopus_encoder.c923 mem->XY = MIN32(mem->XY, sqrt_xx*sqrt_yy); in compute_stereo_width()
934 return EXTRACT16(MIN32(Q15ONE, MULT16_16(20, mem->max_follower))); in compute_stereo_width()