#[repr(u8)]pub enum ChromaSubsampling {
Cs444 = 0,
Cs422 = 1,
Cs420 = 2,
}Expand description
Chroma subsampling for YUV formats.
Variants§
Cs444 = 0
4:4:4 with full chroma resolution.
Cs422 = 1
4:2:2 with half horizontal chroma.
Cs420 = 2
4:2:0 with half horizontal and vertical chroma.
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 moreSource§impl Debug for ChromaSubsampling
impl Debug for ChromaSubsampling
Source§impl PartialEq for ChromaSubsampling
impl PartialEq for ChromaSubsampling
Source§fn eq(&self, other: &ChromaSubsampling) -> bool
fn eq(&self, other: &ChromaSubsampling) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChromaSubsampling
impl Eq 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