Lines Matching defs:rect
199 struct v4l2_rect rect; /* sensor cropping window */
475 struct v4l2_rect *rect;
479 rect = &sd_state->pads->try_crop;
483 rect = &priv->rect;
496 sel->r = *rect;
504 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect)
506 return width > rect->width >> 1 || height > rect->height >> 1;
509 static void ov6650_bind_align_crop_rectangle(struct v4l2_rect *rect)
511 v4l_bound_align_image(&rect->width, 2, W_CIF, 1,
512 &rect->height, 2, H_CIF, 1, 0);
513 v4l_bound_align_image(&rect->left, DEF_HSTRT << 1,
514 (DEF_HSTRT << 1) + W_CIF - (__s32)rect->width, 1,
515 &rect->top, DEF_VSTRT << 1,
516 (DEF_VSTRT << 1) + H_CIF - (__s32)rect->height,
554 priv->rect.width += priv->rect.left - sel->r.left;
555 priv->rect.left = sel->r.left;
560 priv->rect.width = sel->r.width;
564 priv->rect.height += priv->rect.top - sel->r.top;
565 priv->rect.top = sel->r.top;
570 priv->rect.height = sel->r.height;
596 mf->width = priv->rect.width >> priv->half_scale;
597 mf->height = priv->rect.height >> priv->half_scale;
722 crop = &priv->rect;
749 mf->width = priv->rect.width >> priv->half_scale;
750 mf->height = priv->rect.height >> priv->half_scale;
1078 priv->rect.left = DEF_HSTRT << 1;
1079 priv->rect.top = DEF_VSTRT << 1;
1080 priv->rect.width = W_CIF;
1081 priv->rect.height = H_CIF;