Lines Matching full:boundary
54 * v4l2_rect_map_inside()- r should be inside boundary.
56 * @boundary: rect containing the boundary for @r
59 const struct v4l2_rect *boundary) in v4l2_rect_map_inside() argument
61 v4l2_rect_set_max_size(r, boundary); in v4l2_rect_map_inside()
62 if (r->left < boundary->left) in v4l2_rect_map_inside()
63 r->left = boundary->left; in v4l2_rect_map_inside()
64 if (r->top < boundary->top) in v4l2_rect_map_inside()
65 r->top = boundary->top; in v4l2_rect_map_inside()
66 if (r->left + r->width > boundary->left + boundary->width) in v4l2_rect_map_inside()
67 r->left = boundary->left + boundary->width - r->width; in v4l2_rect_map_inside()
68 if (r->top + r->height > boundary->top + boundary->height) in v4l2_rect_map_inside()
69 r->top = boundary->top + boundary->height - r->height; in v4l2_rect_map_inside()