ref: 42373b21cea6651b3063e14a8cdaaaf646ae7f14
parent: f407b304902e75d024e20a49e4295f5f3df720ed
author: Marco <marpan@google.com>
date: Wed Sep 20 10:55:31 EDT 2017
vp9: Modify pickmode early exit for ARF in 1pass. Add the condition frames_since_golden > 0 to the early exit check for ARF usage in nonrd_pickmode. This improves quality of first frame following ARF, where frame_since_golden = 0. Small/neutral gain in metrics for speed 6, neutral change in speed. Only affects when USE_ALTREF_FOR_ONE_PASS is enabled. Change-Id: I82e73e6ff6fc849e5ca5448563cb8a0515fe0cdc
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1678,6 +1678,7 @@
continue;
if (cpi->rc.alt_ref_gf_group && cm->show_frame &&
+ cpi->rc.frames_since_golden > 0 &&
cpi->rc.frames_since_golden < (cpi->rc.baseline_gf_interval >> 1) &&
ref_frame == ALTREF_FRAME &&
frame_mv[this_mode][ref_frame].as_int != 0)