#[non_exhaustive]#[repr(u8)]pub enum Filter {
Show 31 variants
RobidouxFast = 1,
Robidoux = 2,
RobidouxSharp = 3,
Ginseng = 4,
GinsengSharp = 5,
Lanczos = 6,
LanczosSharp = 7,
Lanczos2 = 8,
Lanczos2Sharp = 9,
CubicFast = 10,
Cubic = 11,
CubicSharp = 12,
CatmullRom = 13,
Mitchell = 14,
CubicBSpline = 15,
Hermite = 16,
Jinc = 17,
RawLanczos3 = 18,
RawLanczos3Sharp = 19,
RawLanczos2 = 20,
RawLanczos2Sharp = 21,
Triangle = 22,
Linear = 23,
Box = 24,
CatmullRomFast = 25,
CatmullRomFastSharp = 26,
Fastest = 27,
MitchellFast = 28,
NCubic = 29,
NCubicSharp = 30,
LegacyIDCTFilter = 31,
}Expand description
Named interpolation filter presets.
These match imageflow’s filter names exactly for compatibility.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RobidouxFast = 1
Robidoux with smaller window — faster, slight quality loss
Robidoux = 2
Balanced cubic filter — good default for downscaling
RobidouxSharp = 3
Robidoux with sharpening — more detail, slight ringing
Ginseng = 4
Jinc-windowed sinc — excellent for upscaling
GinsengSharp = 5
Ginseng with sharpening
Lanczos = 6
Lanczos-3 windowed sinc — sharp, some ringing
LanczosSharp = 7
Lanczos-3 with sharpening
Lanczos2 = 8
Lanczos-2 windowed sinc — less ringing than Lanczos-3
Lanczos2Sharp = 9
Lanczos-2 with sharpening
CubicFast = 10
Fast bicubic approximation
Cubic = 11
Standard cubic (B=0, C=1)
CubicSharp = 12
Cubic with sharpening
CatmullRom = 13
Catmull-Rom spline (B=0, C=0.5)
Mitchell = 14
Mitchell-Netravali (B=1/3, C=1/3) — balanced blur/ringing
CubicBSpline = 15
Cubic B-spline (B=1, C=0) — very smooth, blurs
Hermite = 16
Hermite (B=0, C=0) — smooth interpolation
Jinc = 17
Jinc function — circular sinc
RawLanczos3 = 18
Raw Lanczos-3 without windowing
RawLanczos3Sharp = 19
Raw Lanczos-3 with sharpening
RawLanczos2 = 20
Raw Lanczos-2 without windowing
RawLanczos2Sharp = 21
Raw Lanczos-2 with sharpening
Triangle = 22
Triangle/tent filter — linear interpolation
Linear = 23
Linear interpolation (same as Triangle)
Box = 24
Box/nearest neighbor — fastest, blocky
CatmullRomFast = 25
Fast Catmull-Rom with smaller window
CatmullRomFastSharp = 26
Fast Catmull-Rom with sharpening
Fastest = 27
Fastest filter — minimal quality
MitchellFast = 28
Fast Mitchell with smaller window
NCubic = 29
NCubic — optimized cubic
NCubicSharp = 30
NCubic with sharpening
LegacyIDCTFilter = 31
Legacy IDCT filter