summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap/media/0038-v4l-Add-12-bits-bayer-pixel-formats.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/media/0038-v4l-Add-12-bits-bayer-pixel-formats.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap/media/0038-v4l-Add-12-bits-bayer-pixel-formats.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/media/0038-v4l-Add-12-bits-bayer-pixel-formats.patch b/extras/recipes-kernel/linux/linux-omap/media/0038-v4l-Add-12-bits-bayer-pixel-formats.patch
new file mode 100644
index 00000000..9deb0ee3
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap/media/0038-v4l-Add-12-bits-bayer-pixel-formats.patch
@@ -0,0 +1,35 @@
1From 859b5c38e30c3d41e7987a6bb46f7d062f7e02ad Mon Sep 17 00:00:00 2001
2From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
3Date: Thu, 23 Dec 2010 15:14:50 +0100
4Subject: [PATCH 38/43] v4l: Add 12 bits bayer pixel formats
5
6Add FCCs for the following pixel formats:
7
8- V4L2_PIX_FMT_SBGGR12
9- V4L2_PIX_FMT_SGBRG12
10- V4L2_PIX_FMT_SGRBG12
11- V4L2_PIX_FMT_SRGGB12
12
13Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
14---
15 include/linux/videodev2.h | 4 ++++
16 1 files changed, 4 insertions(+), 0 deletions(-)
17
18diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
19index 5f6f470..02da9e7 100644
20--- a/include/linux/videodev2.h
21+++ b/include/linux/videodev2.h
22@@ -328,6 +328,10 @@ struct v4l2_pix_format {
23 #define V4L2_PIX_FMT_SGBRG10 v4l2_fourcc('G', 'B', '1', '0') /* 10 GBGB.. RGRG.. */
24 #define V4L2_PIX_FMT_SGRBG10 v4l2_fourcc('B', 'A', '1', '0') /* 10 GRGR.. BGBG.. */
25 #define V4L2_PIX_FMT_SRGGB10 v4l2_fourcc('R', 'G', '1', '0') /* 10 RGRG.. GBGB.. */
26+#define V4L2_PIX_FMT_SBGGR12 v4l2_fourcc('B', 'G', '1', '2') /* 12 BGBG.. GRGR.. */
27+#define V4L2_PIX_FMT_SGBRG12 v4l2_fourcc('G', 'B', '1', '2') /* 12 GBGB.. RGRG.. */
28+#define V4L2_PIX_FMT_SGRBG12 v4l2_fourcc('B', 'A', '1', '2') /* 12 GRGR.. BGBG.. */
29+#define V4L2_PIX_FMT_SRGGB12 v4l2_fourcc('R', 'G', '1', '2') /* 12 RGRG.. GBGB.. */
30 /* 10bit raw bayer DPCM compressed to 8 bits */
31 #define V4L2_PIX_FMT_SGRBG10DPCM8 v4l2_fourcc('B', 'D', '1', '0')
32 /*
33--
341.6.6.1
35