LLViewerImageList Class Reference

#include <llviewerimagelist.h>

Inheritance diagram for LLViewerImageList:

Inheritance graph
[legend]
Collaboration diagram for LLViewerImageList:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::set< LLPointer<
LLViewerImage > > 
image_list_t

Public Member Functions

 LLViewerImageList ()
 ~LLViewerImageList ()
LLImageGLgetUIImageByID (const LLUUID &id, BOOL clamped=TRUE)
void init ()
void shutdown ()
void dump ()
void destroyGL (BOOL save_state=TRUE)
void restoreGL ()
LLViewerImagegetImage (const LLString &filename, const LLUUID &image_id, BOOL usemipmap=TRUE, BOOL level_immediate=FALSE)
LLViewerImagegetImage (const LLUUID &image_id, BOOL usemipmap=TRUE, BOOL level_immediate=FALSE)
LLViewerImagegetImageFromFile (const LLString &filename, const LLUUID &image_id, BOOL usemipmap, BOOL level_immediate, LLGLint internal_format, LLGLenum primary_format)
LLViewerImagegetImageFromUUID (const LLUUID &image_id, BOOL usemipmap, BOOL level_immediate, LLGLint internal_format, LLGLenum primary_format, LLHost request_from_host=LLHost())
LLViewerImagegetImageFromHost (const LLUUID &image_id, LLHost host)
LLViewerImagehasImage (const LLUUID &image_id)
void addImage (LLViewerImage *image)
void deleteImage (LLViewerImage *image)
void addImageToList (LLViewerImage *image)
void removeImageFromList (LLViewerImage *image)
void updateMovieImage (const LLUUID &image_id, BOOL active)
void dirtyImage (LLViewerImage *image)
void updateImages (F32 max_time)
void decodeAllImages (F32 max_decode_time)
void handleIRCallback (void **data, const S32 number)
void setUpdateStats (BOOL b)
S32 getMaxResidentTexMem () const
S32 getVideoMemorySetting () const
S32 getNumImages ()
void updateMaxResidentTexMem (S32 max=-1, U32 fudge=0)
void doPreloadImages ()
void doPrefetchImages ()

Static Public Member Functions

static BOOL createUploadFile (const LLString &filename, const LLString &out_filename, const U8 codec)
static LLPointer< LLImageJ2CconvertToUploadFile (LLPointer< LLImageRaw > raw_image)
static void processImageNotInDatabase (LLMessageSystem *msg, void **user_data)
static S32 calcMaxTextureRAM ()
static void receiveImageHeader (LLMessageSystem *msg, void **user_data)
static void receiveImagePacket (LLMessageSystem *msg, void **user_data)
static S32 getMaxVideoRamSetting (S32 max=-1)

Public Attributes

image_list_t mLoadingStreamList
image_list_t mCreateTextureList
image_list_t mCallbackList
std::set< LLViewerImage * > mDirtyTextureList
BOOL mForceResetTextureStats

Static Public Attributes

static U32 sTextureBits = 0
static U32 sTexturePackets = 0
static LLStat sNumImagesStat
static LLStat sNumRawImagesStat
static LLStat sGLTexMemStat
static LLStat sGLBoundMemStat
static LLStat sRawMemStat
static LLStat sFormattedMemStat

Private Types

typedef std::map< LLUUID,
LLPointer< LLViewerImage > > 
uuid_map_t
typedef std::set< LLPointer<
LLViewerImage >, LLViewerImage::Compare
image_priority_list_t
typedef std::vector< LLPointer<
LLViewerImage > > 
callback_data_t
typedef std::set< callback_data_t * > callback_data_list_t

Private Member Functions

 LOG_CLASS (LLViewerImageList)
LLViewerImagepreloadImage (const LLString &filename, const LLUUID &image_set_id, BOOL use_mips)
void updateImagesDecodePriorities ()
F32 updateImagesCreateTextures (F32 max_time)
F32 updateImagesFetchTextures (F32 max_time)
void updateImagesMediaStreams ()
void updateImagesUpdateStats ()

Private Attributes

