Skip to main content

display_boost_to_headroom_stops

Function display_boost_to_headroom_stops 

Source
pub fn display_boost_to_headroom_stops(display_boost: f32) -> f32
Expand description

Convert a linear display boost ratio (e.g. 1.0 = SDR, 4.0 = 4× HDR) into ISO 21496-1 log₂ headroom stops (0.0 for <= 1.0 or non-finite).