Lines Matching refs:mf
789 struct v4l2_mbus_framefmt *mf = &sfmt.format; in fimc_pipeline_try_format() local
806 ffmt = fimc_find_format(NULL, mf->code != 0 ? &mf->code : NULL, in fimc_pipeline_try_format()
815 mf->code = tfmt->code = ffmt->mbus_code; in fimc_pipeline_try_format()
828 mf->code = tfmt->code; in fimc_pipeline_try_format()
841 if (mf->code != tfmt->code) in fimc_pipeline_try_format()
845 tfmt->width = mf->width; in fimc_pipeline_try_format()
846 tfmt->height = mf->height; in fimc_pipeline_try_format()
852 mf->code = ffmt->mbus_code; in fimc_pipeline_try_format()
853 if (mf->width != tfmt->width || mf->height != tfmt->height) in fimc_pipeline_try_format()
855 tfmt->code = mf->code; in fimc_pipeline_try_format()
861 *tfmt = *mf; in fimc_pipeline_try_format()
966 struct v4l2_mbus_framefmt *mf; in __video_try_or_set_format() local
968 mf = try ? &mbus_fmt : &fimc->vid_cap.ci_fmt; in __video_try_or_set_format()
970 mf->code = (*out_fmt)->mbus_code; in __video_try_or_set_format()
971 mf->width = pix->width; in __video_try_or_set_format()
972 mf->height = pix->height; in __video_try_or_set_format()
975 ret = fimc_pipeline_try_format(ctx, mf, inp_fmt, try); in __video_try_or_set_format()
981 pix->width = mf->width; in __video_try_or_set_format()
982 pix->height = mf->height; in __video_try_or_set_format()
1504 struct v4l2_mbus_framefmt *mf; in fimc_subdev_get_fmt() local
1507 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in fimc_subdev_get_fmt()
1508 fmt->format = *mf; in fimc_subdev_get_fmt()
1512 mf = &fmt->format; in fimc_subdev_get_fmt()
1518 mf->code = ff->fmt->mbus_code; in fimc_subdev_get_fmt()
1520 mf->width = ff->width; in fimc_subdev_get_fmt()
1521 mf->height = ff->height; in fimc_subdev_get_fmt()
1524 *mf = fimc->vid_cap.wb_fmt; in fimc_subdev_get_fmt()
1528 *mf = fimc->vid_cap.ci_fmt; in fimc_subdev_get_fmt()
1533 mf->colorspace = V4L2_COLORSPACE_JPEG; in fimc_subdev_get_fmt()
1543 struct v4l2_mbus_framefmt *mf = &fmt->format; in fimc_subdev_set_fmt() local
1550 fmt->pad, mf->code, mf->width, mf->height); in fimc_subdev_set_fmt()
1556 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height, in fimc_subdev_set_fmt()
1557 &mf->code, NULL, fmt->pad); in fimc_subdev_set_fmt()
1559 mf->colorspace = V4L2_COLORSPACE_JPEG; in fimc_subdev_set_fmt()
1562 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in fimc_subdev_set_fmt()
1563 *mf = fmt->format; in fimc_subdev_set_fmt()
1577 mf->width = ctx->s_frame.width; in fimc_subdev_set_fmt()
1578 mf->height = ctx->s_frame.height; in fimc_subdev_set_fmt()
1584 set_frame_bounds(ff, mf->width, mf->height); in fimc_subdev_set_fmt()
1587 vc->wb_fmt = *mf; in fimc_subdev_set_fmt()
1589 vc->ci_fmt = *mf; in fimc_subdev_set_fmt()
1595 set_frame_crop(ff, 0, 0, mf->width, mf->height); in fimc_subdev_set_fmt()