Lines Matching defs:mv
15 #include "mv.h"
37 static void vp8_clamp_mv2(int_mv *mv, const MACROBLOCKD *xd)
39 if (mv->as_mv.col < (xd->mb_to_left_edge - LEFT_TOP_MARGIN))
40 mv->as_mv.col = xd->mb_to_left_edge - LEFT_TOP_MARGIN;
41 else if (mv->as_mv.col > xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN)
42 mv->as_mv.col = xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN;
44 if (mv->as_mv.row < (xd->mb_to_top_edge - LEFT_TOP_MARGIN))
45 mv->as_mv.row = xd->mb_to_top_edge - LEFT_TOP_MARGIN;
46 else if (mv->as_mv.row > xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN)
47 mv->as_mv.row = xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN;
50 static void vp8_clamp_mv(int_mv *mv, int mb_to_left_edge, int mb_to_right_edge,
53 mv->as_mv.col = (mv->as_mv.col < mb_to_left_edge) ?
54 mb_to_left_edge : mv->as_mv.col;
55 mv->as_mv.col = (mv->as_mv.col > mb_to_right_edge) ?
56 mb_to_right_edge : mv->as_mv.col;
57 mv->as_mv.row = (mv->as_mv.row < mb_to_top_edge) ?
58 mb_to_top_edge : mv->as_mv.row;
59 mv->as_mv.row = (mv->as_mv.row > mb_to_bottom_edge) ?
60 mb_to_bottom_edge : mv->as_mv.row;
62 static unsigned int vp8_check_mv_bounds(int_mv *mv, int mb_to_left_edge,
67 need_to_clamp = (mv->as_mv.col < mb_to_left_edge);
68 need_to_clamp |= (mv->as_mv.col > mb_to_right_edge);
69 need_to_clamp |= (mv->as_mv.row < mb_to_top_edge);
70 need_to_clamp |= (mv->as_mv.row > mb_to_bottom_edge);
112 return cur_mb->mbmi.mv.as_int;
116 return (cur_mb->bmi + b - 1)->mv.as_int;
127 return cur_mb->mbmi.mv.as_int;
131 return (cur_mb->bmi + (b - 4))->mv.as_int;