#[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
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 more
sourceimpl 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
Performs the conversion.
sourceimpl Hash for ChromaLocation
impl Hash for ChromaLocation
sourceimpl PartialEq<ChromaLocation> for ChromaLocation
impl PartialEq<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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more