color-representation: new protocol

This new protocol extension allows clients to specify color
representation metadata. This is orthogonal to color management, which
will be implemented as a separate protocol extension.

This work is based on:

- EGL_EXT_image_dma_buf_import [1], although this specification doesn't
  provide enough guarantees for the purposes of this protocol, and we'd
  need another extension [2].
- VK_KHR_sampler_ycbcr_conversion [3].
- The KMS "COLOR_ENCODING" and "COLOR_RANGE" properties [4].


Signed-off-by: Simon Ser <>
References: wayland/wayland-protocols!14 (comment 805414)
3 jobs for ycbcr-conversion in 48 seconds (queued for 1 second)