4 ms·
Storing rgba as abgr is a terrible choice, but are you sure they're actually doing that?
by wheybags 5y ago
Storing rgba as abgr is a terrible choice, but are you sure they're actually doing that?
- phoboslab 5y agoSorry, I see how my previous comment was misleading. To clarify: No, QOI is not doing that. QOI stores RGBA as R,G,B,A because it is big endian. Little endian would imply that RGBA is stored as A,B,G,R. Which was my argument against using LE for a file format.
- Taywee 5y agoI don't believe it would imply that, because those are independent elements. RGBA would still be stored as R, G, B, A unless you're considering each pixel as a single 32-bit integer. A C structure for the colors would even live in memory in the order you expect. Just like a string is still stored byte-by-byte even in little-endian contexts. LE vs BE would only affect multi-byte integers and floats, not arrays or structures of single-byte elements.