Lines Matching defs:fmt
113 struct v4l2_mbus_framefmt fmt;
179 static void init_format(struct v4l2_mbus_framefmt *fmt)
181 fmt->code = MEDIA_BUS_FMT_SBGGR8_1X8;
182 fmt->field = V4L2_FIELD_NONE;
183 fmt->colorspace = V4L2_COLORSPACE_SRGB;
184 fmt->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(V4L2_COLORSPACE_SRGB);
185 fmt->quantization = V4L2_QUANTIZATION_FULL_RANGE;
186 fmt->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(V4L2_COLORSPACE_SRGB);
187 fmt->width = 640;
188 fmt->height = 480;
372 u32 bpp = bpp_from_code(bridge->fmt.code);
508 if (bridge->fmt.code != MEDIA_BUS_FMT_JPEG_1X8) {
511 data_type = data_type_from_code(bridge->fmt.code);
662 code->code = serial_to_parallel_code(bridge->fmt.code);
680 struct v4l2_mbus_framefmt *fmt;
691 fmt = v4l2_subdev_get_try_format(&bridge->sd, cfg, format->pad);
693 fmt = &bridge->fmt;
697 *mbus_fmt = *fmt;
714 format->format = bridge->fmt;
730 struct v4l2_mbus_framefmt *fmt;
735 fmt = v4l2_subdev_get_try_format(sd, cfg, format->pad);
737 fmt = &bridge->fmt;
739 *fmt = format->format;
952 init_format(&bridge->fmt);