Lines Matching refs:mf
506 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_get_fmt() local
513 mf->width = priv->rect.width >> priv->half_scale; in ov6650_get_fmt()
514 mf->height = priv->rect.height >> priv->half_scale; in ov6650_get_fmt()
515 mf->code = priv->code; in ov6650_get_fmt()
516 mf->colorspace = priv->colorspace; in ov6650_get_fmt()
517 mf->field = V4L2_FIELD_NONE; in ov6650_get_fmt()
545 static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) in ov6650_s_fmt() argument
551 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt()
556 (mf->width >> (1 - half_scale)), in ov6650_s_fmt()
558 (mf->height >> (1 - half_scale)), in ov6650_s_fmt()
559 .width = mf->width << half_scale, in ov6650_s_fmt()
560 .height = mf->height << half_scale, in ov6650_s_fmt()
563 u32 code = mf->code; in ov6650_s_fmt()
684 mf->colorspace = priv->colorspace; in ov6650_s_fmt()
685 mf->width = priv->rect.width >> half_scale; in ov6650_s_fmt()
686 mf->height = priv->rect.height >> half_scale; in ov6650_s_fmt()
695 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_set_fmt() local
702 if (is_unscaled_ok(mf->width, mf->height, &priv->rect)) in ov6650_set_fmt()
703 v4l_bound_align_image(&mf->width, 2, W_CIF, 1, in ov6650_set_fmt()
704 &mf->height, 2, H_CIF, 1, 0); in ov6650_set_fmt()
706 mf->field = V4L2_FIELD_NONE; in ov6650_set_fmt()
708 switch (mf->code) { in ov6650_set_fmt()
710 mf->code = MEDIA_BUS_FMT_Y8_1X8; in ov6650_set_fmt()
716 mf->colorspace = V4L2_COLORSPACE_JPEG; in ov6650_set_fmt()
719 mf->code = MEDIA_BUS_FMT_SBGGR8_1X8; in ov6650_set_fmt()
721 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov6650_set_fmt()
726 return ov6650_s_fmt(sd, mf); in ov6650_set_fmt()
727 cfg->try_fmt = *mf; in ov6650_set_fmt()