Commit Graph
4 Commits
Author SHA1 Message Date
Sertonix NorsonandAlbert Astals Cid 104643bf09 IFF: fix BODYChunk::deinterleave on big-endian
Qt accesses the data of QImage::Format_RGBX64 and QImage::Format_RGBA64
as host-endian quint16. Having BODYChunk::deinterleave write the data
with host-endian to fix parsing on big-endian systems.
2026-10-03 10:43:42 +00:00
Sertonix NorsonandAlbert Astals Cid 9a45321440 IFF: fix DBODChunk::strideRead on big-endian
On big-endian systems the uint16 data should stay big-endian.
2026-10-03 10:43:42 +00:00
Sertonix NorsonandAlbert Astals Cid f5ba223e15 TIM: fix 16BPP on big-endian
Despite the QImage::scanLine doc only warning about byte order issues
for 32-bpp formats[0] the same warning seems to apply to 16BPP formats
like QImage::Format_RGB555 as well.

[0]: https://doc.qt.io/qt-6/qimage.html#scanLine
2026-10-03 10:34:55 +00:00
Sertonix NorsonandAlbert Astals Cid e23328fda8 FF: replace broken #if Q_LITTLE_ENDIAN
Q_LITTLE_ENDIAN was used incorrectly, it should have been
"#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN"

Use qFromBigEndian since it is more explicit.

Fixes 6d5e61f0b0
2026-10-03 10:22:23 +00:00