From b3c0a5fddbfd099cad65d438d9dcbb34ec1c521f Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev <dkovalev@google.com> Date: Thu, 18 Jul 2013 11:20:48 -0700 Subject: [PATCH] Removing unused mv_bias and check_mv_bounds functions. Change-Id: I1558fd969d9ad112bf6480bdd16ef87edd396ab5 --- vp9/common/vp9_findnearmv.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/vp9/common/vp9_findnearmv.h b/vp9/common/vp9_findnearmv.h index d68572b7bd..b0fa505b5d 100644 --- a/vp9/common/vp9_findnearmv.h +++ b/vp9/common/vp9_findnearmv.h @@ -28,18 +28,6 @@ void vp9_find_best_ref_mvs(MACROBLOCKD *xd, int_mv *nearest, int_mv *near); -static void mv_bias(int refmb_ref_frame_sign_bias, int refframe, - int_mv *mvp, const int *ref_frame_sign_bias) { - MV xmv = mvp->as_mv; - - if (refmb_ref_frame_sign_bias != ref_frame_sign_bias[refframe]) { - xmv.row *= -1; - xmv.col *= -1; - } - - mvp->as_mv = xmv; -} - // TODO(jingning): this mv clamping function should be block size dependent. static void clamp_mv(int_mv *mv, int mb_to_left_edge, @@ -61,15 +49,6 @@ static int clamp_mv2(int_mv *mv, const MACROBLOCKD *xd) { return tmp_mv.as_int != mv->as_int; } -static int check_mv_bounds(int_mv *mv, - int mb_to_left_edge, int mb_to_right_edge, - int mb_to_top_edge, int mb_to_bottom_edge) { - return mv->as_mv.col < mb_to_left_edge || - mv->as_mv.col > mb_to_right_edge || - mv->as_mv.row < mb_to_top_edge || - mv->as_mv.row > mb_to_bottom_edge; -} - void vp9_append_sub8x8_mvs_for_idx(VP9_COMMON *pc, MACROBLOCKD *xd, int_mv *dst_nearest, -- GitLab