Lines Matching defs:rect
770 struct v4l2_rect rect;
779 rect.left = clamp(ALIGN(sel->r.left, 4), 0,
781 rect.top = clamp(ALIGN(sel->r.top, 4), 0,
783 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 4),
785 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 4),
788 rect.width = min_t(unsigned int, rect.width,
789 IMX296_PIXEL_ARRAY_WIDTH - rect.left);
790 rect.height = min_t(unsigned int, rect.height,
791 IMX296_PIXEL_ARRAY_HEIGHT - rect.top);
795 if (rect.width != crop->width || rect.height != crop->height) {
801 format->width = rect.width;
802 format->height = rect.height;
805 *crop = rect;
806 sel->r = rect;