22#ifndef IMAGE_CODECS_CDTOONS_H
23#define IMAGE_CODECS_CDTOONS_H
25#include "image/codecs/codec.h"
27#include "common/array.h"
28#include "common/hashmap.h"
29#include "common/rect.h"
30#include "graphics/palette.h"
55 const byte *
getPalette()
override { _dirtyPalette =
false;
return _palette.data(); }
59 struct CDToonsAction {
66 bool _backingSurfaceValid;
69 uint16 _currentPaletteId;
74 void renderBlock(
Graphics::Surface &surface,
byte *data, uint size,
int x,
int y, uint width, uint height,
const Common::Rect *clipRect =
nullptr);
75 void setPalette(
byte *data);
Simple class for handling a palette data.
Definition: palette.h:61
Graphics::Surface * decodeFrame(Common::SeekableReadStream &stream) override
bool containsPalette() const override
Definition: cdtoons.h:54
bool hasDirtyPalette() const override
Definition: cdtoons.h:56
const byte * getPalette() override
Definition: cdtoons.h:55
Graphics::PixelFormat getPixelFormat() const override
Definition: cdtoons.h:53