1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/// Algorithm used for upsampling. #[derive(Debug, Clone)] pub enum InterpolateMode { /// Nearest-neighbor interpolation. /// <https://en.wikipedia.org/wiki/Nearest-neighbor_interpolation> Nearest, /// Bilinear interpolation. /// <https://en.wikipedia.org/wiki/Bilinear_interpolation> Bilinear, /// Bicubic interpolation. /// <https://en.wikipedia.org/wiki/Bicubic_interpolation> Bicubic, /// Lanczos3 interpolation (6-tap sinc-based filter). /// <https://en.wikipedia.org/wiki/Lanczos_resampling> Lanczos3, }