Add support for the QOI image format

This MR adds read-only QOI (https://qoiformat.org/) image format support for KImageFormats.

This format has received it's MIME type inclusion in shared-mime-info 4 months ago: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/commit/ff51a0a9e36185288576ca32da9a8fa4bd2e6e90

The code is based on the reference QOI implementation at https://github.com/phoboslab/qoi/blob/master/qoi.h

Official test images: https://qoiformat.org/qoi_test_images.zip

![pngvsqoi](/uploads/e386aa5057641057106e21940c770d97/pngvsqoi.png)

Also: This is my first MR to KDE ;)
This commit is contained in:
Ernest Gupik
2023-08-11 20:44:17 +00:00
committed by Albert Astals Cid
parent 4dc2099fa4
commit b209e54b6f
11 changed files with 313 additions and 0 deletions
+1
View File
@@ -12,3 +12,4 @@ Ignacio Castaño <[email protected]> -- DDS and PDS format reader.
Christoph Hormann <[email protected]> -- HDR format read support.
Michael Ritzert <[email protected]> -- JPEG 2000 format read/write support
Troy Unrau <[email protected]> -- Sun RASter read support
Ernest Gupik <[email protected]> -- QOI format read support