diff options
author | Matthew Hoops | 2014-09-05 00:27:22 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-04-11 14:36:46 -0400 |
commit | 0ceb383cd3f24bde6e9855f3b86f161eae3fb14b (patch) | |
tree | 6ba1f7eb56fe290b1be75f020260edccaaaf0095 /image/codecs/codec.h | |
parent | e5048ecffed49eb0ddb6b69488cfeebbc3820d8f (diff) | |
download | scummvm-rg350-0ceb383cd3f24bde6e9855f3b86f161eae3fb14b.tar.gz scummvm-rg350-0ceb383cd3f24bde6e9855f3b86f161eae3fb14b.tar.bz2 scummvm-rg350-0ceb383cd3f24bde6e9855f3b86f161eae3fb14b.zip |
IMAGE: Add a function for generating QuickTime dither tables
Much thanks to fuzzie for her assistance.
Diffstat (limited to 'image/codecs/codec.h')
-rw-r--r-- | image/codecs/codec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/image/codecs/codec.h b/image/codecs/codec.h index 9abbb3d183..ad7e43783c 100644 --- a/image/codecs/codec.h +++ b/image/codecs/codec.h @@ -107,6 +107,12 @@ public: * Activate dithering mode with a palette */ virtual void setDither(DitherType type, const byte *palette) {} + +protected: + /** + * Create a dither table, as used by QuickTime codecs. + */ + static byte *createQuickTimeDitherTable(const byte *palette, uint colorCount); }; /** |