3 ms·
This is pretty cool. Though... > all data is now encoded as big-endian. Why? If the goal is to be fast and simple then surely little endian would make more se
by IshKebab 5y ago
This is pretty cool. Though...
> all data is now encoded as big-endian.
Why? If the goal is to be fast and simple then surely little endian would make more sense given that basically all processors are little endian. Big endian just means you need to swap everything twice.
Edit: Seems like I'm not the only person that thought this was a super weird choice: https://github.com/phoboslab/qoi/issues/36 https://github.com/phoboslab/qoi/issues/36
The reasoning is:
> The file format for QOI will not change anymore.
- mahkoh 5y agoLooking at the spec, the only multi-byte data are the width/height in the header. So only two 4-byte swaps per file.
- politician 5y agoThe link contains a link to the discussion on QOI v2, https://github.com/nigeltao/qoi2-bikeshed/issues https://github.com/nigeltao/qoi2-bikeshed/issues.
- Zababa 5y agoI think refusing a 5% speedup to ensure that the format will not change fits really well with the goals of the project.