pub struct ExtraChannelInfo {
pub ec_type: ExtraChannelType,
pub bit_depth: BitDepth,
pub dim_shift: u32,
pub name: String,
pub alpha_associated: bool,
pub spot_color: [f32; 4],
pub cfa_channel: u32,
}Expand description
Information about an extra channel.
Fields§
§ec_type: ExtraChannelTypeType of extra channel.
bit_depth: BitDepthBit depth of this channel.
dim_shift: u32Dimension shift (log2 of downsampling factor).
name: StringName of the channel (optional).
alpha_associated: boolWhether alpha is premultiplied.
spot_color: [f32; 4]Spot color values (for SpotColor type).
cfa_channel: u32CFA index (for CFA type).
Implementations§
Source§impl ExtraChannelInfo
impl ExtraChannelInfo
Sourcepub fn spot_color(color: [f32; 4]) -> Self
pub fn spot_color(color: [f32; 4]) -> Self
Creates a spot color channel.
Trait Implementations§
Source§impl Clone for ExtraChannelInfo
impl Clone for ExtraChannelInfo
Source§fn clone(&self) -> ExtraChannelInfo
fn clone(&self) -> ExtraChannelInfo
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 ExtraChannelInfo
impl Debug for ExtraChannelInfo
Auto Trait Implementations§
impl Freeze for ExtraChannelInfo
impl RefUnwindSafe for ExtraChannelInfo
impl Send for ExtraChannelInfo
impl Sync for ExtraChannelInfo
impl Unpin for ExtraChannelInfo
impl UnsafeUnpin for ExtraChannelInfo
impl UnwindSafe for ExtraChannelInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more