uuid_map_t mUUIDMap
LLUUID mLastUpdateUUID
LLUUID mLastFetchUUID
image_priority_list_t mImageList
callback_data_list_t mIRCallbackData
BOOL mUpdateStats
S32 mMaxResidentTexMem
S32 mVideoMemorySetting
LLFrameTimer mForceDecodeTimer
LLUUID mMovieImageUUID
U8 mMovieImageHasMips
std::vector< LLPointer< LLViewerImage > > mPreloadedImages

Static Private Attributes

static S32 sNumImages = 0
static void(* sUUIDCallback )(void **, const LLUUID &) = NULL

Friends

class LLTextureView

Detailed Description

Definition at line 65 of file llviewerimagelist.h.


Member Typedef Documentation

typedef std::set< callback_data_t* > LLViewerImageList::callback_data_list_t [private]

Definition at line 182 of file llviewerimagelist.h.

typedef std::vector<LLPointer<LLViewerImage> > LLViewerImageList::callback_data_t [private]

Definition at line 181 of file llviewerimagelist.h.

typedef std::set<LLPointer<LLViewerImage> > LLViewerImageList::image_list_t

Definition at line 162 of file llviewerimagelist.h.

typedef std::set<LLPointer<LLViewerImage>, LLViewerImage::Compare> LLViewerImageList::image_priority_list_t [private]

Definition at line 178 of file llviewerimagelist.h.

typedef std::map< LLUUID, LLPointer<LLViewerImage> > LLViewerImageList::uuid_map_t [private]

Definition at line 173 of file llviewerimagelist.h.


Constructor & Destructor Documentation

LLViewerImageList::LLViewerImageList (  ) 

Definition at line 87 of file llviewerimagelist.cpp.

LLViewerImageList::~LLViewerImageList (  ) 

Definition at line 363 of file llviewerimagelist.cpp.

References llassert, and mIRCallbackData.


Member Function Documentation

void LLViewerImageList::addImage ( LLViewerImage image  ) 

Definition at line 630 of file llviewerimagelist.cpp.

References addImageToList(), LLViewerImage::getID(), hasImage(), llendl, llerrs, llwarning, mUUIDMap, and sNumImages.

Referenced by LLSurface::createSTexture(), LLSurface::createWaterTexture(), getImageFromUUID(), LLViewerImage::initClass(), and LLFloaterReporter::takeScreenshot().

void LLViewerImageList::addImageToList ( LLViewerImage image  ) 

Definition at line 608 of file llviewerimagelist.cpp.

References llassert, llendl, llerrs, llverify, mImageList, LLViewerImage::mInImageList, and TRUE.

Referenced by addImage(), and updateImagesDecodePriorities().

S32 LLViewerImageList::calcMaxTextureRAM (  )  [static]

Definition at line 1418 of file llviewerimagelist.cpp.

References clamp_rescale(), LLMemoryInfo::getPhysicalMemoryClamped(), SIXTEEN_MEG, and U32_MAX.

LLPointer< LLImageJ2C > LLViewerImageList::convertToUploadFile ( LLPointer< LLImageRaw raw_image  )  [static]

Definition at line 1157 of file llviewerimagelist.cpp.

References f, LLControlGroup::getBOOL(), gSavedSettings, LL_IMAGE_REZ_LOSSLESS_CUTOFF, LLViewerImage::MAX_IMAGE_SIZE_DEFAULT, and TRUE.

Referenced by createUploadFile(), and LLFloaterReporter::takeScreenshot().

BOOL LLViewerImageList::createUploadFile ( const LLString filename,
const LLString out_filename,
const U8  codec 
) [static]

Definition at line 1057 of file llviewerimagelist.cpp.

References convertToUploadFile(), FALSE, IMG_CODEC_BMP, IMG_CODEC_JPEG, IMG_CODEC_PNG, IMG_CODEC_TGA, llendl, llinfos, and TRUE.

Referenced by handle_compress_image(), and upload_new_resource().

void LLViewerImageList::decodeAllImages ( F32  max_decode_time  ) 

Definition at line 993 of file llviewerimagelist.cpp.

