wl-mirror icon indicating copy to clipboard operation
wl-mirror copied to clipboard

Support more scaling filters such as Bicubic or Lanczos

Open Sukid opened this issue 3 years ago • 1 comments

I just thought it would be cool to have a few more scaling filters available, like bicubic and lanczos. Bicubic has looked a bit nicer for downscaling in my experience!

Sukid avatar Mar 19 '22 00:03 Sukid

Scaling is currently implemented via the OpenGL GL_TEXTURE_MIN_FILTER/GL_TEXTURE_MAG_FILTER texture parameter options.

Supporting other scaling filters would require actually implementing them manually (and I have no experience implementing such algorithms) because OpenGL does not provide them as far as I know.

I'll gladly accept a PR that adds this, but probably won't implement this myself in the near future (at least until I find enough time to look at how texture filtering actually works)

Ferdi265 avatar Mar 19 '22 19:03 Ferdi265