Lines Matching refs:rect
424 struct v4l2_rect rect; in mt9t001_set_selection() local
432 rect.left = clamp(ALIGN(sel->r.left, 2), in mt9t001_set_selection()
435 rect.top = clamp(ALIGN(sel->r.top, 2), in mt9t001_set_selection()
438 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9t001_set_selection()
441 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9t001_set_selection()
445 rect.width = min_t(unsigned int, rect.width, in mt9t001_set_selection()
446 MT9T001_PIXEL_ARRAY_WIDTH - rect.left); in mt9t001_set_selection()
447 rect.height = min_t(unsigned int, rect.height, in mt9t001_set_selection()
448 MT9T001_PIXEL_ARRAY_HEIGHT - rect.top); in mt9t001_set_selection()
452 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9t001_set_selection()
458 __format->width = rect.width; in mt9t001_set_selection()
459 __format->height = rect.height; in mt9t001_set_selection()
462 *__crop = rect; in mt9t001_set_selection()
463 sel->r = rect; in mt9t001_set_selection()