[RFC/PATCH 3/9] v4l: Add 8-bit YUYV on 16-bit bus and SGRBG10 media bus pixel codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
---
 include/linux/v4l2-mediabus.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/include/linux/v4l2-mediabus.h b/include/linux/v4l2-mediabus.h
index bc637a5..9096ef0 100644
--- a/include/linux/v4l2-mediabus.h
+++ b/include/linux/v4l2-mediabus.h
@@ -48,6 +48,10 @@ enum v4l2_mbus_pixelcode {
 	V4L2_MBUS_FMT_UYVY8_2X8 = 4,
 	V4L2_MBUS_FMT_YVYU8_2X8 = 3,
 	V4L2_MBUS_FMT_VYUY8_2X8 = 5,
+	V4L2_MBUS_FMT_YUYV8_1X16 = 24,
+	V4L2_MBUS_FMT_UYVY8_1X16 = 25,
+	V4L2_MBUS_FMT_YVYU8_1X16 = 26,
+	V4L2_MBUS_FMT_VYUY8_1X16 = 27,
 	/* Bayer */
 	V4L2_MBUS_FMT_SBGGR8_1X8 = 10,
 	V4L2_MBUS_FMT_SBGGR10_1X10 = 11,
@@ -57,8 +61,10 @@ enum v4l2_mbus_pixelcode {
 	V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_LE = 15,
 	V4L2_MBUS_FMT_SBGGR12_1X12 = 19,
 	V4L2_MBUS_FMT_SGRBG8_1X8 = 18,
+	V4L2_MBUS_FMT_SGRBG10_1X10 = 28,
+	V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 = 29,
 	/* Last - Update this when adding a new pixel code */
-	V4L2_MBUS_FMT_LAST = 24,
+	V4L2_MBUS_FMT_LAST = 30,
 };
 
 /**
-- 
1.7.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux