aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/codec.h
diff options
context:
space:
mode:
authorMatthew Hoops2014-08-18 18:31:38 -0400
committerMatthew Hoops2015-04-11 14:36:37 -0400
commitf342d63431fc0784adc08648f17a6bbad934743f (patch)
tree1521c7bfe83d7528c05d58e3e2219b8b7d9e83a6 /image/codecs/codec.h
parentad32fb58326657b05731681b1a8945978928ef55 (diff)
downloadscummvm-rg350-f342d63431fc0784adc08648f17a6bbad934743f.tar.gz
scummvm-rg350-f342d63431fc0784adc08648f17a6bbad934743f.tar.bz2
scummvm-rg350-f342d63431fc0784adc08648f17a6bbad934743f.zip
IMAGE: Allow for choosing dither type
Diffstat (limited to 'image/codecs/codec.h')
-rw-r--r--image/codecs/codec.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/image/codecs/codec.h b/image/codecs/codec.h
index 3a2da9ff1e..9abbb3d183 100644
--- a/image/codecs/codec.h
+++ b/image/codecs/codec.h
@@ -59,6 +59,17 @@ public:
virtual ~Codec() {}
/**
+ * A type of dithering.
+ */
+ enum DitherType {
+ /** Video for Windows dithering */
+ kDitherTypeVFW,
+
+ /** QuickTime dithering */
+ kDitherTypeQT
+ };
+
+ /**
* Decode the frame for the given data and return a pointer to a surface
* containing the decoded frame.
*
@@ -89,17 +100,13 @@ public:
/**
* Can the codec dither down to 8bpp?
- *
- * @note This should only be used for VFW codecs
*/
- virtual bool canDither() const { return false; }
+ virtual bool canDither(DitherType type) const { return false; }
/**
* Activate dithering mode with a palette
- *
- * @note This should only be used for VFW codecs
*/
- virtual void setDither(const byte *palette) {}
+ virtual void setDither(DitherType type, const byte *palette) {}
};
/**