Lines Matching refs:filt_mid
57 int filt_mid = clamp(lf->filter_level, min_filter_level, max_filter_level);
58 int filter_step = filt_mid < 16 ? 4 : filt_mid / 4;
68 best_err = try_filter_frame(sd, cpi, filt_mid, partial_frame);
69 filt_best = filt_mid;
70 ss_err[filt_mid] = best_err;
73 const int filt_high = MIN(filt_mid + filter_step, max_filter_level);
74 const int filt_low = MAX(filt_mid - filter_step, min_filter_level);
78 int bias = (best_err >> (15 - (filt_mid / 8))) * filter_step;
87 if (filt_direction <= 0 && filt_low != filt_mid) {
107 if (filt_direction >= 0 && filt_high != filt_mid) {
122 if (filt_best == filt_mid) {
126 filt_direction = (filt_best < filt_mid) ? -1 : 1;
127 filt_mid = filt_best;