Lines Matching refs:rect
438 struct v4l2_rect rect; in mt9m032_set_pad_selection() local
454 rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_selection()
456 rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_selection()
458 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9m032_set_pad_selection()
460 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9m032_set_pad_selection()
463 rect.width = min_t(unsigned int, rect.width, in mt9m032_set_pad_selection()
464 MT9M032_PIXEL_ARRAY_WIDTH - rect.left); in mt9m032_set_pad_selection()
465 rect.height = min_t(unsigned int, rect.height, in mt9m032_set_pad_selection()
466 MT9M032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9m032_set_pad_selection()
470 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection()
476 format->width = rect.width; in mt9m032_set_pad_selection()
477 format->height = rect.height; in mt9m032_set_pad_selection()
480 *__crop = rect; in mt9m032_set_pad_selection()
481 sel->r = rect; in mt9m032_set_pad_selection()