[yavta RFC 2/2] Add support for generic metadata formats

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

 



Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
---
 yavta.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/yavta.c b/yavta.c
index d5628632c1f8..fb91b146a6c7 100644
--- a/yavta.c
+++ b/yavta.c
@@ -278,6 +278,7 @@ static struct v4l2_format_info {
 	unsigned int fourcc;
 	unsigned char n_planes;
 } pixel_formats[] = {
+	/* Pixel data formats */
 	{ "RGB332", V4L2_PIX_FMT_RGB332, 1 },
 	{ "RGB444", V4L2_PIX_FMT_RGB444, 1 },
 	{ "ARGB444", V4L2_PIX_FMT_ARGB444, 1 },
@@ -359,6 +360,15 @@ static struct v4l2_format_info {
 	{ "DV", V4L2_PIX_FMT_DV, 1 },
 	{ "MJPEG", V4L2_PIX_FMT_MJPEG, 1 },
 	{ "MPEG", V4L2_PIX_FMT_MPEG, 1 },
+	/* Metadata formats */
+	{ "GENERIC_8", V4L2_META_FMT_GENERIC_8, 1 },
+	{ "GENERIC_CSI2_10", V4L2_META_FMT_GENERIC_CSI2_10, 1 },
+	{ "GENERIC_CSI2_12", V4L2_META_FMT_GENERIC_CSI2_12, 1 },
+	{ "GENERIC_CSI2_14", V4L2_META_FMT_GENERIC_CSI2_14, 1 },
+	{ "GENERIC_CSI2_16", V4L2_META_FMT_GENERIC_CSI2_16, 1 },
+	{ "GENERIC_CSI2_20", V4L2_META_FMT_GENERIC_CSI2_20, 1 },
+	{ "GENERIC_CSI2_24", V4L2_META_FMT_GENERIC_CSI2_24, 1 },
+	{ "GENERIC_CSI2_2_24", V4L2_META_FMT_GENERIC_CSI2_2_24, 1 },
 };
 
 static void list_formats(void)
-- 
2.39.2




[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