ras: code revamped

- Progressive load from file
- Added support for 1-bit image
- Images with palette are now Index (instead of RGB32)
- Added options support (Size, Format)
- Added some test cases
- Improved performance by directly accessing the scanline
- Support for more RAS extension (taken from GIMP)

The code should works "as is" also on KF5.
This commit is contained in:
Mirco Miranda
2023-08-28 18:02:02 +00:00
committed by Albert Astals Cid
parent 7d63a1d8fa
commit 79e8e183eb
11 changed files with 185 additions and 124 deletions

View File

@ -19,6 +19,9 @@ public:
bool canRead() const override;
bool read(QImage *image) override;
bool supportsOption(QImageIOHandler::ImageOption option) const override;
QVariant option(QImageIOHandler::ImageOption option) const override;
static bool canRead(QIODevice *device);
};