Home
last modified time | relevance | path

Searched refs:MIN16 (Results 1 – 14 of 14) 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.c400 …*tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis()
818 sum = MIN16(QCONST16(1.f, 10), ABS16(sum)); in alloc_trim_analysis()
825 minXC = MIN16(minXC, ABS16(EXTRACT16(SHR32(partial, 18)))); in alloc_trim_analysis()
827 minXC = MIN16(QCONST16(1.f, 10), ABS16(minXC)); in alloc_trim_analysis()
840 *stereo_saving = MIN16(*stereo_saving + QCONST16(0.25f, 8), -HALF16(logXC2)); in alloc_trim_analysis()
858 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), in alloc_trim_analysis()
939 return MIN16(t2, t3); in median_of_5()
941 return MIN16(t4, t1); in median_of_5()
944 return MIN16(t1, t3); in median_of_5()
946 return MIN16(t2, t4); in median_of_5()
[all …]
Dmathops.c148 …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.h97 #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.c1151 backgroundLogE[i] = MIN16(backgroundLogE[i] + max_background_increase, oldBandE[i]);
1154 oldLogE[i] = MIN16(oldLogE[i], oldBandE[i]);
/external/libopus/src/
Danalysis.c359 prob_min = MIN16((prob_avg - TRANSITION_PENALTY*(vad_prob - pos_vad))/prob_count, prob_min); in tonality_get_info()
365 prob_min = MIN16(prob_avg/prob_count, prob_min); in tonality_get_info()
368 prob_max = MIN16(prob_max, 1.f); in tonality_get_info()
383 pmin = MIN16(pmin, tonal->info[pos].music_prob); in tonality_get_info()
388 pmax = MIN16(1.f, pmax + .1f*vad_prob); in tonality_get_info()
666 stationarity = MIN16(0.99f,L1/(float)sqrt(1e-15+NB_FRAMES*L2)); in tonality_analysis()
694 leakage_from[b] = MIN16(leakage_from[b-1]+leak_slope, band_log2[b]); in tonality_analysis()
700 leakage_from[b] = MIN16(leakage_from[b+1]+leak_slope, leakage_from[b]); 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.c1728 mask = MAX16(MIN16(st->energy_masking[21*c+i], in opus_encode_native()
/external/speex/libspeexdsp/
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.h75 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
Dpreprocess.c797 st->post[i]=MIN16(st->post[i], QCONST16(100.f,SNR_SHIFT)); in speex_preprocess_run()
804 st->prior[i]=MIN16(st->prior[i], QCONST16(100.f,SNR_SHIFT)); in speex_preprocess_run()
860 tmp = MIN16(QCONST16(3.,SNR_SHIFT), tmp); /* Prevent overflows in the next line*/ in speex_preprocess_run()