pub struct GainMapChannel {
pub min: f64,
pub max: f64,
pub gamma: f64,
pub base_offset: f64,
pub alternate_offset: f64,
}Expand description
Per-channel gain map parameters.
Gains (min, max) are in log2 domain. Gamma and offsets are in linear domain.
Fields§
§min: f64Log2 of minimum gain (can be negative, e.g., −1.0 = half brightness).
max: f64Log2 of maximum gain (typically ≥ min).
gamma: f64Gamma applied to gain map values. Linear domain, must be > 0.
base_offset: f64Offset added to base image values before gain application. Linear domain.
alternate_offset: f64Offset added to alternate image values before gain application. Linear domain.
Implementations§
Source§impl GainMapChannel
impl GainMapChannel
Sourcepub fn linear_min(&self) -> f64
pub fn linear_min(&self) -> f64
Minimum gain in linear domain: 2^min.
Sourcepub fn linear_max(&self) -> f64
pub fn linear_max(&self) -> f64
Maximum gain in linear domain: 2^max.
Trait Implementations§
Source§impl Clone for GainMapChannel
impl Clone for GainMapChannel
Source§fn clone(&self) -> GainMapChannel
fn clone(&self) -> GainMapChannel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GainMapChannel
impl Debug for GainMapChannel
Source§impl Default for GainMapChannel
impl Default for GainMapChannel
Source§impl PartialEq for GainMapChannel
impl PartialEq for GainMapChannel
impl Copy for GainMapChannel
impl StructuralPartialEq for GainMapChannel
Auto Trait Implementations§
impl Freeze for GainMapChannel
impl RefUnwindSafe for GainMapChannel
impl Send for GainMapChannel
impl Sync for GainMapChannel
impl Unpin for GainMapChannel
impl UnsafeUnpin for GainMapChannel
impl UnwindSafe for GainMapChannel
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