ref: d06839dd272514719591cf4615cce595b681ab3f
parent: 2372837df80568d29ab2596fb263e3c1bae53058
author: Jingning Han <jingning@google.com>
date: Fri Jul 27 07:15:06 EDT 2018
Move frame pointer assignment outside block loop in tpl model Change-Id: Ibafb61577a6293c6ad32bda484a786602afda2e6
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -5979,6 +5979,7 @@
xd->mi = cm->mi_grid_visible;
xd->mi[0] = cm->mi;
+ xd->cur_buf = this_frame;
// Get rd multiplier set up.
rdmult =
@@ -5999,7 +6000,6 @@
(cm->mi_rows - 1 - mi_row) * MI_SIZE + (17 - 2 * VP9_INTERP_EXTEND);
for (mi_col = 0; mi_col < cm->mi_cols; mi_col += mi_width) {
TplDepStats tpl_stats;
- xd->cur_buf = this_frame;
mode_estimation(cpi, x, xd, &sf, gf_picture, frame_idx, src_diff, coeff,
qcoeff, dqcoeff, mi_row, mi_col, bsize, tx_size,
ref_frame, predictor, &recon_error, &sse, &tpl_stats);