ref: 12acbb155223f84978b4e292a24d8b80e3566b86
parent: 6f594bb8c81f9c863495f0dbb3a4d7d78ffa8409
author: Marco Paniconi <[email protected]>
date: Thu Apr 18 11:40:19 EDT 2019
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
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -995,8 +995,8 @@
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;