diff --git a/include/wlr/render/color.h b/include/wlr/render/color.h index bc3baf181..b97e4c91d 100644 --- a/include/wlr/render/color.h +++ b/include/wlr/render/color.h @@ -48,15 +48,15 @@ enum wlr_alpha_mode { * value is unset or unknown. */ enum wlr_color_encoding { - WLR_COLOR_ENCODING_NONE, - WLR_COLOR_ENCODING_IDENTITY, - WLR_COLOR_ENCODING_BT709, - WLR_COLOR_ENCODING_FCC, - WLR_COLOR_ENCODING_BT601, - WLR_COLOR_ENCODING_SMPTE240, - WLR_COLOR_ENCODING_BT2020, - WLR_COLOR_ENCODING_BT2020_CL, - WLR_COLOR_ENCODING_ICTCP, + WLR_COLOR_ENCODING_NONE = 0, + WLR_COLOR_ENCODING_IDENTITY = 1 << 0, + WLR_COLOR_ENCODING_BT709 = 1 << 1, + WLR_COLOR_ENCODING_FCC = 1 << 2, + WLR_COLOR_ENCODING_BT601 = 1 << 3, + WLR_COLOR_ENCODING_SMPTE240 = 1 << 4, + WLR_COLOR_ENCODING_BT2020 = 1 << 5, + WLR_COLOR_ENCODING_BT2020_CL = 1 << 6, + WLR_COLOR_ENCODING_ICTCP = 1 << 7, }; /**