#include <llimagebmp.h>
Inheritance diagram for LLImageBMP:
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 |
U8 * | mColorPalette |
S32 | mBitmapOffset |
S32 | mBitsPerPixel |
U32 | mBitfieldMask [4] |
BOOL | mOriginAtTop |
Definition at line 39 of file llimagebmp.h.
LLImageBMP::~LLImageBMP | ( | ) | [protected, virtual] |
LLImageBMP::LLImageBMP | ( | ) |
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().
Definition at line 401 of file llimagebmp.cpp.
References countTrailingZeros(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mBitfieldMask, mBitsPerPixel, S32, and TRUE.
Referenced by decode().
Definition at line 437 of file llimagebmp.cpp.
References countTrailingZeros(), LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mBitfieldMask, mBitsPerPixel, S32, and TRUE.
Referenced by decode().
Definition at line 477 of file llimagebmp.cpp.
References LLImageBase::getHeight(), LLImageBase::getWidth(), llassert, mBitsPerPixel, mColorPalette, mColorPaletteColors, S32, and TRUE.
Referenced by decode().
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.
U32 LLImageBMP::mBitfieldMask[4] [protected] |
Definition at line 64 of file llimagebmp.h.
Referenced by decodeColorMask16(), decodeColorMask32(), LLImageBMP(), and updateData().
S32 LLImageBMP::mBitmapOffset [protected] |
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] |