aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/coktelvideo/coktelvideo.cpp
diff options
context:
space:
mode:
authorSven Hesse2009-07-24 21:36:16 +0000
committerSven Hesse2009-07-24 21:36:16 +0000
commit54b63ac239a8b555b191d40733e05090b3b08e3a (patch)
treef153ffd5c3f7de24949cbdd3744da681d92b802e /graphics/video/coktelvideo/coktelvideo.cpp
parentc4baedc6dbffbec01cf9a0f7d57f1922b0bceaec (diff)
downloadscummvm-rg350-54b63ac239a8b555b191d40733e05090b3b08e3a.tar.gz
scummvm-rg350-54b63ac239a8b555b191d40733e05090b3b08e3a.tar.bz2
scummvm-rg350-54b63ac239a8b555b191d40733e05090b3b08e3a.zip
Moving all implementations into the cpp
svn-id: r42714
Diffstat (limited to 'graphics/video/coktelvideo/coktelvideo.cpp')
-rw-r--r--graphics/video/coktelvideo/coktelvideo.cpp71
1 files changed, 71 insertions, 0 deletions
diff --git a/graphics/video/coktelvideo/coktelvideo.cpp b/graphics/video/coktelvideo/coktelvideo.cpp
index 8dd3d4f328..02893bb73e 100644
--- a/graphics/video/coktelvideo/coktelvideo.cpp
+++ b/graphics/video/coktelvideo/coktelvideo.cpp
@@ -40,6 +40,67 @@ Imd::~Imd() {
clear();
}
+uint32 Imd::getFeatures() const {
+ return _features;
+}
+
+uint16 Imd::getFlags() const {
+ return _flags;
+}
+
+int16 Imd::getX() const {
+ return _x;
+}
+
+int16 Imd::getY() const {
+ return _y;
+}
+
+int16 Imd::getWidth() const {
+ return _width;
+}
+
+int16 Imd::getHeight() const {
+ return _height;
+}
+
+uint16 Imd::getFramesCount() const {
+ return _framesCount;
+}
+
+uint16 Imd::getCurrentFrame() const {
+ return _curFrame;
+}
+
+int16 Imd::getFrameRate() const {
+ if (!_hasSound)
+ return _frameRate;
+
+ return 1000 / (_soundSliceLength >> 16);
+}
+
+uint32 Imd::getSyncLag() const {
+ return _skipFrames;
+}
+
+const byte *Imd::getPalette() const {
+ return _palette;
+}
+
+bool Imd::getFrameCoords(int16 frame,
+ int16 &x, int16 &y, int16 &width, int16 &height) {
+
+ return false;
+}
+
+bool Imd::hasExtraData(const char *fileName) const {
+ return false;
+}
+
+Common::MemoryReadStream *Imd::getExtraData(const char *fileName) {
+ return 0;
+}
+
bool Imd::load(Common::SeekableReadStream &stream) {
unload();
@@ -191,6 +252,9 @@ void Imd::unload() {
clear();
}
+void Imd::notifyPaused(uint32 duration) {
+}
+
void Imd::setFrameRate(int16 frameRate) {
if (frameRate == 0)
frameRate = 1;
@@ -251,6 +315,9 @@ void Imd::setVideoMemory() {
}
}
+void Imd::setDoubleMode(bool doubleMode) {
+}
+
void Imd::enableSound(Audio::Mixer &mixer) {
// Only possible on the first frame
if (_curFrame > 0)
@@ -857,6 +924,10 @@ void Imd::deLZ77(byte *dest, byte *src) {
}
}
+inline void Imd::unsignedToSigned(byte *buffer, int length) {
+ while (length-- > 0) *buffer++ ^= 0x80;
+}
+
Vmd::ExtraData::ExtraData() {
memset(name, 0, 16);