aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/videodev2.h
diff options
context:
space:
mode:
authorSergio Aguirre <saaguirre@ti.com>2008-10-18 12:26:47 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-21 14:31:15 -0200
commit733d710b09748a79f70cbb58547d036d28ec566e (patch)
treedcee6580b96ca11167aa6a2d826377b7407ef0e7 /include/linux/videodev2.h
parent621a3739f3b8c7427a789d3b2fe86a80ff234225 (diff)
downloadkernel_samsung_smdk4412-733d710b09748a79f70cbb58547d036d28ec566e.zip
kernel_samsung_smdk4412-733d710b09748a79f70cbb58547d036d28ec566e.tar.gz
kernel_samsung_smdk4412-733d710b09748a79f70cbb58547d036d28ec566e.tar.bz2
V4L/DVB (9320): v4l2: Add 10-bit RAW Bayer formats
Add 10-bit raw bayer format expanded to 16 bits. Adds also definition for 10-bit raw bayer format dpcm-compressed to 8 bits. Signed-off-by: Sergio Aguirre <saaguirre@ti.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r--include/linux/videodev2.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index d4b0303..4669d7e 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -315,6 +315,13 @@ struct v4l2_pix_format {
/* see http://www.siliconimaging.com/RGB%20Bayer.htm */
#define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B', 'A', '8', '1') /* 8 BGBG.. GRGR.. */
#define V4L2_PIX_FMT_SGBRG8 v4l2_fourcc('G', 'B', 'R', 'G') /* 8 GBGB.. RGRG.. */
+/*
+ * 10bit raw bayer, expanded to 16 bits
+ * xxxxrrrrrrrrrrxxxxgggggggggg xxxxggggggggggxxxxbbbbbbbbbb...
+ */
+#define V4L2_PIX_FMT_SGRBG10 v4l2_fourcc('B', 'A', '1', '0')
+/* 10bit raw bayer DPCM compressed to 8 bits */
+#define V4L2_PIX_FMT_SGRBG10DPCM8 v4l2_fourcc('B', 'D', '1', '0')
#define V4L2_PIX_FMT_SBGGR16 v4l2_fourcc('B', 'Y', 'R', '2') /* 16 BGBG.. GRGR.. */
/* compressed formats */