Use NEARESTMV mode in SC static area encoding
In RTC screen content encoding, use NEARESTMV mode instead of
only using GLOBALMV to improve BD-rate saving.
Borg test results on rtc_screen set:
avg_psnr: ovr_psnr: ssim: encoding_spdup:
speed 9: -0.858 -0.796 -0.735 0.115
speed 10: -0.757 -1.889 -1.685 -0.318
STATS_CHANGED for SC
Change-Id: I483499e164287a7a6bcbf49d26a129909c45958a
diff --git a/av1/encoder/nonrd_pickmode.c b/av1/encoder/nonrd_pickmode.c
index f188f0e..29cc7aa 100644
--- a/av1/encoder/nonrd_pickmode.c
+++ b/av1/encoder/nonrd_pickmode.c
@@ -2955,7 +2955,10 @@
if (!use_ref_frame_mask[ref_frame]) continue;
if (x->force_zeromv_skip &&
- (this_mode != GLOBALMV || ref_frame != LAST_FRAME))
+ ((!(this_mode == NEARESTMV &&
+ frame_mv[this_mode][ref_frame].as_int == 0) &&
+ this_mode != GLOBALMV) ||
+ ref_frame != LAST_FRAME))
continue;
force_mv_inter_layer = 0;