References f, FALSE, LLTimer::getElapsedTimeF32(), gImageDecodeThread, gNoRender, gTextureCache, gTextureFetch, llendl, llinfos, llmax(), mImageList, S32, TRUE, LLTextureFetch::update(), LLWorkerThread::update(), LLTextureCache::update(), and updateImagesCreateTextures().

Referenced by doPreloadImages(), and idle_startup().

void LLViewerImageList::deleteImage ( LLViewerImage image  ) 

Definition at line 651 of file llviewerimagelist.cpp.

References LLViewerImage::getID(), LLViewerImage::hasCallbacks(), llverify, mCallbackList, mUUIDMap, removeImageFromList(), and sNumImages.

Referenced by updateImagesDecodePriorities(), LLPanelLogin::~LLPanelLogin(), and LLSurface::~LLSurface().

void LLViewerImageList::destroyGL ( BOOL  save_state = TRUE  ) 

Definition at line 447 of file llviewerimagelist.cpp.

References LLImageGL::destroyGL().

Referenced by LLViewerWindow::stopGL().

void LLViewerImageList::dirtyImage ( LLViewerImage image  ) 

Definition at line 702 of file llviewerimagelist.cpp.

References mDirtyTextureList.

Referenced by LLViewerImage::updateFetch().

void LLViewerImageList::doPrefetchImages (  ) 

Definition at line 328 of file llviewerimagelist.cpp.

References LLViewerImage::addTextureStats(), LLSD::beginArray(), LLSD::endArray(), FALSE, LLSDSerialize::fromXML(), gDirUtilp, get_texture_list_name(), LLDir::getExpandedFilename(), getImage(), gPurgeCache, LL_PATH_PER_SL_ACCOUNT, llifstream, MIPMAP_TRUE, and S32.

Referenced by idle_startup().

void LLViewerImageList::doPreloadImages (  ) 

Definition at line 120 of file llviewerimagelist.cpp.

References decodeAllImages(), f, FALSE, gPreloadImages, IMG_SHOT, IMG_SMOKE_POOF, llendl, llinfos, LLUUID::null, preloadImage(), LLViewerImage::sMissingAssetImagep, LLViewerImage::sWhiteImagep, and TRUE.

Referenced by init().

void LLViewerImageList::dump (  ) 

Definition at line 430 of file llviewerimagelist.cpp.

References llendl, llinfos, and mImageList.

Referenced by handle_dump_image_list().

LLViewerImage * LLViewerImageList::getImage ( const LLUUID image_id,
BOOL  usemipmap = TRUE,
BOOL  level_immediate = FALSE 
)

Definition at line 552 of file llviewerimagelist.cpp.

References getImageFromUUID().

LLViewerImage * LLViewerImageList::getImage ( const LLString filename,
const LLUUID image_id,
BOOL  usemipmap = TRUE,
BOOL  level_immediate = FALSE 
)

Definition at line 489 of file llviewerimagelist.cpp.

References getImageFromFile().

