The patch number 14541 was added via Douglas Schilling Landgraf 
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Hans Verkuil  <[email protected]>
v4l: add V4L2_PIX_FMT_Y4 and V4L2_PIX_FMT_Y6 pixelformats


Old 4 and 6 bit greyscale pixel formats for the old bw-qcam webcam.
This is needed to convert it to V4L2.

Priority: normal

Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Douglas Schilling Landgraf <[email protected]>


---

 linux/Documentation/DocBook/v4l/pixfmt.xml |   12 ++++++++++++
 linux/include/linux/videodev2.h            |    2 ++
 2 files changed, 14 insertions(+)

diff -r 43143db146f4 -r bc839f62e33d linux/Documentation/DocBook/v4l/pixfmt.xml
--- a/linux/Documentation/DocBook/v4l/pixfmt.xml        Sun Apr 04 20:20:42 
2010 -0400
+++ b/linux/Documentation/DocBook/v4l/pixfmt.xml        Sun Apr 04 20:22:19 
2010 -0400
@@ -792,6 +792,18 @@
            <entry>'YYUV'</entry>
            <entry>unknown</entry>
          </row>
+         <row id="V4L2-PIX-FMT-Y4">
+           <entry><constant>V4L2_PIX_FMT_Y4</constant></entry>
+           <entry>'Y04 '</entry>
+           <entry>Old 4-bit greyscale format. Only the least significant 4 
bits of each byte are used,
+the other bits are set to 0.</entry>
+         </row>
+         <row id="V4L2-PIX-FMT-Y6">
+           <entry><constant>V4L2_PIX_FMT_Y6</constant></entry>
+           <entry>'Y06 '</entry>
+           <entry>Old 6-bit greyscale format. Only the least significant 6 
bits of each byte are used,
+the other bits are set to 0.</entry>
+         </row>
        </tbody>
       </tgroup>
     </table>
diff -r 43143db146f4 -r bc839f62e33d linux/include/linux/videodev2.h
--- a/linux/include/linux/videodev2.h   Sun Apr 04 20:20:42 2010 -0400
+++ b/linux/include/linux/videodev2.h   Sun Apr 04 20:22:19 2010 -0400
@@ -294,6 +294,8 @@
 
 /* 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  
   */
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/bc839f62e33d92ba98be0dd598f663ca0a69a116

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to