• Home
  • Raw
  • Download

Lines Matching refs:rect

199 	struct v4l2_rect	rect;		/* sensor cropping window */  member
466 sel->r = priv->rect; in ov6650_get_selection()
495 priv->rect.width += priv->rect.left - sel->r.left; in ov6650_set_selection()
496 priv->rect.left = sel->r.left; in ov6650_set_selection()
501 priv->rect.width = sel->r.width; in ov6650_set_selection()
505 priv->rect.height += priv->rect.top - sel->r.top; in ov6650_set_selection()
506 priv->rect.top = sel->r.top; in ov6650_set_selection()
511 priv->rect.height = sel->r.height; in ov6650_set_selection()
537 mf->width = priv->rect.width >> priv->half_scale; in ov6650_get_fmt()
538 mf->height = priv->rect.height >> priv->half_scale; in ov6650_get_fmt()
544 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok() argument
546 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok()
571 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt()
575 .r.left = priv->rect.left + (priv->rect.width >> 1) - in ov6650_s_fmt()
577 .r.top = priv->rect.top + (priv->rect.height >> 1) - in ov6650_s_fmt()
692 if (is_unscaled_ok(mf->width, mf->height, &priv->rect)) in ov6650_set_fmt()
734 mf->width = priv->rect.width >> priv->half_scale; in ov6650_set_fmt()
735 mf->height = priv->rect.height >> priv->half_scale; in ov6650_set_fmt()
1035 priv->rect.left = DEF_HSTRT << 1; in ov6650_probe()
1036 priv->rect.top = DEF_VSTRT << 1; in ov6650_probe()
1037 priv->rect.width = W_CIF; in ov6650_probe()
1038 priv->rect.height = H_CIF; in ov6650_probe()