diff mbox series

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

Message ID 20230824091407.3883461-3-sakari.ailus@linux.intel.com
State New
Headers show
Series Generic line based metadata support | expand

Commit Message

Sakari Ailus Aug. 24, 2023, 9:14 a.m. UTC
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 yavta.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

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)