forked from Minki/linux
[media] uvcvideo: Add bayer 8-bit patterns to uvcvideo
Add bayer 8-bit GUIDs to uvcvideo and associated them with the corresponding V4L2 pixel formats. Signed-off-by: Edgar Thier <info@edgarthier.net> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
b1e43f2326
commit
e72ed08e66
@ -108,10 +108,30 @@ static struct uvc_format_desc uvc_fmts[] = {
|
||||
.fcc = V4L2_PIX_FMT_Y16,
|
||||
},
|
||||
{
|
||||
.name = "RGB Bayer",
|
||||
.name = "BGGR Bayer (BY8 )",
|
||||
.guid = UVC_GUID_FORMAT_BY8,
|
||||
.fcc = V4L2_PIX_FMT_SBGGR8,
|
||||
},
|
||||
{
|
||||
.name = "BGGR Bayer (BA81)",
|
||||
.guid = UVC_GUID_FORMAT_BA81,
|
||||
.fcc = V4L2_PIX_FMT_SBGGR8,
|
||||
},
|
||||
{
|
||||
.name = "GBRG Bayer (GBRG)",
|
||||
.guid = UVC_GUID_FORMAT_GBRG,
|
||||
.fcc = V4L2_PIX_FMT_SGBRG8,
|
||||
},
|
||||
{
|
||||
.name = "GRBG Bayer (GRBG)",
|
||||
.guid = UVC_GUID_FORMAT_GRBG,
|
||||
.fcc = V4L2_PIX_FMT_SGRBG8,
|
||||
},
|
||||
{
|
||||
.name = "RGGB Bayer (RGGB)",
|
||||
.guid = UVC_GUID_FORMAT_RGGB,
|
||||
.fcc = V4L2_PIX_FMT_SRGGB8,
|
||||
},
|
||||
{
|
||||
.name = "RGB565",
|
||||
.guid = UVC_GUID_FORMAT_RGBP,
|
||||
|
@ -94,6 +94,18 @@
|
||||
#define UVC_GUID_FORMAT_BY8 \
|
||||
{ 'B', 'Y', '8', ' ', 0x00, 0x00, 0x10, 0x00, \
|
||||
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
|
||||
#define UVC_GUID_FORMAT_BA81 \
|
||||
{ 'B', 'A', '8', '1', 0x00, 0x00, 0x10, 0x00, \
|
||||
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
|
||||
#define UVC_GUID_FORMAT_GBRG \
|
||||
{ 'G', 'B', 'R', 'G', 0x00, 0x00, 0x10, 0x00, \
|
||||
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
|
||||
#define UVC_GUID_FORMAT_GRBG \
|
||||
{ 'G', 'R', 'B', 'G', 0x00, 0x00, 0x10, 0x00, \
|
||||
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
|
||||
#define UVC_GUID_FORMAT_RGGB \
|
||||
{ 'R', 'G', 'G', 'B', 0x00, 0x00, 0x10, 0x00, \
|
||||
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
|
||||
#define UVC_GUID_FORMAT_RGBP \
|
||||
{ 'R', 'G', 'B', 'P', 0x00, 0x00, 0x10, 0x00, \
|
||||
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
|
||||
|
Loading…
Reference in New Issue
Block a user