mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-24 13:30:03 +01: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 primaries are advertised in wlr_output.supported_primaries.
|
||||||
* Supported transfer functions are advertised in
|
* Supported transfer functions are advertised in
|
||||||
* wlr_output.supported_transfer_functions.
|
* 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 {
|
struct wlr_output_image_description {
|
||||||
enum wlr_color_named_primaries primaries;
|
enum wlr_color_named_primaries primaries;
|
||||||
enum wlr_color_transfer_function transfer_function;
|
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
Reference in a new issue