Lines Matching defs:format
30 /* Frame format for both sink and src pad */
103 /* We don't support bayer format */
121 /* Only accept code in the pix map table in non bayer format */
160 struct v4l2_subdev_format *format)
164 format->format = *vimc_scaler_pad_format(vscaler, sd_state, format->pad,
165 format->which);
171 struct v4l2_subdev_format *format)
176 /* Do not change the active format while stream is on */
177 if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE && vscaler->src_frame)
180 fmt = vimc_scaler_pad_format(vscaler, sd_state, format->pad, format->which);
186 if (format->pad == VIMC_SCALER_SINK) {
189 /* Only accept code in the pix map table in non bayer format. */
190 vpix = vimc_pix_map_by_code(format->format.code);
192 fmt->code = format->format.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;
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,
211 * Propagate the sink pad format to the crop rectangle and the source
214 if (format->pad == VIMC_SCALER_SINK) {
218 crop = vimc_scaler_pad_crop(vscaler, sd_state, format->which);
225 format->which);
229 format->format = *fmt;
431 /* Initialize the frame format */