Matthew Hoops
aea224e260
ALL: Mark off common code used by ZVision
2013-10-26 10:39:36 -04:00
peres
070558c4c4
GRAPHICS: do not reset the extra parameters of IFFDecoder on destroy().
...
The two properties that control pixel packing and the size of the
surface need to be preserved for loadStream() to work correctly.
They are now under complete responsibility of the client.
2013-10-26 23:26:22 +09:00
peres
69be9adf52
Revert "GRAPHICS: do not clear the internal state of IFFDecoder on loadStream()."
...
This reverts commit 92c1ff31d6
.
2013-10-26 23:26:22 +09:00
Matthew Hoops
091bcbf313
GRAPHICS: Have TGA's loadStream() call destroy()
2013-10-26 10:21:08 -04:00
Matthew Hoops
1b3eee6d78
GRAPHICS: Clarify implicit destroy() usage
2013-10-26 10:21:03 -04:00
peres
92c1ff31d6
GRAPHICS: do not clear the internal state of IFFDecoder on loadStream().
...
This decoder needs to keep track of client parameters that control
how the pixels are going to be packaged, so the responsibility for
clearing the state has been moved on the client (using the destroy()
method on ImageDecoder).
As no client uses the IFFDecoder for more than one image at a time,
this change does not require updates to the engines. The only effect
is on Parallaction (BRA-Amiga), which can now control the way pixels
are packaged in mask and path bitmaps.
2013-10-26 22:24:16 +09:00
D G Turner
480a059f83
GRAPHICS: Fix uninitialised field in PNG decoder. CID 1002280.
2013-09-30 05:01:41 +01:00
Johannes Schickel
4063de4070
GRAPHICS: Add some paranoia asserts in JPEGDecoder.
2013-09-16 19:54:19 +02:00
Johannes Schickel
4809294b43
GRAPHICS: Make JPEGDecoder request RGB output from libjpeg by default.
...
This fixes loading of JPEG files which contain RGB color space instead of YUV.
It is a pretty odd extension of JPEG files by Adobe which is indicated by this:
http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/JPEG.html#Adobe
To still support Groovie's need for YUV data I added some possibility to
request direct YUV output.
2013-09-16 19:54:19 +02:00
Johannes Schickel
ac66cc9219
GRAPHICS: Implement JPEGDecoder based on libjpeg.
2013-09-16 15:55:36 +02:00
Johannes Schickel
5111746911
GRAPHICS: Take advantage of Surface::getPixels.
2013-08-03 04:02:49 +02:00
Johannes Schickel
dbef9fef3b
GRAPHICS: Prefer getBasePtr over direct Surface::pixels access.
2013-08-03 04:02:49 +02:00
Matthew Hoops
2d6b66ef41
GRAPHICS: Fix quantization table id check
2013-04-16 12:00:39 -04:00
Einar Johan Trøan Sømåen
0db8a0b3b1
GRAPHICS: Let JPEGs pixelformat state 0 alpha bits.
2013-02-01 01:54:39 +01:00
Matthew Hoops
6ae97cdfbe
GRAPHICS: Modify the JFIF version warning
...
v1.02 images should only differ with the thumbnail from v1.01, and should be handled correctly by our decoder.
2013-01-26 11:56:13 -05:00
Einar Johan Trøan Sømåen
58777682fe
GRAPHICS: Fix leak in PNG-decoder.
2013-01-24 17:39:16 +01:00
Tomas Jakobsson
fe2b4b39f7
GRAPHICS: New IFFDecoder that decodes ILBM and PBM images
2013-01-06 20:04:42 +01:00
Einar Johan Trøan Sømåen
1ef63578bb
GRAPHICS: Mark decoders used by Wintermute as such.
2012-10-23 21:48:27 +02:00
Matthew Hoops
c645f7dc93
GRAPHICS: Make failing to find the PICT header return false from loadStream
2012-10-16 22:15:09 -04:00
Johannes Schickel
89abab97e3
JANITORIAL: Remove trailing whitespaces.
...
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
clone2727
2e4ee0b2d0
Merge pull request #275 from clone2727/pegasus
...
Pegasus engine (The Journeyman Project: Pegasus Prime)
2012-09-20 13:17:39 -07:00
Matthew Hoops
09269fce8c
GRAPHICS: Implement different luminance ranges
...
Bink and Theora are now much improved
2012-09-18 16:50:01 -04:00
Matthew Hoops
893a2b37ff
GRAPHICS: Rework YUV->RGB code a bit
2012-09-17 19:30:46 -04:00
Matthew Hoops
7759f47607
GRAPHICS: Fix BMP palette color count with bpp != 8
2012-09-17 12:35:17 -04:00
Filippos Karapetis
c0babb010a
Merge pull request #278 from bluegr/pcxdecoder
...
GRAPHICS: Add a PCX decoder
2012-09-16 14:06:42 -07:00
Einar Johan Trøan Sømåen
25aa19b272
GRAPHICS: Reinsert attributeBits as a comment to the TGA-decoder
2012-09-15 18:08:34 +02:00
Einar Johan Trøan Sømåen
cffda7710c
GRAPHICS: Force alphaBits to 8 for 32bpp TGAs for now
2012-09-15 17:57:08 +02:00
Matthew Hoops
d5ed8b1901
Merge remote branch 'upstream/master' into pegasus
...
Conflicts:
AUTHORS
2012-09-12 20:18:13 -04:00
Filippos Karapetis
ccccb392b5
GRAPHICS: Add a common PCX image decoder
2012-09-13 01:49:29 +03:00
Matthew Hoops
ed2be9d873
GRAPHICS: Fix ImageDecoder inconsistency with getPalette()
...
Per LordHoto's suggestion
2012-09-09 17:20:07 -04:00
Filippos Karapetis
1f11ce6df2
PNG: call png_set_interlace_handling() before calling png_read_update_info()
...
This matches the documentation, information from the PNG bug tracker and the
behavior of example decoders off the net. It fixes warnings thrown from the PNG
decoder
2012-09-06 01:35:58 +03:00
Matthew Hoops
2f9b1b67b0
ALL: Mark off some things as used by Pegasus
2012-08-31 22:26:02 -04:00
Bertrand Augereau
10a947a0be
GRAPHICS: Scope reduction of the sometimes unused alpha component in TGADecoder::readHeader
2012-08-30 18:32:27 +02:00
Bertrand Augereau
3b4d713ba1
GRAPHICS: Undefined behaviour/warnings removal in the TGA decoder
2012-08-30 18:13:00 +02:00
Johannes Schickel
f87154def8
GRAPHICS: Slight formatting change for consistency.
2012-08-29 15:59:15 +02:00
Johannes Schickel
f189d8a541
GRAPHICS: Remove extra semicolon.
2012-08-29 15:58:55 +02:00
Johannes Schickel
933726a7e8
Merge pull request #263 from somaen/tgaloader
...
GRAPHICS: Add in a TGA-decoder
2012-08-29 06:58:22 -07:00
Einar Johan Trøan Sømåen
47a7df2d0f
GRAPHICS: Add in a TGA-decoder
2012-08-29 14:05:54 +02:00
Johannes Schickel
5df8c99768
GPRAHICS: Slight cleanup in png.cpp.
...
This adds an explanation why we use FORBIDDEN_SYMBOL_ALLOW_ALL and removes
some trailing whitespaces.
2012-08-21 02:19:51 +02:00
Johannes Schickel
05eb6eecfc
Merge pull request #262 from somaen/pngwithlibpng
...
GRAPHICS: Reimplement the PNG-decoder using libpng
2012-08-20 17:12:52 -07:00
Einar Johan Trøan Sømåen
af05b1b80e
GRAPHICS: Reimplement the PNG-decoder using libpng
2012-08-20 21:14:59 +02:00
Einar Johan Trøan Sømåen
8982026661
GRAPHICS: Add support for 32bpp BMPs
2012-08-13 02:31:34 +02:00
Matthew Hoops
c839fd50b5
GRAPHICS: Clarify format of the palette in ImageDecoder
2012-08-12 17:44:23 -04:00
Matthew Hoops
d789df8945
GRAPHICS: Add palette start index and color count functions to ImageDecoder
2012-05-14 09:56:56 -04:00
Matthew Hoops
e5808c740a
GRAPHICS: Fix 32-bit DirectBits images
2012-05-04 23:18:28 -04:00
D G Turner
4d6f2875de
GRAPHICS: Fix BMP getPalette function definition.
...
The BMP decoder getPalette function definition is now identical to
the other image format decoders subclassed from ImageDecoder.
This also fixes a overloaded virtual warning reported by salty-horse.
2012-04-22 16:41:30 +01:00
Matthew Hoops
c5363006ed
GRAPHICS: Only accept JPEG CompressedQuickTime PICT opcodes
2012-04-19 11:49:06 -04:00
Matthew Hoops
db52618833
GRAPHICS: Add comments on which engines use the decoders
2012-04-08 08:58:42 -04:00
Matthew Hoops
e79f0bf717
GRAPHICS: Fix regression caused by a bad rebase
2012-03-19 23:29:58 -04:00
Matthew Hoops
fce0e8c45b
GRAPHICS: Fix PICT 16bpp
2012-03-19 21:54:37 -04:00