aboutsummaryrefslogtreecommitdiff
path: root/image
AgeCommit message (Collapse)Author
2020-01-06IMAGE: Fix potential memory leaksEugene Sandulenko
2020-01-02OPENGL: Ensure surfaces created by saveScreenshot are the right way upCameron Cawley
2019-12-01IMAGE: Fix Missing Default Switch Case in Truemotion 1 CodecD G Turner
This is flagged by GCC if -Wswitch-default is enabled.
2019-11-30IMAGE: Fix Missing Default Switch CasesD G Turner
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-10IMAGE: Remove unnecessary check from Image::writePNG()Cameron Cawley
Surfaces with pixel formats not supported by libpng are already converted to RGBA, meaning that the check isn't needed.
2019-08-01IMAGE: Add a paletted transparency mode flag to PNGDecoderPaul Gilbert
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-05-09IMAGE: Fix MSVC warningsSupSuper
Fixes warning C4067: unexpected tokens following preprocessor directive due to non-standard "and" "or" operators
2019-04-28IMAGE: Fix build when not using libjpeg-turboBastien Bouclet
2019-04-28IMAGE: Remove decoding JPEG directly to RGB565Bastien Bouclet
It's not supported by ancient versions of libjpeg-turbo, and there is no way to detect if support is available without doing a compilation test...
2019-04-28IMAGE: Don't perform color conversion when decoding PNGsBastien Bouclet
2019-04-28IMAGE: Allow setting the output pixel format to the JPEG decoderBastien Bouclet
2019-04-13COMMON: Use a prefix table to speed up the Huffman decoderBastien Bouclet
Symbols for codes shorter than the prefix table index width are stored in the table. All the entries in the table with an index starting with the code are set to the symbol value. That way, when decoding it is possible to get the number of bits corresponding to the table width from the bitstream and directly find the symbol value. Longer code still need to be searched for in the codes list.
2019-03-31GRAPHICS: Add support for PICT opcode $90 BitsRectsluicebox
Add limited support for unpacked PICT bits which FPFP Mac requires. SCI games use packed PICT bits unless an image is less than 8 bytes per row in which case they can't be packed, like FPFP's shovel icon. Fixes bug #7059 which prevents the game from being completed.
2019-03-02IMAGE: Fix taking screenshots on big endian systemsCameron Cawley
2019-03-02IMAGE: Move bitmap writing code out of OpenGLGraphicsManagerCameron Cawley
2018-11-04IMAGE: Honor nb_fields when calculating frame durationTorbjörn Andersson
From what I understand, this has something to do with the image being either made up from two or three parts. When it's made from three parts, the frame should be displayed for half again as long as normal. This makes the speed of the Zork: Grand Inquisitor video look about right to me. It's still out of sync, but it doesn't seem to get *more* out of sync as the video progresses.
2018-11-04VIDEO: Use liba52 to decode audio. This is still laughably brokenTorbjörn Andersson
At the moment, this produces nothing but misery in the form of Valgrind warnings and horrible noise.
2018-09-14IMAGE: Check the output surface bounds when writing QT encoded PICT imagesBastien Bouclet
2018-04-15IMAGE: INDEO: Use the system pixel format for non-8bpp screen modesCameron Cawley
2018-04-07IMAGE: Explicitly initialize CinePak codebooksTorbjörn Andersson
Starship Titanic produces lots of "uninitialized value" warnings at the very beginning of the game, when turning right. This is because in the very first movie frame it uses codebooks that have not been loaded. Explicitly set their data to 0 to guarantee consistent behavior.
2018-03-25JANITORIAL: Remove useless commentAdrian Frühwirth
2018-01-20IMAGE: Fix Indeo3 compiler warningsAdrian Frühwirth
2017-09-24IMAGE: Remove unnecessary heap allocation in BitmapRawDecoderColin Snover
2017-09-24IMAGE: Fix memory leak in BitmapRawDecoderPaul Gilbert
2017-09-21IMAGE: Remove unused end info structs from PNG codeColin Snover
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-05IMAGE: Support rendering Indeo videos at 15bppCameron Cawley
2017-09-04IMAGE: Fix shadowing warningPaul Gilbert
2017-08-24IMAGE: Allow Indeo4 transparency decoding in scalable videosColin Snover
y459.avi in Starship Titanic uses these two modes together, and this appears to work fine.
2017-08-24IMAGE: Implement handling of key color in Indeo transparencyColin Snover
This should also improve performance by eliminating unnecessary writes to the output bitmap for opaque pixels and by simplifying the rendering loop.
2017-08-24IMAGE: Remove unnecessary extra heap allocation of Indeo surfaceColin Snover
2017-08-24IMAGE: Remove unnecessary temporary surface in Indeo4/5Colin Snover
2017-08-24IMAGE: Add support for Indeo4 transparency planeColin Snover
This is used by TITANIC for most of the furniture in the SGT stateroom and Titania's parts.
2017-08-24IMAGE: Use new BitStreamMemory class for indeoWillem Jan Palenstijn
2017-08-24IMAGE: Inline indeo getVLC2Willem Jan Palenstijn
2017-08-24COMMON: Remove BitStream base class to allow inlining callsWillem Jan Palenstijn
All users of BitStream were in fact using a specific, hardcoded variant, so we can hardcode that variant, removing the need for virtual calls, and enabling inlining.
2017-08-11JANITORIAL: Add fall through statementEugene Sandulenko
2017-08-03IMAGE: Correct 4-byte image writting pixel formatSimei Yin
2017-07-25IMAGE: Extra initialization of Indeo decoder IVIHuffTabPaul Gilbert
2017-07-13Image: extend writePng for 4-byte pixelFormatyinsimei
2017-07-13IMAGE: add flag to skip signature check in png decoderyinsimei
2017-07-11IMAGE: Inline two simple indeo functionsWillem Jan Palenstijn
2017-05-21BACKENDS: Compress screenshots using PNG if availableColin Snover
Closes gh-948.
2017-01-11IMAGE: Return correct pixel format for Indeo3Colin Snover
This gives Indeo3 the same behavior as other codecs when encapsulated in a container that provides bit depth information (e.g. AVI). Closes #888.
2017-01-09IMAGE: Fix Unused Variable Compiler Warning in Indeo 4 Codec.D G Turner
2017-01-01IMAGE: Properly load bottom origin RLE encoded TGA imagesPaul Gilbert
2016-12-26IMAGE: Fixed attribution comments for the Indeo decodersPaul Gilbert
2016-11-21IMAGE: Add hack to Indeo 4 decoder to guess transparent areasPaul Gilbert
2016-11-18IMAGE: Fix some confusion of bytes vs bits in Indeo decodersPaul Gilbert
2016-11-18IMAGE: Respect bit depth in Indeo 5 decoderPaul Gilbert
2016-11-18IMAGE: Respect specified bytesPerPixel in Indeo decodersPaul Gilbert