Referenced by LLFloaterScriptDebug::addScriptLine(), LLUndoWearable::applyUndoRedo(), LLEmbeddedItems::bindEmbeddedChars(), LLTexLayerSetBuffer::bindTexture(), LLVOTextBubble::createDrawable(), doPrefetchImages(), LLWorldMapView::draw(), LLTextureCtrl::draw(), LLFloaterTexturePicker::draw(), LLProgressView::draw(), LLOverlayBar::draw(), LLHoverView::draw(), LLFastTimerView::draw(), LLConsole::draw(), LLNotifyBox::drawBackground(), LLViewerJointMesh::drawShape(), LLToolDragAndDrop::dropTextureAllFaces(), LLToolDragAndDrop::dropTextureOneFace(), get_item_icon(), LLTaskCategoryBridge::getIcon(), LLFolderBridge::getIcon(), LLItemBridge::getIcon(), LLNetwork2080PageBridge::getIcon(), LLNetwork2080PlayableContentBridge::getIcon(), LLNetwork2080FolderBridge::getIcon(), getImageFromFile(), getImageFromUUID(), getUIImageByID(), LLWorldMapView::initClass(), LLViewerImage::initClass(), LLVOAvatar::invalidateComposite(), LLDrawPoolWater::LLDrawPoolWater(), LLFolderViewItem::LLFolderViewItem(), LLJoystickCameraZoom::LLJoystickCameraZoom(), LLPanelLogin::LLPanelLogin(), LLToolGun::LLToolGun(), LLViewerParcelMgr::LLViewerParcelMgr(), LLViewerPartSourceScript::LLViewerPartSourceScript(), LLVisualParamHint::LLVisualParamHint(), LLVOAvatar::LLVOAvatar(), LLVOClouds::LLVOClouds(), LLVOSky::LLVOSky(), LLPreviewTexture::loadAsset(), LLVOAvatar::onCustomizeStart(), LLPanelEditWearable::onTextureCommit(), LLPanelLandObjects::postBuild(), preloadImage(), LLWorldMap::processMapBlockReply(), LLWorldMap::processMapLayerReply(), LLVOTree::processUpdateMessage(), receiveImageHeader(), receiveImagePacket(), LLWearable::removeFromAvatar(), LLVOAvatar::removeMissingBakedTextures(), LLVOCloth::render(), LLPipeline::renderGeom(), LLPipeline::renderHighlights(), LLFace::renderSelectedUV(), LLHUDText::renderText(), LLManip::renderXYZ(), LLVOSky::restoreGL(), LLStandardBumpmap::restoreGL(), LLMapLayerResponder::result(), LLSelectMgr::selectionRevertTextures(), LLSelectMgr::selectionSetImage(), LLCompass::setBkgndTexture(), LLVLComposition::setDetailTextureID(), LLViewerObject::setTE(), LLHorizontalCompass::setTexture(), LLCompass::setTexture(), LLVOVolume::setVolume(), LLGenePool::spawn(), LLViewerObject::unpackParticleSource(), LLViewerPartSourceChat::update(), LLViewerPartSourceBeam::update(), LLViewerPartSourceSpiral::update(), updateImagesMediaStreams(), LLVOAvatar::updateMeshTextures(), updateMovieImage(), LLSelectMgr::updateSilhouettes(), LLVOGrass::updateSpecies(), LLVOVolume::updateTextures(), LLPanelRegionTextureInfo::validateTextureSizes(), and LLWearable::writeToAvatar().

LLViewerImage * LLViewerImageList::getImageFromFile ( const LLString filename,
const LLUUID image_id,
BOOL  usemipmap,
BOOL  level_immediate,
LLGLint  internal_format,
LLGLenum  primary_format 
)

Definition at line 497 of file llviewerimagelist.cpp.

References getImage(), getImageFromUUID(), LLControlGroup::getString(), gNoRender, gViewerArt, IMG_DEFAULT, LLUUID::isNull(), llendl, llerrs, llwarns, LLUUID::notNull(), and TRUE.

Referenced by getImage().

LLViewerImage* LLViewerImageList::getImageFromHost ( const LLUUID image_id,
LLHost  host 
) [inline]

Definition at line 120 of file llviewerimagelist.h.

References FALSE, getImageFromUUID(), and TRUE.

Referenced by LLVOAvatar::onCustomizeEnd(), LLVOAvatar::setNewBakedTexture(), LLViewerObject::setTETextureCore(), and LLVOAvatar::updateMeshTextures().

LLViewerImage * LLViewerImageList::getImageFromUUID ( const LLUUID image_id,
BOOL  usemipmap,
BOOL  level_immediate,
LLGLint  internal_format,
LLGLenum  primary_format,
LLHost  request_from_host = LLHost() 
)

Definition at line 559 of file llviewerimagelist.cpp.

References addImage(), LLViewerImage::BOOST_UI, getImage(), hasImage(), IMG_DEFAULT, LLPointer< Type >::isNull(), LLUUID::isNull(), NULL, and TRUE.

Referenced by getImage(), getImageFromFile(), getImageFromHost(), LLColorSwatchCtrl::LLColorSwatchCtrl(), and LLDrawPoolTerrain::LLDrawPoolTerrain().

S32 LLViewerImageList::getMaxResidentTexMem (  )  const [inline]

Definition at line 143 of file llviewerimagelist.h.

References mMaxResidentTexMem.

