#[non_exhaustive]
#[repr(i32)]
pub enum ChromaLocation {
CositedEven,
Midpoint,
}
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
The chroma components are sampled at the even luma coordinate.
Midpoint
The chroma components are sampled at the midpoint between the even luma coordinate and the next higher odd luma coordinate.
Trait Implementations
sourceimpl Clone for ChromaLocation
impl Clone for ChromaLocation
sourcefn clone(&self) -> ChromaLocation
fn clone(&self) -> ChromaLocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ChromaLocation
impl Debug for ChromaLocation
sourceimpl From<ChromaLocation> for ChromaLocation
impl From<ChromaLocation> for ChromaLocation
sourcefn from(val: ChromaLocation) -> Self
fn from(val: ChromaLocation) -> Self
Converts to this type from the input type.
sourceimpl Hash for ChromaLocation
impl Hash for ChromaLocation
sourceimpl PartialEq<ChromaLocation> for ChromaLocation
impl PartialEq<ChromaLocation> for ChromaLocation
sourcefn eq(&self, other: &ChromaLocation) -> bool
fn eq(&self, other: &ChromaLocation) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more