/external/libopus/celt/ |
D | celt_encoder.c | 305 shift = 14-celt_ilog2(MAX16(1, celt_maxabs16(tmp, len))); in transient_analysis() 344 maxE = MAX16(maxE, mem0); in transient_analysis() 398 tf_max = MAX16(0,celt_sqrt(27*mask_metric)-42); in transient_analysis() 424 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision() 426 spread_old[start] = MAX16(oldE[start],oldE[start+nbEBands]); in patch_transient_decision() 428 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision() 429 MAX16(oldE[i],oldE[i+nbEBands])); in patch_transient_decision() 432 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision() 438 x1 = MAX16(0, newE[i + c*nbEBands]); in patch_transient_decision() 439 x2 = MAX16(0, spread_old[i]); in patch_transient_decision() [all …]
|
D | fixed_c6x.h | 49 #undef MAX16 50 #define MAX16(a,b) _max(a,b)
|
D | fixed_c5x.h | 45 #undef MAX16 46 #define MAX16(a,b) _max(a,b) macro
|
D | pitch.c | 500 thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont); in remove_doubling() 504 thresh = MAX16(QCONST16(.4f,15), MULT16_16_Q15(QCONST16(.85f,15),g0)-cont); in remove_doubling() 506 thresh = MAX16(QCONST16(.5f,15), MULT16_16_Q15(QCONST16(.9f,15),g0)-cont); in remove_doubling()
|
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() 482 oldEBands[i+c*m->nbEBands] = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in unquant_coarse_energy()
|
D | mathops.h | 87 maxval = MAX16(maxval, x[i]); in celt_maxabs16()
|
D | arch.h | 98 #define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
|
D | celt_decoder.c | 560 … oldBandE[c*nbEBands+i] = MAX16(backgroundLogE[c*nbEBands+i], oldBandE[c*nbEBands+i] - decay); in celt_decode_lost() 950 oldBandE[i]=MAX16(oldBandE[i],oldBandE[nbEBands+i]);
|
D | bands.c | 315 prev1 = MAX16(prev1,prev1logE[m->nbEBands+i]); in anti_collapse() 316 prev2 = MAX16(prev2,prev2logE[m->nbEBands+i]); in anti_collapse()
|
/external/libopus/src/ |
D | analysis.c | 343 prob_count = MAX16(.1f, vad_prob); in tonality_get_info() 344 prob_avg = MAX16(.1f, vad_prob)*tonal->info[mpos].music_prob; in tonality_get_info() 360 prob_max = MAX16((prob_avg + TRANSITION_PENALTY*(vad_prob - pos_vad))/prob_count, prob_max); in tonality_get_info() 361 prob_count += MAX16(.1f, pos_vad); in tonality_get_info() 362 prob_avg += MAX16(.1f, pos_vad)*tonal->info[mpos].music_prob; in tonality_get_info() 366 prob_max = MAX16(prob_avg/prob_count, prob_max); in tonality_get_info() 367 prob_min = MAX16(prob_min, 0.f); in tonality_get_info() 384 pmax = MAX16(pmax, tonal->info[pos].music_prob); in tonality_get_info() 387 pmin = MAX16(0.f, pmin - .1f*vad_prob); in tonality_get_info() 671 band_tonality[b] = MAX16(tE/(1e-15f+E), stationarity*tonal->prev_band_tonality[b]); in tonality_analysis() [all …]
|
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_multistream_encoder.c | 306 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i-1]-QCONST16(1.f, DB_SHIFT)); in surround_analysis() 308 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 | 712 … mem->max_follower = MAX16(mem->max_follower-QCONST16(.02f,15)/frame_rate, mem->smoothed_width); in compute_stereo_width() 1728 mask = MAX16(MIN16(st->energy_masking[21*c+i], in opus_encode_native()
|
/external/speex/libspeexdsp/ |
D | fixed_bfin.h | 93 #undef MAX16 94 static inline spx_word16_t MAX16(spx_word16_t a, spx_word16_t b) in MAX16() function
|
D | preprocess.c | 312 x = MAX16(x, 1); in qcurve() 640 max_val = MAX16(max_val, ABS16(st->frame[i])); in preprocess_analysis() 740 beta = MAX16(QCONST16(.03,15),DIV32_16(Q15_ONE,st->nb_adapt)); in speex_preprocess_run() 803 …st->prior[i] = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,st->post[i])), MULT16_16(Q15_ONE-gam… in speex_preprocess_run() 925 st->gain[i] = MAX16(st->gain[i], st->gain_floor[i]); in speex_preprocess_run()
|
D | arch.h | 76 #define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
|