Commit Graph

75 Commits

Author SHA1 Message Date
Matthew Hoops
a658fc660e GRAPHICS: Move PNG to the ImageDecoder interface 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
Johannes Schickel
843b9f9665 GRAPHICS: Add a TTF font class using FreeType2. 2012-01-29 16:26:20 +01:00
Johannes Schickel
d9d366dbc9 GRAPHICS: Remove dithering code.
The code is not used anymore and neither the Mohawk developers, who expressed
that they might need dithering for some games, nor DrMcCoy, who wrote it, need
this code anymore.

In the worst case if anyone needs it again, we can revert this commit.
2011-09-06 16:51:04 +02:00
Johannes Schickel
8201df7bb6 GRAPHICS: Move NewFont code to a separate file. 2011-07-01 21:10:25 +02:00
Thierry Crozat
592cca5402 GRAPHICS: Get rid of kSODFont (ScummFont)
OSD is now using the kGUIFont instead. The main advantage is that
the kGUIFont can be used for translated text while only ASCII
characters were present in ScummFont.
2011-06-06 23:20:08 +01:00
Matthew Hoops
0addffbfd3 GRAPHICS: Add a YUV to RGB table lookup for use with Theora
Based on the video/mpeg_player.* one, which is based on lots of other things (too many to name, go see the file)
2011-05-18 10:05:13 -04:00
Matthew Hoops
4a3d94a60e GRAPHICS: Add a new MacCursor class for handling CURS/crsr cursors 2011-05-05 19:26:44 -04: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
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
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
Matthew Hoops
bee912ff54 GRAPHICS: Add support for Windows FON/FNT fonts
As required by Hugo and Mohawk.

svn-id: r55120
2011-01-04 20:39:27 +00:00
Alyssa Milburn
eac4a64143 VIDEO: Add CDToons decoder
svn-id: r54936
2010-12-16 17:01:09 +00:00
Matthew Hoops
5e8e77a814 VIDEO: Add the TrueMotion 1 codec for Phantasmagoria 2
Based on the FFmpeg decoder. Only the 16bpp version has been implemented (and all that should be needed). The videos I have tried work fine with the codec. The audio does not yet play in these videos, but I hope to work on DK3 IMA ADPCM soon.

svn-id: r54194
2010-11-11 04:53:52 +00:00
Matthew Hoops
d1bd2497a5 GRAPHICS: Enforce alphabetical order on the codec objects
svn-id: r54191
2010-11-10 19:18:39 +00:00
Sven Hesse
609dc65df6 VIDEO: Remove the now obsolete CoktelVideo classes
svn-id: r51924
2010-08-08 01:09:45 +00:00
Sven Hesse
a802e1e64f VIDEO: Stub a VideoDecoder-like CoktelDecoder
This creates a new CoktelDecoder class using the VideoDecoder
interface, which will eventually become the new way to decode
PreIMD, IMD and VMD videos.
Since the VideoPlayer in gob is not yet ready for this, we're
disabling all video playback in the gob engine for now.

svn-id: r51850
2010-08-08 00:33:59 +00:00
Sven Hesse
b5b47d50c8 VIDEO: Make Indeo3 a proper video codec
This way, Indeo3 is properly usable in various container VideoDecoder,
for example AVI, and not just VMD.
Since VMD is not yet ready for this, we're disabling Indeo3 in VMDs
for now.

