LLImageBMP Class Reference

#include <llimagebmp.h>

Inheritance diagram for LLImageBMP:

Inheritance graph
[legend]
Collaboration diagram for LLImageBMP:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLImageBMP ()
BOOL updateData ()
BOOL decode (LLImageRaw *raw_image, F32 time=0.0)
BOOL encode (const LLImageRaw *raw_image, F32 time=0.0)

Protected Member Functions

virtual ~LLImageBMP ()
BOOL decodeColorTable8 (U8 *dst, U8 *src)
BOOL decodeColorMask16 (U8 *dst, U8 *src)
BOOL decodeTruecolor24 (U8 *dst, U8 *src)
BOOL decodeColorMask32 (U8 *dst, U8 *src)
U32 countTrailingZeros (U32 m)

Protected Attributes

S32 mColorPaletteColors
U8mColorPalette
S32 mBitmapOffset
S32 mBitsPerPixel
U32 mBitfieldMask [4]
BOOL mOriginAtTop

Detailed Description

Definition at line 39 of file llimagebmp.h.


Constructor & Destructor Documentation

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

Definition at line 94 of file llimagebmp.cpp.

References mColorPalette.

LLImageBMP::LLImageBMP (  ) 

LLImageBMP

Definition at line 79 of file llimagebmp.cpp.

References mBitfieldMask.


Member Function Documentation

U32 LLImageBMP::countTrailingZeros ( U32  m  )  [protected]

Definition at line 389 of file llimagebmp.cpp.

Referenced by decodeColorMask16(), and decodeColorMask32().

BOOL LLImageBMP::decode ( LLImageRaw raw_image,
F32  time = 0.0 
) [virtual]

Implements LLImageFormatted.

Definition at line 338 of file llimagebmp.cpp.

References decodeColorMask16(), decodeColorMask32(), decodeColorTable8(), decodeTruecolor24(), FALSE, LLImageBase::getData(), LLImageBase::getDataSize(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert_always, mBitmapOffset, mBitsPerPixel, mColorPaletteColors, mOriginAtTop, LLImageBase::resetLastError(), LLImageRaw::resize(), LLImageBase::setLastError(), and LLImageRaw::verticalFlip().

BOOL LLImageBMP::decodeColorMask16 ( U8 dst,
U8 src 
) [protected]

Definition at line 401 of file llimagebmp.cpp.

References countTrailingZeros(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mBitfieldMask, mBitsPerPixel, S32, and TRUE.

Referenced by decode().

BOOL LLImageBMP::decodeColorMask32 ( U8 dst,
U8 src 
) [protected]

Definition at line 437 of file llimagebmp.cpp.

References countTrailingZeros(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mBitfieldMask, mBitsPerPixel, S32, and TRUE.

Referenced by decode().

BOOL LLImageBMP::decodeColorTable8 ( U8 dst,
U8 src 
) [protected]

Definition at line 477 of file llimagebmp.cpp.

References LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mBitsPerPixel, mColorPalette, mColorPaletteColors, S32, and TRUE.

Referenced by decode().

BOOL LLImageBMP::decodeTruecolor24 ( U8 dst,
U8 src 
) [protected]

Definition at line 502 of file llimagebmp.cpp.

References LLImageBase::getComponents(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mBitsPerPixel, S32, and TRUE.

Referenced by decode().

BOOL LLImageBMP::encode ( const LLImageRaw raw_image,
F32  time = 0.0 
) [virtual]

Implements LLImageFormatted.

Definition at line 525 of file llimagebmp.cpp.

References LLImageFormatted::allocateData(), LLImageBase::getComponents(), LLImageBase::getData(), LLImageBase::getHeight(), LLImageBase::getWidth(), i, llassert, llassert_always, llendianswizzleone, llendl, llinfos, LLBMPHeader::mAlignmentPadding, LLBMPHeader::mBitsPerPixel, LLBMPHeader::mCompression, LLBMPHeader::mHeight, LLBMPHeader::mHorzPelsPerMeter, LLBMPHeader::mImageSize, LLBMPHeader::mNumColors, LLBMPHeader::mNumColorsImportant, LLBMPHeader::mPlanes, LLBMPHeader::mSize, LLBMPHeader::mVertPelsPerMeter, LLBMPHeader::mWidth, n, LLImageBase::resetLastError(), S32, LLImageBase::setSize(), and TRUE.

BOOL LLImageBMP::updateData (  )  [virtual]

Implements LLImageFormatted.

Definition at line 100 of file llimagebmp.cpp.

References FALSE, LLImageBase::getData(), LLImageBase::getDataSize(), height, llassert, llendianswizzleone, llendl, llerrs, mBitfieldMask, mBitmapOffset, mBitsPerPixel, mColorPalette, mColorPaletteColors, mOriginAtTop, LLImageBase::resetLastError(), S32, LLImageBase::setLastError(), LLImageBase::setSize(), TRUE, and width.


Member Data Documentation

U32 LLImageBMP::mBitfieldMask[4] [protected]

Definition at line 64 of file llimagebmp.h.

Referenced by decodeColorMask16(), decodeColorMask32(), LLImageBMP(), and updateData().

S32 LLImageBMP::mBitmapOffset [protected]

Definition at line 62 of file llimagebmp.h.

Referenced by decode(), and updateData().

S32 LLImageBMP::mBitsPerPixel [protected]

Definition at line 63 of file llimagebmp.h.

Referenced by decode(), decodeColorMask16(), decodeColorMask32(), decodeColorTable8(), decodeTruecolor24(), and updateData().

U8* LLImageBMP::mColorPalette [protected]

Definition at line 61 of file llimagebmp.h.

Referenced by decodeColorTable8(), updateData(), and ~LLImageBMP().

S32 LLImageBMP::mColorPaletteColors [protected]

Definition at line 60 of file llimagebmp.h.

Referenced by decode(), decodeColorTable8(), and updateData().

BOOL LLImageBMP::mOriginAtTop [protected]

Definition at line 65 of file llimagebmp.h.

Referenced by decode(), and updateData().


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