summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-12-21 11:54:04 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-12-21 11:54:04 +0100
commit39098ef80cd14561a396a55fc0146448392ec959 (patch)
treec2c1ab762862aa488aca8468d337de222de73377
parenta57f877b02104286f8644f5adc5aeca0d3c1ce36 (diff)
Add support for Y10 and Y12 pixel formats
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--yavta.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/yavta.c b/yavta.c
index d081ad8..c0e9acb 100644
--- a/yavta.c
+++ b/yavta.c
@@ -106,12 +106,14 @@ static const char *v4l2_buf_type_name(enum v4l2_buf_type type)
#define V4L2_PIX_FMT_SBGGR10 v4l2_fourcc('B', 'G', '1', '0')
#define V4L2_PIX_FMT_SGBRG10 v4l2_fourcc('G', 'B', '1', '0')
#define V4L2_PIX_FMT_SRGGB10 v4l2_fourcc('R', 'G', '1', '0')
+#define V4L2_PIX_FMT_Y10 v4l2_fourcc('Y', '1', '0', ' ')
#endif
#ifndef V4L2_PIX_FMT_SBGGR12 /* 2.6.39 */
#define V4L2_PIX_FMT_SBGGR12 v4l2_fourcc('B', 'G', '1', '2')
#define V4L2_PIX_FMT_SGBRG12 v4l2_fourcc('G', 'B', '1', '2')
#define V4L2_PIX_FMT_SGRBG12 v4l2_fourcc('B', 'A', '1', '2')
#define V4L2_PIX_FMT_SRGGB12 v4l2_fourcc('R', 'G', '1', '2')
+#define V4L2_PIX_FMT_Y12 v4l2_fourcc('Y', '1', '2', ' ')
#endif
static struct {
@@ -128,6 +130,8 @@ static struct {
{ "BGR32", V4L2_PIX_FMT_BGR32 },
{ "RGB32", V4L2_PIX_FMT_RGB32 },
{ "Y8", V4L2_PIX_FMT_GREY },
+ { "Y10", V4L2_PIX_FMT_Y10 },
+ { "Y12", V4L2_PIX_FMT_Y12 },
{ "Y16", V4L2_PIX_FMT_Y16 },
{ "YUYV", V4L2_PIX_FMT_YUYV },
{ "UYVY", V4L2_PIX_FMT_UYVY },