pub enum ChromaLocation {
Left,
Centre,
Right,
Unspecified,
}Expand description
Chroma sample location for sub-sampled formats (e.g. YUV 4:2:0).
Variants§
Left
Chroma samples are co-sited with the top-left luma sample.
Centre
Chroma samples are centred vertically between luma rows (MPEG-1 style).
Right
Chroma samples are co-sited with the top-right luma sample.
Unspecified
Unspecified / unknown location.
Trait Implementations§
Source§impl Clone for ChromaLocation
impl Clone for ChromaLocation
Source§fn clone(&self) -> ChromaLocation
fn clone(&self) -> ChromaLocation
Returns a duplicate of the value. Read more
1.0.0 · 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 ChromaLocation
impl Debug for ChromaLocation
Source§impl Default for ChromaLocation
impl Default for ChromaLocation
Source§fn default() -> ChromaLocation
fn default() -> ChromaLocation
Returns the “default value” for a type. Read more
Source§impl Hash for ChromaLocation
impl Hash for ChromaLocation
Source§impl PartialEq for ChromaLocation
impl PartialEq for ChromaLocation
impl Copy for ChromaLocation
impl Eq for ChromaLocation
impl StructuralPartialEq for ChromaLocation
Auto Trait Implementations§
impl Freeze for ChromaLocation
impl RefUnwindSafe for ChromaLocation
impl Send for ChromaLocation
impl Sync for ChromaLocation
impl Unpin for ChromaLocation
impl UnsafeUnpin for ChromaLocation
impl UnwindSafe for ChromaLocation
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