LLImageWorker Class Reference

#include <llimageworker.h>

Inheritance diagram for LLImageWorker:

Inheritance graph
[legend]
Collaboration diagram for LLImageWorker:

Collaboration graph
[legend]

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::initClass ( LLWorkerThread workerthread  )  [static]

Definition at line 44 of file llimageworker.cpp.

References sWorkerThread.

Referenced by LLAppViewer::initThreads().

Here is the caller graph for this function:

void LLImageWorker::cleanupClass (  )  [static]

Definition at line 50 of file llimageworker.cpp.

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

Definition at line 43 of file llimageworker.h.

References sWorkerThread.

Referenced by LLGLTexMemBar::draw().

Here is the caller graph for this function:

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

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

Definition at line 175 of file llimageworker.cpp.

References LLImageDXT::getMipData(), IMG_CODEC_DXT, mFormattedImage, and requestDecodedAuxData().

Referenced by LLTextureFetchWorker::decodeImage().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLImageWorker::releaseDecodedData (  ) 

void LLImageWorker::cancelDecode (  ) 

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.

Here is the call graph for this function:

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

Implements LLWorkerClass.

Definition at line 133 of file llimageworker.cpp.

References mDecodedType.


Member Data Documentation

Definition at line 65 of file llimageworker.h.

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

Definition at line 66 of file llimageworker.h.

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

Definition at line 67 of file llimageworker.h.

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

Definition at line 68 of file llimageworker.h.

Referenced by doWork().

Definition at line 71 of file llimageworker.h.

Referenced by requestDecodedAuxData().

Definition at line 72 of file llimageworker.h.

Referenced by doWork().

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

Definition at line 75 of file llimageworker.h.

Referenced by getWorkerThread(), and initClass().

S32 LLImageWorker::sCount = 0 [static]

Definition at line 78 of file llimageworker.h.

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


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

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