LLImageJPEG Class Reference

#include <llimagejpeg.h>

Inheritance diagram for LLImageJPEG:

Inheritance graph
[legend]
Collaboration diagram for LLImageJPEG:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLImageJPEG ()
BOOL updateData ()
BOOL decode (LLImageRaw *raw_image, F32 time=0.0)
BOOL encode (const LLImageRaw *raw_image, F32 time=0.0)
void setEncodeQuality (S32 q)
S32 getEncodeQuality ()

Static Public Member Functions

static void encodeInitDestination (j_compress_ptr cinfo)
static boolean encodeEmptyOutputBuffer (j_compress_ptr cinfo)
static void encodeTermDestination (j_compress_ptr cinfo)
static void decodeInitSource (j_decompress_ptr cinfo)
static boolean decodeFillInputBuffer (j_decompress_ptr cinfo)
static void decodeSkipInputData (j_decompress_ptr cinfo, long num_bytes)
static void decodeTermSource (j_decompress_ptr cinfo)
static void errorExit (j_common_ptr cinfo)
static void errorEmitMessage (j_common_ptr cinfo, int msg_level)
static void errorOutputMessage (j_common_ptr cinfo)
static BOOL decompress (LLImageJPEG *imagep)

Protected Member Functions

virtual ~LLImageJPEG ()

Protected Attributes

U8mOutputBuffer
S32 mOutputBufferSize
S32 mEncodeQuality
jmp_buf mSetjmpBuffer

Detailed Description

Definition at line 49 of file llimagejpeg.h.


Constructor & Destructor Documentation

LLImageJPEG::~LLImageJPEG (  )  [protected, virtual]

Definition at line 47 of file llimagejpeg.cpp.

References llassert, and mOutputBuffer.

LLImageJPEG::LLImageJPEG (  ) 

Definition at line 38 of file llimagejpeg.cpp.


Member Function Documentation

BOOL LLImageJPEG::decode ( LLImageRaw raw_image,
F32  time = 0.0 
) [virtual]

Implements LLImageFormatted.

Definition at line 180 of file llimagejpeg.cpp.

References decodeFillInputBuffer(), decodeInitSource(), decodeSkipInputData(), decodeTermSource(), errorEmitMessage(), errorExit(), errorOutputMessage(), FALSE, LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getDataSize(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert_always, NULL, LLImageBase::resetLastError(), LLImageRaw::resize(), S32, LLImageBase::setLastError(), LLImageBase::setSize(), and TRUE.

boolean LLImageJPEG::decodeFillInputBuffer ( j_decompress_ptr  cinfo  )  [static]

Definition at line 145 of file llimagejpeg.cpp.

References TRUE.

Referenced by decode(), and updateData().

void LLImageJPEG::decodeInitSource ( j_decompress_ptr  cinfo  )  [static]

Definition at line 139 of file llimagejpeg.cpp.

Referenced by decode(), and updateData().

void LLImageJPEG::decodeSkipInputData ( j_decompress_ptr  cinfo,
long  num_bytes 
) [static]

Definition at line 165 of file llimagejpeg.cpp.

Referenced by decode(), and updateData().

void LLImageJPEG::decodeTermSource ( j_decompress_ptr  cinfo  )  [static]

Definition at line 174 of file llimagejpeg.cpp.

Referenced by decode(), and updateData().

static BOOL LLImageJPEG::decompress ( LLImageJPEG imagep  )  [static]

BOOL LLImageJPEG::encode ( const LLImageRaw raw_image,
F32  time = 0.0 
) [virtual]

Implements LLImageFormatted.

Definition at line 456 of file llimagejpeg.cpp.

References encodeEmptyOutputBuffer(), encodeInitDestination(), encodeTermDestination(), errorEmitMessage(), errorExit(), errorOutputMessage(), FALSE, LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert_always, mEncodeQuality, mOutputBuffer, mOutputBufferSize, mSetjmpBuffer, NULL, LLImageBase::resetLastError(), S32, LLImageBase::setLastError(), LLImageBase::setSize(), and TRUE.

boolean LLImageJPEG::encodeEmptyOutputBuffer ( j_compress_ptr  cinfo  )  [static]

Definition at line 351 of file llimagejpeg.cpp.

References FALSE, llendl, llerrs, S32, and TRUE.

Referenced by encode().

void LLImageJPEG::encodeInitDestination ( j_compress_ptr  cinfo  )  [static]

Definition at line 321 of file llimagejpeg.cpp.

Referenced by encode().

void LLImageJPEG::encodeTermDestination ( j_compress_ptr  cinfo  )  [static]

Definition at line 383 of file llimagejpeg.cpp.

References S32.

Referenced by encode().

void LLImageJPEG::errorEmitMessage ( j_common_ptr  cinfo,
int  msg_level 
) [static]

Definition at line 417 of file llimagejpeg.cpp.

Referenced by decode(), encode(), and updateData().

void LLImageJPEG::errorExit ( j_common_ptr  cinfo  )  [static]

Definition at line 394 of file llimagejpeg.cpp.

Referenced by decode(), encode(), and updateData().

void LLImageJPEG::errorOutputMessage ( j_common_ptr  cinfo  )  [static]

Definition at line 444 of file llimagejpeg.cpp.

References llendl, and llwarns.

Referenced by decode(), encode(), and updateData().

S32 LLImageJPEG::getEncodeQuality (  )  [inline]

Definition at line 62 of file llimagejpeg.h.

References mEncodeQuality.

void LLImageJPEG::setEncodeQuality ( S32  q  )  [inline]

Definition at line 61 of file llimagejpeg.h.

References mEncodeQuality.

BOOL LLImageJPEG::updateData (  )  [virtual]

Implements LLImageFormatted.

Definition at line 53 of file llimagejpeg.cpp.

References decodeFillInputBuffer(), decodeInitSource(), decodeSkipInputData(), decodeTermSource(), errorEmitMessage(), errorExit(), errorOutputMessage(), FALSE, LLImageBase::getData(), LLImageBase::getDataSize(), NULL, LLImageBase::resetLastError(), LLImageBase::setLastError(), LLImageBase::setSize(), and TRUE.


Member Data Documentation

S32 LLImageJPEG::mEncodeQuality [protected]

Definition at line 85 of file llimagejpeg.h.

Referenced by encode(), getEncodeQuality(), and setEncodeQuality().

U8* LLImageJPEG::mOutputBuffer [protected]

Definition at line 82 of file llimagejpeg.h.

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

S32 LLImageJPEG::mOutputBufferSize [protected]

Definition at line 83 of file llimagejpeg.h.

Referenced by encode().

jmp_buf LLImageJPEG::mSetjmpBuffer [protected]

Definition at line 87 of file llimagejpeg.h.

Referenced by encode().


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