Lines Matching refs:format
238 struct v4l2_mbus_framefmt format; member
384 return &mt9v032->format; in __mt9v032_get_pad_format()
481 struct v4l2_subdev_format *format) in mt9v032_get_format() argument
485 format->format = *__mt9v032_get_pad_format(mt9v032, cfg, format->pad, in mt9v032_get_format()
486 format->which); in mt9v032_get_format()
516 struct v4l2_subdev_format *format) in mt9v032_set_format() argument
526 __crop = __mt9v032_get_pad_crop(mt9v032, cfg, format->pad, in mt9v032_set_format()
527 format->which); in mt9v032_set_format()
530 width = clamp(ALIGN(format->format.width, 2), in mt9v032_set_format()
534 height = clamp(ALIGN(format->format.height, 2), in mt9v032_set_format()
542 __format = __mt9v032_get_pad_format(mt9v032, cfg, format->pad, in mt9v032_set_format()
543 format->which); in mt9v032_set_format()
547 if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) { in mt9v032_set_format()
553 format->format = *__format; in mt9v032_set_format()
813 struct v4l2_mbus_framefmt *format; in mt9v032_open() local
822 format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); in mt9v032_open()
825 format->code = MEDIA_BUS_FMT_SGRBG10_1X10; in mt9v032_open()
827 format->code = MEDIA_BUS_FMT_Y10_1X10; in mt9v032_open()
829 format->width = MT9V032_WINDOW_WIDTH_DEF; in mt9v032_open()
830 format->height = MT9V032_WINDOW_HEIGHT_DEF; in mt9v032_open()
831 format->field = V4L2_FIELD_NONE; in mt9v032_open()
832 format->colorspace = V4L2_COLORSPACE_SRGB; in mt9v032_open()
1028 mt9v032->format.code = MEDIA_BUS_FMT_SGRBG10_1X10; in mt9v032_probe()
1030 mt9v032->format.code = MEDIA_BUS_FMT_Y10_1X10; in mt9v032_probe()
1032 mt9v032->format.width = MT9V032_WINDOW_WIDTH_DEF; in mt9v032_probe()
1033 mt9v032->format.height = MT9V032_WINDOW_HEIGHT_DEF; in mt9v032_probe()
1034 mt9v032->format.field = V4L2_FIELD_NONE; in mt9v032_probe()
1035 mt9v032->format.colorspace = V4L2_COLORSPACE_SRGB; in mt9v032_probe()