Lines Matching defs:rect
333 * __mt9m032_get_pad_crop() - get crop rect
335 * @cfg: v4l2_subdev_pad_config for getting the try crop rect from
336 * @which: select try or active crop rect
338 * Returns a pointer the current active or fh relative try crop rect
435 struct v4l2_rect rect;
451 rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN,
453 rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN,
455 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
457 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
460 rect.width = min_t(unsigned int, rect.width,
461 MT9M032_PIXEL_ARRAY_WIDTH - rect.left);
462 rect.height = min_t(unsigned int, rect.height,
463 MT9M032_PIXEL_ARRAY_HEIGHT - rect.top);
467 if (rect.width != __crop->width || rect.height != __crop->height) {
472 format->width = rect.width;
473 format->height = rect.height;
476 *__crop = rect;
477 sel->r = rect;