Home
last modified time | relevance | path

Searched refs:MIN16 (Results 1 – 15 of 15) sorted by relevance

/external/libopus/celt/
Dfixed_c6x.h52 #undef MIN16
53 #define MIN16(a,b) _min(a,b)
Dfixed_c5x.h48 #undef MIN16
49 #define MIN16(a,b) _min(a,b) macro
Dcelt_encoder.c366 …*tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis()
778 sum = MIN16(QCONST16(1.f, 10), ABS16(sum)); in alloc_trim_analysis()
785 minXC = MIN16(minXC, ABS16(EXTRACT16(SHR32(partial, 18)))); in alloc_trim_analysis()
787 minXC = MIN16(QCONST16(1.f, 10), ABS16(minXC)); in alloc_trim_analysis()
800 *stereo_saving = MIN16(*stereo_saving + QCONST16(0.25f, 8), -HALF16(logXC2)); in alloc_trim_analysis()
812 …trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHI… in alloc_trim_analysis()
818 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), in alloc_trim_analysis()
899 return MIN16(t2, t3); in median_of_5()
901 return MIN16(t4, t1); in median_of_5()
904 return MIN16(t1, t3); in median_of_5()
[all …]
Dmathops.c147 …return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32… in _celt_cos_pi_2()
Dmathops.h55 minval = MIN16(minval, x[i]); in celt_maxabs16()
Darch.h72 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum 16-bit value. */ macro
Dbands.c317 Ediff = EXTEND32(logE[c*m->nbEBands+i])-EXTEND32(MIN16(prev1,prev2)); in anti_collapse()
324 r = 2*MIN16(16383,r32); in anti_collapse()
330 r = SHR16(MIN16(thresh, r),1); in anti_collapse()
338 r = MIN16(thresh, r); in anti_collapse()
Dcelt_decoder.c1047 backgroundLogE[i] = MIN16(backgroundLogE[i] + max_background_increase, oldBandE[i]);
1050 oldLogE[i] = MIN16(oldLogE[i], oldBandE[i]);
/external/libopus/src/
Dopus.c49 _x[i] = MAX16(-2.f, MIN16(2.f, _x[i])); in opus_pcm_soft_clip()
128 x[i*C] = MAX16(-1.f, MIN16(1.f, x[i*C])); in opus_pcm_soft_clip()
Danalysis.c390 stationarity = MIN16(0.99f,L1/(float)sqrt(1e-15+NB_FRAMES*L2)); in tonality_analysis()
548 p = MAX16(.05f,MIN16(.95f,frame_probs[0])); in tonality_analysis()
549 q = MAX16(.05f,MIN16(.95f,tonal->music_prob)); in tonality_analysis()
620 tonal->speech_confidence += adapt*MIN16(.2f,frame_probs[0]-tonal->speech_confidence); in tonality_analysis()
Dopus_encoder.c545 return MIN16(1,(float)sqrt(MAX16(0,.05f*(metric-2)))); in transient_boost()
1555 mask = MAX16(MIN16(st->energy_masking[21*c+i], in opus_encode_native()
/external/speex/libspeex/
Dmath_approx.h213 …return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32… in _spx_cos_pi_2()
Darch.h83 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
Dpreprocess.c801 st->post[i]=MIN16(st->post[i], QCONST16(100.f,SNR_SHIFT)); in speex_preprocess_run()
808 st->prior[i]=MIN16(st->prior[i], QCONST16(100.f,SNR_SHIFT)); in speex_preprocess_run()
864 tmp = MIN16(QCONST16(3.,SNR_SHIFT), tmp); /* Prevent overflows in the next line*/ in speex_preprocess_run()
Dnb_celp.c1549 st->min_level = MIN16(ADD16(1,MULT16_16_Q14(QCONST16(1.01f,14), st->min_level)), st->level); in nb_decode()