summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pan <jacob.jun.pan@linux.intel.com>2012-01-24 13:43:20 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-01-24 14:54:02 +0100
commite6062dc3643b64cb009c12edef1395d2b5504f4a (patch)
tree2b97fb27767fddbae17f7d09af153a789e92e821
parent39098ef80cd14561a396a55fc0146448392ec959 (diff)
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>
-rw-r--r--yavta.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/yavta.c b/yavta.c
index c0e9acb..b5b4487 100644
--- a/yavta.c
+++ b/yavta.c
@@ -115,6 +115,10 @@ static const char *v4l2_buf_type_name(enum v4l2_buf_type type)
#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 @@ static struct {
{ "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 },