pub enum ColorInfo {
RGB(RgbColorInfo),
YUV(YuvColorInfo),
}Expand description
Color space of an image
Variants§
RGB(RgbColorInfo)
YUV(YuvColorInfo)
Implementations§
Source§impl ColorInfo
impl ColorInfo
pub fn primaries(&self) -> ColorPrimaries
pub fn transfer(&self) -> ColorTransfer
Trait Implementations§
Source§impl From<RgbColorInfo> for ColorInfo
impl From<RgbColorInfo> for ColorInfo
Source§fn from(value: RgbColorInfo) -> Self
fn from(value: RgbColorInfo) -> Self
Converts to this type from the input type.
Source§impl From<YuvColorInfo> for ColorInfo
impl From<YuvColorInfo> for ColorInfo
Source§fn from(value: YuvColorInfo) -> Self
fn from(value: YuvColorInfo) -> Self
Converts to this type from the input type.
impl Copy for ColorInfo
impl Eq for ColorInfo
impl StructuralPartialEq for ColorInfo
Auto Trait Implementations§
impl Freeze for ColorInfo
impl RefUnwindSafe for ColorInfo
impl Send for ColorInfo
impl Sync for ColorInfo
impl Unpin for ColorInfo
impl UnwindSafe for ColorInfo
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