diff options
author | Scott LaVarnway <slavarnway@google.com> | 2016-02-10 05:06:13 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2016-03-24 04:04:37 +0000 |
commit | 82762e240cd7e430ed59157dd302299a4c3d620b (patch) | |
tree | 03d190a6fed6752d999832162a60dd1f58f2d800 /vp9/decoder/vp9_decodemv.c | |
parent | 715d3bbd05383b44b89c415d5811e774bbc2c15b (diff) | |
download | libvpx-82762e240cd7e430ed59157dd302299a4c3d620b.tar.gz |
VP9: Eliminate extra mv clamp in decoder
The mv is clamped in dec_find_mv_refs() to a smaller region
than the clamp in dec_find_best_ref_mvs(). See clamp_mv_ref
and clamp_mv2.
Change-Id: I47dd5f7fa8b42f2cc593559b4d7c782fe7bcb1db
Diffstat (limited to 'vp9/decoder/vp9_decodemv.c')
-rw-r--r-- | vp9/decoder/vp9_decodemv.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vp9/decoder/vp9_decodemv.c b/vp9/decoder/vp9_decodemv.c index 3bd42ece6..596427c1e 100644 --- a/vp9/decoder/vp9_decodemv.c +++ b/vp9/decoder/vp9_decodemv.c @@ -463,14 +463,13 @@ static int read_is_inter_block(VP9_COMMON *const cm, MACROBLOCKD *const xd, } } -static void dec_find_best_ref_mvs(MACROBLOCKD *xd, int allow_hp, int_mv *mvlist, - int_mv *best_mv, int refmv_count) { +static void dec_find_best_ref_mvs(int allow_hp, int_mv *mvlist, int_mv *best_mv, + int refmv_count) { int i; // Make sure all the candidates are properly clamped etc for (i = 0; i < refmv_count; ++i) { lower_mv_precision(&mvlist[i].as_mv, allow_hp); - clamp_mv2(&mvlist[i].as_mv, xd); *best_mv = mvlist[i]; } } @@ -778,7 +777,7 @@ static void read_inter_block_mode_info(VP9Decoder *const pbi, tmp_mvs, mi_row, mi_col, -1, 0, fpm_sync, (void *)pbi); - dec_find_best_ref_mvs(xd, allow_hp, tmp_mvs, &best_ref_mvs[ref], + dec_find_best_ref_mvs(allow_hp, tmp_mvs, &best_ref_mvs[ref], refmv_count); } } |