Lines Matching refs:mf

535 		struct v4l2_mbus_framefmt *mf = &sd_state->pads->try_fmt;  in ov6650_set_selection()  local
537 bool half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_selection()
543 mf->width = crop->width >> half_scale; in ov6650_set_selection()
544 mf->height = crop->height >> half_scale; in ov6650_set_selection()
579 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_get_fmt() local
587 *mf = ov6650_def_fmt; in ov6650_get_fmt()
591 mf->width = sd_state->pads->try_fmt.width; in ov6650_get_fmt()
592 mf->height = sd_state->pads->try_fmt.height; in ov6650_get_fmt()
593 mf->code = sd_state->pads->try_fmt.code; in ov6650_get_fmt()
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()
598 mf->code = priv->code; in ov6650_get_fmt()
693 struct v4l2_mbus_framefmt *mf = &format->format; in ov6650_set_fmt() local
702 switch (mf->code) { in ov6650_set_fmt()
704 mf->code = MEDIA_BUS_FMT_Y8_1X8; in ov6650_set_fmt()
713 mf->code = MEDIA_BUS_FMT_SBGGR8_1X8; in ov6650_set_fmt()
724 half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_fmt()
730 sd_state->pads->try_fmt.code = mf->code; in ov6650_set_fmt()
733 *mf = ov6650_def_fmt; in ov6650_set_fmt()
734 mf->width = sd_state->pads->try_fmt.width; in ov6650_set_fmt()
735 mf->height = sd_state->pads->try_fmt.height; in ov6650_set_fmt()
736 mf->code = sd_state->pads->try_fmt.code; in ov6650_set_fmt()
742 if (mf->code != priv->code || half_scale != priv->half_scale) in ov6650_set_fmt()
743 ret = ov6650_s_fmt(sd, mf->code, half_scale); in ov6650_set_fmt()
748 *mf = ov6650_def_fmt; 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()
751 mf->code = priv->code; in ov6650_set_fmt()