Enum av_data::pixel::ColorModel
source · [−]pub enum ColorModel {
Trichromatic(TrichromaticEncodingSystem),
CMYK,
HSV,
LAB,
}Expand description
All supported color models.
Variants
Trichromatic(TrichromaticEncodingSystem)
An image represented by three channels or planes: Includes RGB, YUV, and XYZ.
CMYK
The CMYK color model is a subtractive color model, based on the CMY color model, used in color printing, and is also used to describe the printing process itself. CMYK refers to the four ink plates used in some color printing: cyan, magenta, yellow, and key.
HSV
HSL and HSV are alternative representations of the RGB color model, designed in the 1970s by computer graphics researchers to more closely align with the way human vision perceives color-making attributes.
LAB
The CIELAB color space expresses color as three values: L* for perceptual lightness, and a* and b* for the four unique colors of human vision: red, green, blue, and yellow.
Implementations
sourceimpl ColorModel
impl ColorModel
sourcepub fn get_default_components(self) -> usize
pub fn get_default_components(self) -> usize
Returns the number of components of a color model.
Trait Implementations
sourceimpl Clone for ColorModel
impl Clone for ColorModel
sourcefn clone(&self) -> ColorModel
fn clone(&self) -> ColorModel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ColorModel
impl Debug for ColorModel
sourceimpl Display for ColorModel
impl Display for ColorModel
sourceimpl PartialEq<ColorModel> for ColorModel
impl PartialEq<ColorModel> for ColorModel
sourcefn eq(&self, other: &ColorModel) -> bool
fn eq(&self, other: &ColorModel) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Copy for ColorModel
impl Eq for ColorModel
impl StructuralEq for ColorModel
impl StructuralPartialEq for ColorModel
Auto Trait Implementations
impl RefUnwindSafe for ColorModel
impl Send for ColorModel
impl Sync for ColorModel
impl Unpin for ColorModel
impl UnwindSafe for ColorModel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more