summaryrefslogtreecommitdiff
path: root/sys/src/cmd/resample.c
AgeCommit message (Collapse)Author
2021-04-25resample: improve performance (thanks José Miguel Sánchez García)cinap_lenrek
Resample is well known for taking a long time to resize an image. This patch brings an important performance boost (in my test image, time was reduced from ~2850ms to ~500ms). It does that by extracting FP multiplication and division out of the innermost loop of resamplex/resampley. The results differ slightly from the current implementation: in my test: ~0.3% of the bytes had a ±2 difference in their value, which I attribute to rounding errors. I'm personally not concerned with that deviation, given the performance gains. However, I recommend testing it just to be sure I didn't overlook anything. José Miguel Sánchez García
2015-08-03resample: simplify getint()cinap_lenrek
2013-08-12resample: fix XRGB32 color channel handlingcinap_lenrek
2012-10-18more generic way to deal with image chan conversion for resize/resample/rotatecinap_lenrek
this is to catch crazy color channels like k8a8 and the 15/16 bit ones and CMAP. basically, just convert to RGBA32 or RGB24 depending on if it has an alpha channel.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen