#[non_exhaustive]#[repr(C)]pub enum ChromaDownsamplingAlgorithm {
NearestNeighbor = 1,
Average = 2,
SharpYuv = 3,
}
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.
NearestNeighbor = 1
Average = 2
SharpYuv = 3
Combine with ChromaUpsamplingAlgorithm::Bilinear
for best quality.
Makes edges look sharper when using YUV 420 with bilinear chroma upsampling.
Implementations§
Trait Implementations§
source§impl Clone for ChromaDownsamplingAlgorithm
impl Clone for ChromaDownsamplingAlgorithm
source§fn clone(&self) -> ChromaDownsamplingAlgorithm
fn clone(&self) -> ChromaDownsamplingAlgorithm
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 ChromaDownsamplingAlgorithm
impl Debug for ChromaDownsamplingAlgorithm
source§impl Hash for ChromaDownsamplingAlgorithm
impl Hash for ChromaDownsamplingAlgorithm
source§impl PartialEq for ChromaDownsamplingAlgorithm
impl PartialEq for ChromaDownsamplingAlgorithm
source§fn eq(&self, other: &ChromaDownsamplingAlgorithm) -> bool
fn eq(&self, other: &ChromaDownsamplingAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChromaDownsamplingAlgorithm
impl Eq for ChromaDownsamplingAlgorithm
impl StructuralPartialEq for ChromaDownsamplingAlgorithm
Auto Trait Implementations§
impl Freeze for ChromaDownsamplingAlgorithm
impl RefUnwindSafe for ChromaDownsamplingAlgorithm
impl Send for ChromaDownsamplingAlgorithm
impl Sync for ChromaDownsamplingAlgorithm
impl Unpin for ChromaDownsamplingAlgorithm
impl UnwindSafe for ChromaDownsamplingAlgorithm
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