Lines Matching refs:rect
837 * We can only support setting either the dimensions of the crop rect
928 struct v4l2_rect rect;
938 rect.left = clamp(ALIGN(sel->r.left, 2), OV5693_NATIVE_START_LEFT,
940 rect.top = clamp(ALIGN(sel->r.top, 2), OV5693_NATIVE_START_TOP,
942 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
944 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
948 rect.width = min_t(unsigned int, rect.width,
949 OV5693_NATIVE_WIDTH - rect.left);
950 rect.height = min_t(unsigned int, rect.height,
951 OV5693_NATIVE_HEIGHT - rect.top);
955 if (rect.width != __crop->width || rect.height != __crop->height) {
962 format->width = rect.width;
963 format->height = rect.height;
966 *__crop = rect;
967 sel->r = rect;