Atari-ST Neochrome decoder based on NEOLoad by Jason "Joefish" Railton.
Used in engines:
Namespaces | |
Common | |
Classes | |
class | Image::NeoDecoder |
Functions | |
Image::NeoDecoder::NeoDecoder (byte *palette=nullptr) | |
void | Image::NeoDecoder::destroy () |
virtual bool | Image::NeoDecoder::loadStream (Common::SeekableReadStream &stream) |
virtual const Graphics::Surface * | Image::NeoDecoder::getSurface () const |
const byte * | Image::NeoDecoder::getPalette () const |
uint16 | Image::NeoDecoder::getPaletteColorCount () const |
|
virtual |
Destroy this decoder's surface and palette.
This should be called by a loadStream() implementation as well as by the destructor.
Implements Image::ImageDecoder.
|
virtual |
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.
|
inlinevirtual |
Get the decoded surface.
This surface is owned by this ImageDecoder and remains valid until destroy() or loadStream() is called, or until the destructor of this ImageDecoder is called.
Implements Image::ImageDecoder.
|
inlinevirtual |
Get the decoded palette.
This palette is owned by this ImageDecoder and remains valid until destroy() or loadStream() is called, or until the destructor of this ImageDecoder is called.
The format of the palette is the same as that of the PaletteManager's palette. (interleaved RGB values).
Reimplemented from Image::ImageDecoder.
|
inlinevirtual |
Return the number of colors in the palette.
Reimplemented from Image::ImageDecoder.