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.c394 …*tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis()
812 sum = MIN16(QCONST16(1.f, 10), ABS16(sum)); in alloc_trim_analysis()
819 minXC = MIN16(minXC, ABS16(EXTRACT16(SHR32(partial, 18)))); in alloc_trim_analysis()
821 minXC = MIN16(QCONST16(1.f, 10), ABS16(minXC)); in alloc_trim_analysis()
834 *stereo_saving = MIN16(*stereo_saving + QCONST16(0.25f, 8), -HALF16(logXC2)); in alloc_trim_analysis()
852 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), in alloc_trim_analysis()
933 return MIN16(t2, t3); in median_of_5()
935 return MIN16(t4, t1); in median_of_5()
938 return MIN16(t1, t3); in median_of_5()
940 return MIN16(t2, t4); 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.h88 minval = MIN16(minval, x[i]); in celt_maxabs16()
Darch.h80 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum 16-bit value. */ macro
Dbands.c318 Ediff = EXTEND32(logE[c*m->nbEBands+i])-EXTEND32(MIN16(prev1,prev2)); in anti_collapse()
325 r = 2*MIN16(16383,r32); in anti_collapse()
331 r = SHR16(MIN16(thresh, r),1); in anti_collapse()
339 r = MIN16(thresh, r); in anti_collapse()
Dcelt_decoder.c1119 backgroundLogE[i] = MIN16(backgroundLogE[i] + max_background_increase, oldBandE[i]);
1122 oldLogE[i] = MIN16(oldLogE[i], oldBandE[i]);
/external/libopus/src/
Danalysis.c558 stationarity = MIN16(0.99f,L1/(float)sqrt(1e-15+NB_FRAMES*L2)); in tonality_analysis()
586 leakage_from[b] = MIN16(leakage_from[b-1]+leak_slope, band_log2[b]); in tonality_analysis()
592 leakage_from[b] = MIN16(leakage_from[b+1]+leak_slope, leakage_from[b]); in tonality_analysis()
795 p = MAX16(.05f,MIN16(.95f,frame_probs[1])); in tonality_analysis()
796 q = MAX16(.05f,MIN16(.95f,tonal->vad_prob)); in tonality_analysis()
816 p = MAX16(.05f,MIN16(.95f,frame_probs[0])); in tonality_analysis()
817 q = MAX16(.05f,MIN16(.95f,tonal->music_prob)); in tonality_analysis()
892 tonal->speech_confidence += adapt*MIN16(.2f,frame_probs[0]-tonal->speech_confidence); in tonality_analysis()
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()
Dopus_encoder.c1712 mask = MAX16(MIN16(st->energy_masking[21*c+i], in opus_encode_native()
/external/speex/libspeex/
Darch.h83 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
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()
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()