#[non_exhaustive]pub enum Subsampling {
C420,
C422,
C444,
Mono,
}Expand description
Chroma subsampling family of a colorspace tag.
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.
C420
4:2:0: chroma planes are ceil(W/2) x ceil(H/2) samples.
C422
4:2:2: chroma planes are ceil(W/2) x H samples.
C444
4:4:4: chroma planes are W x H samples.
Mono
Grayscale: no chroma planes.
Trait Implementations§
Source§impl Clone for Subsampling
impl Clone for Subsampling
impl Copy for Subsampling
Source§impl Debug for Subsampling
impl Debug for Subsampling
impl Eq for Subsampling
Source§impl Hash for Subsampling
impl Hash for Subsampling
Source§impl PartialEq for Subsampling
impl PartialEq for Subsampling
impl StructuralPartialEq for Subsampling
Auto Trait Implementations§
impl Freeze for Subsampling
impl RefUnwindSafe for Subsampling
impl Send for Subsampling
impl Sync for Subsampling
impl Unpin for Subsampling
impl UnsafeUnpin for Subsampling
impl UnwindSafe for Subsampling
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