diff options
| author | Simon Ser <contact@emersion.fr> | 2025-01-27 21:00:54 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-07-09 01:25:11 +0200 |
| commit | bac8c0f4d0a569ac9f63a2055bb8c886778dcf06 (patch) | |
| tree | bb8b01028ff77f8a32284f6153afb8e10aa6ceed /include | |
| parent | c7d7d56f61f820989aa4ca6ee6267fe0bd31f5f6 (diff) | |
Add support for HDR10 output
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/commands.h | 1 | ||||
| -rw-r--r-- | include/sway/config.h | 3 | ||||
| -rw-r--r-- | include/sway/output.h | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 5210d3ba..389c382e 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -290,6 +290,7 @@ sway_cmd output_cmd_color_profile; sway_cmd output_cmd_disable; sway_cmd output_cmd_dpms; sway_cmd output_cmd_enable; +sway_cmd output_cmd_hdr; sway_cmd output_cmd_max_render_time; sway_cmd output_cmd_mode; sway_cmd output_cmd_modeline; diff --git a/include/sway/config.h b/include/sway/config.h index bb770c6f..3c380933 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -261,7 +261,7 @@ enum scale_filter_mode { }; enum render_bit_depth { - RENDER_BIT_DEPTH_DEFAULT, // the default is currently 8 + RENDER_BIT_DEPTH_DEFAULT, // the default is currently 8 for SDR, 10 for HDR RENDER_BIT_DEPTH_6, RENDER_BIT_DEPTH_8, RENDER_BIT_DEPTH_10, @@ -291,6 +291,7 @@ struct output_config { bool set_color_transform; struct wlr_color_transform *color_transform; int allow_tearing; + int hdr; char *background; char *background_option; diff --git a/include/sway/output.h b/include/sway/output.h index 756a0ec2..06f8bac2 100644 --- a/include/sway/output.h +++ b/include/sway/output.h @@ -68,7 +68,9 @@ struct sway_output { uint32_t refresh_nsec; int max_render_time; // In milliseconds struct wl_event_source *repaint_timer; + bool allow_tearing; + bool hdr; }; struct sway_output_non_desktop { |
