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" 29 #include "image/codecs/codec.h" 32 class SeekableReadStream;
48 uint32 v1_dither[256 * 4 * 4], v4_dither[256 * 4 * 4];
80 const byte *
getPalette()
override { _dirtyPalette =
false;
return _ditherPalette; }
82 bool canDither(
DitherType type)
const override;
83 void setDither(
DitherType type,
const byte *palette)
override;
90 byte *_clipTable, *_clipTableBuf;
97 void initializeCodebook(uint16 strip, byte codebookType);
102 byte findNearestRGB(
int index)
const;
104 void ditherCodebookQT(uint16 strip, byte codebookType, uint16 codebookIndex);
105 void ditherCodebookVFW(uint16 strip, byte codebookType, uint16 codebookIndex);
bool hasDirtyPalette() const override
Definition: cinepak.h:81
bool containsPalette() const override
Definition: cinepak.h:79
Graphics::PixelFormat getPixelFormat() const override
Definition: cinepak.h:76
Definition: algorithm.h:29
const byte * getPalette() override
Definition: cinepak.h:80
DitherType
Definition: codec.h:65
Definition: movie_decoder.h:32