Exiv2::PngChunk Class Reference

Stateless parser class for data in PNG chunk format. Images use this class to decode and encode PNG-based data. More...

#include <pngchunk.hpp>

List of all members.

Static Public Member Functions

void decode (Image *pImage, const byte *pData, long size, int *outWidth, int *outHeight)
 Decode PNG chunk metadata from a data buffer pData of length size into pImage.


Detailed Description

Stateless parser class for data in PNG chunk format. Images use this class to decode and encode PNG-based data.


Member Function Documentation

void Exiv2::PngChunk::decode Image pImage,
const byte pData,
long  size,
int *  outWidth,
int *  outHeight
[static]
 

Decode PNG chunk metadata from a data buffer pData of length size into pImage.

Parameters:
pImage Pointer to the image to hold the metadata
pData Pointer to the data buffer. Must point to PNG chunk data; no checks are performed.
size Length of the data buffer.
outWidth Integer pointer to be set to the width of the image.
outHeight Integer pointer to be set to the height of the image.


The documentation for this class was generated from the following files:
Generated on Sun Jun 22 13:06:48 2008 for Exiv2 by  doxygen 1.3.9.1