Commit Graph

971 Commits

Author SHA1 Message Date
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
md5
27e4a1dee5 PNG: Changed getPalette() to properly return a copy of the image palette 2011-04-27 13:44:19 +03:00
md5
99e3028459 PNG: Improved code readability a bit 2011-04-27 13:43:03 +03:00
Johannes Schickel
33a88e5cac PNG: This PNG::getPalette.
Formerly the palette parameter was a value copy, which was assigned in
getPalette. That did not make much sense, thus I changed it to be a reference.
Since I am not quite sure whether this really shouldn't make a palette copy
I added an TODO comment about it.
2011-04-25 15:45:05 +02:00
Alyssa Milburn
cfacca1a26 GRAPHICS: Tidy up 4bpp handling a little. 2011-04-14 21:47:56 +02:00
Alyssa Milburn
c60e773981 GRAPHICS: Handle 4bpp paletted PNG files. 2011-04-14 21:08:03 +02:00
Alyssa Milburn
2ac86f8140 GRAPHICS: Replace PNG_HEADER macro with MKTAG 2011-04-14 18:37:27 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
dhewg
d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
dhewg
2def212de7 ALL: s/PI/M_PI/
Tip of the day: git grep -w PI
2011-03-19 11:24:06 +01:00
md5
334e1cd675 GRAPHICS: Silenced a warning 2011-03-19 02:30:03 +02:00
Matthew Hoops
4e7b66b1bc GRAPHICS: Cleanup WinCursorGroup functions a bit
ScopedPtr is now used on the streams to avoid having repetitive delete calls.
2011-03-07 16:37:12 -05:00
Matthew Hoops
b158a40844 GRAPHICS: Add doxygen comments for WinCursorGroup 2011-03-07 13:24:05 -05:00
Matthew Hoops
4dba6962f5 GRAPHICS: Fix a missing 'f'
Thanks, fuzzie
2011-03-07 11:40:54 -05:00
Matthew Hoops
d49f3a8a78 GRAPHICS: Improve support of Windows 8bpp cursors 2011-03-07 00:53:40 -05:00
Matthew Hoops
5b907e828b GRAPHICS: Fix PE cursors
Initial work on 8bpp cursors has also been added
2011-03-06 19:53:17 -05:00
Matthew Hoops
6143fe965b GRAPHICS: Add support for PE cursors in WinCursorGroup
Only 1bpp still
2011-03-05 13:36:55 -05:00
Matthew Hoops
c66233f83e GRAPHICS: Split the NE cursor code from the NEResources class
Now the code lies in Graphics and all cursors are not cached upon opening an exe. The engine is now in charge of caching which cursors it wants.
2011-03-04 23:17:57 -05:00
Matthew Hoops
550cff84f8 GRAPHICS: Add support for PE FON files
This hopefully will work out of the box, but requires testing
2011-02-23 14:43:18 -05:00
Matthew Hoops
a2a0b13de2 COMMON: Begin to merge some NE/PE code
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Johannes Schickel
9afc89e67c GRAPHICS: Let PNG::getPalette take an uint16 for the palette entry count.
This is in analogy to r55742 / 2f08dcb.

I also took the freedom to clarify that the PNG loader uses a RGBA palette
format.
2011-02-20 21:43:24 +01:00
Johannes Schickel
75ee5af7c9 GRAPHICS: Remove leftover RGBA reference in PaletteManager documentation. 2011-02-20 21:38:40 +01:00
Matthew Hoops
5091f846a7 GRAPHICS: Switch PICT's palette from RGBA to RGB 2011-02-20 00:45:59 -05:00
Matthew Hoops
098581b3b5 GRAPHICS: Use the DirectBits size instead of the overall PICT dimensions
Fixes some Myst ME images
2011-02-20 00:43:18 -05:00
Johannes Schickel
e6c7544fe2 GRAPHICS: Fix cursor palette buffering after RGBA->RGB change.
Thanks to clone2727 for noticing this.
2011-02-20 05:43:04 +01:00
Johannes Schickel
292f197142 GRAPHICS: Remove note about alpha channel removal in PaletteManager. 2011-02-19 23:45:03 +01:00
Johannes Schickel
05f0855efc GRAPHICS: Update CursorManager documentation for RGBA->RGB change. 2011-02-14 17:08:32 +01:00
Johannes Schickel
f53f1af062 GRAPHICS: Adapt thumbnail code to grabPalette RGBA->RGB change. 2011-02-14 17:08:32 +01:00
Johannes Schickel
18ff02a2fa GRAPHICS: Update PaletteManager documentation for RGBA->RGB change. 2011-02-14 17:08:31 +01:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Bastien Bouclet
e7a57de38b GRAPHICS: Improved JPEG decoder performance
Replaced the 2D IDCT by two 1D IDCT (rows, then columns).
JPEG images now decode about twice as fast as they used to.

