aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/coktel_decoder.h
diff options
context:
space:
mode:
authorSven Hesse2011-01-16 16:27:52 +0000
committerSven Hesse2011-01-16 16:27:52 +0000
commitfaa66fc01a343c66b1006e6ee22045770094b7b7 (patch)
tree4d9f2a6606e7b2a56160043bbb33eb7c50ab24b8 /graphics/video/coktel_decoder.h
parentafd101c526872272558a8c23f3e2cb67de8da7dc (diff)
downloadscummvm-rg350-faa66fc01a343c66b1006e6ee22045770094b7b7.tar.gz
scummvm-rg350-faa66fc01a343c66b1006e6ee22045770094b7b7.tar.bz2
scummvm-rg350-faa66fc01a343c66b1006e6ee22045770094b7b7.zip
VIDEO: Add color mode methods
To query the video's color mode and notifying the decoder that the system's color mode changed. svn-id: r55259
Diffstat (limited to 'graphics/video/coktel_decoder.h')
-rw-r--r--graphics/video/coktel_decoder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/video/coktel_decoder.h b/graphics/video/coktel_decoder.h
index 5f81dea776..8279415d89 100644
--- a/graphics/video/coktel_decoder.h
+++ b/graphics/video/coktel_decoder.h
@@ -98,6 +98,8 @@ public:
void enableSound();
void disableSound();
+ virtual void colorModeChanged();
+
/** Return the coordinates of the specified frame. */
virtual bool getFrameCoords(int16 frame, int16 &x, int16 &y, int16 &width, int16 &height);
@@ -113,6 +115,9 @@ public:
/** Return the current subtitle index. */
virtual int32 getSubtitleIndex() const;
+ /** Is the video paletted or true color? */
+ virtual bool isPaletted() const;
+
// VideoDecoder interface
@@ -343,6 +348,8 @@ public:
void setXY(uint16 x, uint16 y);
+ void colorModeChanged();
+
bool getFrameCoords(int16 frame, int16 &x, int16 &y, int16 &width, int16 &height);
bool hasEmbeddedFiles() const;
@@ -351,6 +358,8 @@ public:
int32 getSubtitleIndex() const;
+ virtual bool isPaletted() const;
+
// VideoDecoder interface
@@ -456,9 +465,12 @@ private:
int32 _subtitle;
+ bool _isPaletted;
+
// Loading helper functions
bool assessVideoProperties();
bool assessAudioProperties();
+ bool openExternalCodec();
bool readFrameTable(int &numFiles);
bool readFiles();