Merge "Removing unused mv_bias and check_mv_bounds functions."
This commit is contained in:
commit
39cea29bb7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user