diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-09-01 11:59:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 03:53:35 -0400 |
commit | 2d8deaf6b13e1b00fb65333bac9380b8c318adcf (patch) | |
tree | a6f60ffb764a54487b57246c7bea2c1ecfd19dd7 /include | |
parent | f80a3ab083474670527df3ca849546a7059da766 (diff) |
[media] v4l: Add 8-bit YUYV on 16-bit bus and SGRBG10 media bus pixel codes
Add the following media bus format code definitions:
- V4L2_MBUS_FMT_SGRBG10_1X10 for 10-bit GRBG Bayer
- V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 for 10-bit DPCM compressed GRBG Bayer
- V4L2_MBUS_FMT_YUYV16_1X16 for 8-bit YUYV on 16-bit bus
- V4L2_MBUS_FMT_UYVY16_1X16 for 8-bit UYVY on 16-bit bus
- V4L2_MBUS_FMT_YVYU16_1X16 for 8-bit YVYU on 16-bit bus
- V4L2_MBUS_FMT_VYUY16_1X16 for 8-bit VYUY on 16-bit bus
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/v4l2-mediabus.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/v4l2-mediabus.h b/include/linux/v4l2-mediabus.h index cccfa34bab1f..c4caca33e0c6 100644 --- a/include/linux/v4l2-mediabus.h +++ b/include/linux/v4l2-mediabus.h | |||
@@ -47,7 +47,7 @@ enum v4l2_mbus_pixelcode { | |||
47 | V4L2_MBUS_FMT_RGB565_2X8_BE = 0x1007, | 47 | V4L2_MBUS_FMT_RGB565_2X8_BE = 0x1007, |
48 | V4L2_MBUS_FMT_RGB565_2X8_LE = 0x1008, | 48 | V4L2_MBUS_FMT_RGB565_2X8_LE = 0x1008, |
49 | 49 | ||
50 | /* YUV (including grey) - next is 0x200f */ | 50 | /* YUV (including grey) - next is 0x2013 */ |
51 | V4L2_MBUS_FMT_Y8_1X8 = 0x2001, | 51 | V4L2_MBUS_FMT_Y8_1X8 = 0x2001, |
52 | V4L2_MBUS_FMT_UYVY8_1_5X8 = 0x2002, | 52 | V4L2_MBUS_FMT_UYVY8_1_5X8 = 0x2002, |
53 | V4L2_MBUS_FMT_VYUY8_1_5X8 = 0x2003, | 53 | V4L2_MBUS_FMT_VYUY8_1_5X8 = 0x2003, |
@@ -60,17 +60,23 @@ enum v4l2_mbus_pixelcode { | |||
60 | V4L2_MBUS_FMT_Y10_1X10 = 0x200a, | 60 | V4L2_MBUS_FMT_Y10_1X10 = 0x200a, |
61 | V4L2_MBUS_FMT_YUYV10_2X10 = 0x200b, | 61 | V4L2_MBUS_FMT_YUYV10_2X10 = 0x200b, |
62 | V4L2_MBUS_FMT_YVYU10_2X10 = 0x200c, | 62 | V4L2_MBUS_FMT_YVYU10_2X10 = 0x200c, |
63 | V4L2_MBUS_FMT_UYVY8_1X16 = 0x200f, | ||
64 | V4L2_MBUS_FMT_VYUY8_1X16 = 0x2010, | ||
65 | V4L2_MBUS_FMT_YUYV8_1X16 = 0x2011, | ||
66 | V4L2_MBUS_FMT_YVYU8_1X16 = 0x2012, | ||
63 | V4L2_MBUS_FMT_YUYV10_1X20 = 0x200d, | 67 | V4L2_MBUS_FMT_YUYV10_1X20 = 0x200d, |
64 | V4L2_MBUS_FMT_YVYU10_1X20 = 0x200e, | 68 | V4L2_MBUS_FMT_YVYU10_1X20 = 0x200e, |
65 | 69 | ||
66 | /* Bayer - next is 0x3009 */ | 70 | /* Bayer - next is 0x300b */ |
67 | V4L2_MBUS_FMT_SBGGR8_1X8 = 0x3001, | 71 | V4L2_MBUS_FMT_SBGGR8_1X8 = 0x3001, |
68 | V4L2_MBUS_FMT_SGRBG8_1X8 = 0x3002, | 72 | V4L2_MBUS_FMT_SGRBG8_1X8 = 0x3002, |
73 | V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 = 0x3009, | ||
69 | V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_BE = 0x3003, | 74 | V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_BE = 0x3003, |
70 | V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE = 0x3004, | 75 | V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE = 0x3004, |
71 | V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_BE = 0x3005, | 76 | V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_BE = 0x3005, |
72 | V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_LE = 0x3006, | 77 | V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_LE = 0x3006, |
73 | V4L2_MBUS_FMT_SBGGR10_1X10 = 0x3007, | 78 | V4L2_MBUS_FMT_SBGGR10_1X10 = 0x3007, |
79 | V4L2_MBUS_FMT_SGRBG10_1X10 = 0x300a, | ||
74 | V4L2_MBUS_FMT_SBGGR12_1X12 = 0x3008, | 80 | V4L2_MBUS_FMT_SBGGR12_1X12 = 0x3008, |
75 | }; | 81 | }; |
76 | 82 | ||