Lines Matching refs:rect
604 struct v4l2_rect rect; in mt9p031_set_selection() local
612 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN, in mt9p031_set_selection()
614 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN, in mt9p031_set_selection()
616 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9p031_set_selection()
619 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9p031_set_selection()
623 rect.width = min_t(unsigned int, rect.width, in mt9p031_set_selection()
624 MT9P031_PIXEL_ARRAY_WIDTH - rect.left); in mt9p031_set_selection()
625 rect.height = min_t(unsigned int, rect.height, in mt9p031_set_selection()
626 MT9P031_PIXEL_ARRAY_HEIGHT - rect.top); in mt9p031_set_selection()
630 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9p031_set_selection()
636 __format->width = rect.width; in mt9p031_set_selection()
637 __format->height = rect.height; in mt9p031_set_selection()
640 *__crop = rect; in mt9p031_set_selection()
641 sel->r = rect; in mt9p031_set_selection()