Lines Matching refs:mf
536 struct v4l2_mbus_framefmt *mf = in ov6650_set_selection() local
539 bool half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_selection()
545 mf->width = crop->width >> half_scale; in ov6650_set_selection()
546 mf->height = crop->height >> half_scale; in ov6650_set_selection()
581 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_get_fmt() local
589 *mf = ov6650_def_fmt; in ov6650_get_fmt()
596 mf->width = try_fmt->width; in ov6650_get_fmt()
597 mf->height = try_fmt->height; in ov6650_get_fmt()
598 mf->code = try_fmt->code; in ov6650_get_fmt()
601 mf->width = priv->rect.width >> priv->half_scale; in ov6650_get_fmt()
602 mf->height = priv->rect.height >> priv->half_scale; in ov6650_get_fmt()
603 mf->code = priv->code; in ov6650_get_fmt()
698 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_set_fmt() local
707 switch (mf->code) { in ov6650_set_fmt()
709 mf->code = MEDIA_BUS_FMT_Y8_1X8; in ov6650_set_fmt()
718 mf->code = MEDIA_BUS_FMT_SBGGR8_1X8; in ov6650_set_fmt()
729 half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_fmt()
738 try_fmt->code = mf->code; in ov6650_set_fmt()
741 *mf = ov6650_def_fmt; in ov6650_set_fmt()
742 mf->width = try_fmt->width; in ov6650_set_fmt()
743 mf->height = try_fmt->height; in ov6650_set_fmt()
744 mf->code = try_fmt->code; in ov6650_set_fmt()
750 if (mf->code != priv->code || half_scale != priv->half_scale) in ov6650_set_fmt()
751 ret = ov6650_s_fmt(sd, mf->code, half_scale); in ov6650_set_fmt()
756 *mf = ov6650_def_fmt; in ov6650_set_fmt()
757 mf->width = priv->rect.width >> priv->half_scale; in ov6650_set_fmt()
758 mf->height = priv->rect.height >> priv->half_scale; in ov6650_set_fmt()
759 mf->code = priv->code; in ov6650_set_fmt()