svn-id: r55794
2011-02-06 13:43:40 +00:00
Filippos Karapetis
2f08dcb667 GRAPHICS: Fixed a bug with indexed PNGs in the PNG decoder (a byte can't hold 256 entries)
svn-id: r55742
2011-02-02 21:18:10 +00:00
Filippos Karapetis
e6f2f7e615 GRAPHICS: Updated the copyright information regarding LodePNG. Removed the obsolete reference to ysflight, as no code is actually used from or based on that project
svn-id: r55726
2011-02-02 16:40:39 +00:00
Filippos Karapetis
a86cb87b98 GRAPHICS: Implemented a PNG decoder, and set it as default for the sword25 engine
libpng is still needed for PNG encoding (for thumbnails in saved games of sword25), but
since we'll probably drop support for the original saved games anyway, the PNG encoding
code will ultimately be removed

svn-id: r55723
2011-02-02 15:43:45 +00:00
Filippos Karapetis
c0ce8a839e Silenced some MSVC warnings
svn-id: r55699
2011-01-31 23:19:00 +00:00
Max Horn
c44f9bdb1d GRAPHICS: Make JPEG::getComponent error out if component was not found
svn-id: r55587
2011-01-28 09:50:05 +00:00
Max Horn
96d91ec182 GRAPHICS: Turn sqrt(2) and cosine values into constants ;)
svn-id: r55586
2011-01-28 09:46:39 +00:00
Max Horn
baf6af4fa6 GRAPHICS: Rename JPEG::_str to _stream
We use _str to denote strings almost everywhere, so this
was a bit confusing. Another alternative would be to use _s.

svn-id: r55585
2011-01-28 09:37:11 +00:00
Torbjörn Andersson
7bf8dda27f JANITORIAL: Remove unnecessary backslash
svn-id: r55483
2011-01-23 21:59:26 +00:00
Eugene Sandulenko
806ccf5d25 GRAPHICS: Move graphics/video/ to video/. Step 1/2
svn-id: r55473
2011-01-23 17:14:43 +00:00
Sven Hesse
c039b06c3c VIDEO: Fix createSurface() for the case that there's no video
Fixes clicking on the Piano in the Apartment in Urban Runner.

svn-id: r55456
2011-01-23 03:46:38 +00:00
Matthew Hoops
57521f7574 VIDEO: Update documentation on which decoder is used by what engine
svn-id: r55455
2011-01-23 01:27:40 +00:00
Matthew Hoops
257a6b2e6d VIDEO: Fix QuickTime audio buffering on the last frame
svn-id: r55450
2011-01-22 23:31:21 +00:00
Sven Hesse
95e557c564 VIDEO: Seek a video seek glitch
Observable when ESCing a 16bit or 24bit video, for example
the fuses in Urban Runner's Labyrinth screen.

svn-id: r55410
2011-01-22 08:00:57 +00:00
Sven Hesse
e1e299d0b8 VIDEO: Correctly correct the _blitMode 1/2 coordinate differences
This fixes the figure lights position in the Secret Room, while
still leaving the flow rate gauge position in the Labyrinth correct

svn-id: r55409
2011-01-22 07:20:16 +00:00
Sven Hesse
bb6c230587 GOB: Implement looping live videos
Needed for the buttons in the Playtoons series

svn-id: r55359
2011-01-20 18:17:39 +00:00
Sven Hesse
33ed3fa8a0 VIDEO: Don't delete, just finish the audiostream on video end
svn-id: r55356
2011-01-20 17:07:17 +00:00
Sven Hesse
75c840b527 VIDEO: Add hasVideo()
svn-id: r55348
2011-01-20 12:28:22 +00:00
Sven Hesse
8c80f80697 VIDEO: The getTimeToNextFrame override is useless now
svn-id: r55341
2011-01-20 03:27:09 +00:00
Sven Hesse
d77899e158 GOB: Make Urban Runner's "3D view" work again
svn-id: r55340
2011-01-20 03:22:43 +00:00