#include <llimagej2c.h>
Inheritance diagram for LLImageJ2C:
Public Member Functions | |
LLImageJ2C () | |
BOOL | updateData () |
BOOL | decode (LLImageRaw *raw_imagep, F32 decode_time=0.0) |
BOOL | decode (LLImageRaw *raw_imagep, F32 decode_time, S32 first_channel, S32 max_channel_count) |
BOOL | encode (const LLImageRaw *raw_imagep, F32 encode_time=0.0) |
S32 | calcHeaderSize () |
S32 | calcDataSize (S32 discard_level=0) |
S32 | calcDiscardLevelBytes (S32 bytes) |
S8 | getRawDiscardLevel () |
BOOL | encode (const LLImageRaw *raw_imagep, const char *comment_text, F32 encode_time=0.0) |
BOOL | validate (U8 *data, U32 file_size) |
BOOL | loadAndValidate (const LLString &filename) |
void | setReversible (const BOOL reversible) |
void | setRate (F32 rate) |
void | setMaxBytes (S32 max_bytes) |
S32 | getMaxBytes () const |
Static Public Member Functions | |
static S32 | calcHeaderSizeJ2C () |
static S32 | calcDataSizeJ2C (S32 w, S32 h, S32 comp, S32 discard_level, F32 rate=0.f) |
static void | openDSO () |
static void | closeDSO () |
static std::string | getEngineInfo () |
Protected Member Functions | |
virtual | ~LLImageJ2C () |
void | decodeFailed () |
void | updateRawDiscardLevel () |
Protected Attributes | |
S32 | mMaxBytes |
S8 | mRawDiscardLevel |
F32 | mRate |
BOOL | mReversible |
LLImageJ2CImpl * | mImpl |
Friends | |
class | LLImageJ2CImpl |
class | LLImageJ2COJ |
class | LLImageJ2CKDU |
Definition at line 39 of file llimagej2c.h.
LLImageJ2C::~LLImageJ2C | ( | ) | [protected, virtual] |
Definition at line 200 of file llimagej2c.cpp.
References fallbackDestroyLLImageJ2CImpl(), j2cimpl_destroy_func, and mImpl.
LLImageJ2C::LLImageJ2C | ( | ) |
Definition at line 176 of file llimagej2c.cpp.
References fallbackCreateLLImageJ2CImpl(), j2cimpl_create_func, and mImpl.
Reimplemented from LLImageFormatted.
Definition at line 332 of file llimagej2c.cpp.
References calcDataSizeJ2C(), LLImageBase::getComponents(), LLImageBase::getHeight(), LLImageBase::getWidth(), and mRate.
Referenced by calcDiscardLevelBytes().
S32 LLImageJ2C::calcDataSizeJ2C | ( | S32 | w, | |
S32 | h, | |||
S32 | comp, | |||
S32 | discard_level, | |||
F32 | rate = 0.f | |||
) | [static] |
Definition at line 311 of file llimagej2c.cpp.
References calcHeaderSizeJ2C(), f, llmax(), and S32.
Referenced by calcDataSize(), and LLTextureFetch::createRequest().
Reimplemented from LLImageFormatted.
Definition at line 337 of file llimagej2c.cpp.
References calcDataSize(), llassert, MAX_DISCARD_LEVEL, and S32.
Referenced by updateData(), and updateRawDiscardLevel().
S32 LLImageJ2C::calcHeaderSize | ( | ) | [virtual] |
Reimplemented from LLImageFormatted.
Definition at line 327 of file llimagej2c.cpp.
References calcHeaderSizeJ2C().
S32 LLImageJ2C::calcHeaderSizeJ2C | ( | ) | [static] |
Definition at line 305 of file llimagej2c.cpp.
Referenced by calcDataSizeJ2C(), and calcHeaderSize().
void LLImageJ2C::closeDSO | ( | ) | [static] |
Definition at line 161 of file llimagej2c.cpp.
References j2cimpl_dso_handle, and j2cimpl_dso_memory_pool.
Referenced by cleanup_app().
BOOL LLImageJ2C::decode | ( | LLImageRaw * | raw_imagep, | |
F32 | decode_time, | |||
S32 | first_channel, | |||
S32 | max_channel_count | |||
) | [virtual] |
Reimplemented from LLImageFormatted.
Definition at line 257 of file llimagej2c.cpp.
References LLImageJ2CImpl::decodeImpl(), LLImageRaw::deleteData(), FALSE, LLImageBase::getData(), LLImageBase::getDataSize(), LLImageFormatted::mDecoding, mImpl, LLImageBase::mMemType, LLImageBase::resetLastError(), LLImageBase::setLastError(), TRUE, and updateRawDiscardLevel().
BOOL LLImageJ2C::decode | ( | LLImageRaw * | raw_imagep, | |
F32 | decode_time = 0.0 | |||
) | [virtual] |
void LLImageJ2C::decodeFailed | ( | ) | [protected] |
BOOL LLImageJ2C::encode | ( | const LLImageRaw * | raw_imagep, | |
const char * | comment_text, | |||
F32 | encode_time = 0.0 | |||
) |
Definition at line 298 of file llimagej2c.cpp.
References LLImageJ2CImpl::encodeImpl(), mImpl, LLImageBase::mMemType, and mReversible.
BOOL LLImageJ2C::encode | ( | const LLImageRaw * | raw_imagep, | |
F32 | encode_time = 0.0 | |||
) | [virtual] |
std::string LLImageJ2C::getEngineInfo | ( | ) | [static] |
Definition at line 168 of file llimagej2c.cpp.
References fallbackEngineInfoLLImageJ2CImpl(), and j2cimpl_engineinfo_func.
Referenced by main().
S32 LLImageJ2C::getMaxBytes | ( | ) | const [inline] |
S8 LLImageJ2C::getRawDiscardLevel | ( | ) | [virtual] |
Reimplemented from LLImageFormatted.
Definition at line 222 of file llimagej2c.cpp.
References mRawDiscardLevel.
Definition at line 377 of file llimagej2c.cpp.
References FALSE, ll_apr_file_open(), LL_APR_RB, LLImageBase::resetLastError(), s, S32, LLImageBase::setLastError(), and validate().
void LLImageJ2C::openDSO | ( | ) | [static] |
Definition at line 61 of file llimagej2c.cpp.
References LLDir::findFile(), gDirUtilp, LLDir::getAppRODataDir(), LLDir::getExecutableDir(), j2cimpl_create_func, j2cimpl_destroy_func, j2cimpl_dso_handle, j2cimpl_dso_memory_pool, j2cimpl_engineinfo_func, and NULL.
Referenced by main().
BOOL LLImageJ2C::updateData | ( | ) | [virtual] |
Implements LLImageFormatted.
Definition at line 227 of file llimagej2c.cpp.
References calcDiscardLevelBytes(), FALSE, LLImageBase::getData(), LLImageBase::getDataSize(), LLImageJ2CImpl::getMetadata(), mImpl, LLImageBase::resetLastError(), S32, LLImageFormatted::setDiscardLevel(), LLImageBase::setLastError(), and TRUE.
Referenced by validate().
void LLImageJ2C::updateRawDiscardLevel | ( | ) | [protected] |
Definition at line 436 of file llimagej2c.cpp.
References calcDiscardLevelBytes(), LLImageFormatted::mDiscardLevel, mMaxBytes, and mRawDiscardLevel.
Referenced by decode().
Definition at line 410 of file llimagej2c.cpp.
References FALSE, LLImageBase::getData(), LLImageBase::getDataSize(), LLImageJ2CImpl::getMetadata(), mImpl, LLImageBase::mMemType, LLImageFormatted::setData(), LLImageBase::setLastError(), and updateData().
Referenced by loadAndValidate().
friend class LLImageJ2CImpl [friend] |
Definition at line 77 of file llimagej2c.h.
friend class LLImageJ2CKDU [friend] |
Definition at line 79 of file llimagej2c.h.
friend class LLImageJ2COJ [friend] |
LLImageJ2CImpl* LLImageJ2C::mImpl [protected] |
Definition at line 87 of file llimagej2c.h.
Referenced by decode(), encode(), LLImageJ2C(), updateData(), validate(), and ~LLImageJ2C().
S32 LLImageJ2C::mMaxBytes [protected] |
Definition at line 83 of file llimagej2c.h.
Referenced by getMaxBytes(), setMaxBytes(), and updateRawDiscardLevel().
F32 LLImageJ2C::mRate [protected] |
S8 LLImageJ2C::mRawDiscardLevel [protected] |
Definition at line 84 of file llimagej2c.h.
Referenced by getRawDiscardLevel(), and updateRawDiscardLevel().
BOOL LLImageJ2C::mReversible [protected] |