Rewrite the PIC image format handler

It now uses QDataStream to deal with endianness. It also supports
several QImageIOHandler options.

This comes with a more comprehensive test suite than the old code. Note
that the old test suite was incorrect as the old code wrote the floats
in the header out incorrectly (although no-one noticed because no
software seems to care about those values).

All the test PIC files in the test suite appear correct according to the
specification (by inspection with Okteta). Unfortunately, there is a
lack of other freely-available software that reads and writes PIC files
(the main application that uses them is proprietary), and so this is the
best I can do.

REVIEW: 117944
This commit is contained in:
Alex Merry
2014-03-03 12:52:40 +00:00
parent 74906dd3bc
commit 51eca9b6a8
31 changed files with 966 additions and 660 deletions

BIN
autotests/long-runs.pic Normal file

Binary file not shown.