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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more