mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-20 04:40:06 +01:00
color-representation-v1: add protocol error for invalid chroma location
Clients are allowed to send any value from the enum (unlike other requests where only supported values are allowed), however clients are not allowed to send out-of-enum values. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
abd33a52d8
commit
46f46863b7
1 changed files with 5 additions and 0 deletions
|
|
@ -145,6 +145,8 @@
|
|||
summary="the pixel format and a set value are incompatible"/>
|
||||
<entry name="inert" value="4"
|
||||
summary="forbidden request on inert object"/>
|
||||
<entry name="chroma_location" value="5"
|
||||
summary="invalid chroma location"/>
|
||||
</enum>
|
||||
|
||||
<request name="destroy" type="destructor">
|
||||
|
|
@ -412,6 +414,9 @@
|
|||
chroma samples, corresponding to Chroma420SampleLocType code points in
|
||||
H.273.
|
||||
|
||||
An invalid chroma location enum value raises the "chroma_location"
|
||||
protocol error.
|
||||
|
||||
A call to wl_surface.commit verifies that the pixel format and chroma
|
||||
location type in the committed surface contents are compatible, if
|
||||
contents exist. The "pixel_format" protocol error is raised otherwise.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue