ScummVM API documentation
Image::HLZDecoder Class Reference

#include <hlz.h>

Inheritance diagram for Image::HLZDecoder:
Image::Codec

Public Member Functions

 HLZDecoder (int width, int height)
 
const Graphics::SurfacedecodeFrame (Common::SeekableReadStream &stream) override
 
Graphics::PixelFormat getPixelFormat () const override
 
- Public Member Functions inherited from Image::Codec
virtual bool setOutputPixelFormat (const Graphics::PixelFormat &format)
 
virtual bool containsPalette () const
 
virtual const byte * getPalette ()
 
virtual bool hasDirtyPalette () const
 
virtual bool canDither (DitherType type) const
 
virtual void setDither (DitherType type, const byte *palette)
 

Static Public Member Functions

static void decodeFrameInPlace (Common::SeekableReadStream &stream, uint32 size, byte *dst)
 
- Static Public Member Functions inherited from Image::Codec
static byte * createQuickTimeDitherTable (const byte *palette, uint colorCount)
 

Additional Inherited Members

- Public Types inherited from Image::Codec
enum  DitherType { kDitherTypeUnknown, kDitherTypeVFW, kDitherTypeQT }
 

Detailed Description

HLZ image decoder.

Used by HLZ image format and HNM video format.

Member Function Documentation

◆ decodeFrame()

const Graphics::Surface* Image::HLZDecoder::decodeFrame ( Common::SeekableReadStream stream)
overridevirtual

Decode the frame for the given data and return a pointer to a surface containing the decoded frame.

Returns
a pointer to the decoded frame

Implements Image::Codec.

◆ getPixelFormat()

Graphics::PixelFormat Image::HLZDecoder::getPixelFormat ( ) const
overridevirtual

Get the format that the surface returned from decodeImage() will be in.

Implements Image::Codec.


The documentation for this class was generated from the following file: