#include <llimagejpeg.h>


Public Member Functions | |
| LLImageJPEG () | |
| BOOL | updateData () |
| BOOL | decode (LLImageRaw *raw_image, F32 decode_time) |
| BOOL | encode (const LLImageRaw *raw_image, F32 encode_time) |
| 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::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.

| BOOL LLImageJPEG::decode | ( | LLImageRaw * | raw_image, | |
| F32 | decode_time | |||
| ) | [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.

| BOOL LLImageJPEG::encode | ( | const LLImageRaw * | raw_image, | |
| F32 | encode_time | |||
| ) | [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.

| void LLImageJPEG::setEncodeQuality | ( | S32 | q | ) | [inline] |
| S32 LLImageJPEG::getEncodeQuality | ( | ) | [inline] |
| void LLImageJPEG::encodeInitDestination | ( | j_compress_ptr | cinfo | ) | [static] |
Definition at line 321 of file llimagejpeg.cpp.
Referenced by encode().

| boolean LLImageJPEG::encodeEmptyOutputBuffer | ( | j_compress_ptr | cinfo | ) | [static] |
| void LLImageJPEG::encodeTermDestination | ( | j_compress_ptr | cinfo | ) | [static] |
Definition at line 383 of file llimagejpeg.cpp.
References S32.
Referenced by encode().

| void LLImageJPEG::decodeInitSource | ( | j_decompress_ptr | cinfo | ) | [static] |
Definition at line 139 of file llimagejpeg.cpp.
Referenced by decode(), and updateData().

| 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::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().

| void LLImageJPEG::errorExit | ( | j_common_ptr | cinfo | ) | [static] |
Definition at line 394 of file llimagejpeg.cpp.
Referenced by decode(), encode(), and updateData().

| 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::errorOutputMessage | ( | j_common_ptr | cinfo | ) | [static] |
Definition at line 444 of file llimagejpeg.cpp.
References llendl, and llwarns.
Referenced by decode(), encode(), and updateData().

| static BOOL LLImageJPEG::decompress | ( | LLImageJPEG * | imagep | ) | [static] |
U8* LLImageJPEG::mOutputBuffer [protected] |
S32 LLImageJPEG::mOutputBufferSize [protected] |
S32 LLImageJPEG::mEncodeQuality [protected] |
Definition at line 85 of file llimagejpeg.h.
Referenced by encode(), getEncodeQuality(), and setEncodeQuality().
jmp_buf LLImageJPEG::mSetjmpBuffer [protected] |
1.5.5