Merge branch 'mr/chromaloc' into 'main'

staging/color-representation: set_chroma_location vs. pixel format

See merge request wayland/wayland-protocols!468
This commit is contained in:
Pekka Paalanen 2025-12-16 11:37:11 +02:00
commit 78b3a3f3d4

View file

@ -417,14 +417,15 @@
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.
For the definition of the supported chroma location types, see the
wp_color_representation_surface_v1::chroma_location enum.
The chroma location type is double-buffered, see wl_surface.commit.
If the pixel format is not 4:2:0 sub-sampled at the time
of wl_surface.commit, the chroma location is not used for rendering
the surface until a 4:2:0 sub-sampled pixel format is committed on
the surface.
</description>
<arg name="chroma_location" type="uint" enum="chroma_location"
summary="chroma sample location"/>