summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_mbgraph.c
diff options
context:
space:
mode:
authorGuillaume Martres <gmartres@google.com>2013-10-10 12:11:44 -0700
committerGuillaume Martres <gmartres@google.com>2013-10-16 16:24:03 -0700
commitacf0d56f0bb2fc51508f07e38147044539138517 (patch)
treeaebbfc5bd8ee9e6b51e82671f9c3881a308c9e82 /vp9/encoder/vp9_mbgraph.c
parent9a03154f4657f62ef21901a9117910eb569626b9 (diff)
downloadlibvpx-acf0d56f0bb2fc51508f07e38147044539138517.tar
libvpx-acf0d56f0bb2fc51508f07e38147044539138517.tar.gz
libvpx-acf0d56f0bb2fc51508f07e38147044539138517.tar.bz2
libvpx-acf0d56f0bb2fc51508f07e38147044539138517.zip
Get rid of "this_mi", use "mi_8x8[0]" everywhere instead
The only case where they were intentionally pointing to different structures was in mbgraph, and this didn't have the expected behavior because both of these pointers are used interchangeably through the code Change-Id: I979251782f90885fe962305bcc845bc05907f80c
Diffstat (limited to 'vp9/encoder/vp9_mbgraph.c')
-rw-r--r--vp9/encoder/vp9_mbgraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_mbgraph.c b/vp9/encoder/vp9_mbgraph.c
index e0c24a956..2f147a04e 100644
--- a/vp9/encoder/vp9_mbgraph.c
+++ b/vp9/encoder/vp9_mbgraph.c
@@ -149,7 +149,7 @@ static int find_best_16x16_intra(VP9_COMP *cpi,
for (mode = DC_PRED; mode <= TM_PRED; mode++) {
unsigned int err;
- xd->this_mi->mbmi.mode = mode;
+ xd->mi_8x8[0]->mbmi.mode = mode;
vp9_predict_intra_block(xd, 0, 2, TX_16X16, mode,
x->plane[0].src.buf, x->plane[0].src.stride,
xd->plane[0].dst.buf, xd->plane[0].dst.stride);
@@ -258,7 +258,7 @@ static void update_mbgraph_frame_stats(VP9_COMP *cpi,
xd->plane[0].dst.stride = buf->y_stride;
xd->plane[0].pre[0].stride = buf->y_stride;
xd->plane[1].dst.stride = buf->uv_stride;
- xd->this_mi = &mi_local;
+ xd->mi_8x8[0] = &mi_local;
mi_local.mbmi.sb_type = BLOCK_16X16;
mi_local.mbmi.ref_frame[0] = LAST_FRAME;
mi_local.mbmi.ref_frame[1] = NONE;