aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/codec.h
diff options
context:
space:
mode:
authorMatthew Hoops2013-06-23 19:35:47 -0400
committerMatthew Hoops2015-04-11 14:36:18 -0400
commitf6d7c5e176a08c32702cdfb80ec8a626c25ead67 (patch)
tree20bb5ebab9f80174b3a11610573b3d761c86f759 /image/codecs/codec.h
parentec03857d7dd7614675b41cfc412be20b733b469a (diff)
downloadscummvm-rg350-f6d7c5e176a08c32702cdfb80ec8a626c25ead67.tar.gz
scummvm-rg350-f6d7c5e176a08c32702cdfb80ec8a626c25ead67.tar.bz2
scummvm-rg350-f6d7c5e176a08c32702cdfb80ec8a626c25ead67.zip
IMAGE: Add functions to allow for videos to be dithered
Diffstat (limited to 'image/codecs/codec.h')
-rw-r--r--image/codecs/codec.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/image/codecs/codec.h b/image/codecs/codec.h
index d87758e65e..3a2da9ff1e 100644
--- a/image/codecs/codec.h
+++ b/image/codecs/codec.h
@@ -86,6 +86,20 @@ public:
* Does the codec have a dirty palette?
*/
virtual bool hasDirtyPalette() const { return false; }
+
+ /**
+ * Can the codec dither down to 8bpp?
+ *
+ * @note This should only be used for VFW codecs
+ */
+ virtual bool canDither() const { return false; }
+
+ /**
+ * Activate dithering mode with a palette
+ *
+ * @note This should only be used for VFW codecs
+ */
+ virtual void setDither(const byte *palette) {}
};
/**