pub enum UpsamplingMethod {
Bilinear,
Simple,
}
Expand description
Methods for upsampling the chroma values in lossy decoding
The chroma red and blue planes are encoded in VP8 as half the size of the luma plane Therefore we need to upsample these values up to fit each pixel in the image.
Variants§
Bilinear
Fancy upsampling
Does bilinear interpolation using the 4 values nearest to the pixel, weighting based on the distance from the pixel.
Simple
Simple upsampling, just uses the closest u/v value to the pixel when upsampling
Matches the -nofancy option in dwebp. Should be faster but may lead to slightly jagged edges.
Trait Implementations§
Source§impl Clone for UpsamplingMethod
impl Clone for UpsamplingMethod
Source§fn clone(&self) -> UpsamplingMethod
fn clone(&self) -> UpsamplingMethod
Returns a duplicate 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 Default for UpsamplingMethod
impl Default for UpsamplingMethod
Source§fn default() -> UpsamplingMethod
fn default() -> UpsamplingMethod
Returns the “default value” for a type. Read more
impl Copy for UpsamplingMethod
Auto Trait Implementations§
impl Freeze for UpsamplingMethod
impl RefUnwindSafe for UpsamplingMethod
impl Send for UpsamplingMethod
impl Sync for UpsamplingMethod
impl Unpin for UpsamplingMethod
impl UnwindSafe for UpsamplingMethod
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