color: add WESTON_COLOR_FEATURE_SET_LUMINANCES

This follows a recent change in the CM&HDR protocol (more specifically,
v4 of the experimental version). Now clients can use the protocol to set
luminance parameters for the primary color volume.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2024-11-05 11:56:00 -03:00 committed by Pekka Paalanen
parent 9ae0a7ec05
commit 9db8ad6ad1
2 changed files with 7 additions and 0 deletions

View file

@ -70,6 +70,12 @@ static const struct weston_color_feature_info color_feature_info_table[] = {
"request from the CM&HDR protocol extension",
.protocol_feature = XX_COLOR_MANAGER_V4_FEATURE_SET_TF_POWER,
},
{
.feature = WESTON_COLOR_FEATURE_SET_LUMINANCES,
.desc = "Allow clients to use the parametric set_luminances " \
"request from the CM&HDR protocol extension",
.protocol_feature = XX_COLOR_MANAGER_V4_FEATURE_SET_LUMINANCES,
},
{
.feature = WESTON_COLOR_FEATURE_SET_MASTERING_DISPLAY_PRIMARIES,
.desc = "Allow clients to use the parametric " \

View file

@ -41,6 +41,7 @@ enum weston_color_feature {
WESTON_COLOR_FEATURE_PARAMETRIC,
WESTON_COLOR_FEATURE_SET_PRIMARIES,
WESTON_COLOR_FEATURE_SET_TF_POWER,
WESTON_COLOR_FEATURE_SET_LUMINANCES,
WESTON_COLOR_FEATURE_SET_MASTERING_DISPLAY_PRIMARIES,
WESTON_COLOR_FEATURE_EXTENDED_TARGET_VOLUME,
};