MLK-20724: m2m: add RGBA to exend V4L2 standard format for android usage
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Mon, 14 Jan 2019 06:23:03 +0000 (14:23 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Android has RGBA format output but V4L2 framework do not have this format
.In order to support this in our mem2mem driver, we need to extend V4L2
format.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-m2m.c

index 3de8e7a..43ba7f2 100644 (file)
@@ -71,6 +71,13 @@ struct mxc_isi_fmt mxc_isi_input_formats[] = {
                .color = MXC_ISI_M2M_IN_FMT_YUV422_1P8P,
                .memplanes      = 1,
                .colplanes      = 1,
+       }, {
+               .name           = "RGBA (R-G-B-A)",
+               .fourcc         = V4L2_PIX_FMT_RGBA,
+               .depth          = { 32 },
+               .color = MXC_ISI_M2M_IN_FMT_XBGR8,
+               .memplanes      = 1,
+               .colplanes      = 1,
        }
 };