aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/avi_surface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-07-10 11:36:04 -0400
committerPaul Gilbert2016-07-15 19:27:40 -0400
commitfd954a8e0b41370ae68f3b409295676de207313d (patch)
tree4a31e192231af9e4fa6eba44072e1e70ad7b98ab /engines/titanic/support/avi_surface.cpp
parent6c56d5aa11db1401bc0a2277776ec43128174bc2 (diff)
downloadscummvm-rg350-fd954a8e0b41370ae68f3b409295676de207313d.tar.gz
scummvm-rg350-fd954a8e0b41370ae68f3b409295676de207313d.tar.bz2
scummvm-rg350-fd954a8e0b41370ae68f3b409295676de207313d.zip
TITANIC: Added OSVideoSurface flipVertically
Diffstat (limited to 'engines/titanic/support/avi_surface.cpp')
-rw-r--r--engines/titanic/support/avi_surface.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp
index a416bc3d69..e371ccb812 100644
--- a/engines/titanic/support/avi_surface.cpp
+++ b/engines/titanic/support/avi_surface.cpp
@@ -27,23 +27,24 @@
namespace Titanic {
AVISurface::AVISurface(const CResourceKey &key) {
+ _videoSurface = nullptr;
+ _field4 = 0;
+ _field8 = 0;
+ _currentPos = 0;
+ _priorFrame = 0;
+ _streamCount = 0;
+ _frameInfo = nullptr;
- // TODO
-/*
-Video::AVIDecoder *decoder = new Video::AVIDecoder();
-decoder->ignoreSecondaryVideoTracks();
-_video = decoder;
-_field14 = 1;
-
-if (!_video->loadFile(name.getString()))
-error("Could not open video - %s", name.getString().c_str());
-*/
+ _decoder = new Video::AVIDecoder();
+ if (!_decoder->loadFile(key.getString()))
+ error("Could not open video - %s", key.getString().c_str());
}
AVISurface::~AVISurface() {
if (_videoSurface)
_videoSurface->_blitStyleFlag = false;
delete _frameInfo;
+ delete _decoder;
}
bool AVISurface::play(uint flags, CGameObject *obj) {