Commit Graph
10 Commits
Author SHA1 Message Date
Paul Gilbert 8a8ac63636 IMAGE: Add a paletted transparency mode flag to PNGDecoder
Previously, the PNGDecoder would always convert images that
have a palette with a transparent color(s) to a full RGBA
surface automatically. There needed to be a way to diable
this and keep the image paletted for the Glk engine, since
some Infocom V6 game Blorb files reuse the palettes from
previous images, so I couldn't have the decoder using the
dummy palette that comes with the image
2019-08-01 22:05:40 -07:00
Bastien Bouclet 9f98cddf8d IMAGE: Don't perform color conversion when decoding PNGs 2019-04-28 07:59:14 +02:00
Cameron Cawley 205df5dbdf IMAGE: Fix taking screenshots on big endian systems 2019-03-02 07:29:22 +01:00
Colin Snover 194984de2f IMAGE: Remove unused end info structs from PNG code
Thanks to @dafioram for noticing the problem & sending an initial
patch, and to @wjp for noticing further that the PNG reader did not
even use the end info struct it created either.

Fixes Trac#10217. Closes gh-1028.
2017-09-21 20:43:04 -05:00
Simei Yin a503af4959 IMAGE: Correct 4-byte image writting pixel format 2017-08-03 09:36:30 +02:00
yinsimei 791aedf7a5 Image: extend writePng for 4-byte pixelFormat 2017-07-13 18:27:45 +02:00
yinsimei 1a27d67123 IMAGE: add flag to skip signature check in png decoder 2017-07-13 18:27:45 +02:00
Colin Snover fa0bb7dd5a BACKENDS: Compress screenshots using PNG if available
Closes gh-948.
2017-05-21 15:55:39 -05:00
Bastien Bouclet 702df395eb IMAGE: Change PNGDecoder to never delete the input stream
The stream is owned by the caller. Fixes CID 1362842.
2016-09-19 08:02:19 +02:00
Matthew Hoops 740b6e8fbd IMAGE: Move all ImageDecoders to image/ 2014-02-28 00:27:28 -05:00