Enum av_metrics::video::ChromaSamplePosition
source · 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<ChromaSamplePosition> for ChromaSamplePosition
impl PartialEq<ChromaSamplePosition> for ChromaSamplePosition
source§fn eq(&self, other: &ChromaSamplePosition) -> bool
fn eq(&self, other: &ChromaSamplePosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChromaSamplePosition
impl Eq for ChromaSamplePosition
impl StructuralEq for ChromaSamplePosition
impl StructuralPartialEq for ChromaSamplePosition
Auto Trait Implementations§
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