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) -> Self

impl Copy for UpsamplingMethod

impl Default for UpsamplingMethod

fn default() -> Self

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,

impl<T> Borrow<T> for UpsamplingMethod where T: ?Sized,

impl<T> BorrowMut<T> for UpsamplingMethod where T: ?Sized,

impl<T> CloneToUninit for UpsamplingMethod where T: Clone,

impl<T> From<T> for UpsamplingMethod

impl<T> ToOwned for UpsamplingMethod where T: Clone,

impl<T, U> Into<U> for UpsamplingMethod where U: From<T>,

impl<T, U> TryFrom<U> for UpsamplingMethod where U: Into<T>,

impl<T, U> TryInto<U> for UpsamplingMethod where U: TryFrom<T>,