Lines Matching defs:fmt
218 struct v4l2_subdev_format *fmt)
223 fmt->format = fmt->which == V4L2_SUBDEV_FORMAT_TRY ?
228 if (VIMC_IS_SRC(fmt->pad))
229 fmt->format.code = vdebayer->src_code;
234 static void vimc_debayer_adjust_sink_fmt(struct v4l2_mbus_framefmt *fmt)
239 vpix = vimc_debayer_pix_map_by_code(fmt->code);
241 fmt->code = sink_fmt_default.code;
243 fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH,
245 fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT,
248 if (fmt->field == V4L2_FIELD_ANY)
249 fmt->field = sink_fmt_default.field;
251 vimc_colorimetry_clamp(fmt);
256 struct v4l2_subdev_format *fmt)
262 if (fmt->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
278 if (VIMC_IS_SRC(fmt->pad)) {
279 u32 code = fmt->format.code;
281 fmt->format = *sink_fmt;
286 fmt->format.code = *src_code;
289 vimc_debayer_adjust_sink_fmt(&fmt->format);
299 fmt->format.width, fmt->format.height, fmt->format.code,
300 fmt->format.colorspace, fmt->format.quantization,
301 fmt->format.xfer_func, fmt->format.ycbcr_enc);
303 *sink_fmt = fmt->format;