#include <imageloader_u4.h>
Public Member Functions | |
U4RleImageDecoder (int width, int height, int bpp) | |
bool | loadStream (Common::SeekableReadStream &stream) override |
Public Member Functions inherited from Ultima::Ultima4::U4ImageDecoder | |
U4ImageDecoder (int width, int height, int bpp) | |
void | destroy () override |
const Graphics::Surface * | getSurface () const override |
const byte * | getPalette () const override |
uint16 | getPaletteColorCount () const override |
Public Member Functions inherited from Image::ImageDecoder | |
virtual bool | hasPalette () const |
virtual bool | hasTransparentColor () const |
virtual uint32 | getTransparentColor () const |
Additional Inherited Members | |
Protected Member Functions inherited from Ultima::Ultima4::U4ImageDecoder | |
void | setFromRawData (const byte *rawData) |
Graphics::PixelFormat | getPixelFormatForBpp () const |
Protected Attributes inherited from Ultima::Ultima4::U4ImageDecoder | |
Graphics::Surface * | _surface |
const byte * | _palette |
uint16 | _paletteColorCount |
int | _width |
int | _height |
int | _bpp |
Decoder for U4 images with RLE compression. Like raw images, the data is just a stream of pixel data with no palette information (e.g. start.ega, rune_*.ega). This decoder handles the original 4-bit images, as well as the 8-bit VGA upgrade images.
|
overridevirtual |
Load an image from the specified stream.
loadStream() should implicitly call destroy() to free the memory of the last loadStream() call.
stream | Input stream. |
Implements Image::ImageDecoder.