Add NV pixel formats

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[Add NV21, NV16, NV61, NV24 and NV42 formats]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
diff --git a/yavta.c b/yavta.c
index c0e9acb..b5b4487 100644
--- a/yavta.c
+++ b/yavta.c
@@ -115,6 +115,10 @@
 #define V4L2_PIX_FMT_SRGGB12	v4l2_fourcc('R', 'G', '1', '2')
 #define V4L2_PIX_FMT_Y12	v4l2_fourcc('Y', '1', '2', ' ')
 #endif
+#ifndef V4L2_PIX_FMT_NV24	/* 3.3 */
+#define V4L2_PIX_FMT_NV24	v4l2_fourcc('N', 'V', '2', '4')
+#define V4L2_PIX_FMT_NV42	v4l2_fourcc('N', 'V', '4', '2')
+#endif
 
 static struct {
 	const char *name;
@@ -135,6 +139,12 @@
 	{ "Y16", V4L2_PIX_FMT_Y16 },
 	{ "YUYV", V4L2_PIX_FMT_YUYV },
 	{ "UYVY", V4L2_PIX_FMT_UYVY },
+	{ "NV12", V4L2_PIX_FMT_NV12 },
+	{ "NV21", V4L2_PIX_FMT_NV21 },
+	{ "NV16", V4L2_PIX_FMT_NV16 },
+	{ "NV61", V4L2_PIX_FMT_NV61 },
+	{ "NV24", V4L2_PIX_FMT_NV24 },
+	{ "NV42", V4L2_PIX_FMT_NV42 },
 	{ "SBGGR8", V4L2_PIX_FMT_SBGGR8 },
 	{ "SGBRG8", V4L2_PIX_FMT_SGBRG8 },
 	{ "SGRBG8", V4L2_PIX_FMT_SGRBG8 },