Referenced by LLViewerImage::updateClass().

S32 LLViewerImageList::getMaxVideoRamSetting ( S32  max = -1  )  [static]

Definition at line 1174 of file llviewerimagelist.cpp.

References f, LLMemoryInfo::getPhysicalMemoryClamped(), gGLManager, gSysMemory, llendl, llmax(), llmin(), llwarns, LLGLManager::mVRAM, and S32.

Referenced by LLFeatureManager::applyRecommendedFeatures(), LLViewerWindow::LLViewerWindow(), LLPanelDisplay2::refreshEnabledState(), and updateMaxResidentTexMem().

S32 LLViewerImageList::getNumImages (  )  [inline]

Definition at line 145 of file llviewerimagelist.h.

References mImageList.

Referenced by LLGLTexMemBar::draw(), and output_statistics().

LLImageGL * LLViewerImageList::getUIImageByID ( const LLUUID id,
BOOL  clamped = TRUE 
) [virtual]

Implements LLImageProviderInterface.

Definition at line 464 of file llviewerimagelist.cpp.

References LLViewerImage::bindTexture(), LLViewerImage::BOOST_UI, getImage(), MIPMAP_FALSE, LLViewerImage::setBoostLevel(), LLImageGL::setClamp(), TRUE, and LLImageGL::unbindTexture().

Referenced by LLVoiceVisualizer::LLVoiceVisualizer().

S32 LLViewerImageList::getVideoMemorySetting (  )  const [inline]

Definition at line 144 of file llviewerimagelist.h.

References mVideoMemorySetting.

void LLViewerImageList::handleIRCallback ( void **  data,
const S32  number 
)

LLViewerImage * LLViewerImageList::hasImage ( const LLUUID image_id  ) 

Definition at line 600 of file llviewerimagelist.cpp.

References mUUIDMap, and NULL.

Referenced by addImage(), getImageFromUUID(), and processImageNotInDatabase().

void LLViewerImageList::init (  ) 

Definition at line 97 of file llviewerimagelist.cpp.

References doPreloadImages(), FALSE, gNoRender, mMaxResidentTexMem, mMovieImageHasMips, mUpdateStats, mVideoMemorySetting, sNumImages, TRUE, and updateMaxResidentTexMem().

Referenced by LLViewerWindow::LLViewerWindow().

LLViewerImageList::LOG_CLASS ( LLViewerImageList   )  [private]

LLViewerImage * LLViewerImageList::preloadImage ( const LLString filename,
const LLUUID image_set_id,
BOOL  use_mips 
) [private]

Definition at line 479 of file llviewerimagelist.cpp.

References LLImageGL::dontDiscard(), getImage(), mPreloadedImages, and TRUE.

Referenced by doPreloadImages().

void LLViewerImageList::processImageNotInDatabase ( LLMessageSystem msg,
void **  user_data 
) [static]

Definition at line 1401 of file llviewerimagelist.cpp.

References _PREHASH_ID, _PREHASH_ImageID, LLFastTimer::FTM_PROCESS_IMAGES, LLMessageSystem::getUUIDFast(), gImageList, hasImage(), LLViewerImage::setIsMissingAsset(), and t.

Referenced by register_viewer_callbacks().

void LLViewerImageList::receiveImageHeader ( LLMessageSystem msg,
void **  user_data 
) [static]

Definition at line 1272 of file llviewerimagelist.cpp.

References _PREHASH_Codec, _PREHASH_Data, _PREHASH_ID, _PREHASH_ImageData, _PREHASH_ImageID, _PREHASH_Packets, _PREHASH_Size, codec, LLFastTimer::FTM_PROCESS_IMAGES, LLMessageSystem::getBinaryDataFast(), getImage(), LLMessageSystem::getReceiveCompressedSize(), LLMessageSystem::getReceiveSize(), LLMessageSystem::getSender(), LLMessageSystem::getSenderIP(), LLMessageSystem::getSizeFast(), LLMessageSystem::getU16Fast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getU8Fast(), LLMessageSystem::getUUIDFast(), gImageList, gTextureFetch, llendl, llerrs, LLViewerImage::mLastPacketTimer, LLTextureFetch::receiveImageHeader(), LLFrameTimer::reset(), S32, sTextureBits, sTexturePackets, t, and u32_to_ip_string().

