diff options
Diffstat (limited to 'recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch')
| -rw-r--r-- | recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch b/recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch new file mode 100644 index 000000000..7711fed60 --- /dev/null +++ b/recipes-graphics/wayland/wayland-protocols/0002-unstable-Add-hdr10-metadata-protocol.patch | |||
| @@ -0,0 +1,135 @@ | |||
| 1 | From b514647ccdd4e833b2d8fbba1a39547b80657987 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Haihua Hu <jared.hu@nxp.com> | ||
| 3 | Date: Tue, 26 Jun 2018 15:30:18 +0800 | ||
| 4 | Subject: [PATCH 2/9] unstable: Add hdr10-metadata protocol | ||
| 5 | |||
| 6 | this protocol is used to support hdr10 video playback. | ||
| 7 | HDR10 metadata is passed to compositor via this interface | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Haihua Hu <jared.hu@nxp.com> | ||
| 11 | (cherry picked from commit 87ea413b40701fbb3d333264a1de3b168276bbcf) | ||
| 12 | (cherry picked from commit 878f46b324fcefe5193d66c025c4c67bff09c253) | ||
| 13 | --- | ||
| 14 | meson.build | 1 + | ||
| 15 | unstable/hdr10-metadata/README | 4 + | ||
| 16 | .../hdr10-metadata-unstable-v1.xml | 84 +++++++++++++++++++ | ||
| 17 | 3 files changed, 89 insertions(+) | ||
| 18 | create mode 100644 unstable/hdr10-metadata/README | ||
| 19 | create mode 100644 unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml | ||
| 20 | |||
| 21 | diff --git a/meson.build b/meson.build | ||
| 22 | index 99a555d53a09..70b594d3b89c 100644 | ||
| 23 | --- a/meson.build | ||
| 24 | +++ b/meson.build | ||
| 25 | @@ -43,6 +43,7 @@ unstable_protocols = { | ||
| 26 | 'xdg-shell': ['v5', 'v6'], | ||
| 27 | 'xwayland-keyboard-grab': ['v1'], | ||
| 28 | 'alpha-compositing': ['v1'], | ||
| 29 | + 'hdr10-metadata': ['v1'], | ||
| 30 | } | ||
| 31 | |||
| 32 | staging_protocols = { | ||
| 33 | diff --git a/unstable/hdr10-metadata/README b/unstable/hdr10-metadata/README | ||
| 34 | new file mode 100644 | ||
| 35 | index 000000000000..58a82f802d12 | ||
| 36 | --- /dev/null | ||
| 37 | +++ b/unstable/hdr10-metadata/README | ||
| 38 | @@ -0,0 +1,4 @@ | ||
| 39 | +hdr10 metadata protocol | ||
| 40 | + | ||
| 41 | +Maintainers: | ||
| 42 | +Jared Hu <Jared Hu at nxp.com> | ||
| 43 | diff --git a/unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml b/unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml | ||
| 44 | new file mode 100644 | ||
| 45 | index 000000000000..5b1bac4aa29f | ||
| 46 | --- /dev/null | ||
| 47 | +++ b/unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml | ||
| 48 | @@ -0,0 +1,84 @@ | ||
| 49 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 50 | +<protocol name="hdr10_metadata_unstable_v1"> | ||
| 51 | + | ||
| 52 | + <copyright> | ||
| 53 | + Copyright 2018 NXP | ||
| 54 | + | ||
| 55 | + Permission is hereby granted, free of charge, to any person obtaining a | ||
| 56 | + copy of this software and associated documentation files (the "Software"), | ||
| 57 | + to deal in the Software without restriction, including without limitation | ||
| 58 | + the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
| 59 | + and/or sell copies of the Software, and to permit persons to whom the | ||
| 60 | + Software is furnished to do so, subject to the following conditions: | ||
| 61 | + | ||
| 62 | + The above copyright notice and this permission notice (including the next | ||
| 63 | + paragraph) shall be included in all copies or substantial portions of the | ||
| 64 | + Software. | ||
| 65 | + | ||
| 66 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 67 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 68 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
| 69 | + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 70 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| 71 | + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
| 72 | + DEALINGS IN THE SOFTWARE. | ||
| 73 | + </copyright> | ||
| 74 | + | ||
| 75 | + <description summary="Protocol for sending hdr10 metadata to compositor"> | ||
| 76 | + This protocol specifies a set of interfaces used to set and control | ||
| 77 | + hdr10 metadata of video contents. | ||
| 78 | + | ||
| 79 | + Warning! The protocol described in this file is experimental and backward | ||
| 80 | + incompatible changes may be made. Backward compatible changes may be added | ||
| 81 | + together with the corresponding interface version bump. Backward | ||
| 82 | + incompatible changes are done by bumping the version number in the protocol | ||
| 83 | + and interface names and resetting the interface version. Once the protocol | ||
| 84 | + is to be declared stable, the 'z' prefix and the version number in the | ||
| 85 | + protocol and interface names are removed and the interface version number is | ||
| 86 | + reset. | ||
| 87 | + </description> | ||
| 88 | + | ||
| 89 | + <interface name="zwp_hdr10_metadata_v1" version="1"> | ||
| 90 | + <description summary="hdr10_metadata"> | ||
| 91 | + The global interface exposing hdr10 metadata capabilities is | ||
| 92 | + used to instantiate an interface extension for compositor. | ||
| 93 | + This extended interface will then allow the client to pass hdr10 metadata | ||
| 94 | + to compositor and send to display driver if supported. | ||
| 95 | + </description> | ||
| 96 | + | ||
| 97 | + <request name="destroy" type="destructor"> | ||
| 98 | + <description summary="unbind from the hdr10 metadata interface"> | ||
| 99 | + Informs the server that the client will not be using this | ||
| 100 | + protocol object anymore. This does not affect any other objects. | ||
| 101 | + </description> | ||
| 102 | + </request> | ||
| 103 | + | ||
| 104 | + <enum name="error"> | ||
| 105 | + <entry name="sending_meta_error" value="0" | ||
| 106 | + summary="error occurs when compositor handle metadata"/> | ||
| 107 | + </enum> | ||
| 108 | + | ||
| 109 | + <request name="set_metadata"> | ||
| 110 | + <description summary="interface of setting and controling hdr10 metadata"> | ||
| 111 | + client can use this interface pass hdr10 metadata to server. Server need | ||
| 112 | + use the recived metadata to enable hdr mode. | ||
| 113 | + </description> | ||
| 114 | + | ||
| 115 | + <arg name="eotf" type="uint" summary="supported eotf"/> | ||
| 116 | + <arg name="type" type="uint" summary="supported type"/> | ||
| 117 | + <arg name="display_primaries_red" type="uint" | ||
| 118 | + summary="display primaries of red, high 16bits for x, and low 16bits for y"/> | ||
| 119 | + <arg name="display_primaries_green" type="uint" | ||
| 120 | + summary="display primaries of green, high 16bits for x, and low 16bits for y"/> | ||
| 121 | + <arg name="display_primaries_blue" type="uint" | ||
| 122 | + summary="display primaries of blue, high 16bits for x, and low 16bits for y"/> | ||
| 123 | + <arg name="white_point" type="uint" | ||
| 124 | + summary="white point, high 16bits for x, and low 16bits for blue"/> | ||
| 125 | + <arg name="mastering_display_luminance" type="uint" | ||
| 126 | + summary="max and min mastering display luminance, high 16 bits for max, and low 16 bits for min"/> | ||
| 127 | + <arg name="max_cll" type="uint" summary="max content light level"/> | ||
| 128 | + <arg name="max_fall" type="uint" summary="max frame average light level"/> | ||
| 129 | + </request> | ||
| 130 | + </interface> | ||
| 131 | + | ||
| 132 | +</protocol> | ||
| 133 | -- | ||
| 134 | 2.42.0 | ||
| 135 | |||
