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