Lines Matching refs:max_rect
519 struct v4l2_rect max_rect; in rvin_s_selection() local
537 ret = rvin_remote_rectangle(vin, &max_rect); in rvin_s_selection()
541 v4l2_rect_map_inside(&r, &max_rect); in rvin_s_selection()
543 v4l_bound_align_image(&r.width, 6, max_rect.width, 0, in rvin_s_selection()
544 &r.height, 2, max_rect.height, 0, 0); in rvin_s_selection()
546 r.top = clamp_t(s32, r.top, 0, max_rect.height - r.height); in rvin_s_selection()
547 r.left = clamp_t(s32, r.left, 0, max_rect.width - r.width); in rvin_s_selection()
553 max_rect.width, max_rect.height); in rvin_s_selection()
557 max_rect.top = max_rect.left = 0; in rvin_s_selection()
558 max_rect.width = vin->format.width; in rvin_s_selection()
559 max_rect.height = vin->format.height; in rvin_s_selection()
560 v4l2_rect_map_inside(&r, &max_rect); in rvin_s_selection()