diff options
author | Scott LaVarnway <slavarnway@google.com> | 2011-10-27 06:14:00 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2011-10-27 06:14:00 -0700 |
commit | 0db5599957cc69f50711c97c4154fbf5cf31f719 (patch) | |
tree | 94f4bb0721a4d2ef1bf29f47c06c36233ba37795 /vp8/common | |
parent | 294777b9158c918b74c35293e3711179ac2d0eaa (diff) | |
parent | 21970d1dc2287ca17c12dd503a4f0d71e513edf4 (diff) | |
download | libvpx-0db5599957cc69f50711c97c4154fbf5cf31f719.tar libvpx-0db5599957cc69f50711c97c4154fbf5cf31f719.tar.gz libvpx-0db5599957cc69f50711c97c4154fbf5cf31f719.tar.bz2 libvpx-0db5599957cc69f50711c97c4154fbf5cf31f719.zip |
Merge "Improved mv_bias"
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/findnearmv.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/vp8/common/findnearmv.h b/vp8/common/findnearmv.h index c142a0415..01909b937 100644 --- a/vp8/common/findnearmv.h +++ b/vp8/common/findnearmv.h @@ -18,18 +18,14 @@ #include "treecoder.h" -static void mv_bias(int refmb_ref_frame_sign_bias, int refframe, int_mv *mvp, const int *ref_frame_sign_bias) +static void mv_bias(int refmb_ref_frame_sign_bias, int refframe, int_mv *mvp, + const int *ref_frame_sign_bias) { - MV xmv; - xmv = mvp->as_mv; - if (refmb_ref_frame_sign_bias != ref_frame_sign_bias[refframe]) { - xmv.row *= -1; - xmv.col *= -1; + mvp->as_mv.row *= -1; + mvp->as_mv.col *= -1; } - - mvp->as_mv = xmv; } #define LEFT_TOP_MARGIN (16 << 3) |