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

Image::QTRLEDecoder Class Reference

QuickTime Run-Length Encoding decoder. More...

#include <qtrle.h>

Inheritance diagram for Image::QTRLEDecoder:
Collaboration diagram for Image::QTRLEDecoder:

List of all members.

Public Member Functions

 QTRLEDecoder (uint16 width, uint16 height, byte bitsPerPixel)
 ~QTRLEDecoder ()
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 Member Functions

void createSurface ()
void decode1 (Common::SeekableReadStream &stream, uint32 rowPtr, uint32 linesToChange)
void decode2_4 (Common::SeekableReadStream &stream, uint32 rowPtr, uint32 linesToChange, byte bpp)
void decode8 (Common::SeekableReadStream &stream, uint32 rowPtr, uint32 linesToChange)
void decode16 (Common::SeekableReadStream &stream, uint32 rowPtr, uint32 linesToChange)
void decode24 (Common::SeekableReadStream &stream, uint32 rowPtr, uint32 linesToChange)
void dither24 (Common::SeekableReadStream &stream, uint32 rowPtr, uint32 linesToChange)
void decode32 (Common::SeekableReadStream &stream, uint32 rowPtr, uint32 linesToChange)

Private Attributes

byte _bitsPerPixel
Graphics::Surface_surface
uint16 _width
uint16 _height
uint32 _paddedWidth
byte_ditherPalette
bool _dirtyPalette
byte_colorMap

Detailed Description

QuickTime Run-Length Encoding decoder.

Used by PICT/QuickTime.

Definition at line 36 of file qtrle.h.


Constructor & Destructor Documentation

Image::QTRLEDecoder::QTRLEDecoder ( uint16  width,
uint16  height,
byte  bitsPerPixel 
)

Definition at line 38 of file qtrle.cpp.

Image::QTRLEDecoder::~QTRLEDecoder (  ) 

Definition at line 54 of file qtrle.cpp.


Member Function Documentation

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

Can the codec dither down to 8bpp?

Reimplemented from Image::Codec.

Definition at line 518 of file qtrle.cpp.

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

Can this codec's frames contain a palette?

Reimplemented from Image::Codec.

Definition at line 44 of file qtrle.h.

void Image::QTRLEDecoder::createSurface (  )  [private]

Definition at line 534 of file qtrle.cpp.

void Image::QTRLEDecoder::decode1 ( Common::SeekableReadStream stream,
uint32  rowPtr,
uint32  linesToChange 
) [private]

Definition at line 80 of file qtrle.cpp.

void Image::QTRLEDecoder::decode16 ( Common::SeekableReadStream stream,
uint32  rowPtr,
uint32  linesToChange 
) [private]

Definition at line 229 of file qtrle.cpp.

void Image::QTRLEDecoder::decode24 ( Common::SeekableReadStream stream,
uint32  rowPtr,
uint32  linesToChange 
) [private]

Definition at line 267 of file qtrle.cpp.

void Image::QTRLEDecoder::decode2_4 ( Common::SeekableReadStream stream,
uint32  rowPtr,
uint32  linesToChange,
byte  bpp 
) [private]

Definition at line 124 of file qtrle.cpp.

void Image::QTRLEDecoder::decode32 ( Common::SeekableReadStream stream,
uint32  rowPtr,
uint32  linesToChange 
) [private]

Definition at line 378 of file qtrle.cpp.

void Image::QTRLEDecoder::decode8 ( Common::SeekableReadStream stream,
uint32  rowPtr,
uint32  linesToChange 
) [private]

Definition at line 184 of file qtrle.cpp.

const Graphics::Surface * Image::QTRLEDecoder::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 426 of file qtrle.cpp.

void Image::QTRLEDecoder::dither24 ( Common::SeekableReadStream stream,
uint32  rowPtr,
uint32  linesToChange 
) [private]

Definition at line 324 of file qtrle.cpp.

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

Get the palette last decoded from decodeImage.

Reimplemented from Image::Codec.

Definition at line 45 of file qtrle.h.

Graphics::PixelFormat Image::QTRLEDecoder::getPixelFormat (  )  const [virtual]

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

Implements Image::Codec.

Definition at line 492 of file qtrle.cpp.

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

Does the codec have a dirty palette?

Reimplemented from Image::Codec.

Definition at line 46 of file qtrle.h.

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

Activate dithering mode with a palette.

Reimplemented from Image::Codec.

Definition at line 523 of file qtrle.cpp.


Member Data Documentation

Definition at line 51 of file qtrle.h.

Definition at line 57 of file qtrle.h.

Definition at line 56 of file qtrle.h.

Definition at line 55 of file qtrle.h.

Definition at line 53 of file qtrle.h.

Definition at line 54 of file qtrle.h.

Definition at line 52 of file qtrle.h.

Definition at line 53 of file qtrle.h.


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


Generated on Sat Jan 12 2019 05:04:48 for ResidualVM by doxygen 1.7.1
curved edge   curved edge