svn-id: r51849
2010-08-08 00:33:13 +00:00
Matthew Hoops
ad0eb0b06e Move the PICT code to graphics/ with some updates; needed for SCI1.1 Mac.
svn-id: r49195
2010-05-24 17:18:09 +00:00
Matthew Hoops
b3bd797e01 Move the QDM2 code to the graphics module, removing the cyclic dependency.
svn-id: r49171
2010-05-23 21:41:13 +00:00
Matthew Hoops
2f31b05651 Move Mohawk's QuickTime code to graphics/ (and QDM2 to sound, disabled when Mohawk is not enabled) so SCI can use the code.
svn-id: r49165
2010-05-23 18:33:55 +00:00
Matthew Hoops
11cbdd0318 Committing the rest of the VideoDecoder Rewrite from patch #2963496.
svn-id: r49079
2010-05-18 14:17:24 +00:00
Andre Heider
be0885e9d1 Revert r48979. Instead, make the HQ scalers depend on the normal ones. Configure reflects that now.
svn-id: r48996
2010-05-10 17:25:12 +00:00
Andre Heider
998531a022 Since configure allows HQ scalers without the normal onces, allow this combination.
svn-id: r48979
2010-05-09 12:30:20 +00:00
Andre Heider
a3e428f6db Rename DISABLE_*SCALERS to USE_*SCALERS, and move the mk/cpp defines to configure.
svn-id: r48977
2010-05-09 11:00:17 +00:00
Johannes Schickel
6dacac2187 Conistenlty use USE_NASM instead of using HAVE_NASM in config.mk (this matches all the external library use too).
svn-id: r48208
2010-03-08 23:56:59 +00:00
Matthew Hoops
19d3f5ad9b Have SCI look through the patches directory (except in KQ6 where the patches in that directory are broken) to fix some GK1 Windows problems. Add the MSRLE codec to AVI (from DrMcCoy's Dark Seed II engine, with permission). GK1 Windows now will play the credits video.
svn-id: r47894
2010-02-05 03:29:04 +00:00
Filippos Karapetis
bcc33871c1 The wrapper for the VMD decoder is only used in the SCI engine for SCI32 games, so moved it inside the engine, instead of common code. Added support for VMD video playing from the "play_video" console command
svn-id: r46737
2009-12-30 10:09:48 +00:00
Filippos Karapetis
c453790efc Updated module.mk
svn-id: r46716
2009-12-29 19:44:08 +00:00
Max Horn
974b49ebfe Put two of the WinCE downscalers into graphics/scaler/downscaler*, so that they can be used by multiple backends (more could be added as needed)
svn-id: r45974
2009-11-18 15:19:44 +00:00
Matthew Hoops
b43e99566e Converting AVIPlayer into a class that inherits from VideoDecoder and adapt SCI to use this. Also, moving the codec and Codec class into their own folder. (Based on a patch by md5)
svn-id: r45170
2009-10-16 18:05:56 +00:00
Matthew Hoops
d8e93836c5 Add an AVI player and MSVideo1 codec for use with some SCI Windows game (such as kq6).
svn-id: r43833
2009-08-30 19:47:14 +00:00
Scott Thomas
8acb89645f Add JPEG decoder from 16bpp branch
svn-id: r43596
2009-08-21 13:52:43 +00:00
Jody Northup
1a5f0d806e add conversion.h and conversion.cpp into trunk (were present in working copy, but not added to svn control)
svn-id: r43582
2009-08-21 10:22:28 +00:00
Robin Watts
816bd9a7ea Add ARM code version of Normal2x scaler.
Add ARM only aspect ratio correcting version of Normal2x scaler.

Make WinCE port use Normal2x by default if the screen is large enough.
Make WinCE port use aspect ratio correcting version if panel is hidden.

svn-id: r42843
2009-07-27 16:29:36 +00:00
Robin Watts
64ebb586cd Add ARM code implementation of Scaler2x, and enable it for the WinCE
port.

svn-id: r42645
2009-07-21 19:39:24 +00:00
Johannes Schickel
8623081666 Add generic functionallity to draw FM-Towns ROM. (To be used by KYRA and SCI)
svn-id: r42221
2009-07-07 14:22:23 +00:00
Filippos Karapetis
b7f8990ba8 Renamed the DXA, SMK and FLIC video decoders to reflect the fact that they're decoders, not players
svn-id: r40759
2009-05-21 13:02:56 +00:00
Filippos Karapetis
11251cf296 Moved the Coktel video player into its own subdirectory
svn-id: r40755
2009-05-21 10:48:03 +00:00
Sven Hesse
43f58b2869 Moving CoktelVideo (IMD/VMD) and the Indeo3 code (needed for Urban Runner's VMDs) to graphics/video/
svn-id: r40744
2009-05-20 20:41:10 +00:00
Filippos Karapetis
2772a7aaf1 Further merging of the SMK and DXA players (the FLIC player is not done yet):
- Added a new class, VideoPlayer(), from which both the SMK and the DXA player inherit. This class provides generic functions and public methods for the inherited video classes. Default implementations have been made for these public methods, and the virtual ones can be overriden in inherited classes
- There is now a default implementation of the function that sets the video palette
- A basic video player for inherited classes has been added with method playVideo(). This is able to play a fullscreen non-interactive video, which can be skipped with events set by the caller. Postprocessing methods, which draw upon each frame (e.g. subtitles) can be done by implementing performPostProcessing()
- The FTA2 movie player now uses the new playVideo() method
- The new video player code is compatible with the old one (i.e. no changes to the existing engine code are necessary), but it's now possible to reduce engine code for video playing considerably

svn-id: r35772
2009-01-07 21:19:00 +00:00
Max Horn
569636eb54 Removed Graphics::ImageMan. Nothing uses it
svn-id: r35638
2008-12-31 15:11:39 +00:00
Sven Hesse
74024ff3e5 Moving the dither code to graphics/
svn-id: r35526
2008-12-24 15:57:43 +00:00
Eugene Sandulenko
829cbc4110 Move all video players to separate directory
svn-id: r35470
2008-12-21 21:08:17 +00:00
Travis Howell
9c20a533bb Enable Smacker support, and switch later HE games to Smacker support (since they aren't supported yet).
svn-id: r35368
2008-12-14 23:41:48 +00:00
Gregory Montoir
48363b80fb added FLIC player from KoM engine module.
changes :
- changed methods name to match the ones from DXAPlayer
- added file read streaming
- added possibiltiy to reset playback

svn-id: r35068
2008-11-15 02:31:11 +00:00
Johannes Schickel
eb65bcd953 Fixed build.
svn-id: r34607
2008-09-20 12:28:45 +00:00