LLImageJ2C Class Reference

#include <llimagej2c.h>

Inheritance diagram for LLImageJ2C:

Inheritance graph
[legend]
Collaboration diagram for LLImageJ2C:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 39 of file llimagej2c.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

S32 LLImageJ2C::calcDataSize ( S32  discard_level = 0  )  [virtual]

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

S32 LLImageJ2C::calcDiscardLevelBytes ( S32  bytes  )  [virtual]

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]

Implements LLImageFormatted.

Definition at line 251 of file llimagej2c.cpp.

void LLImageJ2C::decodeFailed (  )  [protected]

Definition at line 431 of file llimagej2c.cpp.

References FALSE, and LLImageFormatted::mDecoding.

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]

Implements LLImageFormatted.

Definition at line 292 of file llimagej2c.cpp.

References NULL.

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]

Definition at line 67 of file llimagej2c.h.

References mMaxBytes.

S8 LLImageJ2C::getRawDiscardLevel (  )  [virtual]

Reimplemented from LLImageFormatted.

Definition at line 222 of file llimagej2c.cpp.

References mRawDiscardLevel.

BOOL LLImageJ2C::loadAndValidate ( const LLString &  filename  ) 

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

void LLImageJ2C::setMaxBytes ( S32  max_bytes  ) 

Definition at line 366 of file llimagej2c.cpp.

References mMaxBytes.

void LLImageJ2C::setRate ( F32  rate  ) 

Definition at line 361 of file llimagej2c.cpp.

References mRate.

void LLImageJ2C::setReversible ( const BOOL  reversible  ) 

Definition at line 371 of file llimagej2c.cpp.

References mReversible.

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

BOOL LLImageJ2C::validate ( U8 *  data,
U32  file_size 
)

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


Friends And Related Function Documentation

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]

Definition at line 78 of file llimagej2c.h.

Referenced by fallbackCreateLLImageJ2CImpl().


Member Data Documentation

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]

Definition at line 85 of file llimagej2c.h.

Referenced by calcDataSize(), and setRate().

S8 LLImageJ2C::mRawDiscardLevel [protected]

Definition at line 84 of file llimagej2c.h.

Referenced by getRawDiscardLevel(), and updateRawDiscardLevel().

BOOL LLImageJ2C::mReversible [protected]

Definition at line 86 of file llimagej2c.h.

Referenced by encode(), and setReversible().


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