Commit Graph
6 Commits
Author SHA1 Message Date
Sertonix Norson cb74a20421 EXIF: always use little-endian for UTF-16
In practice UTF-16 (especially from windows) uses little-endian without
a BOM. By default Qt uses host endianess which causes TIFF_XPTITLE and
TIFF_XPKEYWORDS to not be read correctly.

Fixes c21b50d699
2026-10-05 12:28:36 +02:00
Sertonix NorsonandDaniel Novomeský af34c774d3 avif: increase fuzziness in invalid-exif.avif.json to 44
Fixes kimageformats-read-avif test failure on Alpine Linux s390x

Ref https://invent.kde.org/frameworks/kimageformats/-/merge_requests/530#note_1561068
2026-10-03 23:13:16 +00:00
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