Sunshine master
Self-hosted game stream host for Moonlight.
config::video_t::dd_t Struct Reference

Display-device integration settings. More...

#include <src/config.h>

Collaboration diagram for config::video_t::dd_t:
[legend]

Classes

struct  mode_remapping_entry_t
 Single display mode remapping rule from configuration. More...
 
struct  mode_remapping_t
 Collection of display mode remapping rules. More...
 
struct  workarounds_t
 Compatibility workarounds for display-device control. More...
 

Public Types

enum class  config_option_e {
  disabled , verify_only , ensure_active , ensure_primary ,
  ensure_only_display
}
 Selects how Sunshine prepares the active display before streaming. More...
 
enum class  hdr_option_e { disabled , automatic }
 Selects how Sunshine handles HDR state for the stream display. More...
 
enum class  refresh_rate_option_e { disabled , automatic , manual }
 Selects how Sunshine chooses the stream display refresh rate. More...
 
enum class  resolution_option_e { disabled , automatic , manual }
 Selects how Sunshine chooses the stream display resolution. More...
 

Public Attributes

std::chrono::milliseconds config_revert_delay
 Time to wait until settings are reverted (after stream ends/app exists).
 
bool config_revert_on_disconnect
 Specify whether to revert display configuration on client disconnect.
 
config_option_e configuration_option
 Display-preparation mode selected by configuration.
 
hdr_option_e hdr_option
 HDR-selection mode selected by configuration.
 
std::string manual_refresh_rate
 Manual refresh rate in case refresh_rate_option == refresh_rate_option_e::manual.
 
std::string manual_resolution
 Manual resolution in case resolution_option == resolution_option_e::manual.
 
mode_remapping_t mode_remapping
 Display mode remapping rules grouped by automatic selection mode.
 
refresh_rate_option_e refresh_rate_option
 Refresh-rate selection mode selected by configuration.
 
resolution_option_e resolution_option
 Resolution-selection mode selected by configuration.
 
workarounds_t wa
 Display-device compatibility workarounds.
 

Detailed Description

Display-device integration settings.

Member Enumeration Documentation

◆ config_option_e

Selects how Sunshine prepares the active display before streaming.

Enumerator
disabled 

Disable the configuration for the device.

verify_only 
See also
display_device::SingleDisplayConfiguration::DevicePreparation
ensure_active 
See also
display_device::SingleDisplayConfiguration::DevicePreparation
ensure_primary 
See also
display_device::SingleDisplayConfiguration::DevicePreparation
ensure_only_display 
See also
display_device::SingleDisplayConfiguration::DevicePreparation

◆ hdr_option_e

Selects how Sunshine handles HDR state for the stream display.

Enumerator
disabled 

Do not change HDR settings.

automatic 

Change HDR settings and use the state requested by Moonlight.

◆ refresh_rate_option_e

Selects how Sunshine chooses the stream display refresh rate.

Enumerator
disabled 

Do not change refresh rate.

automatic 

Change refresh rate and use the one received from Moonlight.

manual 

Change refresh rate and use the manually provided one.

◆ resolution_option_e

Selects how Sunshine chooses the stream display resolution.

Enumerator
disabled 

Do not change resolution.

automatic 

Change resolution and use the one received from Moonlight.

manual 

Change resolution and use the manually provided one.


The documentation for this struct was generated from the following file: