Lines Matching refs:rect
578 struct v4l2_rect rect; in mt9v032_set_selection() local
586 rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1, in mt9v032_set_selection()
589 rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1, in mt9v032_set_selection()
592 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9v032_set_selection()
595 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9v032_set_selection()
599 rect.width = min_t(unsigned int, in mt9v032_set_selection()
600 rect.width, MT9V032_PIXEL_ARRAY_WIDTH - rect.left); in mt9v032_set_selection()
601 rect.height = min_t(unsigned int, in mt9v032_set_selection()
602 rect.height, MT9V032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9v032_set_selection()
606 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9v032_set_selection()
612 __format->width = rect.width; in mt9v032_set_selection()
613 __format->height = rect.height; in mt9v032_set_selection()
621 *__crop = rect; in mt9v032_set_selection()
622 sel->r = rect; in mt9v032_set_selection()