#[non_exhaustive]pub enum Colorspace {
Show 15 variants
Default,
Smpte170mYcc,
Bt709Ycc,
XvYcc601,
XvYcc709,
SYcc601,
OpYcc601,
OpRgb,
Bt2020Cycc,
Bt2020Rgb,
Bt2020Ycc,
DciP3RgbD65,
DciP3RgbTheater,
RgbWideFixed,
RgbWideFloat,
}Expand description
A connector’s Colorspace entries, by the kernel’s names.
What the sink is told the pixels mean. Writing the wrong one is not an error the kernel can catch – the picture just comes out in the wrong gamut.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
Default
Smpte170mYcc
SMPTE_170M_YCC
Bt709Ycc
BT709_YCC
XvYcc601
XVYCC_601
XvYcc709
XVYCC_709
SYcc601
SYCC_601
OpYcc601
opYCC_601
OpRgb
opRGB
Bt2020Cycc
BT2020_CYCC
Bt2020Rgb
BT2020_RGB
Bt2020Ycc
BT2020_YCC
DciP3RgbD65
DCI-P3_RGB_D65
DciP3RgbTheater
DCI-P3_RGB_Theater
RgbWideFixed
RGB_Wide_Gamut_Fixed_Point
RgbWideFloat
RGB_Wide_Gamut_Floating_Point
Implementations§
Trait Implementations§
Source§impl Clone for Colorspace
impl Clone for Colorspace
impl Copy for Colorspace
Source§impl Debug for Colorspace
impl Debug for Colorspace
impl Eq for Colorspace
Source§impl Hash for Colorspace
impl Hash for Colorspace
Source§impl Ord for Colorspace
impl Ord for Colorspace
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Colorspace
impl PartialEq for Colorspace
Source§impl PartialOrd for Colorspace
impl PartialOrd for Colorspace
impl StructuralPartialEq for Colorspace
Auto Trait Implementations§
impl Freeze for Colorspace
impl RefUnwindSafe for Colorspace
impl Send for Colorspace
impl Sync for Colorspace
impl Unpin for Colorspace
impl UnsafeUnpin for Colorspace
impl UnwindSafe for Colorspace
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