[PATCH] Add m1bpp (monochrome, 1 bit/pixel) pixel format

Drew DeVault sir at cmpwn.com
Thu Sep 14 20:08:43 UTC 2017


---
This patch is pretty straightforward, it does what it says on the tin.
I'm interested in developing wayland compositors for monochrome
displays.

It may also make sense to add other pixel formats, like 2bpp/4bpp
(grayscale), or 8-bit/16-bit color.

 protocol/wayland.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 29b63be..2f72939 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -291,6 +291,7 @@
       </description>
       <entry name="argb8888" value="0" summary="32-bit ARGB format, [31:0] A:R:G:B 8:8:8:8 little endian"/>
       <entry name="xrgb8888" value="1" summary="32-bit RGB format, [31:0] x:R:G:B 8:8:8:8 little endian"/>
+      <entry name="m1bpp" value="2" summary="1-bit monochrome format, 8 pixels per octet, ordered most to least significant bit" />
       <entry name="c8" value="0x20203843" summary="8-bit color index format, [7:0] C"/>
       <entry name="rgb332" value="0x38424752" summary="8-bit RGB format, [7:0] R:G:B 3:3:2"/>
       <entry name="bgr233" value="0x38524742" summary="8-bit BGR format, [7:0] B:G:R 2:3:3"/>
-- 
2.14.1



More information about the wayland-devel mailing list