LLImageTGA Class Reference

#include <llimagetga.h>

Inheritance diagram for LLImageTGA:

Inheritance graph
[legend]
Collaboration diagram for LLImageTGA:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLImageTGA ()
 LLImageTGA (const LLString &file_name)
BOOL updateData ()
BOOL decode (LLImageRaw *raw_image, F32 decode_time=0.0)
BOOL encode (const LLImageRaw *raw_image, F32 encode_time=0.0)
BOOL decodeAndProcess (LLImageRaw *raw_image, F32 domain, F32 weight)

Protected Member Functions

virtual ~LLImageTGA ()

Private Member Functions

BOOL decodeTruecolor (LLImageRaw *raw_image, BOOL rle, BOOL flipped)
BOOL decodeTruecolorRle8 (LLImageRaw *raw_image)
BOOL decodeTruecolorRle15 (LLImageRaw *raw_image)
BOOL decodeTruecolorRle24 (LLImageRaw *raw_image)
BOOL decodeTruecolorRle32 (LLImageRaw *raw_image, BOOL &alpha_opaque)
void decodeTruecolorPixel15 (U8 *dst, const U8 *src)
BOOL decodeTruecolorNonRle (LLImageRaw *raw_image, BOOL &alpha_opaque)
BOOL decodeColorMap (LLImageRaw *raw_image, BOOL rle, BOOL flipped)
void decodeColorMapPixel8 (U8 *dst, const U8 *src)
void decodeColorMapPixel15 (U8 *dst, const U8 *src)
void decodeColorMapPixel24 (U8 *dst, const U8 *src)
void decodeColorMapPixel32 (U8 *dst, const U8 *src)
bool loadFile (const LLString &file_name)

Private Attributes

U32 mDataOffset
U8 mIDLength
U8 mColorMapType
U8 mImageType
U8 mColorMapIndexLo
U8 mColorMapIndexHi
U8 mColorMapLengthLo
U8 mColorMapLengthHi
U8 mColorMapDepth
U8 mXOffsetLo
U8 mXOffsetHi
U8 mYOffsetLo
U8 mYOffsetHi
U8 mWidthLo
U8 mWidthHi
U8 mHeightLo
U8 mHeightHi
U8 mPixelSize
U8 mAttributeBits
U8 mOriginRightBit
U8 mOriginTopBit
U8 mInterleave
U8mColorMap
S32 mColorMapStart
S32 mColorMapLength
S32 mColorMapBytesPerEntry
BOOL mIs15Bit

Static Private Attributes

static const U8 s5to8bits [32]


Detailed Description

Definition at line 39 of file llimagetga.h.


Constructor & Destructor Documentation

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

Definition at line 81 of file llimagetga.cpp.

References mColorMap.

LLImageTGA::LLImageTGA (  ) 

Definition at line 60 of file llimagetga.cpp.

LLImageTGA::LLImageTGA ( const LLString file_name  ) 

Definition at line 70 of file llimagetga.cpp.

References loadFile().

Here is the call graph for this function:


Member Function Documentation

BOOL LLImageTGA::updateData (  )  [virtual]

BOOL LLImageTGA::decode ( LLImageRaw raw_image,
F32  decode_time = 0.0 
) [virtual]

BOOL LLImageTGA::encode ( const LLImageRaw raw_image,
F32  encode_time = 0.0 
) [virtual]

BOOL LLImageTGA::decodeAndProcess ( LLImageRaw raw_image,
F32  domain,
F32  weight 
)

BOOL LLImageTGA::decodeTruecolor ( LLImageRaw raw_image,
BOOL  rle,
BOOL  flipped 
) [private]

BOOL LLImageTGA::decodeTruecolorRle8 ( LLImageRaw raw_image  )  [private]

Definition at line 942 of file llimagetga.cpp.

