Lines Matching defs:fmt
31 struct v4l2_mbus_framefmt fmt[2];
143 return &vscaler->fmt[pad];
174 struct v4l2_mbus_framefmt *fmt;
180 fmt = vimc_scaler_pad_format(vscaler, sd_state, format->pad, format->which);
192 fmt->code = format->format.code;
194 fmt->code = fmt_default.code;
197 fmt->colorspace = format->format.colorspace;
198 fmt->ycbcr_enc = format->format.ycbcr_enc;
199 fmt->quantization = format->format.quantization;
200 fmt->xfer_func = format->format.xfer_func;
201 vimc_colorimetry_clamp(fmt);
205 fmt->width = clamp_t(u32, format->format.width, VIMC_FRAME_MIN_WIDTH,
207 fmt->height = clamp_t(u32, format->format.height, VIMC_FRAME_MIN_HEIGHT,
219 crop->width = fmt->width;
220 crop->height = fmt->height;
226 *src_fmt = *fmt;
229 format->format = *fmt;
317 vpix = vimc_pix_map_by_code(vscaler->fmt[VIMC_SCALER_SINK].code);
321 frame_size = vscaler->fmt[VIMC_SCALER_SRC].width
322 * vscaler->fmt[VIMC_SCALER_SRC].height * vscaler->bpp;
354 const struct v4l2_mbus_framefmt *src_fmt = &vscaler->fmt[VIMC_SCALER_SRC];
356 unsigned int snk_width = vscaler->fmt[VIMC_SCALER_SINK].width;
432 vscaler->fmt[VIMC_SCALER_SINK] = fmt_default;
433 vscaler->fmt[VIMC_SCALER_SRC] = fmt_default;