22 #ifndef IMAGE_CODECS_DITHER_H 23 #define IMAGE_CODECS_DITHER_H 25 #include "image/codecs/codec.h" 27 #include "common/types.h" 28 #include "graphics/palette.h" 34 DitherCodec(
Codec *codec, DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES);
51 void setPalette(
const byte *palette) { _srcPalette = palette; }
59 DisposeAfterUse::Flag _disposeAfterUse;
61 const byte *_srcPalette;
bool containsPalette() const override
bool setOutputPixelFormat(const Graphics::PixelFormat &format) override
bool hasDirtyPalette() const override
Graphics::PixelFormat getPixelFormat() const override
static byte * createQuickTimeDitherTable(const byte *palette, uint colorCount)
bool canDither(DitherType type) const override
const Graphics::Surface * decodeFrame(Common::SeekableReadStream &stream) override
void setPalette(const byte *palette)
Definition: dither.h:51
void setCodecAccuracy(CodecAccuracy accuracy) override
void setDither(DitherType type, const byte *palette) override
const byte * getPalette() override
Simple class for handling a palette data.
Definition: palette.h:55
DitherType
Definition: codec.h:65
Definition: movie_decoder.h:32