LodePNG::Encoder Class Reference

#include <lodepng.h>

Collaboration diagram for LodePNG::Encoder:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void encode (std::vector< unsigned char > &out, const unsigned char *image, unsigned long w, unsigned long h)
void encode (std::vector< unsigned char > &out, const std::vector< unsigned char > &image, unsigned long w, unsigned long h)
void setSettings (const Settings &settings)
const SettingsgetSettings () const
SettingsgetSettings ()
void setInfoPng (const InfoPng &info)
const InfoPnggetInfoPng () const
InfoPnggetInfoPng ()
void setInfoRaw (const InfoRaw &infoRaw)
const InfoRawgetInfoRaw () const
InfoRawgetInfoRaw ()
bool hasError () const
int getError () const
 Encoder ()

Private Member Functions

void resetParameters ()
void addChunk (std::vector< unsigned char > &out, const std::string &chunkName, unsigned char *data, size_t length)
void writeSignature (std::vector< unsigned char > &out)
void writeChunk_tEXt (std::vector< unsigned char > &out, const std::string &keyword, const std::string &textstring)
void writeChunk_IHDR (std::vector< unsigned char > &out, unsigned long w, unsigned long h, unsigned long bitDepth, unsigned long colorType)
void writeChunk_PLTE (std::vector< unsigned char > &out, const Info &info)
void writeChunk_tRNS (std::vector< unsigned char > &out, const Info &info)
void writeChunk_IDAT (std::vector< unsigned char > &out, const std::vector< unsigned char > &data)
void writeChunk_IEND (std::vector< unsigned char > &out)
void writeChunk_bKGD (std::vector< unsigned char > &out, const InfoPng &info)
void filterScanline (unsigned char *out, const unsigned char *scanline, const unsigned char *prevline, size_t length, size_t bytewidth, int filterType)
void filter (std::vector< unsigned char > &out, const unsigned char *image, unsigned long size, unsigned long w, unsigned long h)
void dontFilter (std::vector< unsigned char > &out, const unsigned char *image, unsigned long size, unsigned long w, unsigned long h)

Private Attributes

InfoPng user_infoPng
InfoPng infoPng
Settings settings
InfoRaw infoRaw
int error

Classes

struct  Settings


Constructor & Destructor Documentation

LodePNG::Encoder::Encoder (  ) 


Member Function Documentation

void LodePNG::Encoder::encode ( std::vector< unsigned char > &  out,
const unsigned char *  image,
unsigned long  w,
unsigned long  h 
)

Here is the call graph for this function:

void LodePNG::Encoder::encode ( std::vector< unsigned char > &  out,
const std::vector< unsigned char > &  image,
unsigned long  w,
unsigned long  h 
)

Here is the call graph for this function:

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

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

Encoder::Settings & LodePNG::Encoder::getSettings (  ) 

void LodePNG::Encoder::setInfoPng ( const InfoPng info  ) 

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

InfoPng & LodePNG::Encoder::getInfoPng (  ) 

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

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

InfoRaw & LodePNG::Encoder::getInfoRaw (  ) 

bool LodePNG::Encoder::hasError (  )  const

int LodePNG::Encoder::getError (  )  const

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

void LodePNG::Encoder::addChunk ( std::vector< unsigned char > &  out,
const std::string &  chunkName,
unsigned char *  data,
size_t  length 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::writeSignature ( std::vector< unsigned char > &  out  )  [private]

void LodePNG::Encoder::writeChunk_tEXt ( std::vector< unsigned char > &  out,
const std::string &  keyword,
const std::string &  textstring 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::writeChunk_IHDR ( std::vector< unsigned char > &  out,
unsigned long  w,
unsigned long  h,
unsigned long  bitDepth,
unsigned long  colorType 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::writeChunk_PLTE ( std::vector< unsigned char > &  out,
const Info info 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::writeChunk_tRNS ( std::vector< unsigned char > &  out,
const Info info 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::writeChunk_IDAT ( std::vector< unsigned char > &  out,
const std::vector< unsigned char > &  data 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::writeChunk_IEND ( std::vector< unsigned char > &  out  )  [private]

Here is the call graph for this function:

void LodePNG::Encoder::writeChunk_bKGD ( std::vector< unsigned char > &  out,
const InfoPng info 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::filterScanline ( unsigned char *  out,
const unsigned char *  scanline,
const unsigned char *  prevline,
size_t  length,
size_t  bytewidth,
int  filterType 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::filter ( std::vector< unsigned char > &  out,
const unsigned char *  image,
unsigned long  size,
unsigned long  w,
unsigned long  h 
) [private]

Here is the call graph for this function:

void LodePNG::Encoder::dontFilter ( std::vector< unsigned char > &  out,
const unsigned char *  image,
unsigned long  size,
unsigned long  w,
unsigned long  h 
) [private]

Here is the call graph for this function:


Member Data Documentation

int LodePNG::Encoder::error [private]


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

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