OSDN Git Service

[media] vivid: add support for Y10 and Y12
authorHans Verkuil <hansverk@cisco.com>
Fri, 15 Sep 2017 14:51:45 +0000 (11:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 19:59:07 +0000 (16:59 -0300)
Add support for 10 and 12 bit luma formats.

Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-vid-common.c

index f0f423c..a651527 100644 (file)
@@ -189,6 +189,22 @@ struct vivid_fmt vivid_formats[] = {
                .buffers = 1,
        },
        {
+               .fourcc   = V4L2_PIX_FMT_Y10,
+               .vdownsampling = { 1 },
+               .bit_depth = { 16 },
+               .color_enc = TGP_COLOR_ENC_LUMA,
+               .planes   = 1,
+               .buffers = 1,
+       },
+       {
+               .fourcc   = V4L2_PIX_FMT_Y12,
+               .vdownsampling = { 1 },
+               .bit_depth = { 16 },
+               .color_enc = TGP_COLOR_ENC_LUMA,
+               .planes   = 1,
+               .buffers = 1,
+       },
+       {
                .fourcc   = V4L2_PIX_FMT_Y16,
                .vdownsampling = { 1 },
                .bit_depth = { 16 },