From 21970d1dc2287ca17c12dd503a4f0d71e513edf4 Mon Sep 17 00:00:00 2001 From: Scott LaVarnway Date: Wed, 26 Oct 2011 11:46:10 -0400 Subject: [PATCH] Improved mv_bias Small performance gains. Change-Id: I709b9390a8a27a70f5f23574313b8db85ac7f23d --- vp8/common/findnearmv.h | 12 ++++-------- 1 file 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)