struct ColorProfile {
rgb: ColorProfile,
}Expand description
An RGB profile with its related (same tone-mapping) gray profile.
This is the whole input information which we must be able to pass to the CMS in a support
transform, to handle all possible combinations of ColorType pixels that can be thrown at us.
For instance, in a previous iteration we had a separate gray profile here (but now handle that
internally by expansion to RGB through an YCbCr). Future iterations may add additional structs
to be computed for validating CicpTransform::new.
Fields§
§rgb: ColorProfileImplementations§
Source§impl ColorProfile
impl ColorProfile
fn map_layout(&self, layout: LayoutWithColor) -> (&ColorProfile, Layout)
Auto Trait Implementations§
impl Freeze for ColorProfile
impl RefUnwindSafe for ColorProfile
impl Send for ColorProfile
impl Sync for ColorProfile
impl Unpin for ColorProfile
impl UnsafeUnpin for ColorProfile
impl UnwindSafe for ColorProfile
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> 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