diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/media/0035-v4l-Add-8-bit-YUYV-on-16-bit-bus-and-SGRBG10-media-b.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap/media/0035-v4l-Add-8-bit-YUYV-on-16-bit-bus-and-SGRBG10-media-b.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/media/0035-v4l-Add-8-bit-YUYV-on-16-bit-bus-and-SGRBG10-media-b.patch b/extras/recipes-kernel/linux/linux-omap/media/0035-v4l-Add-8-bit-YUYV-on-16-bit-bus-and-SGRBG10-media-b.patch new file mode 100644 index 00000000..8660a148 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap/media/0035-v4l-Add-8-bit-YUYV-on-16-bit-bus-and-SGRBG10-media-b.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | From 4ad2d8ab7eef4bc2a482c228f334cfbf30d71855 Mon Sep 17 00:00:00 2001 | ||
2 | From: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | ||
3 | Date: Wed, 1 Sep 2010 17:59:36 +0200 | ||
4 | Subject: [PATCH 35/43] v4l: Add 8-bit YUYV on 16-bit bus and SGRBG10 media bus pixel codes | ||
5 | |||
6 | Add the following media bus format code definitions: | ||
7 | |||
8 | - V4L2_MBUS_FMT_SGRBG10_1X10 for 10-bit GRBG Bayer | ||
9 | - V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 for 10-bit DPCM compressed GRBG Bayer | ||
10 | - V4L2_MBUS_FMT_YUYV16_1X16 for 8-bit YUYV on 16-bit bus | ||
11 | - V4L2_MBUS_FMT_UYVY16_1X16 for 8-bit UYVY on 16-bit bus | ||
12 | - V4L2_MBUS_FMT_YVYU16_1X16 for 8-bit YVYU on 16-bit bus | ||
13 | - V4L2_MBUS_FMT_VYUY16_1X16 for 8-bit VYUY on 16-bit bus | ||
14 | |||
15 | Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | ||
16 | --- | ||
17 | include/linux/v4l2-mediabus.h | 10 ++++++++-- | ||
18 | 1 files changed, 8 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/include/linux/v4l2-mediabus.h b/include/linux/v4l2-mediabus.h | ||
21 | index cccfa34..c4caca3 100644 | ||
22 | --- a/include/linux/v4l2-mediabus.h | ||
23 | +++ b/include/linux/v4l2-mediabus.h | ||
24 | @@ -47,7 +47,7 @@ enum v4l2_mbus_pixelcode { | ||
25 | V4L2_MBUS_FMT_RGB565_2X8_BE = 0x1007, | ||
26 | V4L2_MBUS_FMT_RGB565_2X8_LE = 0x1008, | ||
27 | |||
28 | - /* YUV (including grey) - next is 0x200f */ | ||
29 | + /* YUV (including grey) - next is 0x2013 */ | ||
30 | V4L2_MBUS_FMT_Y8_1X8 = 0x2001, | ||
31 | V4L2_MBUS_FMT_UYVY8_1_5X8 = 0x2002, | ||
32 | V4L2_MBUS_FMT_VYUY8_1_5X8 = 0x2003, | ||
33 | @@ -60,17 +60,23 @@ enum v4l2_mbus_pixelcode { | ||
34 | V4L2_MBUS_FMT_Y10_1X10 = 0x200a, | ||
35 | V4L2_MBUS_FMT_YUYV10_2X10 = 0x200b, | ||
36 | V4L2_MBUS_FMT_YVYU10_2X10 = 0x200c, | ||
37 | + V4L2_MBUS_FMT_UYVY8_1X16 = 0x200f, | ||
38 | + V4L2_MBUS_FMT_VYUY8_1X16 = 0x2010, | ||
39 | + V4L2_MBUS_FMT_YUYV8_1X16 = 0x2011, | ||
40 | + V4L2_MBUS_FMT_YVYU8_1X16 = 0x2012, | ||
41 | V4L2_MBUS_FMT_YUYV10_1X20 = 0x200d, | ||
42 | V4L2_MBUS_FMT_YVYU10_1X20 = 0x200e, | ||
43 | |||
44 | - /* Bayer - next is 0x3009 */ | ||
45 | + /* Bayer - next is 0x300b */ | ||
46 | V4L2_MBUS_FMT_SBGGR8_1X8 = 0x3001, | ||
47 | V4L2_MBUS_FMT_SGRBG8_1X8 = 0x3002, | ||
48 | + V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 = 0x3009, | ||
49 | V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_BE = 0x3003, | ||
50 | V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE = 0x3004, | ||
51 | V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_BE = 0x3005, | ||
52 | V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_LE = 0x3006, | ||
53 | V4L2_MBUS_FMT_SBGGR10_1X10 = 0x3007, | ||
54 | + V4L2_MBUS_FMT_SGRBG10_1X10 = 0x300a, | ||
55 | V4L2_MBUS_FMT_SBGGR12_1X12 = 0x3008, | ||
56 | }; | ||
57 | |||
58 | -- | ||
59 | 1.6.6.1 | ||
60 | |||