Lines Matching defs:rect
711 struct v4l2_rect rect;
721 rect.left = clamp_val(ALIGN(sel->r.left, 2),
723 rect.top = clamp_val(ALIGN(sel->r.top, 2),
725 rect.width = clamp_val(ALIGN(sel->r.width, 2),
727 rect.height = clamp_val(ALIGN(sel->r.height, 2),
731 rect.width = min_t(unsigned int, rect.width,
732 OV2680_NATIVE_WIDTH - rect.left);
733 rect.height = min_t(unsigned int, rect.height,
734 OV2680_NATIVE_HEIGHT - rect.top);
739 if (rect.width != crop->width || rect.height != crop->height) {
746 format->width = rect.width;
747 format->height = rect.height;
750 *crop = rect;
753 sel->r = rect;