ref: cecf1d17d0e82daee1d25a03e2855dfb1b46eb76
parent: 03e1bd39722323752eecc67f5961bc8e606d9293
author: Jingning Han <jingning@google.com>
date: Fri Jul 20 05:42:44 EDT 2018
Replace hard coded numbers in tpl model Change-Id: I1adedfccf9aa874d0980f1181066b3682614a8cb
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -5851,7 +5851,7 @@
dst = &predictor[0];
dst_stride = bw;
- xd->mi[0]->sb_type = BLOCK_32X32;
+ xd->mi[0]->sb_type = bsize;
xd->mi[0]->ref_frame[0] = INTRA_FRAME;
xd->mb_to_top_edge = -((mi_row * MI_SIZE) * 8);
xd->mb_to_bottom_edge = ((cm->mi_rows - 1 - mi_row) * MI_SIZE) * 8;
@@ -5860,9 +5860,8 @@
xd->above_mi = (mi_row > 0) ? &mi_above : NULL;
xd->left_mi = (mi_col > 0) ? &mi_left : NULL;
- vp9_predict_intra_block(xd, b_width_log2_lookup[BLOCK_32X32], TX_32X32,
- mode, src, src_stride, dst, dst_stride, 0, 0,
- 0);
+ vp9_predict_intra_block(xd, b_width_log2_lookup[bsize], tx_size, mode,
+ src, src_stride, dst, dst_stride, 0, 0, 0);
vpx_subtract_block(bh, bw, src_diff, bw, src, src_stride, dst,
dst_stride);