diff options
author | Matthew Hoops | 2013-06-23 19:35:47 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-04-11 14:36:18 -0400 |
commit | f6d7c5e176a08c32702cdfb80ec8a626c25ead67 (patch) | |
tree | 20bb5ebab9f80174b3a11610573b3d761c86f759 /image/codecs | |
parent | ec03857d7dd7614675b41cfc412be20b733b469a (diff) | |
download | scummvm-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')
-rw-r--r-- | image/codecs/codec.h | 14 |
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) {} }; /** |