pub struct GainMapChannel {
pub gain_map_min_n: i32,
pub gain_map_min_d: u32,
pub gain_map_max_n: i32,
pub gain_map_max_d: u32,
pub gamma_n: u32,
pub gamma_d: u32,
pub base_offset_n: i32,
pub base_offset_d: u32,
pub alternate_offset_n: i32,
pub alternate_offset_d: u32,
}Expand description
Per-channel gain map parameters from ISO 21496-1.
Each field is a rational number (numerator/denominator pair) describing how to apply the gain map for this channel.
Fields§
§gain_map_min_n: i32Minimum gain map value (numerator).
gain_map_min_d: u32Minimum gain map value (denominator).
gain_map_max_n: i32Maximum gain map value (numerator).
gain_map_max_d: u32Maximum gain map value (denominator).
gamma_n: u32Gamma curve parameter (numerator).
gamma_d: u32Gamma curve parameter (denominator).
base_offset_n: i32Base image offset (numerator).
base_offset_d: u32Base image offset (denominator).
alternate_offset_n: i32Alternate image offset (numerator).
alternate_offset_d: u32Alternate image offset (denominator).
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 PartialEq for GainMapChannel
impl PartialEq for GainMapChannel
impl Copy for GainMapChannel
impl Eq 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 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