mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
output: add full HDR metadata to wlr_output_image_description
This allows sinks to improve their tone mapping.
This commit is contained in:
parent
bf40f396bf
commit
aecb867098
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue