aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/animation.cpp
AgeCommit message (Collapse)Author
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-08-30Fix indentationJordi Vilalta Prat
svn-id: r43837
2009-07-28Fixed drawing subtitles for cutscenes that are narrower than the screen, andTorbjörn Andersson
erase the subtitles manually if they are drawn outside the frame. svn-id: r42859
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-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-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-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