Add RGB444_1X12 and RGB565_1X16 media bus formats
authorBoris Brezillion <boris.brezillon@free-electrons.com>
Wed, 28 Jan 2015 16:49:51 +0000 (17:49 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 31 Mar 2015 09:59:33 +0000 (11:59 +0200)
Add RGB444_1X12 and RGB565_1X16 format definitions and update the
documentation.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Documentation/DocBook/media/v4l/subdev-formats.xml
include/uapi/linux/media-bus-format.h

index c5ea868e390958d499681d1b63570c11c9933721..29fe60112f4c96cbe3ddccb063bd118ef3fdbf6d 100644 (file)
@@ -192,6 +192,24 @@ see <xref linkend="colorspaces" />.</entry>
            </row>
          </thead>
          <tbody valign="top">
+           <row id="MEDIA-BUS-FMT-RGB444-1X12">
+             <entry>MEDIA_BUS_FMT_RGB444_1X12</entry>
+             <entry>0x100e</entry>
+             <entry></entry>
+             &dash-ent-20;
+             <entry>r<subscript>3</subscript></entry>
+             <entry>r<subscript>2</subscript></entry>
+             <entry>r<subscript>1</subscript></entry>
+             <entry>r<subscript>0</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>
+             <entry>b<subscript>3</subscript></entry>
+             <entry>b<subscript>2</subscript></entry>
+             <entry>b<subscript>1</subscript></entry>
+             <entry>b<subscript>0</subscript></entry>
+           </row>
            <row id="MEDIA-BUS-FMT-RGB444-2X8-PADHI-BE">
              <entry>MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE</entry>
              <entry>0x1001</entry>
@@ -304,6 +322,28 @@ see <xref linkend="colorspaces" />.</entry>
              <entry>g<subscript>4</subscript></entry>
              <entry>g<subscript>3</subscript></entry>
            </row>
+           <row id="MEDIA-BUS-FMT-RGB565-1X16">
+             <entry>MEDIA_BUS_FMT_RGB565_1X16</entry>
+             <entry>0x100f</entry>
+             <entry></entry>
+             &dash-ent-16;
+             <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>
+             <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>
+             <entry>b<subscript>4</subscript></entry>
+             <entry>b<subscript>3</subscript></entry>
+             <entry>b<subscript>2</subscript></entry>
+             <entry>b<subscript>1</subscript></entry>
+             <entry>b<subscript>0</subscript></entry>
+           </row>
            <row id="MEDIA-BUS-FMT-BGR565-2X8-BE">
              <entry>MEDIA_BUS_FMT_BGR565_2X8_BE</entry>
              <entry>0x1005</entry>
index 23b40908be3061f228c118323535cc2dc2a9854d..37091c668f65a087b957d93a205f9f67e835f76c 100644 (file)
 
 #define MEDIA_BUS_FMT_FIXED                    0x0001
 
-/* RGB - next is       0x100e */
+/* RGB - next is       0x1010 */
+#define MEDIA_BUS_FMT_RGB444_1X12              0x100e
 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE      0x1001
 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE      0x1002
 #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE      0x1003
 #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE      0x1004
+#define MEDIA_BUS_FMT_RGB565_1X16              0x100f
 #define MEDIA_BUS_FMT_BGR565_2X8_BE            0x1005
 #define MEDIA_BUS_FMT_BGR565_2X8_LE            0x1006
 #define MEDIA_BUS_FMT_RGB565_2X8_BE            0x1007