pub enum GainMapChannels {
Shared(GainMapComponent),
PerChannel([GainMapComponent; 3]),
}Expand description
Metadata record arity per ISO 21496-1 §5.2.5.1 — strictly independent of gain-map image channels (1 or 3).
Variants§
Single shared parameter record (is_multichannel = false).
PerChannel([GainMapComponent; 3])
Three explicit per-channel [R, G, B] parameter records (is_multichannel = true).
Implementations§
Source§impl GainMapChannels
impl GainMapChannels
Sourcepub const fn channel(self, c: usize) -> GainMapComponent
pub const fn channel(self, c: usize) -> GainMapComponent
Access parameter record for channel c (0..3).
Sourcepub const fn is_multichannel(self) -> bool
pub const fn is_multichannel(self) -> bool
Whether three explicit per-channel records were authored (is_multichannel).
Trait Implementations§
Source§impl Clone for GainMapChannels
impl Clone for GainMapChannels
Source§fn clone(&self) -> GainMapChannels
fn clone(&self) -> GainMapChannels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GainMapChannels
Source§impl Debug for GainMapChannels
impl Debug for GainMapChannels
impl Eq for GainMapChannels
Source§impl Hash for GainMapChannels
impl Hash for GainMapChannels
Source§impl PartialEq for GainMapChannels
impl PartialEq for GainMapChannels
impl StructuralPartialEq for GainMapChannels
Auto Trait Implementations§
impl Freeze for GainMapChannels
impl RefUnwindSafe for GainMapChannels
impl Send for GainMapChannels
impl Sync for GainMapChannels
impl Unpin for GainMapChannels
impl UnsafeUnpin for GainMapChannels
impl UnwindSafe for GainMapChannels
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