media: vivid: Add support for the new YUVA and YUVX formats
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 7 Mar 2022 17:01:38 +0000 (17:01 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 15 Jul 2022 14:01:51 +0000 (15:01 +0100)
Extend vivid to support the newly added YUVA and YUVX pixel formats
through the TPG.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/test-drivers/vivid/vivid-vid-common.c

index 19701fe..38d788b 100644 (file)
@@ -199,6 +199,21 @@ struct vivid_fmt vivid_formats[] = {
                .buffers = 1,
        },
        {
+               .fourcc   = V4L2_PIX_FMT_YUVA32,
+               .vdownsampling = { 1 },
+               .bit_depth = { 32 },
+               .planes   = 1,
+               .buffers = 1,
+               .alpha_mask = 0xff000000,
+       },
+       {
+               .fourcc   = V4L2_PIX_FMT_YUVX32,
+               .vdownsampling = { 1 },
+               .bit_depth = { 32 },
+               .planes   = 1,
+               .buffers = 1,
+       },
+       {
                .fourcc   = V4L2_PIX_FMT_GREY,
                .vdownsampling = { 1 },
                .bit_depth = { 8 },