Lines Matching refs:half_scale
198 bool half_scale; /* scale down output by 2 */ member
537 bool half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_selection() local
543 mf->width = crop->width >> half_scale; in ov6650_set_selection()
544 mf->height = crop->height >> half_scale; in ov6650_set_selection()
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()
606 static int ov6650_s_fmt(struct v4l2_subdev *sd, u32 code, bool half_scale) in ov6650_s_fmt() argument
632 if (half_scale) { in ov6650_s_fmt()
642 if (half_scale) { in ov6650_s_fmt()
669 if (half_scale) { in ov6650_s_fmt()
679 priv->half_scale = half_scale; in ov6650_s_fmt()
697 bool half_scale; in ov6650_set_fmt() local
724 half_scale = !is_unscaled_ok(mf->width, mf->height, crop); in ov6650_set_fmt()
728 sd_state->pads->try_fmt.width = crop->width >> half_scale; in ov6650_set_fmt()
729 sd_state->pads->try_fmt.height = crop->height >> half_scale; 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()
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()