3 ms·
Are you familiar with JPEG2000? I looked at this diagram of JPEG XL and was overwhelmed at the complexity, it seems more complex than J2K baseline: https://en.
by userbinator 4y ago
Are you familiar with JPEG2000? I looked at this diagram of JPEG XL and was overwhelmed at the complexity, it seems more complex than J2K baseline:
https://en.wikipedia.org/wiki/File:JPEG_XL_codec_architecture.svg https://en.wikipedia.org/wiki/File:JPEG_XL_codec_architectur...
...and I say this as someone who has written PNG, GIF, and JPEG (baseline sequential) decoders, and didn't think J2K would fit in 5kLoC either.
- lifthrasiir 4y agoI think the exact code for features in that diagram does fit in 5K lines of code. More specifically an entropy coder is less than 1K LoC, the modular mode and transform is probably 1.5K LoC, the entirety of VarDCT is probably 2K LoC. The problem is that JPEG XL has a lot of other features to make it viable as a long-term format, and I greatly underestimated that complexity at the beginning.