Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Member Functions | Protected Attributes
cat::PNGTokenizer Class Reference

#include <LoadPNG.hpp>

Inheritance diagram for cat::PNGTokenizer:

List of all members.

Public Member Functions

 PNGTokenizer (const string &path, bool requirePOTS)
virtual ~PNGTokenizer ()

Protected Member Functions

void onBKGD ()
void onCHRM ()
void onGAMA ()
void onHIST ()
void onICCP ()
void onIDAT (u8 *data, u32 len)
void onIEND ()
void onIHDR (PNG_IHDR *infohdr)
virtual void onImage (u32 *image, u32 newWidth, u32 newHeight)
void onITXT ()
void onPHYS ()
void onPLTE (PNG_PLTE *c_palette)
void onSBIT ()
bool onSection (char type[4], u8 data[], u32 len)
void onSPLT ()
void onSRGB ()
void onTEXT ()
void onTIME ()
void onTRNS_Color2 (u16 red, u16 green, u16 blue)
void onTRNS_Color3 (u8 trans[256], u16 len)
void onZTXT ()
void rasterizeImage (u8 *image)

Protected Attributes

u16 bpp
PNG_IHDR header
int lastZlibResult
u8obuf
u32 olen
u32 palette [256]
bool requirePOTS
u8 trans_blue
u8 trans_green
u8 trans_red
z_stream zstream

Detailed Description

Definition at line 100 of file LoadPNG.hpp.


Constructor & Destructor Documentation

cat::PNGTokenizer::PNGTokenizer ( const string &  path,
bool  requirePOTS 
)
virtual cat::PNGTokenizer::~PNGTokenizer ( ) [virtual]

Member Function Documentation

void cat::PNGTokenizer::onBKGD ( ) [protected]
void cat::PNGTokenizer::onCHRM ( ) [protected]
void cat::PNGTokenizer::onGAMA ( ) [protected]
void cat::PNGTokenizer::onHIST ( ) [protected]
void cat::PNGTokenizer::onICCP ( ) [protected]
void cat::PNGTokenizer::onIDAT ( u8 data,
u32  len 
) [protected]
void cat::PNGTokenizer::onIEND ( ) [protected]
void cat::PNGTokenizer::onIHDR ( PNG_IHDR *  infohdr) [protected]
virtual void cat::PNGTokenizer::onImage ( u32 image,
u32  newWidth,
u32  newHeight 
) [protected, virtual]
void cat::PNGTokenizer::onITXT ( ) [protected]
void cat::PNGTokenizer::onPHYS ( ) [protected]
void cat::PNGTokenizer::onPLTE ( PNG_PLTE *  c_palette) [protected]
void cat::PNGTokenizer::onSBIT ( ) [protected]
bool cat::PNGTokenizer::onSection ( char  type[4],
u8  data[],
u32  len 
) [protected, virtual]
void cat::PNGTokenizer::onSPLT ( ) [protected]
void cat::PNGTokenizer::onSRGB ( ) [protected]
void cat::PNGTokenizer::onTEXT ( ) [protected]
void cat::PNGTokenizer::onTIME ( ) [protected]
void cat::PNGTokenizer::onTRNS_Color2 ( u16  red,
u16  green,
u16  blue 
) [protected]
void cat::PNGTokenizer::onTRNS_Color3 ( u8  trans[256],
u16  len 
) [protected]
void cat::PNGTokenizer::onZTXT ( ) [protected]
void cat::PNGTokenizer::rasterizeImage ( u8 image) [protected]

Member Data Documentation

Definition at line 111 of file LoadPNG.hpp.

PNG_IHDR cat::PNGTokenizer::header [protected]

Definition at line 110 of file LoadPNG.hpp.

Definition at line 106 of file LoadPNG.hpp.

Definition at line 104 of file LoadPNG.hpp.

Definition at line 105 of file LoadPNG.hpp.

u32 cat::PNGTokenizer::palette[256] [protected]

Definition at line 112 of file LoadPNG.hpp.

Definition at line 108 of file LoadPNG.hpp.

Definition at line 113 of file LoadPNG.hpp.

Definition at line 113 of file LoadPNG.hpp.

Definition at line 113 of file LoadPNG.hpp.

z_stream cat::PNGTokenizer::zstream [protected]

Definition at line 103 of file LoadPNG.hpp.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net