Skip to content

color management: Add CICP API definitions

bhawanpreet lakha requested to merge blakha/wayland-protocols:color into color

Adds the API definitions for the Coding-independent code point spec.

Based on the discussions here: !18 (comment 1271085)

This patch is adding an image state creator to define the transfer function, primaries, and matrix coefficients for a Wayland surface, either via coding-independent code points defined in ITU-T H.273, via custom gamma or primaries definitions, or via an ICC profile.

Describes the API definitions for the following zwp_image_state_creator_v1 *Image state creator

request set_tf_cicp(uint cicp_transfer_characteristics) *Set the OETF/EOTF^-1

request set_tf_gamma(uint gamma) *Sets the Gamma curve

request set_primaries_cicp(uint cicp_color_primaries) *Sets the CICP color primaries

request set_primaries(uint r_x, uint r_y, uint g_x, uint g_y, uint b_x, uint b_y, uint w_x, uint w_y) *Sets the color primaries

request set_ycbcr_matrix_cicp(uint cicp_matrix_coefficients) *Set the matrix coefficients for converting from YCbCr to RGB

request set_icc(fd icc_profile) *Set the ICC profile

Signed-off-by: Bhawanpreet Lakha Bhawanpreet.Lakha@amd.com

Merge request reports

Loading