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§
source§impl 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§
source§impl Clone for ColorModel
impl Clone for ColorModel
source§fn clone(&self) -> ColorModel
fn clone(&self) -> ColorModel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ColorModel
impl Debug for ColorModel
source§impl Display for ColorModel
impl Display for ColorModel
source§impl Hash for ColorModel
impl Hash for ColorModel
source§impl PartialEq for ColorModel
impl PartialEq for ColorModel
impl Copy for ColorModel
impl Eq for ColorModel
impl StructuralPartialEq for ColorModel
Auto Trait Implementations§
impl Freeze for ColorModel
impl RefUnwindSafe for ColorModel
impl Send for ColorModel
impl Sync for ColorModel
impl Unpin for ColorModel
impl UnwindSafe for ColorModel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)