Lines Matching full:format

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