Referenced by register_viewer_callbacks().

void LLViewerImageList::receiveImagePacket ( LLMessageSystem msg,
void **  user_data 
) [static]

Definition at line 1335 of file llviewerimagelist.cpp.

References _PREHASH_Data, _PREHASH_ID, _PREHASH_ImageData, _PREHASH_ImageID, _PREHASH_Packet, LLFastTimer::FTM_PROCESS_IMAGES, LLMessageSystem::getBinaryDataFast(), getImage(), LLMessageSystem::getReceiveCompressedSize(), LLMessageSystem::getReceiveSize(), LLMessageSystem::getSender(), LLMessageSystem::getSenderIP(), LLMessageSystem::getSizeFast(), LLMessageSystem::getU16Fast(), LLMessageSystem::getUUIDFast(), gImageList, gTextureFetch, llendl, llerrs, LLViewerImage::mLastPacketTimer, MTUBYTES, LLMemType::MTYPE_APPFMTIMAGE, LLTextureFetch::receiveImagePacket(), LLFrameTimer::reset(), S32, sTextureBits, sTexturePackets, t, and u32_to_ip_string().

Referenced by register_viewer_callbacks().

void LLViewerImageList::removeImageFromList ( LLViewerImage image  ) 

Definition at line 619 of file llviewerimagelist.cpp.

References FALSE, llassert, llendl, llerrs, llverify, mImageList, and LLViewerImage::mInImageList.

Referenced by deleteImage(), and updateImagesDecodePriorities().

void LLViewerImageList::restoreGL (  ) 

Definition at line 452 of file llviewerimagelist.cpp.

References LLImageGL::restoreGL().

Referenced by LLViewerWindow::restoreGL().

void LLViewerImageList::setUpdateStats ( BOOL  b  )  [inline]

Definition at line 141 of file llviewerimagelist.h.

References mUpdateStats.

Referenced by LLViewerObjectList::updateApparentAngles().

void LLViewerImageList::shutdown (  ) 

Definition at line 368 of file llviewerimagelist.cpp.

References count, gDirUtilp, get_texture_list_name(), LLDir::getExpandedFilename(), LLHost::invalid, LL_PATH_PER_SL_ACCOUNT, llofstream, MAX_DISCARD_LEVEL, mCallbackList, mCreateTextureList, mImageList, mIRCallbackData, mLoadingStreamList, mPreloadedImages, mUUIDMap, S32, and LLSDSerialize::toPrettyXML().

Referenced by cleanup_app(), and LLViewerWindow::~LLViewerWindow().

void LLViewerImageList::updateImages ( F32  max_time  ) 

Definition at line 709 of file llviewerimagelist.cpp.

References LLStat::addValue(), LLPipeline::dirtyPoolObjectTextures(), f, LLFastTimer::FTM_IMAGE_MARK_DIRTY, gPipeline, llmax(), mCallbackList, mDirtyTextureList, LLImageGL::sBoundTextureMemory, sFormattedMemStat, sGLBoundMemStat, LLImageFormatted::sGlobalFormattedMemory, LLImageRaw::sGlobalRawMemory, LLImageGL::sGlobalTextureMemory, sGLTexMemStat, sNumImages, sNumImagesStat, sNumRawImagesStat, LLImageRaw::sRawImageCount, sRawMemStat, t, updateImagesCreateTextures(), updateImagesDecodePriorities(), updateImagesFetchTextures(), updateImagesMediaStreams(), and updateImagesUpdateStats().

Referenced by idle(), idle_startup(), and update_texture_fetch().

F32 LLViewerImageList::updateImagesCreateTextures ( F32  max_time  )  [private]

Definition at line 831 of file llviewerimagelist.cpp.

References LLViewerImage::createTexture(), LLFastTimer::FTM_IMAGE_CREATE, LLTimer::getElapsedTimeF32(), gGLManager, gNoRender, mCreateTextureList, LLGLManager::mIsDisabled, and t.

Referenced by decodeAllImages(), and updateImages().

