shithub: libvpx

Download patch

ref: 2013915a95eca827456e999dce1554a5875c7baf
parent: c4f943d7d7bbd3953e8d7b7fbf75be5c66ccbece
parent: cecf1d17d0e82daee1d25a03e2855dfb1b46eb76
author: Jingning Han <jingning@google.com>
date: Sun Jul 22 10:32:52 EDT 2018

Merge "Replace hard coded numbers in tpl model"

--- 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);