Lines Matching defs:fmt
217 struct v4l2_subdev_format *fmt)
222 fmt->format = fmt->which == V4L2_SUBDEV_FORMAT_TRY ?
227 if (VIMC_IS_SRC(fmt->pad))
228 fmt->format.code = vdeb->src_code;
233 static void vimc_deb_adjust_sink_fmt(struct v4l2_mbus_framefmt *fmt)
238 vpix = vimc_deb_pix_map_by_code(fmt->code);
240 fmt->code = sink_fmt_default.code;
242 fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH,
244 fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT,
247 if (fmt->field == V4L2_FIELD_ANY)
248 fmt->field = sink_fmt_default.field;
250 vimc_colorimetry_clamp(fmt);
255 struct v4l2_subdev_format *fmt)
261 if (fmt->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
277 if (VIMC_IS_SRC(fmt->pad)) {
278 u32 code = fmt->format.code;
280 fmt->format = *sink_fmt;
285 fmt->format.code = *src_code;
288 vimc_deb_adjust_sink_fmt(&fmt->format);
298 fmt->format.width, fmt->format.height, fmt->format.code,
299 fmt->format.colorspace, fmt->format.quantization,
300 fmt->format.xfer_func, fmt->format.ycbcr_enc);
302 *sink_fmt = fmt->format;