#[non_exhaustive]pub enum LumaDomain {
Encoded,
LinearLight,
}Expand description
Domain in which RGB → Gray luminance weights are evaluated.
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.
Encoded
Evaluate luma weights directly on transfer-encoded RGB samples (Y' = w_r·R' + w_g·G' + w_b·B').
Matches the JPEG/video Y’ convention and zenpixels 0.2/0.4 defaults, preserves
neutral gray (R' = G' = B' → Y' = R') bit-for-bit, and enables SIMD integer
U8 fast paths.
LinearLight
Linearize RGB via the source EOTF, compute physical luminance (Y = w_r·R + w_g·G + w_b·B),
then apply the destination OETF.
Trait Implementations§
Source§impl Clone for LumaDomain
impl Clone for LumaDomain
Source§fn clone(&self) -> LumaDomain
fn clone(&self) -> LumaDomain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LumaDomain
Source§impl Debug for LumaDomain
impl Debug for LumaDomain
Source§impl Default for LumaDomain
impl Default for LumaDomain
Source§fn default() -> LumaDomain
fn default() -> LumaDomain
Returns the “default value” for a type. Read more
impl Eq for LumaDomain
Source§impl Hash for LumaDomain
impl Hash for LumaDomain
Source§impl PartialEq for LumaDomain
impl PartialEq for LumaDomain
impl StructuralPartialEq for LumaDomain
Auto Trait Implementations§
impl Freeze for LumaDomain
impl RefUnwindSafe for LumaDomain
impl Send for LumaDomain
impl Sync for LumaDomain
impl Unpin for LumaDomain
impl UnsafeUnpin for LumaDomain
impl UnwindSafe for LumaDomain
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