diff options
author | Scott LaVarnway <slavarnway@google.com> | 2013-09-06 12:33:34 -0400 |
---|---|---|
committer | Scott LaVarnway <slavarnway@google.com> | 2013-09-06 12:33:34 -0400 |
commit | dae17734ece414091ba1184f7becd0aa6c0004f1 (patch) | |
tree | cd7b9f5a0a3d1d9f2ac5885773873a2006dba256 /vp9/encoder/vp9_mbgraph.c | |
parent | e4e864586c6e020d7ed028cc5c1e93de4fd8ee10 (diff) | |
download | libvpx-dae17734ece414091ba1184f7becd0aa6c0004f1.tar libvpx-dae17734ece414091ba1184f7becd0aa6c0004f1.tar.gz libvpx-dae17734ece414091ba1184f7becd0aa6c0004f1.tar.bz2 libvpx-dae17734ece414091ba1184f7becd0aa6c0004f1.zip |
New mode_info_context storage
mode_info_context was stored as a grid of MODE_INFO structs.
The grid now constists of a pointer to a MODE_INFO struct and
a "in the image" flag. The MODE_INFO structs are now stored
as a stream, eliminating unnecessary copies and is a little
more cache friendly.
For the test clips used, the decoder performance improved
by ~4.3% (1080p) and ~9.7% (720p).
Patch Set 2: Re-encoded clips with latest. Now ~1.7% (1080p)
and 5.9% (720p).
Change-Id: I846f29e88610fce2523ca697a9a9ef2a182e9256
Diffstat (limited to 'vp9/encoder/vp9_mbgraph.c')
-rw-r--r-- | vp9/encoder/vp9_mbgraph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_mbgraph.c b/vp9/encoder/vp9_mbgraph.c index 1baea643d..5a671f201 100644 --- a/vp9/encoder/vp9_mbgraph.c +++ b/vp9/encoder/vp9_mbgraph.c @@ -145,7 +145,7 @@ static int find_best_16x16_intra(VP9_COMP *cpi, for (mode = DC_PRED; mode <= TM_PRED; mode++) { unsigned int err; - xd->mode_info_context->mbmi.mode = mode; + xd->this_mi->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); @@ -253,7 +253,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->mode_info_context = &mi_local; + xd->this_mi = &mi_local; mi_local.mbmi.sb_type = BLOCK_16X16; mi_local.mbmi.ref_frame[0] = LAST_FRAME; mi_local.mbmi.ref_frame[1] = NONE; |