logoalt Hacker News

tensegristyesterday at 5:38 PM4 repliesview on HN

100M+ is a bit more than i would expect for an image format. have i not been paying attention


Replies

aw1621107yesterday at 5:48 PM

According to tokei, the lib/ directory from the reference implementation [0] has 93821 lines of C++ code and 22164 lines of "C Header" (which seems to be a mix of C++ headers, C headers, and headers that are compatible with both C and C++). The tools/ directory adds 16314 lines of C++ code and 1952 lines of "C Header".

So at least if GP was talking about libjxl "100K+" would be more accurate.

[0]: https://github.com/libjxl/libjxl

show 2 replies
munificentyesterday at 6:06 PM

The article says 100K, not 100M. I'm guessing that's what the parent comment meant.

100MLOC for an image format would be bananas. You could fit the entire codebases of a couple of modern operating systems, a handful of AAA videogames, and still have room for several web apps and command line utilities in 100MLOC.

show 1 reply
crooked-vyesterday at 5:44 PM

It's a container format that does about a bajillion things - lossy, lossless, multiple modes optimized for different image types (photography vs digital design), modern encode/decode algorithms, perceptual color space, adaptive quantization, efficient ultra-high-resolution decoding and display, partial and complete animation, tile handling, everything JPEG does, and a bunch more.

show 1 reply
GaggiXyesterday at 6:03 PM

They wanted to say 100K instead of 100M