[PATCH 1/5] buffer: add generic buffer formats.
Gwenole Beauchesne
gb.devel at gmail.com
Fri Apr 20 07:39:52 PDT 2012
Add packed RGB (ARGB32, XRGB32), and planar YUV formats with interleaved
U/V components (NV12), or three Y U V planes with various subsampling
(YUV 4:1:0, 4:1:1, 4:2:0, 4:2:2, 4:4:4).
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
---
protocol/wayland.xml | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index f50ca3f..ba7fecc 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -218,6 +218,30 @@
updates the contents is defined by the buffer factory interface
</description>
+ <enum name="format">
+ <description summary="buffer formats">
+ Buffer formats.
+ </description>
+ <entry name="argb32" value="1"
+ summary="Packed RGB 8:8:8, 32 bpp, A R G B, native endian byte-order"/>
+ <entry name="xrgb32" value="2"
+ summary="Packed RGB 8:8:8, 32 bpp, 0 R G B, native endian byte-order"/>
+ <entry name="nv12" value="3"
+ summary="Planar YUV 4:2:0, 12 bpp, 1 plane for Y and 1 plane for UV"/>
+ <entry name="y800" value="4"
+ summary=" Y , 8 bpp, grayscale"/>
+ <entry name="yuv410" value="5"
+ summary="Planar YUV 4:1:0, 10 bpp, quarter horizontal chroma resolution, half vertical chroma resolution"/>
+ <entry name="yuv411" value="6"
+ summary="Planar YUV 4:1:1, 12 bpp, quarter horizontal chroma resolution, full vertical chroma resolution"/>
+ <entry name="yuv420" value="7"
+ summary="Planar YUV 4:2:0, 12-bit, half horizontal chroma resolution, half vertical chroma resolution"/>
+ <entry name="yuv422" value="8"
+ summary="Planar YUV 4:2:2, 16-bit, half horizontal chroma resolution, full vertical chroma resolution"/>
+ <entry name="yuv444" value="9"
+ summary="Planar YUV 4:4:4, 24-bit, full horizontal chroma resolution, full vertical chroma resolution"/>
+ </enum>
+
<request name="destroy" type="destructor">
<description summary="destroy a buffer">
Destroy a buffer. This will invalidate the object id.
--
1.7.5.4
More information about the wayland-devel
mailing list