aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/animation.cpp
AgeCommit message (Collapse)Author
2009-02-21Allocate the background sound handle dynamically. Otherwise, it seems to me ↵Torbjörn Andersson
as if it should be invalid as soon as the makeMoviePlayer() function ends. While that never caused any noticeable problems for me in Broken Sword 1, it broke things in amusing ways when I tried to rewrite the Broken Sword 2 cutscene player along the same lines. svn-id: r38684
2009-02-21Cleanup.Torbjörn Andersson
svn-id: r38680
2009-02-20Minor consistency change.Torbjörn Andersson
svn-id: r38650
2009-02-16If the DXA cutscene audio fails to play for whatever reason (shouldn't happen inTorbjörn Andersson
BS1 since all the cutscenes have an audio track), assume audio and video are in sync. svn-id: r38384
2009-02-16Blank the palette correctly. (Fixes Valgrind warning.)Torbjörn Andersson
svn-id: r38343
2009-02-15Oops, fixed Smacker video playing in BS1Filippos Karapetis
svn-id: r38237
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-02-14Fixed bug #2599531 ("SWORD1: truck.dxa plays striped"). The last parameter toTorbjörn Andersson
copyFrameToBuffer() is the pitch of the destination buffer, not the frame. svn-id: r36330
2009-01-22Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. ↵Max Horn
into methods, and added an operator== svn-id: r35993
2009-01-06Updated SWORD1 with the latest changes to video playersFilippos Karapetis
svn-id: r35760
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-12-01Fixed compilation.Johannes Schickel
svn-id: r35200
2008-12-01Got rid of Stream::readLine_OLD calls in two places (mostly untested, please ↵Max Horn
check/test for regressions) svn-id: r35198
2008-11-18Committed by patch #2219361 ("BS1: Simplified subtitles"). It uses theTorbjörn Andersson
lockScreen() / unlockScreen() backend API, instead of copyRectToScreen(). Before, it had to copy a piece of the engine's screen to draw on to simulate transparency, which was awkward. However, this means we're now forcing full-screen updates on each frame. There may be performance regressions, particularly if the frames are much smaller than the screen. Hopefully, it's the decoding that's the bottleneck, but if this causes problems on low-end devices... well, Fingolfin had some ideas about that when he first proposed the lockScreen() / unlockScreen() API. svn-id: r35115
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-10-13Fixed crash after using cutscene subtitles. (Now I *know* no one has used thatTorbjörn Andersson
feature before. :-) svn-id: r34796
2008-10-12Increased maximum subtitle line length for SimSaw. That code really should beTorbjörn Andersson
made more robust some day, but until now I don't think anyone actually used it. svn-id: r34787
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-09-27Slight simplification of last commit.Torbjörn Andersson
svn-id: r34658
2008-09-27Allow quitting or returning to the launcher while cutscenes are playing.Torbjörn Andersson
svn-id: r34657
2008-09-27Fixed typos.Torbjörn Andersson
svn-id: r34656
2008-09-03Renamed SeekableReadStream::readLine to SeekableReadStream::readLine_OLD; ↵Max Horn
added a new alternate SeekableReadStream::readLine() instead svn-id: r34315
2008-07-13Overlooked something in SWORD1, works nowChristopher Page
svn-id: r33045
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-22Use KEYCODE constants.Torbjörn Andersson
svn-id: r27600
2007-06-12Add support for pausing/resume cutscenes shown on the OmniTV in The Feeble ↵Travis Howell
Files. svn-id: r27371
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-05-19Fixed error in subtitle drawing. (This part of the code should still be cleanedTorbjörn Andersson
up, as it's badly written. I should know, I wrote it.) svn-id: r26877
2007-04-28This is an updated and slightly cleaned up version of patch #1657061 ("SWORD1:Torbjörn Andersson
Cutscene subtitles"). It still has the deficiencies listen in the patch tracker and should therefore be considered work-in-progress, but sev said I should go ahead and commit it anyway. I have no further plans for it right now, so feel free to improve on it. svn-id: r26644
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-04-01Changed _sys -> _system, matching (almost?) all other cases where we have an ↵Max Horn
OSystem* member var svn-id: r26359
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-25oopsMax Horn
svn-id: r25842
2007-02-25Switch to the new makeVorbisStream variant (and get rid of a File::decRef call)Max Horn
svn-id: r25840
2006-12-14When drawing an interlaced frame, only clear every other line instead of theTorbjörn Andersson
entire buffer. Introduced a _drawBuffer pointer which points either to _scaledBuffer or _frameBuffer1. That way, we don't need to copy _frameBuffer1 every time we draw an unscaled frame. (Probably the most common case by far.) Adjusted the Broken Sword 1 DXA player for the second change. (It sneakily avoids copying each frame by using _drawBuffer directly.) svn-id: r24846
2006-12-11Adjust DXA scaling code for Broken Sword 1Travis Howell
svn-id: r24841
2006-08-28Only clear the part of the screen usually controlled by the Screen class. TheTorbjörn Andersson
buffer might not be large enough to cover the menu areas, and they will probably be clear already. Only terminate the loop, not the entire function, when pressing Esc during a cutscene. Otherwise, there may be palette glitches. svn-id: r23790
2006-08-27Forgot to close the DXA file.Torbjörn Andersson
svn-id: r23775
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-26Added support for DXA cutscenes. Still needs a bit of cleanup, and the DCATorbjörn Andersson
player does not support the (unreleased) multi-lingual cutscene pack, since I don't have one to test with. It needs to be cleaned up a bit, but the next step will be to clean up the MPEG decoder first. svn-id: r23753
2006-05-18Renamed screenChanged() to handleScreenChanged().Torbjörn Andersson
svn-id: r22518
2006-05-18Allow changing scaler while playing MPEG cutscenes.Torbjörn Andersson
svn-id: r22515
2006-05-17- Heavily modified patch #1214784: "Disable overlay scaling"Eugene Sandulenko
- Eriktorbjorn's patch from same tracker item for scaling sword1/2 cutscenes is applied as is. It lacks resolution switch on-the-fly. - GUI widgets are repositioned on the fly and use most space, even aspect ratio corrected screen is used without scaling - Heavy tesing is required, but works for me in all cases except for bug #1483272: "GUI: SCUMM pause dialog breaks upon scaler switch" which needs more work. - I probavly broke some backend or two svn-id: r22505
2006-04-29Moved the AudioCDManager as well as class AudioStream and its (standard) ↵Max Horn
subclasses to namespace Audio svn-id: r22231
2006-02-11Moved engines to the new engines/ directoryMax Horn
svn-id: r20582