diff options
author | John Koleszar <jkoleszar@google.com> | 2013-04-24 15:01:35 -0700 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2013-04-25 11:57:22 -0700 |
commit | 6c0c6b86c14a89120beed55fcf7e68c038476eb5 (patch) | |
tree | bedcd5b9c6fc074c8e005093e2cd5338be57ecdb /vp9/common/vp9_mbpitch.c | |
parent | 15255eef8251eb645b9b89f6e211663e6f22563d (diff) | |
download | libvpx-6c0c6b86c14a89120beed55fcf7e68c038476eb5.tar libvpx-6c0c6b86c14a89120beed55fcf7e68c038476eb5.tar.gz libvpx-6c0c6b86c14a89120beed55fcf7e68c038476eb5.tar.bz2 libvpx-6c0c6b86c14a89120beed55fcf7e68c038476eb5.zip |
Remove diff from BLOCKD
The underlying storage for these buffers is in the per-plane MACROBLOCKD
area, so read it from there directly.
Change-Id: Id6bd835117fdd9dea07db95ad06eff9f12afaaf7
Diffstat (limited to 'vp9/common/vp9_mbpitch.c')
-rw-r--r-- | vp9/common/vp9_mbpitch.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/vp9/common/vp9_mbpitch.c b/vp9/common/vp9_mbpitch.c index d5f104d4d..6f6a26e1f 100644 --- a/vp9/common/vp9_mbpitch.c +++ b/vp9/common/vp9_mbpitch.c @@ -70,32 +70,7 @@ static void setup_macroblock(MACROBLOCKD *mb, BLOCKSET bs) { } void vp9_setup_block_dptrs(MACROBLOCKD *mb) { - int r, c, i; - BLOCKD *blockd = mb->block; - - for (r = 0; r < 4; r++) { - for (c = 0; c < 4; c++) { - const int to = r * 4 + c; - const int from = r * 4 * 16 + c * 4; - blockd[to].diff = &mb->plane[0].diff[from]; - } - } - - for (r = 0; r < 2; r++) { - for (c = 0; c < 2; c++) { - const int to = 16 + r * 2 + c; - const int from = r * 4 * 8 + c * 4; - blockd[to].diff = &mb->plane[1].diff[from]; - } - } - - for (r = 0; r < 2; r++) { - for (c = 0; c < 2; c++) { - const int to = 20 + r * 2 + c; - const int from = r * 4 * 8 + c * 4; - blockd[to].diff = &mb->plane[2].diff[from]; - } - } + int i; for (i = 0; i < MAX_MB_PLANE; i++) { mb->plane[i].plane_type = i ? PLANE_TYPE_UV : PLANE_TYPE_Y_WITH_DC; |