Lines Matching refs:rect

200 	struct v4l2_rect	rect;		/* sensor cropping window */  member
441 a->c = priv->rect; in ov6650_g_crop()
450 struct v4l2_rect *rect = &a->c; in ov6650_s_crop() local
456 rect->left = ALIGN(rect->left, 2); in ov6650_s_crop()
457 rect->width = ALIGN(rect->width, 2); in ov6650_s_crop()
458 rect->top = ALIGN(rect->top, 2); in ov6650_s_crop()
459 rect->height = ALIGN(rect->height, 2); in ov6650_s_crop()
460 soc_camera_limit_side(&rect->left, &rect->width, in ov6650_s_crop()
462 soc_camera_limit_side(&rect->top, &rect->height, in ov6650_s_crop()
465 ret = ov6650_reg_write(client, REG_HSTRT, rect->left >> 1); in ov6650_s_crop()
467 priv->rect.left = rect->left; in ov6650_s_crop()
469 (rect->left + rect->width) >> 1); in ov6650_s_crop()
472 priv->rect.width = rect->width; in ov6650_s_crop()
473 ret = ov6650_reg_write(client, REG_VSTRT, rect->top >> 1); in ov6650_s_crop()
476 priv->rect.top = rect->top; in ov6650_s_crop()
478 (rect->top + rect->height) >> 1); in ov6650_s_crop()
481 priv->rect.height = rect->height; in ov6650_s_crop()
508 mf->width = priv->rect.width >> priv->half_scale; in ov6650_g_fmt()
509 mf->height = priv->rect.height >> priv->half_scale; in ov6650_g_fmt()
517 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok() argument
519 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok()
546 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt()
550 .left = priv->rect.left + (priv->rect.width >> 1) - in ov6650_s_fmt()
552 .top = priv->rect.top + (priv->rect.height >> 1) - in ov6650_s_fmt()
680 mf->width = priv->rect.width >> half_scale; in ov6650_s_fmt()
681 mf->height = priv->rect.height >> half_scale; in ov6650_s_fmt()
693 if (is_unscaled_ok(mf->width, mf->height, &priv->rect)) in ov6650_try_fmt()
1004 priv->rect.left = DEF_HSTRT << 1; in ov6650_probe()
1005 priv->rect.top = DEF_VSTRT << 1; in ov6650_probe()
1006 priv->rect.width = W_CIF; in ov6650_probe()
1007 priv->rect.height = H_CIF; in ov6650_probe()