ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Image::CDToonsDecoder Class Reference

Broderbund CDToons decoder. More...

#include <cdtoons.h>

Inheritance diagram for Image::CDToonsDecoder:
Collaboration diagram for Image::CDToonsDecoder:

List of all members.

Public Member Functions

 CDToonsDecoder (uint16 width, uint16 height)
 ~CDToonsDecoder ()
Graphics::SurfacedecodeFrame (Common::SeekableReadStream &stream)
 Decode the frame for the given data and return a pointer to a surface containing the decoded frame.
Graphics::PixelFormat getPixelFormat () const
 Get the format that the surface returned from decodeImage() will be in.
bool containsPalette () const
 Can this codec's frames contain a palette?
const bytegetPalette ()
 Get the palette last decoded from decodeImage.
bool hasDirtyPalette () const
 Does the codec have a dirty palette?

Private Member Functions

void renderBlock (byte *data, uint size, int x, int y, uint width, uint height)
void setPalette (byte *data)

Private Attributes

Graphics::Surface_surface
byte _palette [256 *3]
bool _dirtyPalette
uint16 _currentPaletteId
Common::HashMap< uint16,
CDToonsBlock
_blocks

Detailed Description

Broderbund CDToons decoder.

Used by PICT/QuickTime.

Definition at line 46 of file cdtoons.h.


Constructor & Destructor Documentation

Image::CDToonsDecoder::CDToonsDecoder ( uint16  width,
uint16  height 
)

Definition at line 51 of file cdtoons.cpp.

Image::CDToonsDecoder::~CDToonsDecoder (  ) 

Definition at line 62 of file cdtoons.cpp.


Member Function Documentation

bool Image::CDToonsDecoder::containsPalette (  )  const [inline, virtual]

Can this codec's frames contain a palette?

Reimplemented from Image::Codec.

Definition at line 53 of file cdtoons.h.

Graphics::Surface * Image::CDToonsDecoder::decodeFrame ( Common::SeekableReadStream stream  )  [virtual]

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.

Definition at line 70 of file cdtoons.cpp.

const byte* Image::CDToonsDecoder::getPalette (  )  [inline, virtual]

Get the palette last decoded from decodeImage.

Reimplemented from Image::Codec.

Definition at line 54 of file cdtoons.h.

Graphics::PixelFormat Image::CDToonsDecoder::getPixelFormat (  )  const [inline, virtual]

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

Implements Image::Codec.

Definition at line 52 of file cdtoons.h.

bool Image::CDToonsDecoder::hasDirtyPalette (  )  const [inline, virtual]

Does the codec have a dirty palette?

Reimplemented from Image::Codec.

Definition at line 55 of file cdtoons.h.

void Image::CDToonsDecoder::renderBlock ( byte data,
uint  size,
int  x,
int  y,
uint  width,
uint  height 
) [private]

Definition at line 330 of file cdtoons.cpp.

void Image::CDToonsDecoder::setPalette ( byte data  )  [private]

Definition at line 434 of file cdtoons.cpp.


Member Data Documentation

Definition at line 61 of file cdtoons.h.

Definition at line 60 of file cdtoons.h.

Definition at line 59 of file cdtoons.h.

Definition at line 58 of file cdtoons.h.


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


Generated on Sat May 25 2019 05:06:05 for ResidualVM by doxygen 1.7.1
curved edge   curved edge