pub enum ChromaSamplePosition {
Unknown,
Vertical,
Colocated,
Bilateral,
Interpolated,
}
Expand description
Sample position for subsampled chroma
Variants§
Unknown
The source video transfer function is not signaled. This crate will assume no transformation needs to be done on this data, but there is a risk of metric calculations being inaccurate.
Vertical
Horizontally co-located with (0, 0) luma sample, vertically positioned in the middle between two luma samples.
Colocated
Co-located with (0, 0) luma sample.
Bilateral
Bilaterally located chroma plane in the diagonal space between luma samples.
Interpolated
Interlaced content with interpolated chroma samples.
Trait Implementations§
Source§impl Clone for ChromaSamplePosition
impl Clone for ChromaSamplePosition
Source§fn clone(&self) -> ChromaSamplePosition
fn clone(&self) -> ChromaSamplePosition
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 ChromaSamplePosition
impl Debug for ChromaSamplePosition
Source§impl Default for ChromaSamplePosition
impl Default for ChromaSamplePosition
Source§fn default() -> ChromaSamplePosition
fn default() -> ChromaSamplePosition
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChromaSamplePosition
impl PartialEq for ChromaSamplePosition
impl Copy for ChromaSamplePosition
impl Eq for ChromaSamplePosition
impl StructuralPartialEq for ChromaSamplePosition
Auto Trait Implementations§
impl Freeze for ChromaSamplePosition
impl RefUnwindSafe for ChromaSamplePosition
impl Send for ChromaSamplePosition
impl Sync for ChromaSamplePosition
impl Unpin for ChromaSamplePosition
impl UnwindSafe for ChromaSamplePosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more