#include <llimagejpeg.h>
Inheritance diagram for LLImageJPEG:


| 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 | |
| U8 * | mOutputBuffer | 
| S32 | mOutputBufferSize | 
| S32 | mEncodeQuality | 
| jmp_buf | mSetjmpBuffer | 
Definition at line 49 of file llimagejpeg.h.
| LLImageJPEG::~LLImageJPEG | ( | ) |  [protected, virtual] | 
| LLImageJPEG::LLImageJPEG | ( | ) | 
Definition at line 38 of file llimagejpeg.cpp.
| 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] | 
| void LLImageJPEG::decodeSkipInputData | ( | j_decompress_ptr | cinfo, | |
| long | num_bytes | |||
| ) |  [static] | 
| void LLImageJPEG::decodeTermSource | ( | j_decompress_ptr | cinfo | ) |  [static] | 
| 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] | 
| void LLImageJPEG::encodeInitDestination | ( | j_compress_ptr | cinfo | ) |  [static] | 
| void LLImageJPEG::encodeTermDestination | ( | j_compress_ptr | cinfo | ) |  [static] | 
| void LLImageJPEG::errorEmitMessage | ( | j_common_ptr | cinfo, | |
| int | msg_level | |||
| ) |  [static] | 
| void LLImageJPEG::errorExit | ( | j_common_ptr | cinfo | ) |  [static] | 
| 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] | 
| 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.
| S32 LLImageJPEG::mEncodeQuality  [protected] | 
Definition at line 85 of file llimagejpeg.h.
Referenced by encode(), getEncodeQuality(), and setEncodeQuality().
| U8* LLImageJPEG::mOutputBuffer  [protected] | 
| S32 LLImageJPEG::mOutputBufferSize  [protected] | 
| jmp_buf LLImageJPEG::mSetjmpBuffer  [protected] | 
 1.4.7
 1.4.7