Lines Matching refs:mf
541 struct v4l2_mbus_framefmt *mf = &format->format;
549 *mf = ov6650_def_fmt;
553 mf->width = cfg->try_fmt.width;
554 mf->height = cfg->try_fmt.height;
555 mf->code = cfg->try_fmt.code;
558 mf->width = priv->rect.width >> priv->half_scale;
559 mf->height = priv->rect.height >> priv->half_scale;
560 mf->code = priv->code;
573 static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf)
577 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect);
582 (mf->width >> (1 - half_scale)),
584 (mf->height >> (1 - half_scale)),
585 .r.width = mf->width << half_scale,
586 .r.height = mf->height << half_scale,
588 u32 code = mf->code;
674 struct v4l2_mbus_framefmt *mf = &format->format;
681 if (is_unscaled_ok(mf->width, mf->height, &priv->rect))
682 v4l_bound_align_image(&mf->width, 2, W_CIF, 1,
683 &mf->height, 2, H_CIF, 1, 0);
685 switch (mf->code) {
687 mf->code = MEDIA_BUS_FMT_Y8_1X8;
696 mf->code = MEDIA_BUS_FMT_SBGGR8_1X8;
704 cfg->try_fmt.width = mf->width;
705 cfg->try_fmt.height = mf->height;
706 cfg->try_fmt.code = mf->code;
709 *mf = ov6650_def_fmt;
710 mf->width = cfg->try_fmt.width;
711 mf->height = cfg->try_fmt.height;
712 mf->code = cfg->try_fmt.code;
716 int ret = ov6650_s_fmt(sd, mf);
722 *mf = ov6650_def_fmt;
723 mf->width = priv->rect.width >> priv->half_scale;
724 mf->height = priv->rect.height >> priv->half_scale;
725 mf->code = priv->code;
893 struct v4l2_mbus_framefmt mf = ov6650_def_fmt;
895 ret = ov6650_s_fmt(sd, &mf);