News for hackers. Stuff that matters.
Re:Free Lossless Image Format by lt on Friday October 02, 2015 @08:44AM (#10318091)
This is really interesting! There seems to be some additional technical information here:

https://boards.openpandora.org/topic/18485-free-lossless-ima...

  - for interlacing it uses a generalization of PNG's Adam7; unlike PNG, the geometry of the 2D interlacing is exploited heavily to get better pixel estimation, which means the overhead of interlacing is small (vs simple scanline encoding, which has the benefit of locality so usually compresses better)

  - the colorspace is a lossless simplified variant of YIQ, alpha and Y channel are encoded first, chroma channels later

  - the real innovation is in the way the contexts are defined for the arithmetic coding: during encoding, a decision tree is constructed (a description of which is encoded in the compressed stream) which is a way to dynamically adapt the CABAC contexts to the specific encoded image. We have called this method "MANIAC", which is a backronym for "Meta-Adaptive Near-zero Integer Arithmetic Coding".
Re:Free Lossless Image Format by versteegen on Friday October 02, 2015 @08:59AM (#10318161)
Great, thanks. It seems there is no technical description available anywhere beyond what you quoted. They haven't written it up, and I couldn't even find comments in the source providing details. That's too bad, but he (I assume that's Jon Sneyers) does say he hopes to write it up later.

Also, comments in that thread on speed [1]:

     In terms of encode/decode speed: both are slow and not very optimized
     at the moment (no assembler code etc, just C++ code). A median file
     took 3 seconds to encode (1 second for a p25 file, 6 seconds for a p75
     file), which is slower than most other algorithms: WebP took slightly
     less than a second for a median file (0.5s for p25, 2s for p75), PNG
     and JPEG2000 took about half a second. It's not that bad though: BPG
     took 9 seconds on a median file (2.5s for p25, 25s for p75), and
     brute-force pngcrushing took something like 15 seconds on a median
     file (6s for p25, over 30s for p75), so at least it's already better
     than that.

     Decode speed to restore the full lossless image and write it as a png
     is not so good: about 0.75s for a median file, 0.25s for a p25 file,
     1.5s for a p75 file. That's roughly 3 to 5 times slower than the other
     algorithms. However, decoding a partial (lossy) file is much faster
     than decoding everything, so in a progressive decoding scenario, the
     difference would not be huge.
[1]: https://boards.openpandora.org/topic/18485-free-lossless-ima...
Re:Free Lossless Image Format by GhotiFish on Friday October 02, 2015 @11:36AM (#10319191)
awesome, thanks for the info! if flif does ultimately consume more CPU resources then that is a trade off I'm perfectly happy to make, I'd rather burn CPU than my heinously bandwidth capped internet.
Re:Free Lossless Image Format by omribahumi on Friday October 02, 2015 @12:19PM (#10319451)
Here in Israel, bandwidth cap is big for a cheap price - I'm paying around 13USD/month for a package including unlimited voice calls, unlimited SMS and a 3GBs data plan.

What interests me most is battery life - is more CPU and less radio power better?

Re:Free Lossless Image Format by silverbacknet on Saturday October 03, 2015 @05:18AM (#10323215)
I hope the author can come back to tell us whether he did comparisons with different speed presets for BPG; it ranges from insanely fast to insanely slow, and that's probably just the default.
Re:Free Lossless Image Format by jonsneyers on Saturday October 03, 2015 @07:13AM (#10323457)
I only tried bpgenc with the default speed presets.

It's a bit premature to discuss compression/decompression speed, because this is just a prototype implementation and there are probably many ways to improve the speed. Premature optimization is rarely a good idea.

Re:Free Lossless Image Format by ekianjo on Friday October 02, 2015 @10:25AM (#10318730)
I posted the news of this new file format weeks ago on HN, no one picked it up :P
Re:Free Lossless Image Format by scott_s on Friday October 02, 2015 @11:29AM (#10319146)
What makes it to, and stays on, the front page of HN has a large element of randomness.
Re:Free Lossless Image Format by issaria on Friday October 02, 2015 @11:01AM (#10318968)
Did you remember to put "Free" on the title?
Re:Free Lossless Image Format by ekianjo on Friday October 02, 2015 @11:06AM (#10318997)
Implicitly yes: "Preview of FLIF, New Lossless Image Format"
Re:Free Lossless Image Format by 7Z7 on Friday October 02, 2015 @11:17AM (#10319072)
So, no.
Re:Free Lossless Image Format by medell on Friday October 02, 2015 @11:49AM (#10319290)
The power of free. Some good books by Dan Ariely on the topic.