diff options
author | bptato <nincsnevem662@gmail.com> | 2024-08-29 22:09:36 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-08-29 22:26:36 +0200 |
commit | b721c669670bfbf95672780bf473dc418c2d32be (patch) | |
tree | a599e8b7c023e77a185fd2f75f509c2375eba928 /adapter/img/stb_image.c | |
parent | 4ba535852edb9c8ce566cf4e9063e51da3575edd (diff) | |
download | chawan-b721c669670bfbf95672780bf473dc418c2d32be.tar.gz |
sixel: dithering
uses floyd-steinberg - I originally tried atkinson, but liked the results with fs a bit more. also, I got rid of the half hearted attempt to skip tree traversals for color lookups, as it performs horribly with dithering. it *did* work if I set Y as the key, but it still felt wrong - well, as it turns out, octree traversal is faster anyway, so just do that. it works out nicely because we can fill in holes (from dithering) with a linear search for the nearest match as we go.
Diffstat (limited to 'adapter/img/stb_image.c')
0 files changed, 0 insertions, 0 deletions