aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/video
diff options
context:
space:
mode:
authorMatthew Hoops2010-05-18 14:17:24 +0000
committerMatthew Hoops2010-05-18 14:17:24 +0000
commit11cbdd03180a655b2b23ee4a13f1a00a1d782b3c (patch)
tree5b0d84211308ea37a2fa2f7017d6f96314f3c6fb /engines/mohawk/video
parentf3892a506b2f935bae0be6319394c503c786d368 (diff)
downloadscummvm-rg350-11cbdd03180a655b2b23ee4a13f1a00a1d782b3c.tar.gz
scummvm-rg350-11cbdd03180a655b2b23ee4a13f1a00a1d782b3c.tar.bz2
scummvm-rg350-11cbdd03180a655b2b23ee4a13f1a00a1d782b3c.zip
Committing the rest of the VideoDecoder Rewrite from patch #2963496.
svn-id: r49079
Diffstat (limited to 'engines/mohawk/video')
-rw-r--r--engines/mohawk/video/cinepak.h1
-rw-r--r--engines/mohawk/video/qtrle.h1
-rw-r--r--engines/mohawk/video/rpza.h1
-rw-r--r--engines/mohawk/video/smc.h1
4 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/video/cinepak.h b/engines/mohawk/video/cinepak.h
index 43cc22bfc9..3f4cbba17c 100644
--- a/engines/mohawk/video/cinepak.h
+++ b/engines/mohawk/video/cinepak.h
@@ -65,6 +65,7 @@ public:
~CinepakDecoder();
Graphics::Surface *decodeImage(Common::SeekableReadStream *stream);
+ Graphics::PixelFormat getPixelFormat() const { return _pixelFormat; }
private:
CinepakFrame _curFrame;
diff --git a/engines/mohawk/video/qtrle.h b/engines/mohawk/video/qtrle.h
index fdccf626a6..2832bd6b24 100644
--- a/engines/mohawk/video/qtrle.h
+++ b/engines/mohawk/video/qtrle.h
@@ -37,6 +37,7 @@ public:
~QTRLEDecoder();
Graphics::Surface *decodeImage(Common::SeekableReadStream *stream);
+ Graphics::PixelFormat getPixelFormat() const { return _pixelFormat; }
private:
byte _bitsPerPixel;
diff --git a/engines/mohawk/video/rpza.h b/engines/mohawk/video/rpza.h
index b9522ec2e3..c6d0ada6f5 100644
--- a/engines/mohawk/video/rpza.h
+++ b/engines/mohawk/video/rpza.h
@@ -37,6 +37,7 @@ public:
~RPZADecoder() { delete _surface; }
Graphics::Surface *decodeImage(Common::SeekableReadStream *stream);
+ Graphics::PixelFormat getPixelFormat() const { return _pixelFormat; }
private:
Graphics::Surface *_surface;
diff --git a/engines/mohawk/video/smc.h b/engines/mohawk/video/smc.h
index 331fddb9a5..c52226100e 100644
--- a/engines/mohawk/video/smc.h
+++ b/engines/mohawk/video/smc.h
@@ -43,6 +43,7 @@ public:
~SMCDecoder() { delete _surface; }
Graphics::Surface *decodeImage(Common::SeekableReadStream *stream);
+ Graphics::PixelFormat getPixelFormat() const { return Graphics::PixelFormat::createFormatCLUT8(); }
private:
Graphics::Surface *_surface;