News for hackers. Stuff that matters.
Re:Canon CR3 Fileformat by herf on Saturday January 09, 2021 @03:53PM (#25704624)
Recent notes are all about HEIF (~= iOS HEIC). It seems alarming to me that so many devices (Canon and iPhone at least) are putting out patent-encumbered HEIF/HEIC files while the available decoders are so incredibly slow.

Last I looked, libHEIF is >50x slower than the built-in iOS decoders, which makes the format hundreds of times slower to decode than JPEG. With JPEG, the differences between free decoders and the "best" ones has been 2-3x in speed, but 50x slower is a huge cost that makes these formats unworkable for a whole lot of things, like most webservers.

Does anyone know if things are getting better here?

As an example, here are some 2019 benchmarks of Apple's HEIC decoder vs. libHEIF:

https://github.com/joedrago/avif/issues/11

Re:Canon CR3 Fileformat by zadokshi on Saturday January 09, 2021 @04:15PM (#25704844)
> "... makes these formats unworkable for a whole lot of things, like most webservers"

Webservers don't encode/decode images, they simply need to send them. (But yes, overall, I agree)

Re:Canon CR3 Fileformat by threatripper on Saturday January 09, 2021 @04:46PM (#25705150)
Except if they need to process them e.g. to create a thumbnail or a preview.
Re:Canon CR3 Fileformat by Dylan16807 on Saturday January 09, 2021 @06:11PM (#25706071)
Which you do once or twice per upload? That shouldn't be a massive CPU burden either.
Re:Canon CR3 Fileformat by pjmlp on Sunday January 10, 2021 @09:31AM (#25714917)
That can be done by a daemon.
Re:Canon CR3 Fileformat by hamburglar on Saturday January 09, 2021 @05:03PM (#25705328)
Next you're going to tell us webservers don't send email, or perform searches, or move money around in bank accounts.
Re:Canon CR3 Fileformat by Wevah on Saturday January 09, 2021 @06:34PM (#25706296)
(To be precise, HEIC is HEIF with the primary image guaranteed to be compressed with HEVC.)
Re:Canon CR3 Fileformat by klodolph on Saturday January 09, 2021 @08:34PM (#25707500)
This is temporary, for sure. The phones are also recording video in patent-encumbered MPEG-4, recording audio using patent-encumbered AAC. The ability to watch MPEG-4 and listen to AAC files was kinda terrible for a long time, but these days is fairly good. It just takes time.
Re:Canon CR3 Fileformat by PostThisTooFast on Saturday January 09, 2021 @11:38PM (#25710134)
What's alarming is the continued existence (and respect) of software patents.

Until software patents are abolished, developers and consumers will continue to be ripped off.

Re:Canon CR3 Fileformat by auxym on Saturday January 09, 2021 @03:36PM (#25704460)
Uggh. At the moment, many open source photography software projects are lacking support for CR3 due to an ambiguous patent situation. It seems that CR3 may include technologies covered by some patents, and Canon has refused to comment on whether or not they intend to pursue legal action against open source reader implementations. The response of the developers has been, undertstandably, to forego implementation in order to avoid getting sued.

https://github.com/darktable-org/darktable/issues/2170

Re:Canon CR3 Fileformat by dingaling on Sunday January 10, 2021 @02:44AM (#25712034)
Half the battle isn't even about implementing patented technology, it's just understanding the file layout and the meaning of various flags and headers. There's no legal risk to Canon in releasing that basic documentation but they still refuse to do so.

I've used Canon kit for over 30 years but I'm not going to upgrade to CR3 cameras if they maintain this obtuse attitude.

Re:Canon CR3 Fileformat by smnrchrds on Saturday January 09, 2021 @03:55PM (#25704647)
What's the incentive for Canon not to comment on this? Are they charging license fees for use of CR3? Considering the fact that their product is hardware, not software, I do not understand what they stand to gain by keeping the patent situation ambiguous.
Re:Canon CR3 Fileformat by mhh__ on Saturday January 09, 2021 @03:57PM (#25704661)
Is it a cultural thing due to them being Japanese? The way nintendo treat their customers seems to be usually waved off as a Japanese thing
Re:Canon CR3 Fileformat by ekianjo on Saturday January 09, 2021 @04:40PM (#25705083)
> Is it a cultural thing due to them being Japanese?

Definitely a factor. By default, Japanese companies tend to avoid or be reluctant to disclosing/sharing anything.

Re:Canon CR3 Fileformat by meibo on Saturday January 09, 2021 @04:30PM (#25704976)
IP is very highly valued and (usually) well-respected over there, so I can imagine that this is part of the reason.
Re:Canon CR3 Fileformat by pmiller2 on Sunday January 10, 2021 @02:01AM (#25711701)
I'm not familiar with the way Nintendo treats their customers. Can anyone fill me in?
Re:Canon CR3 Fileformat by buildbot on Saturday January 09, 2021 @03:25PM (#25704345)
Small world! One of the contributors to this project created the only open source firmware for a digital back, as far as I know: https://github.com/Alexey-Danilchenko
Re:Canon CR3 Fileformat by gotem on Saturday January 09, 2021 @03:24PM (#25704334)
Wonder if one day we will be able to store files using 0 storage. Complete compression.
Re:Canon CR3 Fileformat by jsheard on Saturday January 09, 2021 @03:29PM (#25704388)
The LenPEG algorithm can compress images down to 0 bytes in the best case

https://www.dangermouse.net/esoteric/lenpeg.html

Re:Canon CR3 Fileformat by BlueTemplar on Saturday January 09, 2021 @05:38PM (#25705724)
I see that the best case is actually a negative, unbounded number of bytes?
Re:Canon CR3 Fileformat by gotem on Saturday January 09, 2021 @03:39PM (#25704487)
I thought you were being sereis but it only works for 1 image at 0z
Re:Canon CR3 Fileformat by hiq on Saturday January 09, 2021 @06:43PM (#25706394)
Part of the answer: https://en.wikipedia.org/wiki/Shannon%27s_source_coding_theo...

You could also think about lossy compression that is indistinguishable from lossless for the human eye, then you get another (lower) lower bound.