#[non_exhaustive]#[repr(i32)]pub enum ChromaLocation {
CositedEven = 0,
Midpoint = 1,
}
Expand description
For formats with chroma subsampling, the location where the chroma components are sampled, relative to the luma component.
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.
CositedEven = 0
The chroma components are sampled at the even luma coordinate.
Midpoint = 1
The chroma components are sampled at the midpoint between the even luma coordinate and the next higher odd luma coordinate.
Trait Implementations§
source§impl Clone for ChromaLocation
impl Clone for ChromaLocation
source§fn clone(&self) -> ChromaLocation
fn clone(&self) -> ChromaLocation
Returns a copy 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 From<ChromaLocation> for ChromaLocation
impl From<ChromaLocation> for ChromaLocation
source§fn from(val: ChromaLocation) -> Self
fn from(val: ChromaLocation) -> Self
Converts to this type from the input type.
source§impl Hash for ChromaLocation
impl Hash for ChromaLocation
source§impl PartialEq for ChromaLocation
impl PartialEq for ChromaLocation
source§fn eq(&self, other: &ChromaLocation) -> bool
fn eq(&self, other: &ChromaLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ChromaLocation> for ChromaLocation
impl TryFrom<ChromaLocation> for ChromaLocation
impl Copy for ChromaLocation
impl Eq for ChromaLocation
impl StructuralEq for ChromaLocation
impl StructuralPartialEq for ChromaLocation
Auto Trait Implementations§
impl RefUnwindSafe for ChromaLocation
impl Send for ChromaLocation
impl Sync for ChromaLocation
impl Unpin 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