22 #ifndef IMAGE_CODECS_CINEPAK_H 23 #define IMAGE_CODECS_CINEPAK_H 25 #include "common/scummsys.h" 26 #include "common/rect.h" 27 #include "graphics/pixelformat.h" 28 #include "graphics/palette.h" 30 #include "image/codecs/codec.h" 33 class SeekableReadStream;
49 uint32 v1_dither[256 * 4 * 4], v4_dither[256 * 4 * 4];
81 const byte *
getPalette()
override { _dirtyPalette =
false;
return _ditherPalette.data(); }
83 bool canDither(
DitherType type)
const override;
84 void setDither(
DitherType type,
const byte *palette)
override;
91 byte *_clipTable, *_clipTableBuf;
98 void initializeCodebook(uint16 strip, byte codebookType);
103 byte findNearestRGB(
int index)
const;
105 void ditherCodebookQT(uint16 strip, byte codebookType, uint16 codebookIndex);
106 void ditherCodebookVFW(uint16 strip, byte codebookType, uint16 codebookIndex);
bool hasDirtyPalette() const override
Definition: cinepak.h:82
bool containsPalette() const override
Definition: cinepak.h:80
Graphics::PixelFormat getPixelFormat() const override
Definition: cinepak.h:77
Definition: algorithm.h:29
const byte * getPalette() override
Definition: cinepak.h:81
Simple class for handling a palette data.
Definition: palette.h:51
DitherType
Definition: codec.h:65
Definition: movie_decoder.h:32