[PATCH/RFC 3/3] New video formats

Jonathan Corbet corbet at lwn.net
Fri Oct 6 12:35:48 EDT 2006


A little patch to add two desired video formats to v4l2.  

jon

diff -ruNp -X 19-jc/Documentation/dontdiff /k/t/2.6.19-rc1/include/linux/videodev2.h 19-jc/include/linux/videodev2.h
--- /k/t/2.6.19-rc1/include/linux/videodev2.h	2006-10-05 16:05:40.000000000 -0600
+++ 19-jc/include/linux/videodev2.h	2006-10-05 16:08:25.000000000 -0600
@@ -244,6 +244,8 @@ struct v4l2_pix_format
 #define V4L2_PIX_FMT_YYUV    v4l2_fourcc('Y','Y','U','V') /* 16  YUV 4:2:2     */
 #define V4L2_PIX_FMT_HI240   v4l2_fourcc('H','I','2','4') /*  8  8-bit color   */
 #define V4L2_PIX_FMT_HM12    v4l2_fourcc('H','M','1','2') /*  8  YUV 4:1:1 16x16 macroblocks */
+#define V4L2_PIX_FMT_RGB444  v4l2_fourcc('R','4','4','4') /* 16  xxxxrrrr ggggbbbb */
+#define V4L2_PIX_FMT_RGB565N v4l2_fourcc('R','G','B','6') /* 16  rrrrrggg gggbbbbb */
 
 /* see http://www.siliconimaging.com/RGB%20Bayer.htm */
 #define V4L2_PIX_FMT_SBGGR8  v4l2_fourcc('B','A','8','1') /*  8  BGBG.. GRGR.. */



More information about the Devel mailing list