diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-03-07 18:01:38 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-07-15 16:01:51 +0200 |
commit | b0afed239a5baf72cacc3023e852c7a5125c2a8f (patch) | |
tree | 08bb201fd2ff1694b567c99434b5c81ab656c6d4 /drivers/media/test-drivers | |
parent | media: v4l2-tpg: Add support for the new YUVA and YUVX formats (diff) | |
download | linux-b0afed239a5baf72cacc3023e852c7a5125c2a8f.tar.xz linux-b0afed239a5baf72cacc3023e852c7a5125c2a8f.zip |
media: vivid: Add support for the new YUVA and YUVX formats
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>
Diffstat (limited to 'drivers/media/test-drivers')
-rw-r--r-- | drivers/media/test-drivers/vivid/vivid-vid-common.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/media/test-drivers/vivid/vivid-vid-common.c b/drivers/media/test-drivers/vivid/vivid-vid-common.c index 19701fe72030..38d788b5cf19 100644 --- a/drivers/media/test-drivers/vivid/vivid-vid-common.c +++ b/drivers/media/test-drivers/vivid/vivid-vid-common.c @@ -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 }, |