aboutsummaryrefslogtreecommitdiff
path: root/image/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'image/codecs')
-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) {}
};
/**