aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/indeo3.h
diff options
context:
space:
mode:
authorSven Hesse2008-12-17 16:06:16 +0000
committerSven Hesse2008-12-17 16:06:16 +0000
commit38e7eecb710a3f7e8c5a637d525fed60d0712386 (patch)
tree723639e090dfb7965a64373fc634976c4bbf68f3 /engines/gob/indeo3.h
parent10e471bb5b0b4ac6f2475c060703e55168601846 (diff)
downloadscummvm-rg350-38e7eecb710a3f7e8c5a637d525fed60d0712386.tar.gz
scummvm-rg350-38e7eecb710a3f7e8c5a637d525fed60d0712386.tar.bz2
scummvm-rg350-38e7eecb710a3f7e8c5a637d525fed60d0712386.zip
Added support for caching the palette LUT to a file
svn-id: r35412
Diffstat (limited to 'engines/gob/indeo3.h')
-rw-r--r--engines/gob/indeo3.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/gob/indeo3.h b/engines/gob/indeo3.h
index 6cedecc2af..28eba336e5 100644
--- a/engines/gob/indeo3.h
+++ b/engines/gob/indeo3.h
@@ -33,6 +33,8 @@
#ifndef GOB_INDEO3_H
#define GOB_INDEO3_H
+#include "common/stream.h"
+
namespace Gob {
class PaletteLUT {
@@ -64,17 +66,20 @@ public:
byte findNearest(byte c1, byte c2, byte c3);
byte findNearest(byte c1, byte c2, byte c3, byte &nC1, byte &nC2, byte &nC3);
+ bool save(Common::WriteStream &stream);
+ bool load(Common::SeekableReadStream &stream);
+
private:
byte _depth1, _depth2;
byte _shift;
- int _dim1, _dim2, _dim3;
+ uint32 _dim1, _dim2, _dim3;
PaletteFormat _format;
byte _lutPal[768];
byte _realPal[768];
- int _got;
+ uint32 _got;
byte *_gots;
byte *_lut;