aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/animation.cpp
AgeCommit message (Collapse)Author
2010-05-23Another video player regression: When the palette changes, look up theTorbjörn Andersson
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-23Keep the Broken Sword cutscene players from using up all available CPU.Torbjörn Andersson
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-18Committing the rest of the VideoDecoder Rewrite from patch #2963496.Matthew Hoops
svn-id: r49079
2010-05-17Change VideoDecoder::getCurFrame() to mean the last frame drawn instead of ↵Matthew Hoops
the next frame to draw. This is patch 1 from patch #2963496 (VideoDecoder Rewrite). svn-id: r49063
2010-05-15Fixed a regression that caused some speech in cutscenes to not be played.Torbjörn Andersson
svn-id: r49037
2010-04-12AUDIO: Rename Mixer::playInputStream to playStreamMax Horn
svn-id: r48637
2010-01-09Add Mixer::getElapsedTime() method returning a Timestamp, thus offering a ↵Max Horn
higher precision than Mixer::getSoundElapsedTime(). Convert some video code to use it. svn-id: r47213
2010-01-06- Move openStreamFile from AudioStream to SeekableAudioStream.Johannes Schickel
- Fix documentation of openStreamFile. svn-id: r47080
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-16Added a new convenience method to the video player, which adds the event of ↵Filippos Karapetis
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-09-18SWORD2: Don't show a pop-up if the 'eye' movie is missing - it was omitted ↵Joost Peters
in later re-releases. svn-id: r44187
2009-07-28Broken Sword 2, unsurprisingly, had the same subtitle drawing glitch for smallTorbjörn Andersson
cutscenes that Broken Sword 1 had. And a memory leak. This should fix both. svn-id: r42861
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-05-20- Reverted commit #40730, as it introduced rounding errorsFilippos Karapetis
- 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-20Removed the rest of the hard-coded cutscene information. It was only needed toTorbjörn Andersson
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-20Removed the "seamless" flag. It was something I added to cope with the fadeTorbjörn Andersson
in/out behaviour of the MPEG cutscene player, and no longer seems to be needed. svn-id: r40734
2009-05-19Changed calculations based on frame delay to be based on the scale of 1ms, ↵Filippos Karapetis
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-04-07Sword2: PSX version support, and GMM loading/savingFabio Battaglia
svn-id: r39896
2009-03-09Renamed SMKPlayer -> SmackerDecoder and DXAPlayer -> DXADecoder, as well as ↵Max Horn
some other tweaks svn-id: r39255
2009-03-07Whitespace cleanup: Convert space followed by tab to just tabMax Horn
svn-id: r39203
2009-03-07Don't show a warning dialog for missing cutscenes in the demo. As noted in bugTorbjörn Andersson
#2669360, the demo tries to play cutscenes which really aren't there. svn-id: r39194
2009-02-21Rewrote the cutscene player to be more like the one in Broken Sword 1. This ↵Torbjörn Andersson
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-15Applied my patch for the BS1/2 video playerFilippos Karapetis
- 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-01-22Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. ↵Max Horn
into methods, and added an operator== svn-id: r35993
2008-12-14Enable Smacker support, and switch later HE games to Smacker support (since ↵Travis Howell
they aren't supported yet). svn-id: r35368
2008-11-09Allow pausing during cutscene movies. (This will need an update to the mixer'sTorbjörn Andersson
getSoundElapsedTime() function to work better.) svn-id: r34954
2008-11-06Got rid of OSystem::colorToRGB and RGBToColor; added implementations for ↵Max Horn
OSystem::getOverlayFormat to several ports (pending testing by the porters) svn-id: r34912
2008-09-30Renamed Engine::quit to Engine::shouldQuit (previously, it was easily ↵Max Horn
confused with Engine::quitGame); also cleaned up engine.h a bit svn-id: r34700
2008-07-16Quit and RTL code is more modular now. EVENT_RTL no longer sets ↵Christopher Page
_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-13SWORD2 works with the new GMM implementationChristopher Page
svn-id: r33044
2008-01-12The dummy ("narration only") cutscene player misbehaved a bit if the cutsceneTorbjörn Andersson
soundtrack was present. It should work better now. svn-id: r30455
2007-11-01Revert patch #1709219 - DXA Player: double size scaling option.Travis Howell
svn-id: r29351
2007-10-31Slighly modified patch #1709219: "DXA Player: double size scaling option"Eugene Sandulenko
svn-id: r29347
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-06-21Use the KEYCODE constants.Torbjörn Andersson
svn-id: r27593
2007-06-12Add support for pausing/resume cutscenes shown on the OmniTV in The Feeble ↵Travis Howell
Files. svn-id: r27371
2007-05-31Re-added Revolution Software copyright to BS2 engineMax Horn
svn-id: r27030
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-04-14I must have accidentally broken frame skipping when I added DXA playback. MadeTorbjörn Andersson
frame skipping actually skip the updateScreen() call. svn-id: r26469
2007-03-17Moved Event/EventType/keyboard enum from common/system.h (part of class ↵Max Horn
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-17Force all code to use EventManager::pollEvent instead of OSystem::pollEventMax Horn
svn-id: r26156
2007-02-24Remove unneeded #includesMax Horn
svn-id: r25838
2007-02-08Instead of pre-rendering all subtitles and pre-loading all sounds for a movieTorbjörn Andersson
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-03Fixing various doxygen warningsMax Horn
svn-id: r25362
2007-02-03* Reimplemented Mixer::pauseAll to simply invoke pause on all channelsMax Horn
(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-01-26Added separate function for playing cutscene lead-in/out sounds, and made sureTorbjörn Andersson
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
2006-12-18The MPEG player no longer handles frame syncing/dropping, so this comment isTorbjörn Andersson
obsolete now. svn-id: r24872
2006-10-02Fixed bug #1569594 ("BS2 DXA Movie Exit/Crash"). That's what I get for onlyTorbjörn Andersson
testing with subtitles enabled... :-) svn-id: r24089
2006-08-26Now that the cutscene handling in both BS1 and BS2 has been extended to playTorbjörn Andersson
DXA movies (the MPEG movies still work, of course), there is no longer any need for the MPEG decoder to handle sound and frame syncing. That is now the responsibility of the player, not the decoder. The obvious next step, then, would be to put that in a new player class, and have both BS1 and BS2 use that. Maybe FF as well. svn-id: r23757
2006-08-23The DXA player now bases subtitle position on screen size, rather than frameTorbjörn Andersson
size. This should help people who want to use the smaller, low-quality cutscenes instead of the high-quality ones. The MPEG player probably doesn't know this trick. Maybe later. svn-id: r23742