Move LR speed features to speed 3
Moved several LR related speed features to speed 3. These features
gave good speed/quality trade off.
Borg test results at speed 3(150f):
avg_psnr: ovr_psnr: ssim: speedup:
lowres: 0.255 0.262 0.173 2.8%
midres: 0.076 0.078 0.035 3.3%
ugc360p: 0.117 0.137 0.108 4.7%
(Here are clips that give big quality loss in
lowres: bridge_close_cif.y4m and bridge_far_cif.y4m)
STATS_CHANGED
Change-Id: I197fe3e07ec3a8d33114017bc9f456cf54191284
diff --git a/av1/encoder/speed_features.c b/av1/encoder/speed_features.c
index 84d97bf..292ef60 100644
--- a/av1/encoder/speed_features.c
+++ b/av1/encoder/speed_features.c
@@ -469,9 +469,14 @@
: gf_group->update_type[gf_group->index] == INTNL_ARF_UPDATE ? 1
: 2;
+ // TODO(any): evaluate if these lpf features can be moved to speed 2.
sf->lpf_sf.prune_sgr_based_on_wiener =
cm->allow_screen_content_tools ? 0 : 2;
- sf->lpf_sf.reduce_wiener_window_size = is_boosted_arf2_bwd_type ? 0 : 1;
+ sf->lpf_sf.disable_loop_restoration_chroma =
+ (boosted || cm->allow_screen_content_tools) ? 0 : 1;
+ sf->lpf_sf.reduce_wiener_window_size = !boosted;
+ sf->lpf_sf.prune_wiener_based_on_src_var = 2;
+
sf->hl_sf.second_alt_ref_filtering = 0;
}
@@ -516,11 +521,6 @@
frame_is_intra_only(&cpi->common) ? 1 : 0;
sf->winner_mode_sf.enable_winner_mode_for_tx_size_srch = 1;
- sf->lpf_sf.disable_loop_restoration_chroma =
- (boosted || cm->allow_screen_content_tools) ? 0 : 1;
- sf->lpf_sf.reduce_wiener_window_size = !boosted;
- sf->lpf_sf.prune_wiener_based_on_src_var = 2;
-
// TODO(any): The following features have no impact on quality and speed,
// and are disabled.
// sf->part_sf.partition_search_breakout_rate_thr = 300;