Lines Matching defs:format

69 	struct v4l2_subdev_format format = {
87 format.pad = prev_pad;
89 ret = v4l2_subdev_call(&prev->subdev, pad, get_fmt, NULL, &format);
93 format.pad = UIF_PAD_SINK;
95 ret = v4l2_subdev_call(&uif->subdev, pad, set_fmt, NULL, &format);
99 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on UIF sink\n",
100 __func__, format.format.width, format.format.height,
101 format.format.code);
104 * The UIF doesn't mangle the format between its sink and source pads,
105 * so there is no need to retrieve the format on its source pad.
124 struct v4l2_subdev_format format = {
131 * Configure the format on the RPF sink pad and propagate it up to the
136 format.pad = RWPF_PAD_SINK;
137 format.format.width = crop->width + crop->left;
138 format.format.height = crop->height + crop->top;
139 format.format.code = rpf->fmtinfo->mbus;
140 format.format.field = V4L2_FIELD_NONE;
143 &format);
148 "%s: set format %ux%u (%x) on RPF%u sink\n",
149 __func__, format.format.width, format.format.height,
150 format.format.code, rpf->entity.index);
167 * RPF source, hardcode the format to ARGB8888 to turn on format
170 format.pad = RWPF_PAD_SOURCE;
173 &format);
178 "%s: got format %ux%u (%x) on RPF%u source\n",
179 __func__, format.format.width, format.format.height,
180 format.format.code, rpf->entity.index);
182 format.format.code = MEDIA_BUS_FMT_ARGB8888_1X32;
185 &format);
195 /* BRx sink, propagate the format from the RPF source. */
196 format.pad = brx_input;
199 &format);
203 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on %s pad %u\n",
204 __func__, format.format.width, format.format.height,
205 format.format.code, BRX_NAME(pipe->brx), format.pad);
232 struct v4l2_subdev_format format = {
333 * Configure the format on the BRx source and verify that it matches the
334 * requested format. We don't set the media bus code as it is configured
338 format.pad = brx->source_pad;
339 format.format.width = drm_pipe->width;
340 format.format.height = drm_pipe->height;
341 format.format.field = V4L2_FIELD_NONE;
344 &format);
348 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on %s pad %u\n",
349 __func__, format.format.width, format.format.height,
350 format.format.code, BRX_NAME(brx), brx->source_pad);
352 if (format.format.width != drm_pipe->width ||
353 format.format.height != drm_pipe->height) {
354 dev_dbg(vsp1->dev, "%s: format mismatch\n", __func__);
401 * format.
484 struct v4l2_subdev_format format = {
489 format.pad = RWPF_PAD_SINK;
490 format.format.width = drm_pipe->width;
491 format.format.height = drm_pipe->height;
492 format.format.code = MEDIA_BUS_FMT_ARGB8888_1X32;
493 format.format.field = V4L2_FIELD_NONE;
496 &format);
500 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on WPF%u sink\n",
501 __func__, format.format.width, format.format.height,
502 format.format.code, pipe->output->entity.index);
504 format.pad = RWPF_PAD_SOURCE;
506 &format);
510 dev_dbg(vsp1->dev, "%s: got format %ux%u (%x) on WPF%u source\n",
511 __func__, format.format.width, format.format.height,
512 format.format.code, pipe->output->entity.index);
514 format.pad = LIF_PAD_SINK;
516 &format);
520 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on LIF%u sink\n",
521 __func__, format.format.width, format.format.height,
522 format.format.code, pipe->lif->index);
525 * Verify that the format at the output of the pipeline matches the
528 if (format.format.width != drm_pipe->width ||
529 format.format.height != drm_pipe->height ||
530 format.format.code != MEDIA_BUS_FMT_ARGB8888_1X32) {
531 dev_dbg(vsp1->dev, "%s: format mismatch on LIF%u\n", __func__,
587 dev_dbg(vsp1->dev, "Unsupported pixel format %08x\n",
601 rwpf->format.num_planes = fmtinfo->planes;
602 rwpf->format.plane_fmt[0].bytesperline = pitch;
603 rwpf->format.plane_fmt[1].bytesperline = pitch / chroma_hsub;
721 dev_dbg(vsp1->dev, "%s: configuring LIF%u with format %ux%u%s\n",
798 * Image format as stored in memory is expressed as a V4L2 @cfg.pixelformat
849 * Store the format, stride, memory buffer address, crop and compose
863 rpf->format.flags = cfg->premult ? V4L2_PIX_FMT_FLAG_PREMUL_ALPHA : 0;