• Home
  • Raw
  • Download

Lines Matching refs:mf

327 	struct v4l2_mbus_framefmt *mf = &format->format;  in mt9m001_get_fmt()  local
333 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in mt9m001_get_fmt()
334 format->format = *mf; in mt9m001_get_fmt()
338 mf->width = mt9m001->rect.width; in mt9m001_get_fmt()
339 mf->height = mt9m001->rect.height; in mt9m001_get_fmt()
340 mf->code = mt9m001->fmt->code; in mt9m001_get_fmt()
341 mf->colorspace = mt9m001->fmt->colorspace; in mt9m001_get_fmt()
342 mf->field = V4L2_FIELD_NONE; in mt9m001_get_fmt()
343 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in mt9m001_get_fmt()
344 mf->quantization = V4L2_QUANTIZATION_DEFAULT; in mt9m001_get_fmt()
345 mf->xfer_func = V4L2_XFER_FUNC_DEFAULT; in mt9m001_get_fmt()
352 struct v4l2_mbus_framefmt *mf) in mt9m001_s_fmt() argument
361 .r.width = mf->width, in mt9m001_s_fmt()
362 .r.height = mf->height, in mt9m001_s_fmt()
369 mf->width = mt9m001->rect.width; in mt9m001_s_fmt()
370 mf->height = mt9m001->rect.height; in mt9m001_s_fmt()
372 mf->colorspace = fmt->colorspace; in mt9m001_s_fmt()
382 struct v4l2_mbus_framefmt *mf = &format->format; in mt9m001_set_fmt() local
390 v4l_bound_align_image(&mf->width, MT9M001_MIN_WIDTH, in mt9m001_set_fmt()
392 &mf->height, MT9M001_MIN_HEIGHT + mt9m001->y_skip_top, in mt9m001_set_fmt()
396 mf->height = ALIGN(mf->height - 1, 2); in mt9m001_set_fmt()
398 fmt = mt9m001_find_datafmt(mf->code, mt9m001->fmts, in mt9m001_set_fmt()
402 mf->code = fmt->code; in mt9m001_set_fmt()
405 mf->colorspace = fmt->colorspace; in mt9m001_set_fmt()
406 mf->field = V4L2_FIELD_NONE; in mt9m001_set_fmt()
407 mf->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in mt9m001_set_fmt()
408 mf->quantization = V4L2_QUANTIZATION_DEFAULT; in mt9m001_set_fmt()
409 mf->xfer_func = V4L2_XFER_FUNC_DEFAULT; in mt9m001_set_fmt()
412 return mt9m001_s_fmt(sd, fmt, mf); in mt9m001_set_fmt()
413 cfg->try_fmt = *mf; in mt9m001_set_fmt()