nz_scene - PEP = 73.542 bytes,
lossy-PNG = 43.557 bytes,
lossy-WEBP = 26.654 bytes,
lossy-mozcjpeg = 15.716 bytes
So it's not about filesize here, it must be decompression speed.https://nigeltao.github.io/blog/2021/fastest-safest-png-deco...
PNG decoding seems to be fast enough:
tree1 - PEP = 0.412 ms PNG = 0.25 ms
font - PEP = 0.602 ms PNG = 0.663 ms
nz_scene - PEP = 32.121 ms PNG = 3.069 ms
Anyway, PEP is interesting!</philosoraptor>
It then encodes with arithmetic encoding. Along with the palette, I think that does most of the heavy lifting in the compression, an adaptive model looking at just two pixels of context shouldn't make especially good predictions. PNG (sort of) looks at 4, the three above and the one to the left.
msephton•5mo ago
mrbluecoat•5mo ago
msephton•5mo ago
Also I posted some results earlier today: https://twitter.com/gingerbeardman/status/195993422257285161...
And I already added support to my pixel art app, Dottie, just for kicks https://twitter.com/gingerbeardman/status/195998796230676915...