LLImageWorker Class Reference

#include <llimageworker.h>

Inheritance diagram for LLImageWorker:

Inheritance graph
Collaboration diagram for LLImageWorker:

Collaboration graph
List of all members.

Public Member Functions

 LLImageWorker (LLImageFormatted *image, U32 priority, S32 discard, LLPointer< LLResponder > responder)
 ~LLImageWorker ()
bool doWork (S32 param)
BOOL requestDecodedData (LLPointer< LLImageRaw > &raw, S32 discard=-1)
BOOL requestDecodedAuxData (LLPointer< LLImageRaw > &raw, S32 channel, S32 discard=-1)
void releaseDecodedData ()
void cancelDecode ()

Static Public Member Functions

static void initClass (LLWorkerThread *workerthread)
static void cleanupClass ()
static LLWorkerThreadgetWorkerThread ()

Static Public Attributes

static S32 sCount = 0

Protected Attributes

LLPointer< LLImageFormattedmFormattedImage
LLPointer< LLImageRawmDecodedImage
S32 mDecodedType
S32 mDiscardLevel

Static Protected Attributes

static LLWorkerThreadsWorkerThread = NULL

Private Member Functions

void startWork (S32 param)
void endWork (S32 param, bool aborted)

Private Attributes

U32 mPriority
LLPointer< LLRespondermResponder

Detailed Description

Definition at line 38 of file llimageworker.h.

Constructor & Destructor Documentation

LLImageWorker::LLImageWorker ( LLImageFormatted image,
U32  priority,
S32  discard,
LLPointer< LLResponder responder 

Definition at line 56 of file llimageworker.cpp.

References sCount.

LLImageWorker::~LLImageWorker (  ) 

Definition at line 69 of file llimageworker.cpp.

References mDecodedImage, mFormattedImage, NULL, and sCount.

Member Function Documentation

void LLImageWorker::cancelDecode (  ) 

void LLImageWorker::cleanupClass (  )  [static]

Definition at line 50 of file llimageworker.cpp.

bool LLImageWorker::doWork ( S32  param  )  [virtual]

Implements LLWorkerClass.

Definition at line 85 of file llimageworker.cpp.

References f, LLPointer< Type >::isNull(), mDecodedImage, mDecodedType, mDiscardLevel, mFormattedImage, mResponder, LLPointer< Type >::notNull(), and LLWorkerClass::wasAborted().

void LLImageWorker::endWork ( S32  param,
bool  aborted 
) [private, virtual]

Implements LLWorkerClass.

Definition at line 133 of file llimageworker.cpp.

References mDecodedType.

static LLWorkerThread* LLImageWorker::getWorkerThread (  )  [inline, static]

Definition at line 43 of file llimageworker.h.

References sWorkerThread.

Referenced by LLGLTexMemBar::draw().

void LLImageWorker::initClass ( LLWorkerThread workerthread  )  [static]

Definition at line 44 of file llimageworker.cpp.

References sWorkerThread.

Referenced by main().

void LLImageWorker::releaseDecodedData (  ) 

BOOL LLImageWorker::requestDecodedAuxData ( LLPointer< LLImageRaw > &  raw,
S32  channel,
S32  discard = -1 

Definition at line 144 of file llimageworker.cpp.

References LLWorkerClass::addWork(), LLWorkerClass::checkWork(), FALSE, LLWorkerClass::haveWork(), llassert_always, llendl, llerrs, mDecodedImage, mDecodedType, mFormattedImage, mPriority, NULL, and TRUE.

Referenced by LLTextureFetchWorker::decodeImage(), and requestDecodedData().

BOOL LLImageWorker::requestDecodedData ( LLPointer< LLImageRaw > &  raw,
S32  discard = -1 

Definition at line 175 of file llimageworker.cpp.

References IMG_CODEC_DXT, mFormattedImage, and requestDecodedAuxData().

Referenced by LLTextureFetchWorker::decodeImage().

void LLImageWorker::startWork ( S32  param  )  [private, virtual]

Implements LLWorkerClass.

Definition at line 79 of file llimageworker.cpp.

References LLPointer< Type >::isNull(), llassert_always, mDecodedImage, and mDecodedType.

Member Data Documentation

LLPointer<LLImageRaw> LLImageWorker::mDecodedImage [protected]

Definition at line 66 of file llimageworker.h.

Referenced by doWork(), requestDecodedAuxData(), startWork(), and ~LLImageWorker().

S32 LLImageWorker::mDecodedType [protected]

Definition at line 67 of file llimageworker.h.

Referenced by doWork(), endWork(), requestDecodedAuxData(), and startWork().

S32 LLImageWorker::mDiscardLevel [protected]

Definition at line 68 of file llimageworker.h.

Referenced by doWork().

LLPointer<LLImageFormatted> LLImageWorker::mFormattedImage [protected]

Definition at line 65 of file llimageworker.h.

Referenced by doWork(), requestDecodedAuxData(), requestDecodedData(), and ~LLImageWorker().

U32 LLImageWorker::mPriority [private]

Definition at line 71 of file llimageworker.h.

Referenced by requestDecodedAuxData().

LLPointer<LLResponder> LLImageWorker::mResponder [private]

Definition at line 72 of file llimageworker.h.

Referenced by doWork().

S32 LLImageWorker::sCount = 0 [static]

Definition at line 78 of file llimageworker.h.

Referenced by LLGLTexMemBar::draw(), LLImageWorker(), and ~LLImageWorker().

LLWorkerThread * LLImageWorker::sWorkerThread = NULL [static, protected]

Definition at line 75 of file llimageworker.h.

Referenced by getWorkerThread(), and initClass().

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