pub enum ChromaSubsamplingMethod {
Nearest,
Average,
}Expand description
Method for reducing each chroma block to a single sample when subsampling
Variants§
Nearest
Use the top-left pixel of each block (fastest, default)
Average
Box-average each block, matching libjpeg’s h2v2_downsample
Trait Implementations§
Source§impl Clone for ChromaSubsamplingMethod
impl Clone for ChromaSubsamplingMethod
Source§fn clone(&self) -> ChromaSubsamplingMethod
fn clone(&self) -> ChromaSubsamplingMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChromaSubsamplingMethod
Source§impl Debug for ChromaSubsamplingMethod
impl Debug for ChromaSubsamplingMethod
impl Eq for ChromaSubsamplingMethod
Source§impl PartialEq for ChromaSubsamplingMethod
impl PartialEq for ChromaSubsamplingMethod
impl StructuralPartialEq for ChromaSubsamplingMethod
Auto Trait Implementations§
impl Freeze for ChromaSubsamplingMethod
impl RefUnwindSafe for ChromaSubsamplingMethod
impl Send for ChromaSubsamplingMethod
impl Sync for ChromaSubsamplingMethod
impl Unpin for ChromaSubsamplingMethod
impl UnsafeUnpin for ChromaSubsamplingMethod
impl UnwindSafe for ChromaSubsamplingMethod
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