Matthew Hoops
1ead0d8436
VIDEO: Make VideoDecoder::getPalette() return a const byte pointer
...
svn-id: r54928
2010-12-16 01:41:11 +00:00
Matthew Hoops
375f32fbe9
VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer
...
svn-id: r54927
2010-12-16 01:35:13 +00:00
Torbjörn Andersson
68469f45ce
SWORD2: Cleanup pause handling
...
Removed a bunch of pause-related code which I either can't remember why
it's there, or which doesn't seem to serve any useful purpose. Most
things I've tried seem to work as well or better than before.
svn-id: r53997
2010-11-01 11:25:11 +00:00
Torbjörn Andersson
1b294306dd
Another video player regression: When the palette changes, look up the
...
lightest/darkest available colours to use as white/black for the subtitles. It
is possible that we could get away with fixed values for Broken Sword 2, since
it has always had subtitles. But for Broken Sword 1, subtitles is a ScummVM
addition, and we can't.
svn-id: r49154
2010-05-23 11:16:10 +00:00
Torbjörn Andersson
8ed56e1834
Keep the Broken Sword cutscene players from using up all available CPU.
...
Probably a regression from the recent video decoder rewrite, but I haven't
checked if it also present in other engines.
svn-id: r49153
2010-05-23 10:50:14 +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
Matthew Hoops
c7fa1074fb
Change VideoDecoder::getCurFrame() to mean the last frame drawn instead of the next frame to draw. This is patch 1 from patch #2963496 (VideoDecoder Rewrite).
...
svn-id: r49063
2010-05-17 21:59:05 +00:00
Torbjörn Andersson
83a25d2e37
Fixed a regression that caused some speech in cutscenes to not be played.
...
svn-id: r49037
2010-05-15 08:54:58 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Max Horn
a44c6e4323
Add Mixer::getElapsedTime() method returning a Timestamp, thus offering a higher precision than Mixer::getSoundElapsedTime(). Convert some video code to use it.
...
svn-id: r47213
2010-01-09 22:37:10 +00:00
Johannes Schickel
84f3034406
- Move openStreamFile from AudioStream to SeekableAudioStream.
...
- Fix documentation of openStreamFile.
svn-id: r47080
2010-01-06 15:23:33 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Filippos Karapetis
422b732dba
Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
...
svn-id: r45151
2009-10-16 07:42:23 +00:00
Joost Peters
e1ad748f0d
SWORD2: Don't show a pop-up if the 'eye' movie is missing - it was omitted in later re-releases.
...
svn-id: r44187
2009-09-18 16:39:14 +00:00
Torbjörn Andersson
7a6329a29b
Broken Sword 2, unsurprisingly, had the same subtitle drawing glitch for small
...
cutscenes that Broken Sword 1 had. And a memory leak. This should fix both.
svn-id: r42861
2009-07-28 17:53:59 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Filippos Karapetis
6ec870303f
- Reverted commit #40730 , as it introduced rounding errors
...
- Properly fixed the FLIC player
- The sound chunk tag of DXA files is now read by the DXADecoder's loadFile() method
svn-id: r40736
2009-05-20 10:43:18 +00:00
Torbjörn Andersson
caf9bf0941
Removed the rest of the hard-coded cutscene information. It was only needed to
...
get the number of frames of a cutscene (to find the "lead out frame"), but this
information is already provided by both the DXA and the SMK players. (It wasn't
provided by the now obsolete MPEG player.)
svn-id: r40735
2009-05-20 04:29:09 +00:00
Torbjörn Andersson
358b1a7c7e
Removed the "seamless" flag. It was something I added to cope with the fade
...
in/out behaviour of the MPEG cutscene player, and no longer seems to be needed.
svn-id: r40734
2009-05-20 04:07:34 +00:00
Filippos Karapetis
e358b13ef9
Changed calculations based on frame delay to be based on the scale of 1ms, not 1/100. This fixes the FLIC player and also makes the overall code a bit clearer and easier to understand
...
svn-id: r40730
2009-05-19 19:56:53 +00:00
Fabio Battaglia
dc9c538a62
Sword2: PSX version support, and GMM loading/saving
...
svn-id: r39896
2009-04-07 19:52:46 +00:00
Max Horn
e080a59337
Renamed SMKPlayer -> SmackerDecoder and DXAPlayer -> DXADecoder, as well as some other tweaks
...
svn-id: r39255
2009-03-09 03:45:23 +00:00
Max Horn
f9ecd95d69
Whitespace cleanup: Convert space followed by tab to just tab
...
svn-id: r39203
2009-03-07 19:24:31 +00:00
Torbjörn Andersson
041af01f7d
Don't show a warning dialog for missing cutscenes in the demo. As noted in bug
...
#2669360 , the demo tries to play cutscenes which really aren't there.
svn-id: r39194
2009-03-07 17:27:18 +00:00
Torbjörn Andersson
6e2848ff98
Rewrote the cutscene player to be more like the one in Broken Sword 1. This fixes
...
a subtitle colour regression, but mainly it simplifies the code. The "dummy"
player has been removed. There are almost certainly regressions, but I'm hoping
it's stable enough for testing now.
svn-id: r38697
2009-02-21 15:07:05 +00:00
Filippos Karapetis
781d7da6b1
Applied my patch for the BS1/2 video player
...
- Support for the MPEG2 videos in BS1/2 has been dropped. The MPEG2 videos were lossy, and support for them complicated the code a lot.
- Support for the non-existing enhanced MPEG cutscene packs for BS1 has been dropped. As a consequence, the credits player and the splitted audio stream players used for these packs has been removed
- The original Smacker videos for both games are now supported, using our Smacker player (which is based off publically available specs and FFMPEG)
- The animations now use the common video player code. Both the Smacker videos and our DXA video packs are supported
svn-id: r38236
2009-02-15 13:29:48 +00:00
Max Horn
abc06ca18e
Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
...
svn-id: r35993
2009-01-22 04:35:10 +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
Torbjörn Andersson
db3438f2c9
Allow pausing during cutscene movies. (This will need an update to the mixer's
...
getSoundElapsedTime() function to work better.)
svn-id: r34954
2008-11-09 13:20:43 +00:00
Max Horn
edf9f24926
Got rid of OSystem::colorToRGB and RGBToColor; added implementations for OSystem::getOverlayFormat to several ports (pending testing by the porters)
...
svn-id: r34912
2008-11-06 15:02:50 +00:00
Max Horn
9b160804ab
Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
...
svn-id: r34700
2008-09-30 12:27:38 +00:00
Christopher Page
7f480ac571
Quit and RTL code is more modular now. EVENT_RTL no longer sets _shouldQuit, shouldQuit is only set if there's an EVENT_QUIT. EVENT_RTL and EVENT_QUIT are completely separate from each other. Engine::quit() method now checks both _shouldQuit and _shouldRTL to determine if the engine should exit. There is no longer a need for resetQuit(), so it's removed
...
svn-id: r33082
2008-07-16 04:22:56 +00:00
Christopher Page
796e606971
SWORD2 works with the new GMM implementation
...
svn-id: r33044
2008-07-13 22:00:39 +00:00
Torbjörn Andersson
323aafcf78
The dummy ("narration only") cutscene player misbehaved a bit if the cutscene
...
soundtrack was present. It should work better now.
svn-id: r30455
2008-01-12 20:18:41 +00:00
Travis Howell
9aa0a47846
Revert patch #1709219 - DXA Player: double size scaling option.
...
svn-id: r29351
2007-11-01 06:00:16 +00:00
Eugene Sandulenko
3318c4b474
Slighly modified patch #1709219 : "DXA Player: double size scaling option"
...
svn-id: r29347
2007-10-31 21:37:40 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Torbjörn Andersson
db8e5332fc
Use the KEYCODE constants.
...
svn-id: r27593
2007-06-21 19:33:05 +00:00
Travis Howell
12c9fb0382
Add support for pausing/resume cutscenes shown on the OmniTV in The Feeble Files.
...
svn-id: r27371
2007-06-12 06:08:47 +00:00
Max Horn
22c0403e0d
Re-added Revolution Software copyright to BS2 engine
...
svn-id: r27030
2007-05-31 20:28:29 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Torbjörn Andersson
4b4d7dec8e
I must have accidentally broken frame skipping when I added DXA playback. Made
...
frame skipping actually skip the updateScreen() call.
svn-id: r26469
2007-04-14 14:07:11 +00:00
Max Horn
ed54ea9155
Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
...
svn-id: r26180
2007-03-17 19:02:05 +00:00
Max Horn
15d9bc42ea
Force all code to use EventManager::pollEvent instead of OSystem::pollEvent
...
svn-id: r26156
2007-03-17 00:53:21 +00:00
Max Horn
8366420474
Remove unneeded #includes
...
svn-id: r25838
2007-02-24 23:41:20 +00:00
Torbjörn Andersson
98a8e88f61
Instead of pre-rendering all subtitles and pre-loading all sounds for a movie
...
cutscene, render the text and play the speech when needed. It probably won't
play as nicely from CD now, but using less memory seems more important to me.
svn-id: r25428
2007-02-08 21:55:37 +00:00
Max Horn
73c3625f1f
Fixing various doxygen warnings
...
svn-id: r25362
2007-02-03 21:37:52 +00:00
Max Horn
cb49cbdd45
* Reimplemented Mixer::pauseAll to simply invoke pause on all channels
...
(implying change of semantics)
* Reordered the params of Mixer::playRaw (the SoundType now comes first, not last)
* Removed Mixer::isPaused
* Removed Mixer::getSoundElapsedTimeOfSoundID
* Added some doxygen comments to the Mixer
svn-id: r25356
2007-02-03 19:05:53 +00:00
Torbjörn Andersson
d2910fe758
Added separate function for playing cutscene lead-in/out sounds, and made sure
...
that these are stopped whenever the engine is going to do a mass killing of
game resources, e.g. when restoring or restarting the game. Should fix bug
#1645480 . (This was a regression added during the rewrite to support DXA.)
svn-id: r25204
2007-01-26 18:21:41 +00:00
Torbjörn Andersson
4c46f4a878
The MPEG player no longer handles frame syncing/dropping, so this comment is
...
obsolete now.
svn-id: r24872
2006-12-18 07:55:31 +00:00