Lines Matching defs:rect
627 struct v4l2_rect rect;
635 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN,
637 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN,
639 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
642 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
646 rect.width = min_t(unsigned int, rect.width,
647 MT9P031_PIXEL_ARRAY_WIDTH - rect.left);
648 rect.height = min_t(unsigned int, rect.height,
649 MT9P031_PIXEL_ARRAY_HEIGHT - rect.top);
653 if (rect.width != __crop->width || rect.height != __crop->height) {
659 __format->width = rect.width;
660 __format->height = rect.height;
663 *__crop = rect;
664 sel->r = rect;