Lines Matching refs:mf
503 struct v4l2_mbus_framefmt *mf) in ov6650_g_fmt() argument
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()
510 mf->code = priv->code; in ov6650_g_fmt()
511 mf->colorspace = priv->colorspace; in ov6650_g_fmt()
512 mf->field = V4L2_FIELD_NONE; in ov6650_g_fmt()
540 static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov6650_s_fmt() argument
546 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt()
551 (mf->width >> (1 - half_scale)), in ov6650_s_fmt()
553 (mf->height >> (1 - half_scale)), in ov6650_s_fmt()
554 .width = mf->width << half_scale, in ov6650_s_fmt()
555 .height = mf->height << half_scale, in ov6650_s_fmt()
558 u32 code = mf->code; in ov6650_s_fmt()
679 mf->colorspace = priv->colorspace; 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()
688 struct v4l2_mbus_framefmt *mf) in ov6650_try_fmt() argument
693 if (is_unscaled_ok(mf->width, mf->height, &priv->rect)) in ov6650_try_fmt()
694 v4l_bound_align_image(&mf->width, 2, W_CIF, 1, in ov6650_try_fmt()
695 &mf->height, 2, H_CIF, 1, 0); in ov6650_try_fmt()
697 mf->field = V4L2_FIELD_NONE; in ov6650_try_fmt()
699 switch (mf->code) { in ov6650_try_fmt()
701 mf->code = MEDIA_BUS_FMT_Y8_1X8; in ov6650_try_fmt()
707 mf->colorspace = V4L2_COLORSPACE_JPEG; in ov6650_try_fmt()
710 mf->code = MEDIA_BUS_FMT_SBGGR8_1X8; in ov6650_try_fmt()
712 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov6650_try_fmt()