void LLViewerImageList::updateImagesDecodePriorities (  )  [private]

Definition at line 747 of file llviewerimagelist.cpp.

References addImageToList(), deleteImage(), f, llmin(), mLastUpdateUUID, mUUIDMap, NULL, removeImageFromList(), and S32.

Referenced by updateImages().

F32 LLViewerImageList::updateImagesFetchTextures ( F32  max_time  )  [private]

Definition at line 859 of file llviewerimagelist.cpp.

References LLTimer::getElapsedTimeF32(), llmin(), mImageList, mLastFetchUUID, mUUIDMap, and S32.

Referenced by updateImages().

void LLViewerImageList::updateImagesMediaStreams (  )  [private]

Definition at line 910 of file llviewerimagelist.cpp.

References FALSE, getImage(), LLMediaEngine::getImageRaw(), LLMediaEngine::getImageUUID(), LLMediaEngine::getInstance(), LLMediaBase::getMediaHeight(), LLMediaEngine::getMediaRenderer(), LLMediaBase::getMediaWidth(), LLMediaBase::getTextureDepth(), LLMediaBase::getTextureFormatInternal(), LLMediaBase::getTextureFormatPrimary(), LLMediaBase::getTextureFormatSwapBytes(), LLMediaBase::getTextureFormatType(), LLMediaBase::getTextureHeight(), LLMediaBase::getTextureWidth(), gGLManager, gNoRender, llendl, llwarns, LLGLManager::mIsDisabled, LLImageRaw::setSubImage(), TRUE, LLMediaEngine::update(), and updateMovieImage().

Referenced by updateImages().

void LLViewerImageList::updateImagesUpdateStats (  )  [private]

Definition at line 978 of file llviewerimagelist.cpp.

References FALSE, mForceResetTextureStats, mImageList, and mUpdateStats.

Referenced by updateImages().

void LLViewerImageList::updateMaxResidentTexMem ( S32  max = -1,
U32  fudge = 0 
)

Definition at line 1237 of file llviewerimagelist.cpp.

References getMaxVideoRamSetting(), LLControlGroup::getS32(), gSavedSettings, llmax(), mMaxResidentTexMem, mVideoMemorySetting, S32, LLControlGroup::setS32(), VIDEO_CARD_FRAMEBUFFER_MEM, and VIDEO_CARD_MEM_SIZES.

Referenced by LLPipeline::bindScreenToTexture(), LLVideoMemoryListener::handleEvent(), and init().

void LLViewerImageList::updateMovieImage ( const LLUUID image_id,
BOOL  active 
)

Definition at line 667 of file llviewerimagelist.cpp.

References FALSE, getImage(), LLUUID::isNull(), mMovieImageHasMips, mMovieImageUUID, LLViewerImage::reinit(), LLUUID::setNull(), and TRUE.

Referenced by stop_video(), and updateImagesMediaStreams().


Friends And Related Function Documentation

friend class LLTextureView [friend]

Definition at line 69 of file llviewerimagelist.h.


Member Data Documentation

image_list_t LLViewerImageList::mCallbackList

Definition at line 165 of file llviewerimagelist.h.

Referenced by deleteImage(), LLViewerImage::doLoadedCallbacks(), LLViewerImage::setLoadedCallback(), shutdown(), and updateImages().

image_list_t LLViewerImageList::mCreateTextureList

Definition at line 164 of file llviewerimagelist.h.

Referenced by shutdown(), LLViewerImage::updateFetch(), and updateImagesCreateTextures().

std::set<LLViewerImage*> LLViewerImageList::mDirtyTextureList

Definition at line 168 of file llviewerimagelist.h.

Referenced by dirtyImage(), and updateImages().

LLFrameTimer LLViewerImageList::mForceDecodeTimer [private]

Definition at line 188 of file llviewerimagelist.h.

BOOL LLViewerImageList::mForceResetTextureStats

Definition at line 170 of file llviewerimagelist.h.

Referenced by display(), and updateImagesUpdateStats().

image_priority_list_t LLViewerImageList::mImageList [private]

Definition at line 179 of file llviewerimagelist.h.

