#[non_exhaustive]pub struct ResolvedDisplayConfig {
pub mode: VideoMode,
pub color_encoding: ColorFormat,
pub bit_depth: ColorBitDepth,
pub frl_rate: HdmiForumFrl,
pub dsc_required: bool,
pub vrr_applicable: bool,
}Expand description
A resolved display configuration ready to program into hardware.
ResolvedDisplayConfig contains the hardware-relevant fields produced by a
display negotiation engine — the video mode, color encoding, transport
settings, and compression flags that a DRM driver or InfoFrame encoder
needs to configure the link.
§Design note
This type lives in display-types so that drivers, InfoFrame encoders, and
compositors can consume negotiation output without a direct dependency on the
negotiation engine. This mirrors how DisplayCapabilities lives here so
negotiation engines can consume parser output without depending on the parser.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: VideoModeThe resolved video mode.
color_encoding: ColorFormatColor encoding format for this configuration.
bit_depth: ColorBitDepthColor bit depth per channel.
frl_rate: HdmiForumFrlFRL rate tier, or HdmiForumFrl::NotSupported for TMDS transport.
dsc_required: boolWhether Display Stream Compression is required for this configuration.
vrr_applicable: boolWhether Variable Refresh Rate is applicable for this configuration.
Implementations§
Source§impl ResolvedDisplayConfig
impl ResolvedDisplayConfig
Sourcepub fn new(
mode: VideoMode,
color_encoding: ColorFormat,
bit_depth: ColorBitDepth,
frl_rate: HdmiForumFrl,
dsc_required: bool,
vrr_applicable: bool,
) -> Self
pub fn new( mode: VideoMode, color_encoding: ColorFormat, bit_depth: ColorBitDepth, frl_rate: HdmiForumFrl, dsc_required: bool, vrr_applicable: bool, ) -> Self
Constructs a ResolvedDisplayConfig.
Trait Implementations§
Source§impl Clone for ResolvedDisplayConfig
impl Clone for ResolvedDisplayConfig
Source§fn clone(&self) -> ResolvedDisplayConfig
fn clone(&self) -> ResolvedDisplayConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more