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

Image::RPZADecoder Class Reference

Apple RPZA decoder. More...

#include <rpza.h>

Inheritance diagram for Image::RPZADecoder:
Collaboration diagram for Image::RPZADecoder:

List of all members.

Public Member Functions

 RPZADecoder (uint16 width, uint16 height)
 ~RPZADecoder ()
const 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?
bool canDither (DitherType type) const
 Can the codec dither down to 8bpp?
void setDither (DitherType type, const byte *palette)
 Activate dithering mode with a palette.

Private Attributes

Graphics::PixelFormat _format
Graphics::Surface_surface
byte_ditherPalette
bool _dirtyPalette
byte_colorMap
uint16 _width
uint16 _height
uint16 _blockWidth
uint16 _blockHeight

Detailed Description

Apple RPZA decoder.

Used by PICT/QuickTime.

Definition at line 36 of file rpza.h.


Constructor & Destructor Documentation

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

Definition at line 34 of file rpza.cpp.

Image::RPZADecoder::~RPZADecoder (  ) 

Definition at line 46 of file rpza.cpp.


Member Function Documentation

bool Image::RPZADecoder::canDither ( DitherType  type  )  const [virtual]

Can the codec dither down to 8bpp?

Reimplemented from Image::Codec.

Definition at line 350 of file rpza.cpp.

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

Can this codec's frames contain a palette?

Reimplemented from Image::Codec.

Definition at line 44 of file rpza.h.

const Graphics::Surface * Image::RPZADecoder::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 330 of file rpza.cpp.

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

Get the palette last decoded from decodeImage.

Reimplemented from Image::Codec.

Definition at line 45 of file rpza.h.

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

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

Implements Image::Codec.

Definition at line 42 of file rpza.h.

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

Does the codec have a dirty palette?

Reimplemented from Image::Codec.

Definition at line 46 of file rpza.h.

void Image::RPZADecoder::setDither ( DitherType  type,
const byte palette 
) [virtual]

Activate dithering mode with a palette.

Reimplemented from Image::Codec.

Definition at line 354 of file rpza.cpp.


Member Data Documentation

Definition at line 57 of file rpza.h.

Definition at line 57 of file rpza.h.

Definition at line 55 of file rpza.h.

Definition at line 54 of file rpza.h.

Definition at line 53 of file rpza.h.

Definition at line 51 of file rpza.h.

Definition at line 56 of file rpza.h.

Definition at line 52 of file rpza.h.

Definition at line 56 of file rpza.h.


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


Generated on Sat Mar 16 2019 05:06:29 for ResidualVM by doxygen 1.7.1
curved edge   curved edge