render/color: turn enum wlr_color_encoding into a bitfield

This will allow us to describe the set of supported encodings as
a bitfield.
This commit is contained in:
Simon Ser 2025-10-28 20:40:09 +01:00 committed by Simon Zeni
parent 0d24cdb822
commit 378a491823

View file

@ -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,
};
/**