mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
media: nxp: imx8-isi: Add additional 32-bit RGB format support
Add support for additional 32-bit RGB pixel formats (BGRA32, RGBA32, BGRX32, RGBX32, ARGB2101010). Formats with alpha channel (BGRA32, RGBA32) only support capture as ISI ignores alpha bits when reading from memory. Signed-off-by: Robert Chiras <robert.chiras@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Guoniu Zhou <guoniu.zhou@oss.nxp.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com> Link: https://patch.msgid.link/20260728-isi-v5-4-1d22ab91602a@oss.nxp.com Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
383d13eaf1
commit
06c70039c7
|
|
@ -166,6 +166,57 @@ static const struct mxc_isi_format_info mxc_isi_formats[] = {
|
|||
.color_planes = 1,
|
||||
.depth = { 32 },
|
||||
.encoding = MXC_ISI_ENC_RGB,
|
||||
}, {
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB888_1X24,
|
||||
.fourcc = V4L2_PIX_FMT_BGRA32,
|
||||
.type = MXC_ISI_VIDEO_CAP | MXC_ISI_VIDEO_M2M_CAP,
|
||||
.isi_out_format = CHNL_IMG_CTRL_FORMAT_RGBA8888,
|
||||
.mem_planes = 1,
|
||||
.color_planes = 1,
|
||||
.depth = { 32 },
|
||||
.encoding = MXC_ISI_ENC_RGB,
|
||||
}, {
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB888_1X24,
|
||||
.fourcc = V4L2_PIX_FMT_RGBA32,
|
||||
.type = MXC_ISI_VIDEO_CAP | MXC_ISI_VIDEO_M2M_CAP,
|
||||
.isi_out_format = CHNL_IMG_CTRL_FORMAT_ABGR8888,
|
||||
.mem_planes = 1,
|
||||
.color_planes = 1,
|
||||
.depth = { 32 },
|
||||
.encoding = MXC_ISI_ENC_RGB,
|
||||
}, {
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB888_1X24,
|
||||
.fourcc = V4L2_PIX_FMT_BGRX32,
|
||||
.type = MXC_ISI_VIDEO_CAP | MXC_ISI_VIDEO_M2M_OUT
|
||||
| MXC_ISI_VIDEO_M2M_CAP,
|
||||
.isi_in_format = CHNL_MEM_RD_CTRL_IMG_TYPE_RGBX8,
|
||||
.isi_out_format = CHNL_IMG_CTRL_FORMAT_RGBX888,
|
||||
.mem_planes = 1,
|
||||
.color_planes = 1,
|
||||
.depth = { 32 },
|
||||
.encoding = MXC_ISI_ENC_RGB,
|
||||
}, {
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB888_1X24,
|
||||
.fourcc = V4L2_PIX_FMT_RGBX32,
|
||||
.type = MXC_ISI_VIDEO_CAP | MXC_ISI_VIDEO_M2M_OUT
|
||||
| MXC_ISI_VIDEO_M2M_CAP,
|
||||
.isi_in_format = CHNL_MEM_RD_CTRL_IMG_TYPE_XBGR8,
|
||||
.isi_out_format = CHNL_IMG_CTRL_FORMAT_XBGR888,
|
||||
.mem_planes = 1,
|
||||
.color_planes = 1,
|
||||
.depth = { 32 },
|
||||
.encoding = MXC_ISI_ENC_RGB,
|
||||
}, {
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB888_1X24,
|
||||
.fourcc = V4L2_PIX_FMT_ARGB2101010,
|
||||
.type = MXC_ISI_VIDEO_CAP | MXC_ISI_VIDEO_M2M_OUT
|
||||
| MXC_ISI_VIDEO_M2M_CAP,
|
||||
.isi_in_format = CHNL_MEM_RD_CTRL_IMG_TYPE_A2RGB10,
|
||||
.isi_out_format = CHNL_IMG_CTRL_FORMAT_A2RGB10,
|
||||
.mem_planes = 1,
|
||||
.color_planes = 1,
|
||||
.depth = { 32 },
|
||||
.encoding = MXC_ISI_ENC_RGB,
|
||||
},
|
||||
/*
|
||||
* RAW formats
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user