Lines Matching refs:rect
410 crop->rect = *__mt9m032_get_pad_crop(sensor, fh, crop->which); in mt9m032_get_pad_crop()
423 struct v4l2_rect rect; in mt9m032_set_pad_crop() local
436 rect.left = clamp(ALIGN(crop->rect.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_crop()
438 rect.top = clamp(ALIGN(crop->rect.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_crop()
440 rect.width = clamp(ALIGN(crop->rect.width, 2), MT9M032_COLUMN_SIZE_MIN, in mt9m032_set_pad_crop()
442 rect.height = clamp(ALIGN(crop->rect.height, 2), MT9M032_ROW_SIZE_MIN, in mt9m032_set_pad_crop()
445 rect.width = min(rect.width, MT9M032_PIXEL_ARRAY_WIDTH - rect.left); in mt9m032_set_pad_crop()
446 rect.height = min(rect.height, MT9M032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9m032_set_pad_crop()
450 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_crop()
455 format->width = rect.width; in mt9m032_set_pad_crop()
456 format->height = rect.height; in mt9m032_set_pad_crop()
459 *__crop = rect; in mt9m032_set_pad_crop()
460 crop->rect = rect; in mt9m032_set_pad_crop()