Lines Matching refs:fmt
97 struct v4l2_subdev_format *fmt)
102 fmt->format = fmt->which == V4L2_SUBDEV_FORMAT_TRY ?
103 *v4l2_subdev_state_get_format(sd_state, fmt->pad) :
127 static void vimc_sensor_adjust_fmt(struct v4l2_mbus_framefmt *fmt)
132 vpix = vimc_pix_map_by_code(fmt->code);
134 fmt->code = fmt_default.code;
136 fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH,
138 fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT,
142 if (fmt->field == V4L2_FIELD_ANY || fmt->field == V4L2_FIELD_ALTERNATE)
143 fmt->field = fmt_default.field;
145 vimc_colorimetry_clamp(fmt);
150 struct v4l2_subdev_format *fmt)
155 if (fmt->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
162 mf = v4l2_subdev_state_get_format(sd_state, fmt->pad);
166 vimc_sensor_adjust_fmt(&fmt->format);
176 fmt->format.width, fmt->format.height, fmt->format.code,
177 fmt->format.colorspace, fmt->format.quantization,
178 fmt->format.xfer_func, fmt->format.ycbcr_enc);
180 *mf = fmt->format;