Lines Matching defs:fmt
2204 struct v4l2_mbus_framefmt *fmt =
2209 fmt->width = default_mode->width;
2210 fmt->height = default_mode->height;
2211 fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10;
2212 fmt->field = V4L2_FIELD_NONE;
2213 fmt->colorspace = V4L2_COLORSPACE_SRGB;
2214 fmt->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(V4L2_COLORSPACE_SRGB);
2215 fmt->quantization = V4L2_QUANTIZATION_FULL_RANGE;
2216 fmt->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(V4L2_COLORSPACE_SRGB);
2255 struct v4l2_subdev_format *fmt)
2257 fmt->format.width = mode->width;
2258 fmt->format.height = mode->height;
2259 fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
2260 fmt->format.field = V4L2_FIELD_NONE;
2265 struct v4l2_subdev_format *fmt)
2267 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY)
2268 fmt->format = *v4l2_subdev_get_try_format(&ov5670->sd,
2270 fmt->pad);
2272 ov5670_update_pad_format(ov5670->cur_mode, fmt);
2279 struct v4l2_subdev_format *fmt)
2285 ret = ov5670_do_get_pad_format(ov5670, sd_state, fmt);
2293 struct v4l2_subdev_format *fmt)
2307 fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
2312 fmt->format.width, fmt->format.height);
2313 ov5670_update_pad_format(mode, fmt);
2314 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) {
2315 *v4l2_subdev_get_try_format(sd, sd_state, fmt->pad) = fmt->format;