Lines Matching full:width
14 * v4l2_rect_set_size_to() - copy the width/height values.
15 * @r: rect whose width and height fields will be set
16 * @size: rect containing the width and height fields you need.
21 r->width = size->width; in v4l2_rect_set_size_to()
26 * v4l2_rect_set_min_size() - width and height of r should be >= min_size.
27 * @r: rect whose width and height will be modified
28 * @min_size: rect containing the minimal width and height
33 if (r->width < min_size->width) in v4l2_rect_set_min_size()
34 r->width = min_size->width; in v4l2_rect_set_min_size()
40 * v4l2_rect_set_max_size() - width and height of r should be <= max_size
41 * @r: rect whose width and height will be modified
42 * @max_size: rect containing the maximum width and height
47 if (r->width > max_size->width) in v4l2_rect_set_max_size()
48 r->width = max_size->width; in v4l2_rect_set_max_size()
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()
82 return r1->width == r2->width && r1->height == r2->height; in v4l2_rect_same_size()
126 right = min(r1->left + r1->width, r2->left + r2->width); in v4l2_rect_intersect()
128 r->width = max(0, right - r->left); in v4l2_rect_intersect()
137 * This scales rectangle @r horizontally by @to->width / @from->width and
148 if (from->width == 0 || from->height == 0) { in v4l2_rect_scale()
149 r->left = r->top = r->width = r->height = 0; in v4l2_rect_scale()
152 r->left = (((r->left - from->left) * to->width) / from->width) & ~1; in v4l2_rect_scale()
153 r->width = ((r->width * to->width) / from->width) & ~1; in v4l2_rect_scale()
173 if (r1->left >= r2->left + r2->width || in v4l2_rect_overlap()
174 r2->left >= r1->left + r1->width) in v4l2_rect_overlap()
199 if (r1->left + r1->width > r2->left + r2->width) in v4l2_rect_enclosed()