pub struct DisplayHeadroom {
pub current: Option<f32>,
pub potential: Option<f32>,
pub reference: Option<f32>,
}Expand description
Relative EDR headroom (Apple): unitless multipliers over current SDR white,
where 1.0 means no headroom. Moves with brightness, ambient light, battery,
and which display the window is on. Apple exposes no absolute-nit equivalent,
so this is separate from DisplayLuminance and can’t be converted to nits.
Populated only on macOS; None on iOS, tvOS, and visionOS.
Fields§
§current: Option<f32>Headroom available right now (maximumExtendedDynamicRangeColorComponentValue
/ iOS UIScreen.currentEDRHeadroom). 1.0 means no headroom at this
instant, even on an HDR-capable panel.
potential: Option<f32>Headroom the display could reach under ideal conditions
(maximumPotentialExtendedDynamicRangeColorComponentValue /
UIScreen.potentialEDRHeadroom).
reference: Option<f32>Headroom for reference-white content
(maximumReferenceExtendedDynamicRangeColorComponentValue). None if
unreported.
Trait Implementations§
Source§impl Clone for DisplayHeadroom
impl Clone for DisplayHeadroom
Source§fn clone(&self) -> DisplayHeadroom
fn clone(&self) -> DisplayHeadroom
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DisplayHeadroom
impl Debug for DisplayHeadroom
Source§impl Default for DisplayHeadroom
impl Default for DisplayHeadroom
Source§fn default() -> DisplayHeadroom
fn default() -> DisplayHeadroom
Source§impl<'de> Deserialize<'de> for DisplayHeadroom
impl<'de> Deserialize<'de> for DisplayHeadroom
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DisplayHeadroom
impl PartialEq for DisplayHeadroom
Source§fn eq(&self, other: &DisplayHeadroom) -> bool
fn eq(&self, other: &DisplayHeadroom) -> bool
self and other values to be equal, and is used by ==.