diff options
author | Matthew Hoops | 2014-09-05 00:30:05 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-04-11 14:36:58 -0400 |
commit | 1271fbde8f30fdf2d0664bb1e3382928380f9aa9 (patch) | |
tree | 764793a36fde23c809ea6e5991bbfd8905702734 /image/codecs/cinepak.h | |
parent | c402d9a9594e5a2b38f834578b010d5cf9bb771e (diff) | |
download | scummvm-rg350-1271fbde8f30fdf2d0664bb1e3382928380f9aa9.tar.gz scummvm-rg350-1271fbde8f30fdf2d0664bb1e3382928380f9aa9.tar.bz2 scummvm-rg350-1271fbde8f30fdf2d0664bb1e3382928380f9aa9.zip |
IMAGE: Add support for QuickTime dithered Cinepak
Diffstat (limited to 'image/codecs/cinepak.h')
-rw-r--r-- | image/codecs/cinepak.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/image/codecs/cinepak.h b/image/codecs/cinepak.h index 02c09b6ddb..dc8172ea0f 100644 --- a/image/codecs/cinepak.h +++ b/image/codecs/cinepak.h @@ -46,6 +46,7 @@ struct CinepakStrip { uint16 length; Common::Rect rect; CinepakCodebook v1_codebook[256], v4_codebook[256]; + byte v1_dither[256 * 4 * 4 * 4], v4_dither[256 * 4 * 4 * 4]; }; struct CinepakFrame { @@ -89,12 +90,14 @@ private: bool _dirtyPalette; byte *_rgbLookup; byte *_colorMap; + DitherType _ditherType; void loadCodebook(Common::SeekableReadStream &stream, uint16 strip, byte codebookType, byte chunkID, uint32 chunkSize); void decodeVectors(Common::SeekableReadStream &stream, uint16 strip, byte chunkID, uint32 chunkSize); byte findNearestRGB(int index) const; void ditherVectors(Common::SeekableReadStream &stream, uint16 strip, byte chunkID, uint32 chunkSize); + void ditherCodebookQT(uint16 strip, byte codebookType, uint16 codebookIndex); }; } // End of namespace Image |