#[non_exhaustive]pub enum ChromaSiting {
Unknown,
Left,
TopLeft,
Center,
}Expand description
Where chroma samples sit relative to luma. An axis of its own:
Unknown is kept, never defaulted to Center; a conversion that needs
siting refuses Unknown on a subsampled axis or takes it from the
caller.
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.
Unknown
The stream does not say.
Left
Co-sited with the left luma sample, vertically between rows (MPEG-2 style 4:2:0).
TopLeft
Co-sited with the top-left luma sample.
Center
Centred between luma samples (JPEG style).
Trait Implementations§
Source§impl Clone for ChromaSiting
impl Clone for ChromaSiting
Source§fn clone(&self) -> ChromaSiting
fn clone(&self) -> ChromaSiting
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 ChromaSiting
Source§impl Debug for ChromaSiting
impl Debug for ChromaSiting
Source§impl Default for ChromaSiting
impl Default for ChromaSiting
Source§fn default() -> ChromaSiting
fn default() -> ChromaSiting
Returns the “default value” for a type. Read more
impl Eq for ChromaSiting
Source§impl Hash for ChromaSiting
impl Hash for ChromaSiting
Source§impl PartialEq for ChromaSiting
impl PartialEq for ChromaSiting
impl StructuralPartialEq for ChromaSiting
Auto Trait Implementations§
impl Freeze for ChromaSiting
impl RefUnwindSafe for ChromaSiting
impl Send for ChromaSiting
impl Sync for ChromaSiting
impl Unpin for ChromaSiting
impl UnsafeUnpin for ChromaSiting
impl UnwindSafe for ChromaSiting
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