LLImagePNG Class Reference

#include <llimagepng.h>

Inheritance diagram for LLImagePNG:

Inheritance graph
[legend]
Collaboration diagram for LLImagePNG:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLImagePNG ()
BOOL updateData ()
BOOL decode (LLImageRaw *raw_image, F32 decode_time=0.0)
BOOL encode (const LLImageRaw *raw_image, F32 encode_time=0.0)

Protected Member Functions

 ~LLImagePNG ()

Private Attributes

U8mTmpWriteBuffer

Detailed Description

Definition at line 37 of file llimagepng.h.


Constructor & Destructor Documentation

LLImagePNG::~LLImagePNG (  )  [protected]

Definition at line 49 of file llimagepng.cpp.

References mTmpWriteBuffer.

LLImagePNG::LLImagePNG (  ) 

Definition at line 43 of file llimagepng.cpp.


Member Function Documentation

BOOL LLImagePNG::decode ( LLImageRaw raw_image,
F32  decode_time = 0.0 
) [virtual]

Implements LLImageFormatted.

Definition at line 88 of file llimagepng.cpp.

References FALSE, LLImageBase::getData(), LLImageBase::getDataSize(), LLPngWrapper::getErrorMessage(), llassert_always, LLPngWrapper::readPng(), LLImageBase::resetLastError(), LLImageBase::setLastError(), and TRUE.

BOOL LLImagePNG::encode ( const LLImageRaw raw_image,
F32  encode_time = 0.0 
) [virtual]

Implements LLImageFormatted.

Definition at line 114 of file llimagepng.cpp.

References LLImageFormatted::allocateData(), FALSE, LLImageBase::getComponents(), LLImageBase::getData(), LLPngWrapper::getErrorMessage(), LLPngWrapper::getFinalSize(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert_always, mTmpWriteBuffer, LLImageBase::resetLastError(), LLImageBase::setLastError(), LLImageBase::setSize(), TRUE, and LLPngWrapper::writePng().

BOOL LLImagePNG::updateData (  )  [virtual]

Implements LLImageFormatted.

Definition at line 60 of file llimagepng.cpp.

References FALSE, LLImageBase::getData(), LLImageBase::getDataSize(), LLPngWrapper::getErrorMessage(), LLPngWrapper::ImageInfo::mComponents, LLPngWrapper::ImageInfo::mHeight, LLPngWrapper::ImageInfo::mWidth, NULL, LLPngWrapper::readPng(), LLImageBase::resetLastError(), LLImageBase::setLastError(), LLImageBase::setSize(), and TRUE.


Member Data Documentation

U8* LLImagePNG::mTmpWriteBuffer [private]

Definition at line 50 of file llimagepng.h.

Referenced by encode(), and ~LLImagePNG().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:25 2010 for Second Life Viewer by  doxygen 1.4.7