Searched refs:MIN16 (Results 1 – 14 of 14) sorted by relevance
/external/libopus/celt/ |
D | fixed_c6x.h | 52 #undef MIN16 53 #define MIN16(a,b) _min(a,b)
|
D | fixed_c5x.h | 48 #undef MIN16 49 #define MIN16(a,b) _min(a,b) macro
|
D | celt_encoder.c | 400 …*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 …]
|
D | mathops.c | 148 …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()
|
D | mathops.h | 88 minval = MIN16(minval, x[i]); in celt_maxabs16()
|
D | arch.h | 97 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum 16-bit value. */ macro
|
D | bands.c | 318 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()
|
D | celt_decoder.c | 1151 backgroundLogE[i] = MIN16(backgroundLogE[i] + max_background_increase, oldBandE[i]); 1154 oldLogE[i] = MIN16(oldLogE[i], oldBandE[i]);
|
/external/libopus/src/ |
D | analysis.c | 359 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()
|
D | opus.c | 49 _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()
|
D | opus_encoder.c | 1728 mask = MAX16(MIN16(st->energy_masking[21*c+i], in opus_encode_native()
|
/external/speex/libspeexdsp/ |
D | math_approx.h | 213 …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()
|
D | arch.h | 75 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
|
D | preprocess.c | 797 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()
|