#[non_exhaustive]pub enum Subsampling {
Mono,
Yuv420,
Yuv422,
Yuv444,
}Expand description
Chroma subsampling of a planar picture.
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.
Mono
One plane, no chroma.
Yuv420
Chroma halved both ways.
Yuv422
Chroma halved horizontally.
Yuv444
Full-resolution chroma.
Implementations§
Source§impl Subsampling
impl Subsampling
Trait Implementations§
Source§impl Clone for Subsampling
impl Clone for Subsampling
Source§fn clone(&self) -> Subsampling
fn clone(&self) -> Subsampling
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 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