Referenced by addImageToList(), decodeAllImages(), LLTextureView::draw(), dump(), getNumImages(), removeImageFromList(), shutdown(), updateImagesFetchTextures(), and updateImagesUpdateStats().

callback_data_list_t LLViewerImageList::mIRCallbackData [private]

Definition at line 183 of file llviewerimagelist.h.

Referenced by shutdown(), and ~LLViewerImageList().

LLUUID LLViewerImageList::mLastFetchUUID [private]

Definition at line 176 of file llviewerimagelist.h.

Referenced by updateImagesFetchTextures().

LLUUID LLViewerImageList::mLastUpdateUUID [private]

Definition at line 175 of file llviewerimagelist.h.

Referenced by updateImagesDecodePriorities().

image_list_t LLViewerImageList::mLoadingStreamList

Definition at line 163 of file llviewerimagelist.h.

Referenced by shutdown().

S32 LLViewerImageList::mMaxResidentTexMem [private]

Definition at line 186 of file llviewerimagelist.h.

Referenced by getMaxResidentTexMem(), init(), and updateMaxResidentTexMem().

U8 LLViewerImageList::mMovieImageHasMips [private]

Definition at line 191 of file llviewerimagelist.h.

Referenced by init(), and updateMovieImage().

LLUUID LLViewerImageList::mMovieImageUUID [private]

Definition at line 190 of file llviewerimagelist.h.

Referenced by updateMovieImage().

std::vector<LLPointer<LLViewerImage> > LLViewerImageList::mPreloadedImages [private]

Definition at line 193 of file llviewerimagelist.h.

Referenced by preloadImage(), and shutdown().

BOOL LLViewerImageList::mUpdateStats [private]

Definition at line 185 of file llviewerimagelist.h.

Referenced by init(), setUpdateStats(), and updateImagesUpdateStats().

uuid_map_t LLViewerImageList::mUUIDMap [private]

Definition at line 174 of file llviewerimagelist.h.

Referenced by addImage(), deleteImage(), hasImage(), shutdown(), updateImagesDecodePriorities(), and updateImagesFetchTextures().

S32 LLViewerImageList::mVideoMemorySetting [private]

Definition at line 187 of file llviewerimagelist.h.

Referenced by getVideoMemorySetting(), init(), and updateMaxResidentTexMem().

LLStat LLViewerImageList::sFormattedMemStat [static]

Definition at line 204 of file llviewerimagelist.h.

Referenced by init_stat_view(), and updateImages().

LLStat LLViewerImageList::sGLBoundMemStat [static]

Definition at line 202 of file llviewerimagelist.h.

Referenced by init_stat_view(), and updateImages().

LLStat LLViewerImageList::sGLTexMemStat [static]

Definition at line 201 of file llviewerimagelist.h.

Referenced by init_stat_view(), and updateImages().

S32 LLViewerImageList::sNumImages = 0 [static, private]

Definition at line 207 of file llviewerimagelist.h.

Referenced by addImage(), deleteImage(), init(), and updateImages().

LLStat LLViewerImageList::sNumImagesStat [static]

Definition at line 199 of file llviewerimagelist.h.

Referenced by init_stat_view(), and updateImages().

LLStat LLViewerImageList::sNumRawImagesStat [static]

Definition at line 200 of file llviewerimagelist.h.

Referenced by init_stat_view(), and updateImages().

LLStat LLViewerImageList::sRawMemStat [static]

Definition at line 203 of file llviewerimagelist.h.

Referenced by init_stat_view(), and updateImages().

U32 LLViewerImageList::sTextureBits = 0 [static]

Definition at line 196 of file llviewerimagelist.h.

Referenced by receiveImageHeader(), receiveImagePacket(), and update_statistics().

U32 LLViewerImageList::sTexturePackets = 0 [static]

Definition at line 197 of file llviewerimagelist.h.

Referenced by receiveImageHeader(), receiveImagePacket(), and update_statistics().

void(* LLViewerImageList::sUUIDCallback)(void **, const LLUUID &) = NULL [static, private]

Definition at line 65 of file llviewerimagelist.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:57 2010 for Second Life Viewer by  doxygen 1.4.7