Mirco Miranda
274f30e008
qoi: fix buffer overflow kf5
...
Backport of MR !167 :
- fix buffer overflow with corrupted images without image data
- fix unable to read very small images (e.g. 1x1 px)
- new test cases added
- detect incomplete files by checking the end of streams as written in the specs
2023-08-18 15:11:41 +00:00
Mirco Miranda
4348a09733
Renamed qoi.h to qoi_p.h
...
(cherry picked from commit 7a0d95af92
)
2023-08-14 00:15:55 +02:00
Mirco Miranda
dd4576a472
Minor improvements
...
(cherry picked from commit 4c3ade04dd
)
2023-08-14 00:15:52 +02:00
Ernest Gupik
9438540735
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: ff51a0a9e3
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

Also: This is my first MR to KDE ;)
(cherry picked from commit b209e54b6f
)
2023-08-11 22:47:48 +02:00