Lines Matching refs:rect
319 crop->rect = *__mt9t001_get_pad_crop(mt9t001, fh, crop->pad, in mt9t001_get_crop()
331 struct v4l2_rect rect; in mt9t001_set_crop() local
336 rect.left = clamp(ALIGN(crop->rect.left, 2), in mt9t001_set_crop()
339 rect.top = clamp(ALIGN(crop->rect.top, 2), in mt9t001_set_crop()
342 rect.width = clamp(ALIGN(crop->rect.width, 2), in mt9t001_set_crop()
345 rect.height = clamp(ALIGN(crop->rect.height, 2), in mt9t001_set_crop()
349 rect.width = min(rect.width, MT9T001_PIXEL_ARRAY_WIDTH - rect.left); in mt9t001_set_crop()
350 rect.height = min(rect.height, MT9T001_PIXEL_ARRAY_HEIGHT - rect.top); in mt9t001_set_crop()
354 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9t001_set_crop()
360 __format->width = rect.width; in mt9t001_set_crop()
361 __format->height = rect.height; in mt9t001_set_crop()
364 *__crop = rect; in mt9t001_set_crop()
365 crop->rect = rect; in mt9t001_set_crop()