Add mode info arrays and mode info index.
authorhkuang <hkuang@google.com>
Mon, 9 Jun 2014 23:01:53 +0000 (16:01 -0700)
committerhkuang <hkuang@google.com>
Tue, 10 Jun 2014 20:43:36 +0000 (13:43 -0700)
commitcdffeaaae05f9261ab9be5aebe0fbb2454b295fb
treed5da25f70a23f2f187dd9aa1134e9eb1b2c0eb64
parent70eb862fd3ea11bcbd6d7811dffd5bc62d48c3d1
Add mode info arrays and mode info index.

In non frame-parallel decoding, this works the same way as
current decoding scheme. Every time after decoder finish
decoding a frame, it will swap the current mode info pointer
and  previous mode info pointer if the decoded frame needs
to be shown. Both mode info pointer and previous mode info
pointer are from mode info arrays.

In frame-parallel decoding, this will become more complicated
as current frame's mode info pointer will be shared with next
frame as previous mode info pointer. But when one decoder
thread finishes decoding one frame and starts to work on next
available frame, it needs to retain the decoded frame's mode
info pointers until next frame finishes decoding. The mode info
index will serve this purpose. The decoder will use different
buffer in the mode info arrays and use the other buffer to save
previous decoded frame’s mode info.

Change-Id: If11d57d8eb0ee38c8876158e5482177fcb229428
vp9/common/vp9_alloccommon.c
vp9/common/vp9_onyxc_int.h