Lines Matching refs:rect
448 struct v4l2_rect rect; in mt9m032_set_pad_selection() local
464 rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_selection()
466 rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_selection()
468 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9m032_set_pad_selection()
470 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9m032_set_pad_selection()
473 rect.width = min_t(unsigned int, rect.width, in mt9m032_set_pad_selection()
474 MT9M032_PIXEL_ARRAY_WIDTH - rect.left); in mt9m032_set_pad_selection()
475 rect.height = min_t(unsigned int, rect.height, in mt9m032_set_pad_selection()
476 MT9M032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9m032_set_pad_selection()
480 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection()
485 format->width = rect.width; in mt9m032_set_pad_selection()
486 format->height = rect.height; in mt9m032_set_pad_selection()
489 *__crop = rect; in mt9m032_set_pad_selection()
490 sel->r = rect; in mt9m032_set_pad_selection()