Lines Matching refs:width
21 r->width = size->width; in v4l2_rect_set_size_to()
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()
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()
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()