Lines Matching defs:fmt
28 /* NOTE: the source fmt is the same as the sink
183 static void vimc_sca_adjust_sink_fmt(struct v4l2_mbus_framefmt *fmt)
188 vpix = vimc_pix_map_by_code(fmt->code);
190 fmt->code = sink_fmt_default.code;
192 fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH,
194 fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT,
197 if (fmt->field == V4L2_FIELD_ANY)
198 fmt->field = sink_fmt_default.field;
200 vimc_colorimetry_clamp(fmt);
205 struct v4l2_subdev_format *fmt)
211 if (fmt->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
227 if (VIMC_IS_SRC(fmt->pad)) {
228 fmt->format = *sink_fmt;
229 fmt->format.width = crop_rect->width * sca_mult;
230 fmt->format.height = crop_rect->height * sca_mult;
233 vimc_sca_adjust_sink_fmt(&fmt->format);
243 fmt->format.width, fmt->format.height, fmt->format.code,
244 fmt->format.colorspace, fmt->format.quantization,
245 fmt->format.xfer_func, fmt->format.ycbcr_enc);
247 *sink_fmt = fmt->format;