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"
33class SeekableReadStream;
49 uint32 v1_dither[256 * 4 * 4], v4_dither[256 * 4 * 4];
81 const byte *
getPalette()
override { _dirtyPalette =
false;
return _ditherPalette.data(); }
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);
Simple class for handling a palette data.
Definition: palette.h:61
bool hasDirtyPalette() const override
Definition: cinepak.h:82
bool setOutputPixelFormat(const Graphics::PixelFormat &format) override
bool containsPalette() const override
Definition: cinepak.h:80
void setDither(DitherType type, const byte *palette) override
const byte * getPalette() override
Definition: cinepak.h:81
bool canDither(DitherType type) const override
Graphics::PixelFormat getPixelFormat() const override
Definition: cinepak.h:77
const Graphics::Surface * decodeFrame(Common::SeekableReadStream &stream) override
DitherType
Definition: codec.h:65
Definition: algorithm.h:29