Lines Matching defs:thr
104 float thr; ///< energy threshold
507 if (band->energy > band->thr) {
509 pe = a - log2f(band->thr);
537 float thr = band->thr;
539 if (band->energy > thr) {
540 thr = powf(thr, 0.25f) + reduction;
541 thr = powf(thr, 4.0f);
544 * It performs min(thr_reduced, max(thr, energy/min_snr)) only for bands
548 if (thr > band->energy * min_snr && band->avoid_holes != PSY_3GPP_AH_NONE) {
549 thr = FFMAX(band->thr, band->energy * min_snr);
554 return thr;
586 band->thr = band->energy * 0.001258925f;
599 bands[g].thr = FFMAX(bands[g].thr, bands[g-1].thr * coeffs[g].spread_hi[0]);
603 bands[g].thr = FFMAX(bands[g].thr, bands[g+1].thr * coeffs[g].spread_low[0]);
610 band->thr_quiet = band->thr = FFMAX(band->thr, coeffs[g].ath);
613 band->thr = FFMAX(PSY_3GPP_RPEMIN*band->thr, FFMIN(band->thr,
652 band->thr = calc_reduced_thr_3gpp(band, coeffs[g].min_snr, reduction);
685 band->thr = calc_reduced_thr_3gpp(band, coeffs[g].min_snr, reduction);
687 band->norm_fac = band->active_lines / band->thr;
705 float thr = band->thr;
707 thr *= powf(2.0f, delta_sfb_pe / band->active_lines);
708 if (thr > coeffs[g].min_snr * band->energy && band->avoid_holes == PSY_3GPP_AH_INACTIVE)
709 thr = FFMAX(band->thr, coeffs[g].min_snr * band->energy);
710 band->thr = thr;
722 band->thr = band->energy * PSY_SNR_1DB;
736 psy_band->threshold = band->thr;