aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/vqa.cpp
AgeCommit message (Collapse)Author
2014-10-28KYRA: Remove trailing whitespaceFilippos Karapetis
2014-02-18KYRA: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-18KYRA: Slight formatting fix.Johannes Schickel
2014-01-18KYRA: Make pointers to VQAHeader constTorbjörn Andersson
This is just to enforce the idea that VQADecoder owns the VQAHeader and that the audio/video tracks are only allowed to look at it, not change it.
2014-01-18KYRA: Restructure the VQA decoder, as suggested by clone2727Torbjörn Andersson
Untangled the audio and video track from each other, and the parsing of the stream from the decoding of its data. Also fixed a memory leak as it turns out deleting a Surface doesn't free its data. You have to call free() in it. I have only checked the intro, not every cutscene, but that seems to work fine at least.
2014-01-18KYRA: Let the VQA decoder draw directly to the backendTorbjörn Andersson
As an alternative to using the Screen class's functions, we can let the VQA decoder draw directly to the backend. This won't work if the game uses "hi-res mode", but I don't think that's ever the case for Malcolm's Revenge. I believe the KyraEngine_MR::playVQA() function ensures that the screen is properly updated after the movie has finished. This almost limits the VQA rewrite to vqa.cpp and vqa.h. Whether it's better this way than changing the Screen functions to take a 'pitch' parameter...? I don't know. But it's an alternative.
2014-01-18KYRA: Rewrite the VQA decoder, using the VideoDecoder classesTorbjörn Andersson
There isn't really a lot of benefit to this, but I think it's nicer if all our video decoders at least try to use the same infrastructure.
2013-01-09KYRA: Make all hex constants use uppercase letters.Johannes Schickel
Done with: git ls-files "*.cpp" *".h" | xargs sed -i -e 's/0x\([0-9a-f]*\)/0x\U\1/g'
2012-03-13JANITORIAL: Replace (x ? false : true) by !(x).Christoph Mallon
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28KYRA: Clean up of header includes.Johannes Schickel
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2011-01-29KYRA: Fix Valgrind Uninitialized Memory Read at end of VQA Playback.David Turner
svn-id: r55619
2010-07-23KYRA: Implement support for selecting the VQA quality via "video_quality".Johannes Schickel
svn-id: r51187
2010-04-12AUDIO: Rename Mixer::playInputStream to playStreamMax Horn
svn-id: r48637
2010-01-26Moved audio stream implementations (for MP3, FLAC, etc.) to new dir ↵Max Horn
sound/decoders/ svn-id: r47579
2010-01-19Move raw audio flags from sound/mixer.h to sound/raw.hMax Horn
svn-id: r47395
2010-01-19Get rid of Mixer::FLAG_AUTOFREE.Max Horn
Also fix several recently introduced new/delete vs. malloc/free mismatches. svn-id: r47369
2010-01-09Replace AppendableAudioStream by QueuingAudioStreamMax Horn
svn-id: r47189
2009-10-26- Fix some missing initialization warnings from cppcheckJohannes Schickel
- Fix two invalid memory accesses reported by cppcheck svn-id: r45414
2009-10-04Change a couple places from 'end of namespace' to 'End of namespace', for ↵Max Horn
consistency svn-id: r44634
2009-06-25Cleanup VQA player a bit.Johannes Schickel
svn-id: r41879
2009-06-22- Changed the following Screen functions to take a reference to a Palette ↵Johannes Schickel
object: -> setScreenPalette -> fadePalette -> getFadeParams -> fadePalStep - Fixed initialization of 256 color palettes svn-id: r41743
2009-06-22Changed Screen::getPalette to return a reference to a Palette object.Johannes Schickel
svn-id: r41741
2009-06-22Got rid of Screen::_currentPalette.Johannes Schickel
svn-id: r41740
2009-06-14Cleanup.Johannes Schickel
svn-id: r41519
2009-05-29More formatting.Johannes Schickel
svn-id: r40994
2009-05-19Remov lots of superfluous debug output.Johannes Schickel
svn-id: r40715
2009-01-23Renamed Kyra's Resource::getFileStream to createReadStreamMax Horn
svn-id: r36022
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-09-13Big patch changing the signature of various Stream methods (some ports may ↵Max Horn
need to be slightly tweaked to fix overloading errors/warnings) svn-id: r34514
2008-09-07Got rid of all Common::File usages in Kyra.Johannes Schickel
svn-id: r34435
2008-09-06Got rid of File::eof()Max Horn
svn-id: r34396
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-10Removed unnecessary #inlcudesChristopher Page
svn-id: r32984
2008-07-08KYRA works with the new GMM implementationChristopher Page
svn-id: r32957
2008-05-17- Fixed sound channel fadeout on VQA playingJohannes Schickel
- Minor formatting fixes svn-id: r32152
2008-05-11- Renamed KyraEngine to KyraEngine_v1Johannes Schickel
- kyra.* -> kyra_v1.* - scene.cpp -> scene_v1.cpp svn-id: r32044
2008-05-07Changed kyra to use delete[] instead of delete [].Johannes Schickel
svn-id: r31925
2007-12-15debug(C) parameter type fixes.Johannes Schickel
svn-id: r29864
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
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-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-28Clarified some comments and moved some asserts to hopefully answer Fingolfin'sTorbjörn Andersson
question why we always created a mono audio stream. There are other games that use more advanced versions of the VQA format, but it seems unlikely that ScummVM will ever support any of them. svn-id: r25911
2007-02-28Changed the AppendableAudioStream code to use a queue of buffers, instead of ↵Max Horn
a fixed size wrap-around memory buffer (this reduces memory usage in some cases by 500-700k, while actually being more flexible) svn-id: r25909
2007-02-17Applied cyx's patch #1659302 ("KYRA: VQA player code cleanup/reduce") with theTorbjörn Andersson
minimal change suggested in the tracker. svn-id: r25649
2006-09-16Replaces malloc with new in most cases.Johannes Schickel
svn-id: r23881
2006-07-30It's play(), not open(), that encounters the CMDS tag. At least in the introTorbjörn Andersson
movie, which is the only one we currently play. svn-id: r23626