ScummVM API documentation
Image::CDToonsDecoder Class Reference

#include <cdtoons.h>

Inheritance diagram for Image::CDToonsDecoder:
Image::Codec

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from Image::Codec
enum  DitherType { kDitherTypeUnknown, kDitherTypeVFW, kDitherTypeQT }
 
- Static Public Member Functions inherited from Image::Codec
static byte * createQuickTimeDitherTable (const byte *palette, uint colorCount)
 

Detailed Description

Broderbund CDToons decoder.

Used by PICT/QuickTime.

Member Function Documentation

◆ decodeFrame()

Graphics::Surface* Image::CDToonsDecoder::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::CDToonsDecoder::getPixelFormat ( ) const
inlineoverridevirtual

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

Implements Image::Codec.

◆ containsPalette()

bool Image::CDToonsDecoder::containsPalette ( ) const
inlineoverridevirtual

Can this codec's frames contain a palette?

Reimplemented from Image::Codec.

◆ getPalette()

const byte* Image::CDToonsDecoder::getPalette ( )
inlineoverridevirtual

Get the palette last decoded from decodeImage

Reimplemented from Image::Codec.

◆ hasDirtyPalette()

bool Image::CDToonsDecoder::hasDirtyPalette ( ) const
inlineoverridevirtual

Does the codec have a dirty palette?

Reimplemented from Image::Codec.


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