diff options
author | Scott LaVarnway <slavarnway@google.com> | 2011-05-24 13:24:52 -0400 |
---|---|---|
committer | Scott LaVarnway <slavarnway@google.com> | 2011-05-24 13:24:52 -0400 |
commit | e11f21af9ae7f4cf677a8dd7e027dfaca0d96617 (patch) | |
tree | 425a8a694b4a09f3415b931ced4d598ce4c743f4 /vp8/common/findnearmv.c | |
parent | 6d82d2d22e300f886d27c36106a56daa6a81b763 (diff) | |
download | libvpx-e11f21af9ae7f4cf677a8dd7e027dfaca0d96617.tar libvpx-e11f21af9ae7f4cf677a8dd7e027dfaca0d96617.tar.gz libvpx-e11f21af9ae7f4cf677a8dd7e027dfaca0d96617.tar.bz2 libvpx-e11f21af9ae7f4cf677a8dd7e027dfaca0d96617.zip |
MODE_INFO size reduction
Declared the bmi in MODE_INFO as a union instead of B_MODE_INFO.
This reduced the memory footprint by 518,400 bytes for 1080
resolutions. The decoder performance improved by ~4% for the
clip used and the encoder showed very small improvements. (0.5%)
This reduction was first mentioned to me by John K. and in a
later discussion by Yaowu.
This is WIP.
Change-Id: I8e175fdbc46d28c35277302a04bee4540efc8d29
Diffstat (limited to 'vp8/common/findnearmv.c')
-rw-r--r-- | vp8/common/findnearmv.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/vp8/common/findnearmv.c b/vp8/common/findnearmv.c index d5019d32a..c1022363e 100644 --- a/vp8/common/findnearmv.c +++ b/vp8/common/findnearmv.c @@ -153,26 +153,3 @@ vp8_prob *vp8_mv_ref_probs( return p; } -const B_MODE_INFO *vp8_left_bmi(const MODE_INFO *cur_mb, int b) -{ - if (!(b & 3)) - { - /* On L edge, get from MB to left of us */ - --cur_mb; - b += 4; - } - - return cur_mb->bmi + b - 1; -} - -const B_MODE_INFO *vp8_above_bmi(const MODE_INFO *cur_mb, int b, int mi_stride) -{ - if (!(b >> 2)) - { - /* On top edge, get from MB above us */ - cur_mb -= mi_stride; - b += 16; - } - - return cur_mb->bmi + b - 4; -} |