Lines Matching defs:format

85 	struct v4l2_mbus_framefmt *format;
88 format = &ipipe->formats[IPIPE_PAD_SINK];
101 (format->height - 2) & IPIPE_SRC_VSZ_MASK);
103 (format->width - 1) & IPIPE_SRC_HSZ_MASK);
115 format = &ipipe->formats[IPIPE_PAD_SOURCE_VP];
189 * ipipe_try_format - Try video format on a pad
202 struct v4l2_mbus_framefmt *format;
225 format = __ipipe_get_format(ipipe, sd_state, IPIPE_PAD_SINK,
227 memcpy(fmt, format, sizeof(*fmt));
240 * ipipe_enum_mbus_code - Handle pixel format enumeration
259 /* FIXME: Forced format conversion inside IPIPE ? */
278 struct v4l2_mbus_framefmt format;
283 format.code = fse->code;
284 format.width = 1;
285 format.height = 1;
286 ipipe_try_format(ipipe, sd_state, fse->pad, &format, fse->which);
287 fse->min_width = format.width;
288 fse->min_height = format.height;
290 if (format.code != fse->code)
293 format.code = fse->code;
294 format.width = -1;
295 format.height = -1;
296 ipipe_try_format(ipipe, sd_state, fse->pad, &format, fse->which);
297 fse->max_width = format.width;
298 fse->max_height = format.height;
304 * ipipe_get_format - Retrieve the video format on a pad
310 * to the format type.
317 struct v4l2_mbus_framefmt *format;
319 format = __ipipe_get_format(ipipe, sd_state, fmt->pad, fmt->which);
320 if (!format)
323 fmt->format = *format;
328 * ipipe_set_format - Set the video format on a pad
334 * to the format type.
341 struct v4l2_mbus_framefmt *format;
343 format = __ipipe_get_format(ipipe, sd_state, fmt->pad, fmt->which);
344 if (!format)
347 ipipe_try_format(ipipe, sd_state, fmt->pad, &fmt->format, fmt->which);
348 *format = fmt->format;
350 /* Propagate the format from sink to source */
352 format = __ipipe_get_format(ipipe, sd_state,
355 *format = fmt->format;
356 ipipe_try_format(ipipe, sd_state, IPIPE_PAD_SOURCE_VP, format,
368 if (source_fmt->format.width != sink_fmt->format.width ||
369 source_fmt->format.height != sink_fmt->format.height)
372 if (source_fmt->format.code != sink_fmt->format.code)
389 struct v4l2_subdev_format format;
391 memset(&format, 0, sizeof(format));
392 format.pad = IPIPE_PAD_SINK;
393 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE;
394 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
395 format.format.width = 4096;
396 format.format.height = 4096;
397 ipipe_set_format(sd, fh ? fh->state : NULL, &format);