Enum UpsamplingMethod
pub enum UpsamplingMethod
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
impl Clone for UpsamplingMethod
fn clone(&self) -> UpsamplingMethod
impl Copy for UpsamplingMethod
impl Default for UpsamplingMethod
fn default() -> 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 UnsafeUnpin for UpsamplingMethod
impl UnwindSafe for UpsamplingMethod
Blanket Implementations
impl<T> Any for UpsamplingMethod
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for UpsamplingMethod
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for UpsamplingMethod
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for UpsamplingMethod
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for UpsamplingMethod
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for UpsamplingMethod
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for UpsamplingMethod
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for UpsamplingMethod
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for UpsamplingMethod
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>