[PATCH 2/2] colorspace: Add protocol for setting surface's colorspace
Harish Krupo
harish.krupo.kps at intel.com
Mon Mar 11 19:36:07 UTC 2019
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Signed-off-by: Harish Krupo <harish.krupo.kps at intel.com>
---
Makefile.am | 1 +
unstable/colorspace/README | 4 +
.../colorspace/colorspace-unstable-v1.xml | 73 +++++++++++++++++++
3 files changed, 78 insertions(+)
create mode 100644 unstable/colorspace/README
create mode 100644 unstable/colorspace/colorspace-unstable-v1.xml
diff --git a/Makefile.am b/Makefile.am
index 8e70a9f..661e992 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,6 +24,7 @@ unstable_protocols = \
unstable/linux-explicit-synchronization/linux-explicit-synchronization-unstable-v1.xml \
unstable/primary-selection/primary-selection-unstable-v1.xml \
unstable/hdr-metadata/hdr-metadata-unstable-v1.xml \
+ unstable/colorspace/colorspace-unstable-v1.xml \
$(NULL)
stable_protocols = \
diff --git a/unstable/colorspace/README b/unstable/colorspace/README
new file mode 100644
index 0000000..6fa751a
--- /dev/null
+++ b/unstable/colorspace/README
@@ -0,0 +1,4 @@
+Colorspace protocol
+
+Maintainers:
+Ville Syrjälä <ville.syrjala at linux.intel.com>
diff --git a/unstable/colorspace/colorspace-unstable-v1.xml b/unstable/colorspace/colorspace-unstable-v1.xml
new file mode 100644
index 0000000..4265a32
--- /dev/null
+++ b/unstable/colorspace/colorspace-unstable-v1.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<protocol name="colorspace_unstable_v1">
+
+ <copyright>
+ Copyright © 2018 Intel
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice (including the next
+ paragraph) shall be included in all copies or substantial portions of the
+ Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+ </copyright>
+
+ <interface name="zwp_colorspace_v1" version="1">
+ <description summary="colorspace">
+ </description>
+
+ <enum name="chromacities">
+ <entry name="undefined" value="0"
+ summary="Undefined"/>
+ <entry name="bt470m" value="1"
+ summary="BT.470 M"/>
+ <entry name="bt470bg" value="2"
+ summary="BT.470 B/G, EBU Tech 3213"/>
+ <entry name="smpte170m" value="3"
+ summary="SMPTE 170M, SMPTE 240M, SMPTE C"/>
+ <entry name="bt709" value="4"
+ summary="BT.709, sRGB"/>
+ <entry name="bt2020" value="5"
+ summary="BT.2020"/>
+ <entry name="adobergb" value="6"
+ summary="AdobeRGB"/>
+ <entry name="dci_p3" value="7"
+ summary="DCI-P3"/>
+ <entry name="prophotorgb" value="8"
+ summary="ProPhotoRGB"/>
+ <entry name="ciergb" value="9"
+ summary="CIE RGB"/>
+ <entry name="ciexyz" value="10"
+ summary="CIE XYZ"/>
+ <entry name="ap0" value="11"
+ summary="ACES primaries #0"/>
+ <entry name="ap1" value="12"
+ summary="ACES primaries #1"/>
+ </enum>
+
+ <request name="destroy" type="destructor">
+ <description summary="delete this object, used or not">
+ </description>
+ </request>
+
+ <request name="set">
+ <description summary="set the colorspace for a surface">
+ </description>
+ <arg name="surface" type="object" interface="wl_surface" summary="surface"/>
+ <arg name="chromacities" type="uint" summary="chromacities for primaries and white point"/>
+ </request>
+ </interface>
+
+</protocol>
--
2.20.1
More information about the wayland-devel
mailing list