[media] vivid: add support for 8-bit Bayer formats
Add support for: PIX_FMT_SBGGR8, SGBRG8, SGRBG8 and SRGGB8. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
87c674e243
commit
02aa769d9f
@@ -383,6 +383,38 @@ struct vivid_fmt vivid_formats[] = {
|
||||
.buffers = 1,
|
||||
.alpha_mask = 0xff000000,
|
||||
},
|
||||
{
|
||||
.name = "Bayer BG/GR",
|
||||
.fourcc = V4L2_PIX_FMT_SBGGR8, /* Bayer BG/GR */
|
||||
.vdownsampling = { 1 },
|
||||
.bit_depth = { 8 },
|
||||
.planes = 1,
|
||||
.buffers = 1,
|
||||
},
|
||||
{
|
||||
.name = "Bayer GB/RG",
|
||||
.fourcc = V4L2_PIX_FMT_SGBRG8, /* Bayer GB/RG */
|
||||
.vdownsampling = { 1 },
|
||||
.bit_depth = { 8 },
|
||||
.planes = 1,
|
||||
.buffers = 1,
|
||||
},
|
||||
{
|
||||
.name = "Bayer GR/BG",
|
||||
.fourcc = V4L2_PIX_FMT_SGRBG8, /* Bayer GR/BG */
|
||||
.vdownsampling = { 1 },
|
||||
.bit_depth = { 8 },
|
||||
.planes = 1,
|
||||
.buffers = 1,
|
||||
},
|
||||
{
|
||||
.name = "Bayer RG/GB",
|
||||
.fourcc = V4L2_PIX_FMT_SRGGB8, /* Bayer RG/GB */
|
||||
.vdownsampling = { 1 },
|
||||
.bit_depth = { 8 },
|
||||
.planes = 1,
|
||||
.buffers = 1,
|
||||
},
|
||||
{
|
||||
.name = "4:2:2, biplanar, YUV",
|
||||
.fourcc = V4L2_PIX_FMT_NV16M,
|
||||
|
Reference in New Issue
Block a user