output: add full HDR metadata to wlr_output_image_description

This allows sinks to improve their tone mapping.
This commit is contained in:
Simon Ser 2025-06-25 08:49:19 +02:00 committed by Kenny Levinsen
parent bf40f396bf
commit aecb867098

View file

@ -91,10 +91,20 @@ enum wlr_output_state_mode_type {
* Supported primaries are advertised in wlr_output.supported_primaries.
* Supported transfer functions are advertised in
* wlr_output.supported_transfer_functions.
*
* mastering_display_primaries, mastering_luminance, max_cll and max_fall are
* optional. Luminances are given in cd/m².
*/
struct wlr_output_image_description {
enum wlr_color_named_primaries primaries;
enum wlr_color_transfer_function transfer_function;
struct wlr_color_primaries mastering_display_primaries;
struct {
double min, max;
} mastering_luminance;
double max_cll; // max content light level
double max_fall; // max frame-average light level
};
/**