pub struct GainMapFloats {
pub min: [f32; 3],
pub max: [f32; 3],
pub gamma: [f32; 3],
pub base_offset: [f32; 3],
pub alternate_offset: [f32; 3],
pub base_hdr_headroom: f32,
pub alternate_hdr_headroom: f32,
pub backward_direction: bool,
pub use_base_color_space: bool,
}Expand description
Floating-point gain map parameters, the convenient way to build an
IsoGainMap. Per-channel arrays are [R, G, B]; pass three identical
values for a single-channel (luminance) gain map.
The values follow the ISO 21496-1 / Ultra HDR conventions:
min/max are log2 of the smallest/largest gain in the map,
base_hdr_headroom/alternate_hdr_headroom are log2 of each rendition’s
headroom (0.0 for an SDR base), offsets are in normalised 0..1 units.
Fields§
§min: [f32; 3]§max: [f32; 3]§gamma: [f32; 3]§base_offset: [f32; 3]§alternate_offset: [f32; 3]§base_hdr_headroom: f32§alternate_hdr_headroom: f32§backward_direction: bool§use_base_color_space: boolTrait Implementations§
Source§impl Clone for GainMapFloats
impl Clone for GainMapFloats
impl Copy for GainMapFloats
Source§impl Debug for GainMapFloats
impl Debug for GainMapFloats
Source§impl Default for GainMapFloats
impl Default for GainMapFloats
Source§impl PartialEq for GainMapFloats
impl PartialEq for GainMapFloats
impl StructuralPartialEq for GainMapFloats
Auto Trait Implementations§
impl Forget for GainMapFloats
impl Freeze for GainMapFloats
impl Move for GainMapFloats
impl RefUnwindSafe for GainMapFloats
impl Send for GainMapFloats
impl Sync for GainMapFloats
impl Unpin for GainMapFloats
impl UnsafeUnpin for GainMapFloats
impl UnwindSafe for GainMapFloats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more