Lines Matching refs:rect
199 struct v4l2_rect rect; /* sensor cropping window */ member
487 sel->r = priv->rect; in ov6650_get_selection()
516 priv->rect.width += priv->rect.left - sel->r.left; in ov6650_set_selection()
517 priv->rect.left = sel->r.left; in ov6650_set_selection()
522 priv->rect.width = sel->r.width; in ov6650_set_selection()
526 priv->rect.height += priv->rect.top - sel->r.top; in ov6650_set_selection()
527 priv->rect.top = sel->r.top; in ov6650_set_selection()
532 priv->rect.height = sel->r.height; in ov6650_set_selection()
558 mf->width = priv->rect.width >> priv->half_scale; in ov6650_get_fmt()
559 mf->height = priv->rect.height >> priv->half_scale; in ov6650_get_fmt()
565 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok() argument
567 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok()
577 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt()
581 .r.left = priv->rect.left + (priv->rect.width >> 1) - in ov6650_s_fmt()
583 .r.top = priv->rect.top + (priv->rect.height >> 1) - in ov6650_s_fmt()
681 if (is_unscaled_ok(mf->width, mf->height, &priv->rect)) in ov6650_set_fmt()
723 mf->width = priv->rect.width >> priv->half_scale; in ov6650_set_fmt()
724 mf->height = priv->rect.height >> priv->half_scale; in ov6650_set_fmt()
1063 priv->rect.left = DEF_HSTRT << 1; in ov6650_probe()
1064 priv->rect.top = DEF_VSTRT << 1; in ov6650_probe()
1065 priv->rect.width = W_CIF; in ov6650_probe()
1066 priv->rect.height = H_CIF; in ov6650_probe()