#[non_exhaustive]pub enum LumaCoefficients {
Bt709,
Bt601,
}Expand description
Luma coefficients for RGB→Gray conversion.
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.
Bt709
BT.709: 0.2126R + 0.7152G + 0.0722B (HDTV, sRGB).
Bt601
BT.601: 0.299R + 0.587G + 0.114B (SDTV, JPEG).
Trait Implementations§
Source§impl Clone for LumaCoefficients
impl Clone for LumaCoefficients
Source§fn clone(&self) -> LumaCoefficients
fn clone(&self) -> LumaCoefficients
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LumaCoefficients
impl Debug for LumaCoefficients
Source§impl Hash for LumaCoefficients
impl Hash for LumaCoefficients
Source§impl PartialEq for LumaCoefficients
impl PartialEq for LumaCoefficients
impl Copy for LumaCoefficients
impl Eq for LumaCoefficients
impl StructuralPartialEq for LumaCoefficients
Auto Trait Implementations§
impl Freeze for LumaCoefficients
impl RefUnwindSafe for LumaCoefficients
impl Send for LumaCoefficients
impl Sync for LumaCoefficients
impl Unpin for LumaCoefficients
impl UnsafeUnpin for LumaCoefficients
impl UnwindSafe for LumaCoefficients
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