Lines Matching defs:thr
107 float thr; ///< energy threshold
514 if (band->energy > band->thr) {
516 pe = a - log2f(band->thr);
547 float thr = band->thr;
549 if (band->energy > thr) {
550 thr = sqrtf(thr);
551 thr = sqrtf(thr) + reduction;
552 thr *= thr;
553 thr *= thr;
556 * It performs min(thr_reduced, max(thr, energy/min_snr)) only for bands
560 if (thr > band->energy * min_snr && band->avoid_holes != PSY_3GPP_AH_NONE) {
561 thr = FFMAX(band->thr, band->energy * min_snr);
566 return thr;
587 band->thr = band->energy * 0.001258925f;
642 bands[g].thr = FFMAX(bands[g].thr, bands[g-1].thr * coeffs[g].spread_hi[0]);
646 bands[g].thr = FFMAX(bands[g].thr, bands[g+1].thr * coeffs[g].spread_low[0]);
653 band->thr_quiet = band->thr = FFMAX(band->thr, coeffs[g].ath);
656 band->thr = FFMAX(PSY_3GPP_RPEMIN*band->thr, FFMIN(band->thr,
695 band->thr = calc_reduced_thr_3gpp(band, coeffs[g].min_snr, reduction);
728 band->thr = calc_reduced_thr_3gpp(band, coeffs[g].min_snr, reduction);
730 band->norm_fac = band->active_lines / band->thr;
748 float thr = band->thr;
750 thr *= exp2f(delta_sfb_pe / band->active_lines);
751 if (thr > coeffs[g].min_snr * band->energy && band->avoid_holes == PSY_3GPP_AH_INACTIVE)
752 thr = FFMAX(band->thr, coeffs[g].min_snr * band->energy);
753 band->thr = thr;
765 band->thr = band->energy * PSY_SNR_1DB;
779 psy_band->threshold = band->thr;