References FALSE, LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getDataSize(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mDataOffset, and TRUE.

Referenced by decodeTruecolor().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLImageTGA::decodeTruecolorRle15 ( LLImageRaw raw_image  )  [private]

Definition at line 823 of file llimagetga.cpp.

References decodeTruecolorPixel15(), FALSE, LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getDataSize(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mDataOffset, mIs15Bit, and TRUE.

Referenced by decodeTruecolor().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLImageTGA::decodeTruecolorRle24 ( LLImageRaw raw_image  )  [private]

Definition at line 882 of file llimagetga.cpp.

References FALSE, LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getDataSize(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mDataOffset, and TRUE.

Referenced by decodeTruecolor().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLImageTGA::decodeTruecolorRle32 ( LLImageRaw raw_image,
BOOL alpha_opaque 
) [private]

Definition at line 744 of file llimagetga.cpp.

References FALSE, LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getDataSize(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mDataOffset, and TRUE.

Referenced by decodeTruecolor().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLImageTGA::decodeTruecolorPixel15 ( U8 dst,
const U8 src 
) [inline, private]

Definition at line 47 of file llimagetga.cpp.

References s5to8bits.

Referenced by decodeColorMapPixel15(), decodeTruecolorNonRle(), and decodeTruecolorRle15().

Here is the caller graph for this function:

BOOL LLImageTGA::decodeTruecolorNonRle ( LLImageRaw raw_image,
BOOL alpha_opaque 
) [private]

Definition at line 412 of file llimagetga.cpp.

References decodeTruecolorPixel15(), FALSE, LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getHeight(), LLImageBase::getWidth(), mDataOffset, mIs15Bit, S32, and TRUE.

Referenced by decodeTruecolor().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLImageTGA::decodeColorMap ( LLImageRaw raw_image,
BOOL  rle,
BOOL  flipped 
) [private]

void LLImageTGA::decodeColorMapPixel8 ( U8 dst,
const U8 src 
) [private]

Definition at line 469 of file llimagetga.cpp.

References llclamp(), mColorMap, mColorMapLength, mColorMapStart, and S32.

Referenced by decodeColorMap().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLImageTGA::decodeColorMapPixel15 ( U8 dst,
const U8 src 
) [private]

Definition at line 475 of file llimagetga.cpp.

References decodeTruecolorPixel15(), llclamp(), mColorMap, mColorMapLength, mColorMapStart, and S32.

Referenced by decodeColorMap().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLImageTGA::decodeColorMapPixel24 ( U8 dst,
const U8 src 
) [private]

Definition at line 481 of file llimagetga.cpp.

References llclamp(), mColorMap, mColorMapLength, mColorMapStart, and S32.

Referenced by decodeColorMap().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLImageTGA::decodeColorMapPixel32 ( U8 dst,
const U8 src 
) [private]

Definition at line 489 of file llimagetga.cpp.

References llclamp(), mColorMap, mColorMapLength, mColorMapStart, and S32.

Referenced by decodeColorMap().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLImageTGA::loadFile ( const LLString file_name  )  [private]

Definition at line 1116 of file llimagetga.cpp.

References LLImageFormatted::allocateData(), LLImageFormatted::deleteData(), LLFile::fopen(), llendl, llwarns, S32, LLStringBase< char >::toLower(), and updateData().

Referenced by LLImageTGA().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 80 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 81 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 82 of file llimagetga.h.

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

Definition at line 83 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 84 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 85 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 86 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 87 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 88 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 89 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 90 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 91 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 92 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 93 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 94 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 95 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 96 of file llimagetga.h.

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

Definition at line 97 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 98 of file llimagetga.h.

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

Definition at line 99 of file llimagetga.h.

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

Definition at line 100 of file llimagetga.h.

Referenced by encode(), and updateData().

Definition at line 105 of file llimagetga.h.

Referenced by decodeColorMap(), and updateData().

const U8 LLImageTGA::s5to8bits [static, private]

Initial value:

 
        {
                0,   8,  16,  25,  33,  41,  49,  58,
           66,  74,  82,  90,  99, 107, 115, 123,
          132, 140, 148, 156, 165, 173, 181, 189,
          197, 206, 214, 222, 230, 239, 247, 255
        }

Definition at line 109 of file llimagetga.h.

Referenced by decodeTruecolorPixel15().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:49:51 2008 for SecondLife by  doxygen 1.5.5