4 ms·
I might have misunderstood what you've written, but is there a reason you can't use https://github.com/etemesi254/zune-image https://github.com/etemesi254/zune-
by nindalf 4y ago
I might have misunderstood what you've written, but is there a reason you can't use https://github.com/etemesi254/zune-image https://github.com/etemesi254/zune-image as a JPEG decoder? It has minimal use of unsafe and is performant.
- erk__ 4y agoJpeg 2000 is not the same codec as Jpeg, it was an attempt to make a more modern image format, but it never really caught on outside of science and medical imaging. For example satalite images are often jpeg 2000
- Animats 4y agoThat's a classic JPEG decoder, not a JPEG 2000 decoder. They're completely different compression systems. JPEG is discrete cosine transform, while JPEG-2000 is wavelet. JPEG 2000 never really caught on; it's a good compression algorithm but has too many features. JPEG 2000 is used mostly for medical imagery, because you can efficiently zoom in on an area and the most detailed level can be compressed losslessly. It's also used for some virtual world content, because you can read the beginning of the file and get a lower-rez version.
- nindalf 4y agoYeah fair enough. It might be worth requesting the maintainer of zune-image to add a decoder for jpeg2000. The repo already supports a whole bunch of formats already.