]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] v4l: Add missing 12 bits bayer media bus formats
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 23 Dec 2010 14:14:49 +0000 (11:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:53:37 +0000 (04:53 -0300)
Add codes and documentation for the following media bus formats:

- V4L2_MBUS_FMT_SGBRG12_1X12
- V4L2_MBUS_FMT_SGRBG12_1X12
- V4L2_MBUS_FMT_SRGGB12_1X12

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/DocBook/v4l/subdev-formats.xml
include/linux/v4l2-mediabus.h

index 0cae572070068f8283e956b63e8294eb00932058..b5376e263d10fff4249b08be2696c278d99c6a50 100644 (file)
              <entry>b<subscript>1</subscript></entry>
              <entry>b<subscript>0</subscript></entry>
            </row>
+           <row id="V4L2-MBUS-FMT-SGBRG12-1X12">
+             <entry>V4L2_MBUS_FMT_SGBRG12_1X12</entry>
+             <entry>0x3010</entry>
+             <entry></entry>
+             <entry>g<subscript>11</subscript></entry>
+             <entry>g<subscript>10</subscript></entry>
+             <entry>g<subscript>9</subscript></entry>
+             <entry>g<subscript>8</subscript></entry>
+             <entry>g<subscript>7</subscript></entry>
+             <entry>g<subscript>6</subscript></entry>
+             <entry>g<subscript>5</subscript></entry>
+             <entry>g<subscript>4</subscript></entry>
+             <entry>g<subscript>3</subscript></entry>
+             <entry>g<subscript>2</subscript></entry>
+             <entry>g<subscript>1</subscript></entry>
+             <entry>g<subscript>0</subscript></entry>
+           </row>
+           <row id="V4L2-MBUS-FMT-SGRBG12-1X12">
+             <entry>V4L2_MBUS_FMT_SGRBG12_1X12</entry>
+             <entry>0x3011</entry>
+             <entry></entry>
+             <entry>g<subscript>11</subscript></entry>
+             <entry>g<subscript>10</subscript></entry>
+             <entry>g<subscript>9</subscript></entry>
+             <entry>g<subscript>8</subscript></entry>
+             <entry>g<subscript>7</subscript></entry>
+             <entry>g<subscript>6</subscript></entry>
+             <entry>g<subscript>5</subscript></entry>
+             <entry>g<subscript>4</subscript></entry>
+             <entry>g<subscript>3</subscript></entry>
+             <entry>g<subscript>2</subscript></entry>
+             <entry>g<subscript>1</subscript></entry>
+             <entry>g<subscript>0</subscript></entry>
+           </row>
+           <row id="V4L2-MBUS-FMT-SRGGB12-1X12">
+             <entry>V4L2_MBUS_FMT_SRGGB12_1X12</entry>
+             <entry>0x3012</entry>
+             <entry></entry>
+             <entry>r<subscript>11</subscript></entry>
+             <entry>r<subscript>10</subscript></entry>
+             <entry>r<subscript>9</subscript></entry>
+             <entry>r<subscript>8</subscript></entry>
+             <entry>r<subscript>7</subscript></entry>
+             <entry>r<subscript>6</subscript></entry>
+             <entry>r<subscript>5</subscript></entry>
+             <entry>r<subscript>4</subscript></entry>
+             <entry>r<subscript>3</subscript></entry>
+             <entry>r<subscript>2</subscript></entry>
+             <entry>r<subscript>1</subscript></entry>
+             <entry>r<subscript>0</subscript></entry>
+           </row>
          </tbody>
        </tgroup>
       </table>
index 5c64924371df87c94d9a1cd52f67d9dfc451d2a9..7054a7a8065ec20689853e85f784efda5b857e27 100644 (file)
@@ -67,7 +67,7 @@ enum v4l2_mbus_pixelcode {
        V4L2_MBUS_FMT_YUYV10_1X20 = 0x200d,
        V4L2_MBUS_FMT_YVYU10_1X20 = 0x200e,
 
-       /* Bayer - next is 0x3010 */
+       /* Bayer - next is 0x3013 */
        V4L2_MBUS_FMT_SBGGR8_1X8 = 0x3001,
        V4L2_MBUS_FMT_SGRBG8_1X8 = 0x3002,
        V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8 = 0x300b,
@@ -83,6 +83,9 @@ enum v4l2_mbus_pixelcode {
        V4L2_MBUS_FMT_SGRBG10_1X10 = 0x300a,
        V4L2_MBUS_FMT_SRGGB10_1X10 = 0x300f,
        V4L2_MBUS_FMT_SBGGR12_1X12 = 0x3008,
+       V4L2_MBUS_FMT_SGBRG12_1X12 = 0x3010,
+       V4L2_MBUS_FMT_SGRBG12_1X12 = 0x3011,
+       V4L2_MBUS_FMT_SRGGB12_1X12 = 0x3012,
 };
 
 /**