From 12acbb155223f84978b4e292a24d8b80e3566b86 Mon Sep 17 00:00:00 2001 From: Marco Paniconi Date: Thu, 18 Apr 2019 15:40:19 -0700 Subject: [PATCH] vp9-rtc: Use correct plane for UV in estimate_intra For nonrd-pickmode: some PSNR increase observed on screen content/scroll clips. Change-Id: Idf1bce9dd434e33d7c35dbeb59e02e2e58ea1aaa --- vp9/encoder/vp9_pickmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vp9/encoder/vp9_pickmode.c b/vp9/encoder/vp9_pickmode.c index e0806aad2..8280d6e02 100644 --- a/vp9/encoder/vp9_pickmode.c +++ b/vp9/encoder/vp9_pickmode.c @@ -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; -- 2.50.1