Lines Matching refs:mf
852 struct v4l2_mbus_framefmt *mf = &format->format; in ov2640_get_fmt() local
865 mf->width = priv->win->width; in ov2640_get_fmt()
866 mf->height = priv->win->height; in ov2640_get_fmt()
867 mf->code = priv->cfmt_code; in ov2640_get_fmt()
869 switch (mf->code) { in ov2640_get_fmt()
872 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov2640_get_fmt()
877 mf->colorspace = V4L2_COLORSPACE_JPEG; in ov2640_get_fmt()
879 mf->field = V4L2_FIELD_NONE; in ov2640_get_fmt()
888 struct v4l2_mbus_framefmt *mf = &format->format; in ov2640_set_fmt() local
897 ov2640_select_win(&mf->width, &mf->height); in ov2640_set_fmt()
899 mf->field = V4L2_FIELD_NONE; in ov2640_set_fmt()
901 switch (mf->code) { in ov2640_set_fmt()
904 mf->colorspace = V4L2_COLORSPACE_SRGB; in ov2640_set_fmt()
907 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in ov2640_set_fmt()
910 mf->colorspace = V4L2_COLORSPACE_JPEG; in ov2640_set_fmt()
914 return ov2640_set_params(client, &mf->width, in ov2640_set_fmt()
915 &mf->height, mf->code); in ov2640_set_fmt()
916 cfg->try_fmt = *mf; in ov2640_set_fmt()