Lines Matching defs:rect
657 struct v4l2_rect rect;
665 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN,
667 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN,
669 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
672 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
676 rect.width = min_t(unsigned int, rect.width,
677 MT9P031_PIXEL_ARRAY_WIDTH - rect.left);
678 rect.height = min_t(unsigned int, rect.height,
679 MT9P031_PIXEL_ARRAY_HEIGHT - rect.top);
684 if (rect.width != __crop->width || rect.height != __crop->height) {
691 __format->width = rect.width;
692 __format->height = rect.height;
695 *__crop = rect;
696 sel->r = rect;