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

Stark::Formats::XMGDecoder Class Reference

XMG (still image) decoder. More...

#include <xmg.h>

Collaboration diagram for Stark::Formats::XMGDecoder:

List of all members.

Classes

struct  Block

Static Public Member Functions

static Graphics::Surfacedecode (Common::ReadStream *stream)
static void readSize (Common::ReadStream *stream, uint &width, uint &height)

Private Member Functions

 XMGDecoder (Common::ReadStream *stream)
void readHeader ()
Graphics::SurfacedecodeImage ()
Block decodeBlock (byte op)
void drawBlock (const Block &block, Graphics::Surface *surface)
Block processYCrCb ()
Block processTrans ()
Block processRGB ()

Private Attributes

uint32 _width
uint32 _height
uint32 _currX
uint32 _currY
Common::ReadStream_stream
uint32 _transColor
 The transparency color in the RGB and transparency blocks.

Detailed Description

XMG (still image) decoder.

Definition at line 38 of file xmg.h.


Constructor & Destructor Documentation

Stark::Formats::XMGDecoder::XMGDecoder ( Common::ReadStream stream  )  [explicit, private]

Definition at line 36 of file xmg.cpp.


Member Function Documentation

Graphics::Surface * Stark::Formats::XMGDecoder::decode ( Common::ReadStream stream  )  [static]

Definition at line 45 of file xmg.cpp.

XMGDecoder::Block Stark::Formats::XMGDecoder::decodeBlock ( byte  op  )  [private]

Definition at line 123 of file xmg.cpp.

Graphics::Surface * Stark::Formats::XMGDecoder::decodeImage (  )  [private]

Definition at line 87 of file xmg.cpp.

void Stark::Formats::XMGDecoder::drawBlock ( const Block block,
Graphics::Surface surface 
) [private]

Definition at line 146 of file xmg.cpp.

XMGDecoder::Block Stark::Formats::XMGDecoder::processRGB (  )  [private]

Definition at line 209 of file xmg.cpp.

XMGDecoder::Block Stark::Formats::XMGDecoder::processTrans (  )  [private]

Definition at line 198 of file xmg.cpp.

XMGDecoder::Block Stark::Formats::XMGDecoder::processYCrCb (  )  [private]

Definition at line 169 of file xmg.cpp.

void Stark::Formats::XMGDecoder::readHeader (  )  [private]

Definition at line 59 of file xmg.cpp.

void Stark::Formats::XMGDecoder::readSize ( Common::ReadStream stream,
uint width,
uint height 
) [static]

Definition at line 51 of file xmg.cpp.


Member Data Documentation

Definition at line 63 of file xmg.h.

Definition at line 64 of file xmg.h.

Definition at line 61 of file xmg.h.

Definition at line 66 of file xmg.h.

The transparency color in the RGB and transparency blocks.

In the output surface, the transparent color is black with zero alpha. So the images are effectively pre-multiplied alpha.

Definition at line 73 of file xmg.h.

Definition at line 60 of file xmg.h.


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


Generated on Sat Mar 16 2019 05:07:00 for ResidualVM by doxygen 1.7.1
curved edge   curved edge