Searched refs:MIN16 (Results 1 – 13 of 13) sorted by relevance
/external/libopus/celt/ |
D | celt_encoder.c | 369 …*tf_estimate = celt_sqrt(MAX16(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis() 779 sum = MIN16(QCONST16(1.f, 10), ABS16(sum)); in alloc_trim_analysis() 787 minXC = MIN16(minXC, ABS16(EXTRACT16(SHR32(partial, 18)))); in alloc_trim_analysis() 789 minXC = MIN16(QCONST16(1.f, 10), ABS16(minXC)); in alloc_trim_analysis() 810 *stereo_saving = MIN16(*stereo_saving + QCONST16(0.25f, 8), -HALF16(logXC2)); in alloc_trim_analysis() 830 …trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHI… in alloc_trim_analysis() 836 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), in alloc_trim_analysis() 933 …follower[c*nbEBands+i] = MIN16(follower[c*nbEBands+i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBa… in dynalloc_analysis() 936 …follower[c*nbEBands+i] = MIN16(follower[c*nbEBands+i], MIN16(follower[c*nbEBands+i+1]+QCONST16(2.f… in dynalloc_analysis() 973 follower[i] = MIN16(follower[i], QCONST16(4, DB_SHIFT)); in dynalloc_analysis() [all …]
|
D | mathops.c | 147 …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 | arch.h | 74 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum 16-bit value. */ macro
|
D | mathops.h | 55 minval = MIN16(minval, x[i]); in celt_maxabs16()
|
D | bands.c | 307 Ediff = EXTEND32(logE[c*m->nbEBands+i])-EXTEND32(MIN16(prev1,prev2)); in anti_collapse() 314 r = 2*MIN16(16383,r32); in anti_collapse() 320 r = SHR16(MIN16(thresh, r),1); in anti_collapse() 328 r = MIN16(thresh, r); in anti_collapse()
|
D | celt_decoder.c | 994 backgroundLogE[i] = MIN16(backgroundLogE[i] + M*QCONST16(0.001f,DB_SHIFT), oldBandE[i]); 997 oldLogE[i] = MIN16(oldLogE[i], oldBandE[i]);
|
/external/libopus/src/ |
D | opus.c | 49 _x[i] = MAX16(-2.f, MIN16(2.f, _x[i])); in opus_pcm_soft_clip() 124 x[i*C] = MAX16(-1.f, MIN16(1.f, x[i*C])); in opus_pcm_soft_clip()
|
D | analysis.c | 358 stationarity = MIN16(0.99f,L1/(float)sqrt(1e-15+NB_FRAMES*L2)); in tonality_analysis() 518 p = MAX16(.05f,MIN16(.95f,frame_probs[0])); in tonality_analysis() 519 q = MAX16(.05f,MIN16(.95f,tonal->music_prob)); in tonality_analysis() 591 tonal->speech_confidence += adapt*MIN16(.2f,frame_probs[0]-tonal->speech_confidence); in tonality_analysis()
|
D | opus_encoder.c | 539 return MIN16(1,(float)sqrt(MAX16(0,.05f*(metric-2)))); in transient_boost() 1515 mask = MAX16(MIN16(st->energy_masking[21*c+i], in opus_encode_native()
|
/external/speex/libspeex/ |
D | arch.h | 83 #define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
|
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 | preprocess.c | 801 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()
|
D | nb_celp.c | 1549 st->min_level = MIN16(ADD16(1,MULT16_16_Q14(QCONST16(1.01f,14), st->min_level)), st->level); in nb_decode()
|