Lines Matching refs:thr
110 float thr; ///< energy threshold
544 if (band->energy > band->thr) {
546 pe = a - log2f(band->thr);
577 float thr = band->thr;
579 if (band->energy > thr) {
580 thr = sqrtf(thr);
581 thr = sqrtf(thr) + reduction;
582 thr *= thr;
583 thr *= thr;
586 * It performs min(thr_reduced, max(thr, energy/min_snr)) only for bands
590 if (thr > band->energy * min_snr && band->avoid_holes != PSY_3GPP_AH_NONE) {
591 thr = FFMAX(band->thr, band->energy * min_snr);
596 return thr;
620 band->thr = band->energy * 0.001258925f;
678 bands[g].thr = FFMAX(bands[g].thr, bands[g-1].thr * coeffs[g].spread_hi[0]);
682 bands[g].thr = FFMAX(bands[g].thr, bands[g+1].thr * coeffs[g].spread_low[0]);
689 band->thr_quiet = band->thr = FFMAX(band->thr, coeffs[g].ath);
692 band->thr = FFMAX(PSY_3GPP_RPEMIN*band->thr, FFMIN(band->thr,
751 band->thr = calc_reduced_thr_3gpp(band, coeffs[g].min_snr, reduction);
784 band->thr = calc_reduced_thr_3gpp(band, coeffs[g].min_snr, reduction);
786 if (band->thr > 0.0f)
787 band->norm_fac = band->active_lines / band->thr;
807 float thr = band->thr;
809 thr *= exp2f(delta_sfb_pe / band->active_lines);
810 if (thr > coeffs[g].min_snr * band->energy && band->avoid_holes == PSY_3GPP_AH_INACTIVE)
811 thr = FFMAX(band->thr, coeffs[g].min_snr * band->energy);
812 band->thr = thr;
824 band->thr = band->energy * PSY_SNR_1DB;
838 psy_band->threshold = band->thr;