/external/libopus/celt/ |
D | celt_encoder.c | 324 maxE = MAX16(maxE, mem0); in transient_analysis() 367 tf_max = MAX16(0,celt_sqrt(27*mask_metric)-42); in transient_analysis() 369 …*tf_estimate = celt_sqrt(MAX16(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis() 393 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision() 395 spread_old[0] = MAX16(oldE[0],oldE[nbEBands]); in patch_transient_decision() 397 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision() 398 MAX16(oldE[i],oldE[i+nbEBands])); in patch_transient_decision() 401 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision() 407 x1 = MAX16(0, newE[i]); in patch_transient_decision() 408 x2 = MAX16(0, spread_old[i]); in patch_transient_decision() [all …]
|
D | quant_bands.c | 192 oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in quant_coarse_energy_impl() 203 decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay; in quant_coarse_energy_impl() 481 oldEBands[i+c*m->nbEBands] = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in unquant_coarse_energy()
|
D | pitch.c | 494 thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont); in remove_doubling() 498 thresh = MAX16(QCONST16(.4f,15), MULT16_16_Q15(QCONST16(.85f,15),g0)-cont); in remove_doubling() 500 thresh = MAX16(QCONST16(.5f,15), MULT16_16_Q15(QCONST16(.9f,15),g0)-cont); in remove_doubling()
|
D | mathops.h | 54 maxval = MAX16(maxval, x[i]); in celt_maxabs16()
|
D | arch.h | 75 #define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
|
D | bands.c | 304 prev1 = MAX16(prev1,prev1logE[m->nbEBands+i]); in anti_collapse() 305 prev2 = MAX16(prev2,prev2logE[m->nbEBands+i]); in anti_collapse()
|
D | celt_decoder.c | 776 oldBandE[i]=MAX16(oldBandE[i],oldBandE[nbEBands+i]);
|
/external/speex/libspeex/ |
D | fixed_bfin.h | 91 #undef MAX16 92 static inline spx_word16_t MAX16(spx_word16_t a, spx_word16_t b) in MAX16() function
|
D | preprocess.c | 316 x = MAX16(x, 1); in qcurve() 644 max_val = MAX16(max_val, ABS16(st->frame[i])); in preprocess_analysis() 744 beta = MAX16(QCONST16(.03,15),DIV32_16(Q15_ONE,st->nb_adapt)); in speex_preprocess_run() 807 …st->prior[i] = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,st->post[i])), MULT16_16(Q15_ONE-gam… in speex_preprocess_run() 929 st->gain[i] = MAX16(st->gain[i], st->gain_floor[i]); in speex_preprocess_run()
|
D | arch.h | 84 #define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
|
D | nb_celp.c | 1548 st->max_level = MAX16(MULT16_16_Q15(QCONST16(.99f,15), st->max_level), st->level); in nb_decode()
|
/external/libopus/src/ |
D | analysis.c | 363 band_tonality[b] = MAX16(tE/(1e-15f+E), stationarity*tonal->prev_band_tonality[b]); in tonality_analysis() 375 max_frame_tonality = MAX16(max_frame_tonality, (1.f+.03f*(b-NB_TBANDS))*frame_tonality); in tonality_analysis() 443 frame_tonality = MAX16(frame_tonality, tonal->prev_tonality*.8f); 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() 584 tonal->music_confidence += adapt*MAX16(-.2f,frame_probs[0]-tonal->music_confidence); in tonality_analysis()
|
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 | opus_multistream_encoder.c | 274 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i-1]-QCONST16(1.f, DB_SHIFT)); in surround_analysis() 276 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i+1]-QCONST16(2.f, DB_SHIFT)); in surround_analysis()
|
D | opus_encoder.c | 539 return MIN16(1,(float)sqrt(MAX16(0,.05f*(metric-2)))); in transient_boost() 915 … mem->max_follower = MAX16(mem->max_follower-QCONST16(.02f,15)/frame_rate, mem->smoothed_width); in compute_stereo_width() 1515 mask = MAX16(MIN16(st->energy_masking[21*c+i], in opus_encode_native()
|