Lines Matching refs:r2
80 const struct v4l2_rect *r2) in v4l2_rect_same_size() argument
82 return r1->width == r2->width && r1->height == r2->height; in v4l2_rect_same_size()
93 const struct v4l2_rect *r2) in v4l2_rect_same_position() argument
95 return r1->top == r2->top && r1->left == r2->left; in v4l2_rect_same_position()
106 const struct v4l2_rect *r2) in v4l2_rect_equal() argument
108 return v4l2_rect_same_size(r1, r2) && v4l2_rect_same_position(r1, r2); in v4l2_rect_equal()
119 const struct v4l2_rect *r2) in v4l2_rect_intersect() argument
123 r->top = max(r1->top, r2->top); in v4l2_rect_intersect()
124 r->left = max(r1->left, r2->left); in v4l2_rect_intersect()
125 bottom = min(r1->top + r1->height, r2->top + r2->height); in v4l2_rect_intersect()
126 right = min(r1->left + r1->width, r2->left + r2->width); in v4l2_rect_intersect()
166 const struct v4l2_rect *r2) in v4l2_rect_overlap() argument
173 if (r1->left >= r2->left + r2->width || in v4l2_rect_overlap()
174 r2->left >= r1->left + r1->width) in v4l2_rect_overlap()
181 if (r1->top >= r2->top + r2->height || in v4l2_rect_overlap()
182 r2->top >= r1->top + r1->height) in v4l2_rect_overlap()
195 struct v4l2_rect *r2) in v4l2_rect_enclosed() argument
197 if (r1->left < r2->left || r1->top < r2->top) in v4l2_rect_enclosed()
199 if (r1->left + r1->width > r2->left + r2->width) in v4l2_rect_enclosed()
201 if (r1->top + r1->height > r2->top + r2->height) in v4l2_rect_enclosed()