[media] uvcvideo: Add bayer 16-bit format patterns
authorEdgar Thier <info@edgarthier.net>
Tue, 15 Nov 2016 05:33:10 +0000 (03:33 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 23 Nov 2016 22:06:18 +0000 (20:06 -0200)
Those formats are implemented by The DFK 23UP1300, DFK 23UX249 and
DFK 23UX250 USB 3.0 industrial cameras from The Imaging Source.

Signed-off-by: Edgar Thier <info@edgarthier.net>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvcvideo.h

index 11744f92097bdfb4c429c53dc8c069580713c6eb..04bf35063c4c489cebfd63432e38dd3b9518fc08 100644 (file)
@@ -168,6 +168,26 @@ static struct uvc_format_desc uvc_fmts[] = {
                .guid           = UVC_GUID_FORMAT_RW10,
                .fcc            = V4L2_PIX_FMT_SRGGB10P,
        },
+       {
+               .name           = "Bayer 16-bit (SBGGR16)",
+               .guid           = UVC_GUID_FORMAT_BG16,
+               .fcc            = V4L2_PIX_FMT_SBGGR16,
+       },
+       {
+               .name           = "Bayer 16-bit (SGBRG16)",
+               .guid           = UVC_GUID_FORMAT_GB16,
+               .fcc            = V4L2_PIX_FMT_SGBRG16,
+       },
+       {
+               .name           = "Bayer 16-bit (SRGGB16)",
+               .guid           = UVC_GUID_FORMAT_RG16,
+               .fcc            = V4L2_PIX_FMT_SRGGB16,
+       },
+       {
+               .name           = "Bayer 16-bit (SGRBG16)",
+               .guid           = UVC_GUID_FORMAT_GR16,
+               .fcc            = V4L2_PIX_FMT_SGRBG16,
+       },
 };
 
 /* ------------------------------------------------------------------------
index 7e4d3eea371b64dfab3d2a9126f1c2574dea4089..3d6cc62f3cd2e6ffbec0f0d7d6e15be65d260a5b 100644 (file)
 #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_BG16 \
+       { 'B',  'G',  '1',  '6', 0x00, 0x00, 0x10, 0x00, \
+        0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
+#define UVC_GUID_FORMAT_GB16 \
+       { 'G',  'B',  '1',  '6', 0x00, 0x00, 0x10, 0x00, \
+        0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
+#define UVC_GUID_FORMAT_RG16 \
+       { 'R',  'G',  '1',  '6', 0x00, 0x00, 0x10, 0x00, \
+        0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
+#define UVC_GUID_FORMAT_GR16 \
+       { 'G',  'R',  '1',  '6', 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}