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;
Simple class for handling a palette data.
Definition: palette.h:61
DitherType
Definition: codec.h:65
void setPalette(const byte *palette)
Definition: dither.h:51
Graphics::PixelFormat getPixelFormat() const override
void setDither(DitherType type, const byte *palette) override
bool setOutputPixelFormat(const Graphics::PixelFormat &format) override
bool canDither(DitherType type) const override
bool hasDirtyPalette() const override
const Graphics::Surface * decodeFrame(Common::SeekableReadStream &stream) override
void setCodecAccuracy(CodecAccuracy accuracy) override
bool containsPalette() const override
static byte * createQuickTimeDitherTable(const byte *palette, uint colorCount)
const byte * getPalette() override