Lines Matching defs:format

110  * struct csi2dc_format - CSI2DC format type struct
111 * @mbus_code: Media bus code for the format
112 * @dt: Data type constant for this format
168 * @format: Current saved format used in g/s fmt
169 * @cur_fmt: Current state format
170 * @try_fmt: Try format that is being tried
190 struct v4l2_mbus_framefmt format;
229 struct v4l2_subdev_format *format)
234 if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
236 format->pad);
237 format->format = *v4l2_try_fmt;
242 format->format = csi2dc->format;
258 * The same format is being propagated from the sink to source.
265 if (req_fmt->format.code == fmt->mbus_code)
270 /* in case we could not find the desired format, default to something */
275 "CSI2DC unsupported format 0x%x, defaulting to 0x%x\n",
276 req_fmt->format.code, csi2dc_formats[0].mbus_code);
279 req_fmt->format.code = try_fmt->mbus_code;
280 req_fmt->format.colorspace = V4L2_COLORSPACE_SRGB;
281 req_fmt->format.field = V4L2_FIELD_NONE;
286 *v4l2_try_fmt = req_fmt->format;
291 *v4l2_try_fmt = req_fmt->format;
297 /* save the format for later requests */
298 csi2dc->format = req_fmt->format;
303 dev_dbg(csi2dc->dev, "new format set: 0x%x @%dx%d\n",
304 csi2dc->format.code, csi2dc->format.width,
305 csi2dc->format.height);
637 csi2dc->format.height = 480;
638 csi2dc->format.width = 640;
639 csi2dc->format.code = csi2dc_formats[0].mbus_code;
640 csi2dc->format.colorspace = V4L2_COLORSPACE_SRGB;
641 csi2dc->format.field = V4L2_FIELD_NONE;
642 csi2dc->format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
643 csi2dc->format.quantization = V4L2_QUANTIZATION_DEFAULT;
644 csi2dc->format.xfer_func = V4L2_XFER_FUNC_DEFAULT;