From ced3c20165a06e70b546aca3c98a2a71a1f9387f Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Wed, 17 Jul 2013 17:12:02 -0700 Subject: [PATCH] Use mv_check_bounds in sub8x8 rd loop Make the use of mv_check_bounds consistent for mvs of both ref_frame[0] and ref_frame[1]. Change-Id: I1ca24865cc7232ca9cbe5db566c53abad1592211 --- vp9/encoder/vp9_rdopt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index cb7a58606..9e02876fc 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -1996,12 +1996,8 @@ static void rd_check_segment_txsize(VP9_COMP *cpi, MACROBLOCK *x, x->mvcost, cpi); // Trap vectors that reach beyond the UMV borders - if (((mode_mv[this_mode].as_mv.row >> 3) < x->mv_row_min) || - ((mode_mv[this_mode].as_mv.row >> 3) > x->mv_row_max) || - ((mode_mv[this_mode].as_mv.col >> 3) < x->mv_col_min) || - ((mode_mv[this_mode].as_mv.col >> 3) > x->mv_col_max)) { + if (mv_check_bounds(x, &mode_mv[this_mode])) continue; - } if (mbmi->ref_frame[1] > 0 && mv_check_bounds(x, &second_mode_mv[this_mode])) continue; -- 2.40.0