1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-20 09:43:32 +01:00

wrlib: change default scaling interpolation to Catmull-Rom

This patch is implementing a new default Catmull-Rom filter
to resize images.
Catmull-Rom is a special case of cubic interpolation with B=0 and
C=0.5 (in the Mitchell-Netravali formulation).
It provides slighlty sharper results than Mitchell with the same
performance.
Catmull-Rom is a better choice for a window manager as it prioritizes
sharpness, making small elements feel crisp.
This commit is contained in:
David Maciejak
2026-01-25 14:17:52 -05:00
committed by Carlos R. Mafra
parent 77db6dc649
commit 474b23344a
3 changed files with 27 additions and 5 deletions

View File

@@ -143,7 +143,8 @@ typedef enum {
RBellFilter,
RBSplineFilter,
RLanczos3Filter,
RMitchellFilter
RMitchellFilter,
RCatmullRomFilter
} RScalingFilter;