Home
last modified time | relevance | path

Searched refs:MAX16 (Results 1 – 22 of 22) sorted by relevance

/external/libopus/celt/
Dcelt_encoder.c305 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 …]
Dfixed_c6x.h49 #undef MAX16
50 #define MAX16(a,b) _max(a,b)
Dfixed_c5x.h45 #undef MAX16
46 #define MAX16(a,b) _max(a,b) macro
Dpitch.c500 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()
Dquant_bands.c192 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()
Dmathops.h87 maxval = MAX16(maxval, x[i]); in celt_maxabs16()
Darch.h101 #define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
Dcelt_decoder.c566 … oldBandE[c*nbEBands+i] = MAX16(backgroundLogE[c*nbEBands+i], oldBandE[c*nbEBands+i] - decay); in celt_decode_lost()
956 oldBandE[i]=MAX16(oldBandE[i],oldBandE[nbEBands+i]);
Dbands.c315 prev1 = MAX16(prev1,prev1logE[m->nbEBands+i]); in anti_collapse()
316 prev2 = MAX16(prev2,prev2logE[m->nbEBands+i]); in anti_collapse()
/external/libopus/src/
Danalysis.c356 prob_count = MAX16(.1f, vad_prob); in tonality_get_info()
357 prob_avg = MAX16(.1f, vad_prob)*tonal->info[mpos].music_prob; in tonality_get_info()
373 prob_max = MAX16((prob_avg + TRANSITION_PENALTY*(vad_prob - pos_vad))/prob_count, prob_max); in tonality_get_info()
374 prob_count += MAX16(.1f, pos_vad); in tonality_get_info()
375 prob_avg += MAX16(.1f, pos_vad)*tonal->info[mpos].music_prob; in tonality_get_info()
379 prob_max = MAX16(prob_avg/prob_count, prob_max); in tonality_get_info()
380 prob_min = MAX16(prob_min, 0.f); in tonality_get_info()
397 pmax = MAX16(pmax, tonal->info[pos].music_prob); in tonality_get_info()
400 pmin = MAX16(0.f, pmin - .1f*vad_prob); in tonality_get_info()
710 band_tonality[b] = MAX16(tE/(1e-15f+E), stationarity*tonal->prev_band_tonality[b]); in tonality_analysis()
[all …]
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_multistream_encoder.c306 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()
Dopus_encoder.c712 … mem->max_follower = MAX16(mem->max_follower-QCONST16(.02f,15)/frame_rate, mem->smoothed_width); in compute_stereo_width()
1716 mask = MAX16(MIN16(st->energy_masking[21*c+i], in opus_encode_native()
/external/speex/libspeexdsp/
Dfixed_bfin.h93 #undef MAX16
94 static inline spx_word16_t MAX16(spx_word16_t a, spx_word16_t b) in MAX16() function
Dpreprocess.c312 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()
Darch.h76 #define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro
/external/mtools/
Dminfo.c43 if(WORD(ext.fat32.infoSector) == MAX16) in displayInfosector()
109 if(WORD(ext.fat32.infoSector) != MAX16) in displayBPB()
112 if(WORD(ext.fat32.backupBoot) != MAX16) in displayBPB()
Dmsdos.h61 #define MAX16 0xffff macro
Dmformat.c1526 if(Fs.fat_bits == 32 && WORD_S(ext.fat32.backupBoot) != MAX16) { in mformat()
/external/rnnoise/src/
Ddenoise.c353 Ly[i] = MAX16(logMax-7, MAX16(follow-1.5, Ly[i])); in compute_frame_features()
354 logMax = MAX16(logMax, Ly[i]); in compute_frame_features()
355 follow = MAX16(follow-1.5, Ly[i]); in compute_frame_features()
431 r[i] = MIN16(1, MAX16(0, r[i])); in pitch_filter()
435 r[i] = sqrt(MIN16(1, MAX16(0, r[i]))); in pitch_filter()
480 g[i] = MAX16(g[i], alpha*st->lastg[i]); in rnnoise_process_frame()
Dpitch.c490 thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont); in remove_doubling()
494 thresh = MAX16(QCONST16(.4f,15), MULT16_16_Q15(QCONST16(.85f,15),g0)-cont); in remove_doubling()
496 thresh = MAX16(QCONST16(.5f,15), MULT16_16_Q15(QCONST16(.9f,15),g0)-cont); in remove_doubling()
Darch.h73 #define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ macro