Home
last modified time | relevance | path

Searched refs:filt_mid (Results 1 – 2 of 2) sorted by relevance

/external/libvpx/libvpx/vp8/encoder/
Dpicklpf.c266 int filt_mid; in vp8cx_pick_filter_level() local
292 filt_mid = cm->filter_level; in vp8cx_pick_filter_level()
294 if (filt_mid < min_filter_level) { in vp8cx_pick_filter_level()
295 filt_mid = min_filter_level; in vp8cx_pick_filter_level()
296 } else if (filt_mid > max_filter_level) { in vp8cx_pick_filter_level()
297 filt_mid = max_filter_level; in vp8cx_pick_filter_level()
301 filter_step = (filt_mid < 16) ? 4 : filt_mid / 4; in vp8cx_pick_filter_level()
308 vp8cx_set_alt_lf_level(cpi, filt_mid); in vp8cx_pick_filter_level()
309 vp8_loop_filter_frame_yonly(cm, &cpi->mb.e_mbd, filt_mid); in vp8cx_pick_filter_level()
313 ss_err[filt_mid] = best_err; in vp8cx_pick_filter_level()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_picklpf.c80 int filt_mid = clamp(lf->last_filt_level, min_filter_level, max_filter_level); in search_filter_level() local
81 int filter_step = filt_mid < 16 ? 4 : filt_mid / 4; in search_filter_level()
91 best_err = try_filter_frame(sd, cpi, filt_mid, partial_frame); in search_filter_level()
92 filt_best = filt_mid; in search_filter_level()
93 ss_err[filt_mid] = best_err; in search_filter_level()
96 const int filt_high = VPXMIN(filt_mid + filter_step, max_filter_level); in search_filter_level()
97 const int filt_low = VPXMAX(filt_mid - filter_step, min_filter_level); in search_filter_level()
100 int64_t bias = (best_err >> (15 - (filt_mid / 8))) * filter_step; in search_filter_level()
108 if (filt_direction <= 0 && filt_low != filt_mid) { in search_filter_level()
124 if (filt_direction >= 0 && filt_high != filt_mid) { in search_filter_level()
[all …]