Change auto_max_partition behaviors on speed 6
This CL changes auto_max_partition_based_on_simple_search to direct
prediction on midres, and disables it on hdres.
Performance:
TESTSET | AVG_PSNR | OVR_PSNR | SSIM | SPD
HDRES | -0.011% | -0.010% | -0.010% | +0.9%
MIDRES | +0.075% | +0.074% | +0.075% | +0.7%
STATS_CHANGED
BUG=aomedia:2694
Change-Id: I3172dbc334830d385e785f4a9685e83f5ba2334e
diff --git a/av1/encoder/speed_features.c b/av1/encoder/speed_features.c
index ad56332..cf51ee6 100644
--- a/av1/encoder/speed_features.c
+++ b/av1/encoder/speed_features.c
@@ -244,6 +244,12 @@
}
if (speed >= 6) {
+ if (is_720p_or_larger) {
+ sf->part_sf.auto_max_partition_based_on_simple_motion = NOT_IN_USE;
+ } else if (is_480p_or_larger) {
+ sf->part_sf.auto_max_partition_based_on_simple_motion = DIRECT_PRED;
+ }
+
if (is_1080p_or_larger) {
sf->part_sf.default_min_partition_size = BLOCK_8X8;
}