#[non_exhaustive]pub enum ChromaSubsampling {
Mono,
Yuv444,
Yuv422,
Yuv420,
Yuv440,
Yuv411,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Chroma resolution relative to the complete luma plane.
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 luma plane and no chroma planes (AV1 I400, HEVC 4:0:0, monochrome JPEG).
Yuv444
Equal horizontal and vertical resolution (4:4:4).
Yuv422
Half horizontal resolution, rounded up at an odd edge (4:2:2).
Yuv420
Half horizontal and vertical resolution, rounded up at an odd edge (4:2:0).
Yuv440
Half vertical resolution, rounded up at an odd edge (4:4:0).
Yuv411
Quarter horizontal resolution, rounded up at an odd edge (4:1:1).
Implementations§
Trait Implementations§
Source§impl Clone for ChromaSubsampling
impl Clone for ChromaSubsampling
Source§fn clone(&self) -> ChromaSubsampling
fn clone(&self) -> ChromaSubsampling
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 ChromaSubsampling
Source§impl Debug for ChromaSubsampling
impl Debug for ChromaSubsampling
impl Eq for ChromaSubsampling
Source§impl Hash for ChromaSubsampling
impl Hash for ChromaSubsampling
Source§impl PartialEq for ChromaSubsampling
impl PartialEq for ChromaSubsampling
impl StructuralPartialEq for ChromaSubsampling
Auto Trait Implementations§
impl Freeze for ChromaSubsampling
impl RefUnwindSafe for ChromaSubsampling
impl Send for ChromaSubsampling
impl Sync for ChromaSubsampling
impl Unpin for ChromaSubsampling
impl UnsafeUnpin for ChromaSubsampling
impl UnwindSafe for ChromaSubsampling
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