vp9-rtc: Use correct plane for UV in estimate_intra
authorMarco Paniconi <marpan@google.com>
Thu, 18 Apr 2019 22:40:19 +0000 (15:40 -0700)
committerMarco Paniconi <marpan@google.com>
Thu, 18 Apr 2019 22:43:46 +0000 (15:43 -0700)
For nonrd-pickmode: some PSNR increase observed on
screen content/scroll clips.

Change-Id: Idf1bce9dd434e33d7c35dbeb59e02e2e58ea1aaa

vp9/encoder/vp9_pickmode.c

index e0806aa..8280d6e 100644 (file)
@@ -995,8 +995,8 @@ static void estimate_block_intra(int plane, int block, int row, int col,
   VP9_COMP *const cpi = args->cpi;
   MACROBLOCK *const x = args->x;
   MACROBLOCKD *const xd = &x->e_mbd;
-  struct macroblock_plane *const p = &x->plane[0];
-  struct macroblockd_plane *const pd = &xd->plane[0];
+  struct macroblock_plane *const p = &x->plane[plane];
+  struct macroblockd_plane *const pd = &xd->plane[plane];
   const BLOCK_SIZE bsize_tx = txsize_to_bsize[tx_size];
   uint8_t *const src_buf_base = p->src.buf;
   uint8_t *const dst_buf_base = pd->dst.buf;