1140 Commits

Author SHA1 Message Date
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
Bertrand Augereau
5f6a98cb5b SCALER: No need to inline interpolate5Line, it just bloats stretch200To240 for nothing 2012-09-03 01:34:41 +02: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
Johannes Schickel
b4196e48b1 GRAPHICS: Add a DPI parameter to loadTTFFont.
Will be used by WME.
2012-08-09 03:13:00 +02:00
Johannes Schickel
50a93c2e71 GRAPHICS: Small formatting fixes in iff.cpp. 2012-07-25 21:07:19 +02:00
Johannes Schickel
82a553a12c Merge pull request #247 from clone2727/pixelformat-argb-fix
GRAPHICS: Fix colorToARGB's alpha value when no alpha channel is present
2012-06-20 09:24:08 -07:00
Matthew Hoops
984e0012d9 GRAPHICS: Fix colorToARGB's alpha value when no alpha channel is present 2012-06-15 23:11:28 -04:00
Johannes Schickel
aec9b9e22a ALL: Let overlay related methods in OSystem take a void * and use a proper pitch values.
This is a first step to get rid of OverlayColor, which is a requirement for
proper 4Bpp overlay support.
2012-06-16 04:17:14 +02:00
Johannes Schickel
e1e1f01b87 GRAPHICS: Let CursorMan's cursor functions take "const void *" buffers. 2012-06-16 03:28:42 +02:00
Johannes Schickel
0075fa2f98 GRAPHICS: Replace OverlayColor with uint16 in scaler code.
Scalers are actually fixed at 2Bpp right now and not at the
depth of OverlayColor.
2012-06-12 04:18:59 +02:00
Johannes Schickel
a401f0a19e ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
All uses of the old target scale API actually wanted to disallow scaling of
the mouse cursor. This commit adapts our API to this and thus simplifies
backend implementations.

Some backends, most notable the Wii and Android, did some implementation of
the cursor target scale, which I didn't adapt yet. I added a TODO for the
porters there.
2012-06-03 02:02:57 +02:00
Matthew Hoops
b253a05454 GRAPHICS: Hide the WinCursor implementation 2012-05-14 09:56:56 -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
Johannes Schickel
3b212fdb51 GRAPHICS: Remove unused function ftFloor26_6 in ttf.cpp. 2012-05-03 23:25:00 +02:00
Johannes Schickel
b96143c180 Merge pull request #213 from fuzzie/leak-fixes
The pull request in question is "Memory leak fixes".
2012-05-03 13:45:40 -07: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
b2de2cf855 GRAPHICS: Improve the YUV410 conversion code speed some more 2012-04-16 21:34:13 -04:00
Matthew Hoops
473a09786d GRAPHICS: Make YUV410 conversion code use bilinear interpolation
SVQ1 no longer looks blocky and now looks a lot closer to what QuickTime outputs
2012-04-14 17:06:31 -04:00
Matthew Hoops
db52618833 GRAPHICS: Add comments on which engines use the decoders 2012-04-08 08:58:42 -04:00
D G Turner
e1f9598392 GRAPHICS: Add YUV410 to RGB Conversion Functions, required for SVQ1.
Thanks to clone2727 for these.
2012-04-08 03:28:58 +01:00
Joel Teichroeb
ab16233318 GRAPHICS: Fix casting away const 2012-04-03 16:54:05 -07:00
Alyssa Milburn
b470c9af28 BASE: Free TTFLibrary singleton on shutdown.
This uses a helper function because TTFLibrary is internal.
2012-03-28 19:17:53 +02:00
Alyssa Milburn
6d3927cd7a GRAPHICS: Take ownership of fonts passed to FontManager. 2012-03-28 19:17:13 +02:00
Alyssa Milburn
fdee01bf04 GRAPHICS: Don't try to delete static BDF data. 2012-03-28 19:16:52 +02: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
Matthew Hoops
a7740fb6de GRAPHICS: Add support for converting surfaces from 24bpp 2012-03-20 01:06:48 +01:00
Matthew Hoops
a658fc660e GRAPHICS: Move PNG to the ImageDecoder interface 2012-03-20 01:06:48 +01:00
Matthew Hoops
dd9790c1c8 GRAPHICS: Make PNG signature more readable 2012-03-20 01:06:48 +01:00
Matthew Hoops
b6d2a11432 GRAPHICS: Make the JPEG code use the new YUV to RGB converter 2012-03-20 01:06:48 +01:00
Matthew Hoops
765a870445 GRAPHICS: Convert JPEG to the ImageDecoder API 2012-03-20 01:06:48 +01:00
Matthew Hoops
4516b5ea24 GRAPHICS: Convert PictDecoder to the ImageDecoder API 2012-03-20 01:06:48 +01:00
Matthew Hoops
426c81a7a7 GRAPHICS: Rewrite ImageDecoder to have an improved API
The new bitmap decoder class is based off the Mohawk one, and now has 8bpp decoding capability.
2012-03-20 01:06:47 +01:00
Matthew Hoops
a004897252 GRAPHICS: Add a convertTo() function to Surface 2012-03-20 01:06:47 +01:00
Alyssa Milburn
92327c7991 GRAPHICS: Render TTF glyphs at the right locations.
Or at least using the fields used by the FreeType examples.
2012-03-19 23:00:14 +01:00
Alyssa Milburn
9a13b34549 GRAPHICS: Fix TTF glyph drawing at negative Y positions. 2012-03-19 22:57:48 +01:00
Christoph Mallon
e618e6794d JANITORIAL: Remove unnecessary empty default constructors/destructors. 2012-03-13 15:42:30 +01:00
Max Horn
367131ef0e COMMON: Move Language and Platform functionality into separate files 2012-02-26 15:21:36 +01:00