LodePNG::Decoder Class Reference

#include <lodepng.h>

Collaboration diagram for LodePNG::Decoder:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Decoder ()
void decode (std::vector< unsigned char > &out, const unsigned char *in, unsigned long size)
void decode (std::vector< unsigned char > &out, const std::vector< unsigned char > &in)
void inspect (const unsigned char *in, unsigned long size)
void inspect (const std::vector< unsigned char > &in)
bool hasError () const
int getError () const
unsigned long getWidth () const
unsigned long getHeight () const
void setSettings (const Settings &settings)
const SettingsgetSettings () const
SettingsgetSettings ()
const InfoPnggetInfoPng () const
void setInfoRaw (const InfoRaw &infoRaw)
const InfoRawgetInfoRaw () const
InfoRawgetInfoRaw ()

Private Member Functions

void readPngHeader (const unsigned char *in, size_t inlength)
void unFilterScanline (unsigned char *recon, const unsigned char *scanline, const unsigned char *precon, size_t bytewidth, unsigned long filterType, size_t length)
void adam7Pass (unsigned char *out, unsigned char *scanlinen, unsigned char *scanlineo, const unsigned char *in, unsigned long w, size_t bytewidth, size_t passleft, size_t passtop, size_t spacex, size_t spacey, size_t passw, size_t passh, unsigned long bpp)
void resetParameters ()
void decodeGeneric (std::vector< unsigned char > &out, const unsigned char *in, unsigned long size)

Private Attributes

InfoPng infoPng
InfoRaw infoRaw
Settings settings
int error

Classes

struct  Settings


Constructor & Destructor Documentation

LodePNG::Decoder::Decoder (  ) 


Member Function Documentation

void LodePNG::Decoder::decode ( std::vector< unsigned char > &  out,
const unsigned char *  in,
unsigned long  size 
)

Here is the call graph for this function:

void LodePNG::Decoder::decode ( std::vector< unsigned char > &  out,
const std::vector< unsigned char > &  in 
)

Here is the call graph for this function:

void LodePNG::Decoder::inspect ( const unsigned char *  in,
unsigned long  size 
)

Here is the call graph for this function:

void LodePNG::Decoder::inspect ( const std::vector< unsigned char > &  in  ) 

Here is the call graph for this function:

bool LodePNG::Decoder::hasError (  )  const

int LodePNG::Decoder::getError (  )  const

unsigned long LodePNG::Decoder::getWidth (  )  const

unsigned long LodePNG::Decoder::getHeight (  )  const

void LodePNG::Decoder::setSettings ( const Settings settings  ) 

const Decoder::Settings & LodePNG::Decoder::getSettings (  )  const

Decoder::Settings & LodePNG::Decoder::getSettings (  ) 

const InfoPng & LodePNG::Decoder::getInfoPng (  )  const

void LodePNG::Decoder::setInfoRaw ( const InfoRaw infoRaw  ) 

const InfoRaw & LodePNG::Decoder::getInfoRaw (  )  const

InfoRaw & LodePNG::Decoder::getInfoRaw (  ) 

void LodePNG::Decoder::readPngHeader ( const unsigned char *  in,
size_t  inlength 
) [private]

Here is the call graph for this function:

void LodePNG::Decoder::unFilterScanline ( unsigned char *  recon,
const unsigned char *  scanline,
const unsigned char *  precon,
size_t  bytewidth,
unsigned long  filterType,
size_t  length 
) [private]

Here is the call graph for this function:

void LodePNG::Decoder::adam7Pass ( unsigned char *  out,
unsigned char *  scanlinen,
unsigned char *  scanlineo,
const unsigned char *  in,
unsigned long  w,
size_t  bytewidth,
size_t  passleft,
size_t  passtop,
size_t  spacex,
size_t  spacey,
size_t  passw,
size_t  passh,
unsigned long  bpp 
) [private]

Here is the call graph for this function:

void LodePNG::Decoder::resetParameters (  )  [private]

void LodePNG::Decoder::decodeGeneric ( std::vector< unsigned char > &  out,
const unsigned char *  in,
unsigned long  size 
) [private]

Here is the call graph for this function:


Member Data Documentation

int LodePNG::Decoder::error [private]


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

Generated on Thu Mar 19 19:36:25 2009 for CubicVR by  doxygen 1.5.6