]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: vivid: Add definitions for the 32-bit packed YUV formats
authorVivek Kasireddy <vivek.kasireddy@intel.com>
Fri, 8 Feb 2019 03:18:45 +0000 (22:18 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 19:32:42 +0000 (14:32 -0500)
Enable vivid to make use of the following formats:
 V4L2_PIX_FMT_AYUV32
 V4L2_PIX_FMT_XYUV32
 V4L2_PIX_FMT_VUYA32
 V4L2_PIX_FMT_VUYX32

Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-vid-common.c

index 661f4015fba1afc071012440e767a301bbe102c7..74b83bcc611981deb5079ac8b15d2a8a17749178 100644 (file)
@@ -168,6 +168,36 @@ struct vivid_fmt vivid_formats[] = {
                .buffers = 1,
                .alpha_mask = 0x000000ff,
        },
+       {
+               .fourcc   = V4L2_PIX_FMT_AYUV32,
+               .vdownsampling = { 1 },
+               .bit_depth = { 32 },
+               .planes   = 1,
+               .buffers = 1,
+               .alpha_mask = 0x000000ff,
+       },
+       {
+               .fourcc   = V4L2_PIX_FMT_XYUV32,
+               .vdownsampling = { 1 },
+               .bit_depth = { 32 },
+               .planes   = 1,
+               .buffers = 1,
+       },
+       {
+               .fourcc   = V4L2_PIX_FMT_VUYA32,
+               .vdownsampling = { 1 },
+               .bit_depth = { 32 },
+               .planes   = 1,
+               .buffers = 1,
+               .alpha_mask = 0xff000000,
+       },
+       {
+               .fourcc   = V4L2_PIX_FMT_VUYX32,
+               .vdownsampling = { 1 },
+               .bit_depth = { 32 },
+               .planes   = 1,
+               .buffers = 1,
+       },
        {
                .fourcc   = V4L2_PIX_FMT_GREY,
                .vdownsampling = { 1 },