From 90d8648a00b9c02f127a486c6d635f6877b3ab00 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Mon, 22 Mar 2010 04:52:21 -0300 Subject: [PATCH] --- yaml --- r: 192870 b: refs/heads/master c: b3e212dcbddb10b44d472a5f4c23d5aa0b5876ca h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Documentation/DocBook/v4l/pixfmt.xml | 12 ++++++++++++ trunk/include/linux/videodev2.h | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c7861c52d295..944c02c02624 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4bfdd58604ead4d49b29630ee8f72c99b7803b7d +refs/heads/master: b3e212dcbddb10b44d472a5f4c23d5aa0b5876ca diff --git a/trunk/Documentation/DocBook/v4l/pixfmt.xml b/trunk/Documentation/DocBook/v4l/pixfmt.xml index 885968d6a2fc..c4ad0a8e42dc 100644 --- a/trunk/Documentation/DocBook/v4l/pixfmt.xml +++ b/trunk/Documentation/DocBook/v4l/pixfmt.xml @@ -792,6 +792,18 @@ http://www.thedirks.org/winnov/ 'YYUV' unknown + + V4L2_PIX_FMT_Y4 + 'Y04 ' + Old 4-bit greyscale format. Only the least significant 4 bits of each byte are used, +the other bits are set to 0. + + + V4L2_PIX_FMT_Y6 + 'Y06 ' + Old 6-bit greyscale format. Only the least significant 6 bits of each byte are used, +the other bits are set to 0. + diff --git a/trunk/include/linux/videodev2.h b/trunk/include/linux/videodev2.h index 418dacf5261d..6fb0b2daa5b9 100644 --- a/trunk/include/linux/videodev2.h +++ b/trunk/include/linux/videodev2.h @@ -294,6 +294,8 @@ struct v4l2_pix_format { /* Grey formats */ #define V4L2_PIX_FMT_GREY v4l2_fourcc('G', 'R', 'E', 'Y') /* 8 Greyscale */ +#define V4L2_PIX_FMT_Y4 v4l2_fourcc('Y', '0', '4', ' ') /* 4 Greyscale */ +#define V4L2_PIX_FMT_Y6 v4l2_fourcc('Y', '0', '6', ' ') /* 6 Greyscale */ #define V4L2_PIX_FMT_Y10 v4l2_fourcc('Y', '1', '0', ' ') /* 10 Greyscale */ #define V4L2_PIX_FMT_Y16 v4l2_fourcc('Y', '1', '6', ' ') /* 16 Greyscale */