Lines Matching refs:rect

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