Lines Matching refs:mf
499 static int s5k4ecgx_try_frame_size(struct v4l2_mbus_framefmt *mf,
508 int err = abs(fsize->size.width - mf->width)
509 + abs(fsize->size.height - mf->height);
517 mf->width = match->size.width;
518 mf->height = match->size.height;
542 struct v4l2_mbus_framefmt *mf;
546 mf = v4l2_subdev_get_try_format(sd, cfg, 0);
547 fmt->format = *mf;
552 mf = &fmt->format;
555 mf->width = priv->curr_frmsize->size.width;
556 mf->height = priv->curr_frmsize->size.height;
557 mf->code = priv->curr_pixfmt->code;
558 mf->colorspace = priv->curr_pixfmt->colorspace;
559 mf->field = V4L2_FIELD_NONE;
566 struct v4l2_mbus_framefmt *mf)
571 if (mf->code == s5k4ecgx_formats[i].code)
573 mf->code = s5k4ecgx_formats[i].code;
584 struct v4l2_mbus_framefmt *mf;
594 mf = v4l2_subdev_get_try_format(sd, cfg, 0);
595 *mf = fmt->format;
689 struct v4l2_mbus_framefmt *mf = v4l2_subdev_get_try_format(sd, fh->pad, 0);
691 mf->width = s5k4ecgx_prev_sizes[0].size.width;
692 mf->height = s5k4ecgx_prev_sizes[0].size.height;
693 mf->code = s5k4ecgx_formats[0].code;
694 mf->colorspace = V4L2_COLORSPACE_JPEG;
695 mf->field = V4L2_FIELD_NONE;