Commit 38e9b928 authored by Sergey Dorodnicov's avatar Sergey Dorodnicov Committed by Mauro Carvalho Chehab

media: uvcvideo: Add support for the CNF4 format

Register the GUID used by Intel RealSense cameras with fourcc CNF4,
encoding depth sensor confidence information for every pixel.
Signed-off-by: default avatarSergey Dorodnicov <sergey.dorodnicov@intel.com>
Signed-off-by: default avatarEvgeni Raikhel <evgeni.raikhel@intel.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 92799ef7
...@@ -214,6 +214,11 @@ static struct uvc_format_desc uvc_fmts[] = { ...@@ -214,6 +214,11 @@ static struct uvc_format_desc uvc_fmts[] = {
.guid = UVC_GUID_FORMAT_INZI, .guid = UVC_GUID_FORMAT_INZI,
.fcc = V4L2_PIX_FMT_INZI, .fcc = V4L2_PIX_FMT_INZI,
}, },
{
.name = "4-bit Depth Confidence (Packed)",
.guid = UVC_GUID_FORMAT_CNF4,
.fcc = V4L2_PIX_FMT_CNF4,
},
}; };
/* ------------------------------------------------------------------------ /* ------------------------------------------------------------------------
......
...@@ -154,6 +154,9 @@ ...@@ -154,6 +154,9 @@
#define UVC_GUID_FORMAT_INVI \ #define UVC_GUID_FORMAT_INVI \
{ 'I', 'N', 'V', 'I', 0xdb, 0x57, 0x49, 0x5e, \ { 'I', 'N', 'V', 'I', 0xdb, 0x57, 0x49, 0x5e, \
0x8e, 0x3f, 0xf4, 0x79, 0x53, 0x2b, 0x94, 0x6f} 0x8e, 0x3f, 0xf4, 0x79, 0x53, 0x2b, 0x94, 0x6f}
#define UVC_GUID_FORMAT_CNF4 \
{ 'C', ' ', ' ', ' ', 0x00, 0x00, 0x10, 0x00, \
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
#define UVC_GUID_FORMAT_D3DFMT_L8 \ #define UVC_GUID_FORMAT_D3DFMT_L8 \
{0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, \ {0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment