LLViewerImage Class Reference

#include <llviewerimage.h>

Inheritance diagram for LLViewerImage:

Inheritance graph
[legend]
Collaboration diagram for LLViewerImage:

Collaboration graph
[legend]
List of all members.

Public Types

 MAX_IMAGE_SIZE_DEFAULT = 1024
 INVALID_DISCARD_LEVEL = 0x7fff
 BOOST_NONE = 0
 BOOST_AVATAR_BAKED = 1
 BOOST_AVATAR = 2
 BOOST_CLOUDS = 3
 BOOST_SCULPTED = 4
 BOOST_HIGH = 10
 BOOST_TERRAIN = 11
 BOOST_SELECTED = 12
 BOOST_HUD = 13
 BOOST_AVATAR_BAKED_SELF = 14
 BOOST_UI = 15
 BOOST_PREVIEW = 16
 BOOST_MAP = 17
 BOOST_MAP_LAYER = 18
 BOOST_AVATAR_SELF = 19
 BOOST_MAX_LEVEL
enum  { MAX_IMAGE_SIZE_DEFAULT = 1024, INVALID_DISCARD_LEVEL = 0x7fff }
enum  {
  BOOST_NONE = 0, BOOST_AVATAR_BAKED = 1, BOOST_AVATAR = 2, BOOST_CLOUDS = 3,
  BOOST_SCULPTED = 4, BOOST_HIGH = 10, BOOST_TERRAIN = 11, BOOST_SELECTED = 12,
  BOOST_HUD = 13, BOOST_AVATAR_BAKED_SELF = 14, BOOST_UI = 15, BOOST_PREVIEW = 16,
  BOOST_MAP = 17, BOOST_MAP_LAYER = 18, BOOST_AVATAR_SELF = 19, BOOST_MAX_LEVEL
}

Public Member Functions

 LLViewerImage (const LLUUID &id, BOOL usemipmaps=TRUE)
 LLViewerImage (const U32 width, const U32 height, const U8 components, BOOL usemipmaps)
 LLViewerImage (const LLImageRaw *raw, BOOL usemipmaps)
void dump ()
BOOL bind (const S32 stage=0) const
void reinit (BOOL usemipmaps=TRUE)
const LLUUIDgetID ()
void addTextureStats (F32 pixel_area) const
void addTextureStats (F32 pixel_area, F32 texel_area_ratio) const
void addTextureStats (F32 pixel_area, F32 texel_area_ratio, F32 cos_center_angle) const
void resetTextureStats (BOOL zero=FALSE)
void processTextureStats ()
void setLoadedCallback (loaded_callback_func cb, S32 discard_level, BOOL keep_imageraw, void *userdata)
BOOL createTexture (S32 usename=0)
BOOL needsAux () const
void setNeedsAux (const BOOL needs_aux)
void setDesiredDiscardLevel (S32 discard)
S32 getDesiredDiscardLevel ()
void setMinDiscardLevel (S32 discard)
void setTargetHost (LLHost host)
LLHost getTargetHost () const
void setBoostLevel (S32 level)
S32 getBoostLevel ()
F32 getDecodePriority () const
F32 calcDecodePriority ()
void setDecodePriority (F32 priority=-1.0f)
bool updateFetch ()
void setKnownDrawSize (S32 width, S32 height)
void setIsMissingAsset ()
BOOL isMissingAsset ()
bool hasCallbacks ()
bool doLoadedCallbacks ()

Static Public Member Functions

static void initClass ()
static void cleanupClass ()
static void updateClass (const F32 velocity, const F32 angular_velocity)
static BOOL bindTexture (LLImageGL *image, const U32 stage=0)
static F32 maxDecodePriority ()

Public Attributes

S32 mFullWidth
S32 mFullHeight
F32 mMaxVirtualSize
F32 mMaxCosAngle
F32 mTexelsPerImage
F32 mDiscardVirtualSize
S8 mInImageList
S8 mIsMediaTexture
S32 mRequestedDiscardLevel
F32 mRequestedDownloadPriority
S32 mFetchState
U32 mFetchPriority
F32 mDownloadProgress
F32 mFetchDeltaTime
F32 mRequestDeltaTime
S32 mDecodeFrame
S32 mVisibleFrame
LLFrameTimer mLastPacketTimer
LLFrameTimer mLastReferencedTimer

Static Public Attributes

static const U32 sCurrentFileVersion = 1
static LLPointer< LLViewerImagesMissingAssetImagep = NULL
static LLPointer< LLViewerImagesWhiteImagep = NULL
static LLPointer< LLImageGLsDefaultImagep = NULL
static LLPointer< LLViewerImagesSmokeImagep = NULL
static LLPointer< LLImageGLsNullImagep = NULL
static S32 sImageCount = 0
static LLTimer sEvaluationTimer
static F32 sDesiredDiscardBias = 0.f
static F32 sDesiredDiscardScale = 1.1f
static S32 sBoundTextureMemory = 0
static S32 sTotalTextureMemory = 0
static S32 sMaxBoundTextureMem = 0
static S32 sMaxTotalTextureMem = 0
static BOOL sDontLoadVolumeTextures = FALSE

Protected Member Functions

 ~LLViewerImage ()

Private Types

typedef std::list< LLLoadedCallbackEntry * > callback_list_t

Private Member Functions

 LOG_CLASS (LLViewerImage)
void cleanup ()
void init (bool firstinit)
LLImageRawcreateRawImage (S8 discard_level=0, BOOL allocate=FALSE)
void destroyRawImage ()

Private Attributes

LLUUID mID
S8 mDesiredDiscardLevel
S8 mMinDesiredDiscardLevel
S8 mNeedsCreateTexture
S8 mNeedsAux
S8 mDecodingAux
S8 mIsRawImageValid
S8 mHasFetcher
S8 mIsFetching
S8 mFullyLoaded
S8 mIsMissingAsset
S32 mKnownDrawWidth
S32 mKnownDrawHeight
F32 mDecodePriority
S32 mBoostLevel
callback_list_t mLoadedCallbackList
LLPointer< LLImageRawmRawImage
S32 mRawDiscardLevel
S32 mMinDiscardLevel
F32 mCalculatedDiscardLevel
LLPointer< LLImageRawmAuxRawImage
LLHost mTargetHost

Friends

class LLTextureBar
class LLTextureView

Classes

struct  Compare
struct  CompareByHostAndPriority
struct  CompareForRemoval
struct  CompareForWorstVisibility

Detailed Description

Definition at line 74 of file llviewerimage.h.


Member Typedef Documentation

typedef std::list<LLLoadedCallbackEntry*> LLViewerImage::callback_list_t [private]

Definition at line 350 of file llviewerimage.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
MAX_IMAGE_SIZE_DEFAULT 
INVALID_DISCARD_LEVEL 

Definition at line 171 of file llviewerimage.h.

anonymous enum

Enumerator:
BOOST_NONE 
BOOST_AVATAR_BAKED 
BOOST_AVATAR 
BOOST_CLOUDS 
BOOST_SCULPTED 
BOOST_HIGH 
BOOST_TERRAIN 
BOOST_SELECTED 
BOOST_HUD 
BOOST_AVATAR_BAKED_SELF 
BOOST_UI 
BOOST_PREVIEW 
BOOST_MAP 
BOOST_MAP_LAYER 
BOOST_AVATAR_SELF 
BOOST_MAX_LEVEL 

Definition at line 244 of file llviewerimage.h.


Constructor & Destructor Documentation

LLViewerImage::~LLViewerImage (  )  [protected]

Definition at line 293 of file llviewerimage.cpp.

References cleanup(), LLTextureFetch::deleteRequest(), getID(), gTextureFetch, mHasFetcher, and sImageCount.

LLViewerImage::LLViewerImage ( const LLUUID id,
BOOL  usemipmaps = TRUE 
)

Definition at line 196 of file llviewerimage.cpp.

References init(), and sImageCount.

Referenced by initClass().

LLViewerImage::LLViewerImage ( const U32  width,
const U32  height,
const U8  components,
BOOL  usemipmaps 
)

Definition at line 204 of file llviewerimage.cpp.

References FALSE, LLUUID::generate(), init(), mFullyLoaded, mID, mNeedsAux, sImageCount, and TRUE.

LLViewerImage::LLViewerImage ( const LLImageRaw raw,
BOOL  usemipmaps 
)

Definition at line 215 of file llviewerimage.cpp.

References FALSE, LLUUID::generate(), init(), mFullyLoaded, mID, mNeedsAux, sImageCount, and TRUE.


Member Function Documentation

void LLViewerImage::addTextureStats ( F32  pixel_area,
F32  texel_area_ratio,
F32  cos_center_angle 
) const

Definition at line 398 of file llviewerimage.cpp.

References f, and llclamp().

void LLViewerImage::addTextureStats ( F32  pixel_area,
F32  texel_area_ratio 
) const [inline]

Definition at line 203 of file llviewerimage.h.

References mMaxCosAngle, and mMaxVirtualSize.

void LLViewerImage::addTextureStats ( F32  pixel_area  )  const [inline]

Definition at line 195 of file llviewerimage.h.

References mMaxCosAngle, and mMaxVirtualSize.

Referenced by LLVOAvatar::addBakedTextureStats(), LLVOAvatar::addLocalTextureStats(), LLBumpImageList::addTextureStats(), LLViewerImageList::doPrefetchImages(), setKnownDrawSize(), LLVOVolume::updateTextures(), LLVOTextBubble::updateTextures(), LLVOGrass::updateTextures(), and LLVOClouds::updateTextures().

BOOL LLViewerImage::bind ( const S32  stage = 0  )  const [virtual]

Reimplemented from LLImageGL.

Definition at line 1143 of file llviewerimage.cpp.

References LLImageGL::bindTextureInternal(), gNoRender, LLPointer< Type >::isNull(), llendl, llwarns, mIsMissingAsset, sDefaultImagep, sMissingAssetImagep, sNullImagep, stop_glerror, and TRUE.

Referenced by LLTexLayerSetBuffer::bindTexture(), LLWorldMapView::draw(), LLViewerJointMesh::drawShape(), LLDrawPoolGlow::render(), LLFace::renderForSelect(), and LLVOAvatar::updateTextures().

static BOOL LLViewerImage::bindTexture ( LLImageGL image,
const U32  stage = 0 
) [inline, static]

Definition at line 85 of file llviewerimage.h.

References LLImageGL::bind(), and sDefaultImagep.

Referenced by LLFace::bindTexture(), LLDynamicTexture::bindTexture(), LLWorldMapView::draw(), LLProgressView::draw(), LLOverlayBar::draw(), LLNetMap::draw(), LLHoverView::draw(), LLFolderViewItem::draw(), LLSnapshotLivePreview::draw(), LLFastTimerView::draw(), LLColorSwatchCtrl::draw(), LLNotifyBox::drawBackground(), LLViewerJointShape::drawShape(), LLViewerImageList::getUIImageByID(), LLSnapshotLivePreview::onIdle(), LLWorldMap::processMapLayerReply(), LLVisualParamHint::render(), LLVOCloth::render(), render_disconnected_background(), LLViewerParcelMgr::renderCollisionSegments(), LLDrawPoolTerrain::renderFull2TU(), LLDrawPoolTerrain::renderFull4TU(), LLDrawPoolTerrain::renderFull4TUShader(), LLHUDIcon::renderIcon(), LLDrawPoolTerrain::renderOwnership(), LLDrawPoolWater::renderReflection(), LLFace::renderSelected(), LLFace::renderSelectedUV(), LLSelectMgr::renderSilhouettes(), LLHUDText::renderText(), LLDrawPoolTree::renderTree(), and LLVOVolume::setTexture().

F32 LLViewerImage::calcDecodePriority (  ) 

Definition at line 557 of file llviewerimage.cpp.

References BOOST_HIGH, f, fsqrtf, LLImageGL::getBoundRecently(), LLImageGL::getDiscardLevel(), LLImageGL::getDontDiscard(), gTextureFetch, llclamp(), MAX_DISCARD_LEVEL, mBoostLevel, LLTextureFetch::mDebugCount, LLTextureFetch::mDebugID, mDecodeFrame, mDecodePriority, mDesiredDiscardLevel, mID, mIsMissingAsset, mMaxCosAngle, LLImageGL::mMaxDiscardLevel, mMaxVirtualSize, mMinDiscardLevel, mNeedsCreateTexture, mVisibleFrame, and S32.

Referenced by setDecodePriority().

void LLViewerImage::cleanup (  )  [private, virtual]

Reimplemented from LLImageGL.

Definition at line 307 of file llviewerimage.cpp.

References LLImageGL::cleanup(), destroyRawImage(), FALSE, mLoadedCallbackList, NULL, and TRUE.

Referenced by reinit(), and ~LLViewerImage().

void LLViewerImage::cleanupClass (  )  [static]

Definition at line 130 of file llviewerimage.cpp.

References NULL, sDefaultImagep, sMissingAssetImagep, sNullImagep, sSmokeImagep, stop_glerror, and sWhiteImagep.

Referenced by LLViewerWindow::~LLViewerWindow().

LLImageRaw * LLViewerImage::createRawImage ( S8  discard_level = 0,
BOOL  allocate = FALSE 
) [private]

Definition at line 1186 of file llviewerimage.cpp.

References FALSE, LLImageGL::getHeight(), LLImageGL::getWidth(), llassert, llendl, llerrs, mAuxRawImage, LLImageGL::mComponents, mIsRawImageValid, mRawDiscardLevel, mRawImage, LLPointer< Type >::notNull(), NULL, and TRUE.

Referenced by doLoadedCallbacks().

BOOL LLViewerImage::createTexture ( S32  usename = 0  ) 

Definition at line 338 of file llviewerimage.cpp.

References LLImageGL::checkSize(), LLImageGL::createGLTexture(), destroyRawImage(), FALSE, gNoRender, LLPointer< Type >::isNull(), llendl, llerrs, mLoadedCallbackList, mNeedsCreateTexture, mRawDiscardLevel, mRawImage, setIsMissingAsset(), and TRUE.

Referenced by LLViewerImageList::updateImagesCreateTextures().

void LLViewerImage::destroyRawImage (  )  [private]

Definition at line 1210 of file llviewerimage.cpp.

References FALSE, INVALID_DISCARD_LEVEL, mAuxRawImage, mIsRawImageValid, mRawDiscardLevel, mRawImage, and NULL.

Referenced by cleanup(), createTexture(), doLoadedCallbacks(), and updateFetch().

bool LLViewerImage::doLoadedCallbacks (  ) 

Definition at line 921 of file llviewerimage.cpp.

References createRawImage(), destroyRawImage(), FALSE, LLImageGL::getDiscardLevel(), gImageList, isMissingAsset(), LLPointer< Type >::isNull(), llassert_always, llendl, llmin(), llwarns, mAuxRawImage, MAX_DISCARD_LEVEL, LLLoadedCallbackEntry::mCallback, LLViewerImageList::mCallbackList, LLLoadedCallbackEntry::mDesiredDiscard, mIsRawImageValid, LLLoadedCallbackEntry::mLastUsedDiscard, mLoadedCallbackList, LLImageGL::mMaxDiscardLevel, mNeedsAux, mNeedsCreateTexture, LLLoadedCallbackEntry::mNeedsImageRaw, mRawDiscardLevel, mRawImage, LLLoadedCallbackEntry::mUserData, LLPointer< Type >::notNull(), NULL, LLImageGL::readBackRaw(), S32, and TRUE.

void LLViewerImage::dump (  )  [virtual]

Reimplemented from LLImageGL.

Definition at line 279 of file llviewerimage.cpp.

References LLImageGL::dump(), llendl, llinfos, mFullHeight, mFullWidth, mID, mIsMissingAsset, and S32.

S32 LLViewerImage::getBoostLevel (  )  [inline]

Definition at line 265 of file llviewerimage.h.

References mBoostLevel.

F32 LLViewerImage::getDecodePriority (  )  const [inline]

Definition at line 267 of file llviewerimage.h.

References mDecodePriority.

Referenced by LLVOAvatar::dumpLocalTextures(), LLViewerImage::CompareByHostAndPriority::operator()(), LLViewerImage::Compare::operator()(), LLTextureBar::sort::operator()(), updateFetch(), and LLVOVolume::updateTextures().

S32 LLViewerImage::getDesiredDiscardLevel (  )  [inline]

Definition at line 236 of file llviewerimage.h.

References mDesiredDiscardLevel.

Referenced by updateFetch().

const LLUUID& LLViewerImage::getID (  )  [inline]

Definition at line 191 of file llviewerimage.h.

References mID.

Referenced by LLViewerImageList::addImage(), LLUndoWearable::applyUndoRedo(), LLDrawPoolBump::bindBumpMap(), LLVOAvatar::canGrabLocalTexture(), LLViewerImageList::deleteImage(), LLVOAvatar::dumpArchetypeXML(), LLVOAvatar::dumpAvatarTEs(), LLVOAvatar::dumpLocalTextures(), LLBumpImageList::getBrightnessDarknessImage(), LLViewerPartSource::getImageUUID(), LLPanelFace::getState(), LLVOAvatar::grabLocalTexture(), handle_selected_texture_info(), LLToolTexEyedropper::handleMouseDown(), LLVOAvatar::isFullyBaked(), LLGroupNotifyBox::LLGroupNotifyBox(), LLVOAvatar::onBakedTextureLoaded(), LLVOAvatar::onBakedTextureMasksLoaded(), LLVOAvatar::onCustomizeStart(), LLVOAvatar::onFirstTEMessageReceived(), LLVOAvatar::onLocalTextureLoaded(), LLPanelEditWearable::onTextureCommit(), LLTextureBar::sort_fetch::operator()(), LLTextureBar::sort::operator()(), LLVOAvatar::requestLayerSetUploads(), setIsMissingAsset(), LLPanelGroupNotices::setItem(), LLVOAvatar::setLocalTexture(), LLVOAvatar::setLocTexTE(), LLViewerObject::setTEImage(), LLVOAvatar::setupComposites(), LLPanelGroupNotices::showNotice(), updateFetch(), LLVOAvatar::updateMeshTextures(), LLVOAvatar::updateTextures(), LLVOAvatar::useBakedTexture(), and ~LLViewerImage().

LLHost LLViewerImage::getTargetHost (  )  const [inline]

Definition at line 242 of file llviewerimage.h.

References mTargetHost.

Referenced by updateFetch().

bool LLViewerImage::hasCallbacks (  )  [inline]

Definition at line 286 of file llviewerimage.h.

References mLoadedCallbackList.

Referenced by LLViewerImageList::deleteImage().

void LLViewerImage::init ( bool  firstinit  )  [private]

Definition at line 226 of file llviewerimage.cpp.

References BOOST_NONE, FALSE, LLHost::invalid, INVALID_DISCARD_LEVEL, MAX_DISCARD_LEVEL, mBoostLevel, mCalculatedDiscardLevel, mDecodeFrame, mDecodePriority, mDecodingAux, mDesiredDiscardLevel, mDiscardVirtualSize, mDownloadProgress, mFetchDeltaTime, mFetchPriority, mFetchState, mFullHeight, mFullWidth, mFullyLoaded, mHasFetcher, mInImageList, mIsFetching, mIsMediaTexture, mIsMissingAsset, mIsRawImageValid, mKnownDrawHeight, mKnownDrawWidth, mMaxCosAngle, mMaxVirtualSize, mMinDesiredDiscardLevel, mMinDiscardLevel, mNeedsAux, mNeedsCreateTexture, mRawDiscardLevel, mRequestedDiscardLevel, mRequestedDownloadPriority, mTargetHost, mTexelsPerImage, and mVisibleFrame.

Referenced by LLViewerImage(), and reinit().

void LLViewerImage::initClass (  )  [static]

Definition at line 84 of file llviewerimage.cpp.

References LLViewerImageList::addImage(), border, LLImageGL::createGLTexture(), LLImageGL::dontDiscard(), LLViewerImageList::getImage(), gImageList, i, IMG_DEFAULT, IMG_SMOKE, j, LLImageGL::LLImageGL(), LLViewerImage(), NULL, S32, sDefaultImagep, sNullImagep, sSmokeImagep, and TRUE.

Referenced by LLViewerWindow::LLViewerWindow().

BOOL LLViewerImage::isMissingAsset (  )  [inline]

Definition at line 284 of file llviewerimage.h.

References mIsMissingAsset.

Referenced by doLoadedCallbacks(), and LLWorldMapView::draw().

LLViewerImage::LOG_CLASS ( LLViewerImage   )  [private]

F32 LLViewerImage::maxDecodePriority (  )  [static]

Definition at line 661 of file llviewerimage.cpp.

Referenced by LLTextureFetchWorker::calcWorkPriority().

BOOL LLViewerImage::needsAux (  )  const [inline]

Definition at line 231 of file llviewerimage.h.

References mNeedsAux.

Referenced by updateFetch().

void LLViewerImage::processTextureStats (  ) 

Definition at line 429 of file llviewerimage.cpp.

References BOOST_AVATAR_SELF, BOOST_HIGH, BOOST_PREVIEW, BOOST_UI, f, FALSE, LLImageGL::getBoundRecently(), LLImageGL::getDiscardLevel(), LLImageGL::getUseMipMaps(), llabs(), llclamp(), llmin(), MAX_DISCARD_LEVEL, MAX_IMAGE_SIZE_DEFAULT, mBoostLevel, mCalculatedDiscardLevel, mDesiredDiscardLevel, mDiscardVirtualSize, LLImageGL::mDontDiscard, mFullHeight, mFullWidth, LLImageGL::mHeight, mKnownDrawHeight, mKnownDrawWidth, LLImageGL::mMaxDiscardLevel, mMaxVirtualSize, mMinDesiredDiscardLevel, mTexelsPerImage, LLImageGL::mTextureMemory, LLImageGL::mWidth, S32, sBoundTextureMemory, sDesiredDiscardBias, sDesiredDiscardScale, LLImageGL::setDiscardLevel(), sMaxBoundTextureMem, sMaxTotalTextureMem, sTotalTextureMemory, texmem_middle_bound_scale, and TRUE.

Referenced by setBoostLevel().

void LLViewerImage::reinit ( BOOL  usemipmaps = TRUE  ) 

Definition at line 327 of file llviewerimage.cpp.

References cleanup(), init(), LLImageGL::init(), and LLImageGL::setSize().

Referenced by LLViewerImageList::updateMovieImage().

void LLViewerImage::resetTextureStats ( BOOL  zero = FALSE  ) 

Definition at line 414 of file llviewerimage.cpp.

References mMaxCosAngle, and mMaxVirtualSize.

void LLViewerImage::setBoostLevel ( S32  level  ) 

Definition at line 679 of file llviewerimage.cpp.

References BOOST_HIGH, mBoostLevel, and processTextureStats().

Referenced by LLVOAvatar::addBakedTextureStats(), LLVOAvatar::addLocalTextureStats(), LLWorldMapView::draw(), LLViewerImageList::getUIImageByID(), LLVOClouds::LLVOClouds(), and LLVOVolume::updateTextures().

void LLViewerImage::setDecodePriority ( F32  priority = -1.0f  ) 

Definition at line 666 of file llviewerimage.cpp.

References calcDecodePriority(), f, llassert, mDecodePriority, and mInImageList.

void LLViewerImage::setDesiredDiscardLevel ( S32  discard  )  [inline]

Definition at line 235 of file llviewerimage.h.

References mDesiredDiscardLevel.

void LLViewerImage::setIsMissingAsset (  ) 

Definition at line 892 of file llviewerimage.cpp.

References LLTextureFetch::deleteRequest(), FALSE, getID(), gTextureFetch, mFetchPriority, mFetchState, mHasFetcher, mIsFetching, mIsMissingAsset, and TRUE.

Referenced by createTexture(), LLViewerImageList::processImageNotInDatabase(), and updateFetch().

void LLViewerImage::setKnownDrawSize ( S32  width,
S32  height 
)

Definition at line 1135 of file llviewerimage.cpp.

References addTextureStats(), mKnownDrawHeight, and mKnownDrawWidth.

Referenced by LLWorldMapView::draw().

void LLViewerImage::setLoadedCallback ( loaded_callback_func  cb,
S32  discard_level,
BOOL  keep_imageraw,
void userdata 
)

Definition at line 907 of file llviewerimage.cpp.

References gImageList, LLViewerImageList::mCallbackList, and mLoadedCallbackList.

Referenced by LLBumpImageList::getBrightnessDarknessImage(), LLVOAvatar::onFirstTEMessageReceived(), LLVOAvatar::setLocalTexture(), and LLVOAvatar::updateMeshTextures().

void LLViewerImage::setMinDiscardLevel ( S32  discard  )  [inline]

Definition at line 238 of file llviewerimage.h.

References llmin(), and mMinDesiredDiscardLevel.

Referenced by LLVOAvatar::setLocalTexture().

void LLViewerImage::setNeedsAux ( const BOOL  needs_aux  )  [inline]

Definition at line 232 of file llviewerimage.h.

References mNeedsAux.

Referenced by LLVOAvatar::onFirstTEMessageReceived(), and LLVOAvatar::updateMeshTextures().

void LLViewerImage::setTargetHost ( LLHost  host  )  [inline]

Definition at line 241 of file llviewerimage.h.

References mTargetHost.

void LLViewerImage::updateClass ( const F32  velocity,
const F32  angular_velocity 
) [static]

Definition at line 149 of file llviewerimage.cpp.

References discard_bias_delta, discard_delta_time, f, LLTimer::getElapsedTimeF32(), LLViewerImageList::getMaxResidentTexMem(), LLMemoryInfo::getPhysicalMemoryClamped(), gImageList, gSysMemory, llclamp(), min_non_tex_system_mem, LLTimer::reset(), S32, LLImageGL::sBoundTextureMemory, sBoundTextureMemory, sDesiredDiscardBias, sDesiredDiscardBiasMax, sDesiredDiscardBiasMin, sEvaluationTimer, LLImageGL::sGlobalTextureMemory, sMaxBoundTextureMem, sMaxTotalTextureMem, sTotalTextureMemory, and texmem_lower_bound_scale.

Referenced by idle().

bool LLViewerImage::updateFetch (  ) 

Definition at line 690 of file llviewerimage.cpp.

References c, LLTextureFetch::createRequest(), LLTextureFetch::deleteRequest(), destroyRawImage(), LLViewerImageList::dirtyImage(), f, FALSE, LLImageGL::getComponents(), getDecodePriority(), getDesiredDiscardLevel(), LLImageGL::getDiscardLevel(), LLFrameTimer::getElapsedTimeF32(), LLTextureFetch::getFetchState(), LLImageGL::getHeight(), getID(), LLTextureFetch::getRequestFinished(), getTargetHost(), LLImageGL::getWidth(), gImageList, gTextureFetch, LLPointer< Type >::isNull(), llassert_always, llendl, llmax(), llwarns, mAuxRawImage, mBoostLevel, LLImageGL::mComponents, LLViewerImageList::mCreateTextureList, LLTextureFetch::mDebugCount, LLTextureFetch::mDebugID, mDecodePriority, LLImageGL::mDontDiscard, mDownloadProgress, mFetchDeltaTime, mFetchPriority, mFetchState, mFullHeight, mFullWidth, mFullyLoaded, mHasFetcher, mID, mIsFetching, mIsMediaTexture, mIsMissingAsset, mIsRawImageValid, mLastPacketTimer, mLoadedCallbackList, mMinDiscardLevel, mNeedsCreateTexture, mRawDiscardLevel, mRawImage, mRequestDeltaTime, mRequestedDiscardLevel, mRequestedDownloadPriority, needsAux(), LLPointer< Type >::notNull(), S32, setIsMissingAsset(), TRUE, and LLTextureFetch::updateRequestPriority().


Friends And Related Function Documentation

friend class LLTextureBar [friend]

Definition at line 78 of file llviewerimage.h.

friend class LLTextureView [friend]

Definition at line 79 of file llviewerimage.h.


Member Data Documentation

LLPointer<LLImageRaw> LLViewerImage::mAuxRawImage [private]

Definition at line 360 of file llviewerimage.h.

Referenced by createRawImage(), destroyRawImage(), doLoadedCallbacks(), and updateFetch().

S32 LLViewerImage::mBoostLevel [private]

Definition at line 348 of file llviewerimage.h.

Referenced by calcDecodePriority(), getBoostLevel(), init(), processTextureStats(), setBoostLevel(), and updateFetch().

F32 LLViewerImage::mCalculatedDiscardLevel [private]

Definition at line 356 of file llviewerimage.h.

Referenced by init(), and processTextureStats().

S32 LLViewerImage::mDecodeFrame

Definition at line 321 of file llviewerimage.h.

Referenced by calcDecodePriority(), and init().

F32 LLViewerImage::mDecodePriority [private]

Definition at line 347 of file llviewerimage.h.

Referenced by calcDecodePriority(), getDecodePriority(), init(), setDecodePriority(), and updateFetch().

S8 LLViewerImage::mDecodingAux [private]

Definition at line 335 of file llviewerimage.h.

Referenced by init().

S8 LLViewerImage::mDesiredDiscardLevel [private]

Definition at line 331 of file llviewerimage.h.

Referenced by calcDecodePriority(), getDesiredDiscardLevel(), init(), processTextureStats(), and setDesiredDiscardLevel().

F32 LLViewerImage::mDiscardVirtualSize

Definition at line 308 of file llviewerimage.h.

Referenced by init(), and processTextureStats().

F32 LLViewerImage::mDownloadProgress

Definition at line 318 of file llviewerimage.h.

Referenced by init(), and updateFetch().

F32 LLViewerImage::mFetchDeltaTime

Definition at line 319 of file llviewerimage.h.

Referenced by init(), and updateFetch().

U32 LLViewerImage::mFetchPriority

Definition at line 317 of file llviewerimage.h.

Referenced by init(), LLTextureBar::sort_fetch::operator()(), setIsMissingAsset(), and updateFetch().

S32 LLViewerImage::mFetchState

Definition at line 316 of file llviewerimage.h.

Referenced by init(), setIsMissingAsset(), and updateFetch().

S32 LLViewerImage::mFullHeight

Definition at line 301 of file llviewerimage.h.

Referenced by dump(), init(), processTextureStats(), and updateFetch().

S32 LLViewerImage::mFullWidth

Definition at line 300 of file llviewerimage.h.

Referenced by dump(), init(), processTextureStats(), and updateFetch().

S8 LLViewerImage::mFullyLoaded [private]

Definition at line 339 of file llviewerimage.h.

Referenced by init(), LLViewerImage(), and updateFetch().

S8 LLViewerImage::mHasFetcher [private]

Definition at line 337 of file llviewerimage.h.

Referenced by init(), setIsMissingAsset(), updateFetch(), and ~LLViewerImage().

LLUUID LLViewerImage::mID [private]

Definition at line 329 of file llviewerimage.h.

Referenced by calcDecodePriority(), dump(), getID(), LLViewerImage(), and updateFetch().

S8 LLViewerImage::mInImageList

Definition at line 310 of file llviewerimage.h.

Referenced by LLViewerImageList::addImageToList(), init(), LLViewerImageList::removeImageFromList(), and setDecodePriority().

S8 LLViewerImage::mIsFetching [private]

Definition at line 338 of file llviewerimage.h.

Referenced by init(), setIsMissingAsset(), and updateFetch().

S8 LLViewerImage::mIsMediaTexture

Definition at line 311 of file llviewerimage.h.

Referenced by init(), and updateFetch().

S8 LLViewerImage::mIsMissingAsset [mutable, private]

Definition at line 340 of file llviewerimage.h.

Referenced by bind(), calcDecodePriority(), dump(), init(), isMissingAsset(), setIsMissingAsset(), and updateFetch().

S8 LLViewerImage::mIsRawImageValid [private]

Definition at line 336 of file llviewerimage.h.

Referenced by createRawImage(), destroyRawImage(), doLoadedCallbacks(), init(), and updateFetch().

S32 LLViewerImage::mKnownDrawHeight [private]

Definition at line 345 of file llviewerimage.h.

Referenced by init(), processTextureStats(), and setKnownDrawSize().

S32 LLViewerImage::mKnownDrawWidth [private]

Definition at line 344 of file llviewerimage.h.

Referenced by init(), processTextureStats(), and setKnownDrawSize().

LLFrameTimer LLViewerImage::mLastPacketTimer

Definition at line 325 of file llviewerimage.h.

Referenced by LLViewerImageList::receiveImageHeader(), LLViewerImageList::receiveImagePacket(), and updateFetch().

LLFrameTimer LLViewerImage::mLastReferencedTimer

Definition at line 326 of file llviewerimage.h.

callback_list_t LLViewerImage::mLoadedCallbackList [private]

Definition at line 351 of file llviewerimage.h.

Referenced by cleanup(), createTexture(), doLoadedCallbacks(), hasCallbacks(), setLoadedCallback(), and updateFetch().

F32 LLViewerImage::mMaxCosAngle [mutable]

Definition at line 305 of file llviewerimage.h.

Referenced by addTextureStats(), calcDecodePriority(), init(), and resetTextureStats().

F32 LLViewerImage::mMaxVirtualSize [mutable]

Definition at line 304 of file llviewerimage.h.

Referenced by addTextureStats(), calcDecodePriority(), LLBumpImageList::getBrightnessDarknessImage(), init(), LLViewerImage::CompareForWorstVisibility::operator()(), processTextureStats(), and resetTextureStats().

S8 LLViewerImage::mMinDesiredDiscardLevel [private]

Definition at line 332 of file llviewerimage.h.

Referenced by init(), processTextureStats(), and setMinDiscardLevel().

S32 LLViewerImage::mMinDiscardLevel [private]

Definition at line 355 of file llviewerimage.h.

Referenced by calcDecodePriority(), init(), and updateFetch().

S8 LLViewerImage::mNeedsAux [private]

Definition at line 334 of file llviewerimage.h.

Referenced by doLoadedCallbacks(), init(), LLViewerImage(), needsAux(), and setNeedsAux().

S8 LLViewerImage::mNeedsCreateTexture [private]

Definition at line 333 of file llviewerimage.h.

Referenced by calcDecodePriority(), createTexture(), doLoadedCallbacks(), init(), and updateFetch().

S32 LLViewerImage::mRawDiscardLevel [private]

Definition at line 354 of file llviewerimage.h.

Referenced by createRawImage(), createTexture(), destroyRawImage(), doLoadedCallbacks(), init(), and updateFetch().

LLPointer<LLImageRaw> LLViewerImage::mRawImage [private]

Definition at line 353 of file llviewerimage.h.

Referenced by createRawImage(), createTexture(), destroyRawImage(), doLoadedCallbacks(), and updateFetch().

F32 LLViewerImage::mRequestDeltaTime

Definition at line 320 of file llviewerimage.h.

Referenced by updateFetch().

S32 LLViewerImage::mRequestedDiscardLevel

Definition at line 314 of file llviewerimage.h.

Referenced by init(), and updateFetch().

F32 LLViewerImage::mRequestedDownloadPriority

Definition at line 315 of file llviewerimage.h.

Referenced by init(), and updateFetch().

LLHost LLViewerImage::mTargetHost [private]

Definition at line 362 of file llviewerimage.h.

Referenced by getTargetHost(), init(), LLViewerImage::CompareByHostAndPriority::operator()(), and setTargetHost().

F32 LLViewerImage::mTexelsPerImage

Definition at line 307 of file llviewerimage.h.

Referenced by init(), and processTextureStats().

S32 LLViewerImage::mVisibleFrame

Definition at line 322 of file llviewerimage.h.

Referenced by calcDecodePriority(), and init().

S32 LLViewerImage::sBoundTextureMemory = 0 [static]

Reimplemented from LLImageGL.

Definition at line 377 of file llviewerimage.h.

Referenced by LLFloaterLagMeter::determineClient(), LLGLTexMemBar::draw(), processTextureStats(), and updateClass().

const U32 LLViewerImage::sCurrentFileVersion = 1 [static]

Definition at line 365 of file llviewerimage.h.

LLPointer< LLImageGL > LLViewerImage::sDefaultImagep = NULL [static]

Definition at line 369 of file llviewerimage.h.

Referenced by bind(), bindTexture(), cleanupClass(), LLViewerObject::getTEImage(), initClass(), and LLPipeline::renderGeom().

F32 LLViewerImage::sDesiredDiscardBias = 0.f [static]

Definition at line 375 of file llviewerimage.h.

Referenced by LLGLTexMemBar::draw(), processTextureStats(), and updateClass().

F32 LLViewerImage::sDesiredDiscardScale = 1.1f [static]

Definition at line 376 of file llviewerimage.h.

Referenced by processTextureStats().

BOOL LLViewerImage::sDontLoadVolumeTextures = FALSE [static]

Definition at line 381 of file llviewerimage.h.

Referenced by init_debug_rendering_menu(), and LLVOVolume::updateTextures().

LLTimer LLViewerImage::sEvaluationTimer [static]

Definition at line 374 of file llviewerimage.h.

Referenced by updateClass().

S32 LLViewerImage::sImageCount = 0 [static]

Definition at line 373 of file llviewerimage.h.

Referenced by LLViewerImage(), and ~LLViewerImage().

S32 LLViewerImage::sMaxBoundTextureMem = 0 [static]

Definition at line 379 of file llviewerimage.h.

Referenced by LLFloaterLagMeter::determineClient(), LLGLTexMemBar::draw(), processTextureStats(), and updateClass().

S32 LLViewerImage::sMaxTotalTextureMem = 0 [static]

Definition at line 380 of file llviewerimage.h.

Referenced by LLGLTexMemBar::draw(), processTextureStats(), and updateClass().

LLPointer< LLViewerImage > LLViewerImage::sMissingAssetImagep = NULL [static]

Definition at line 367 of file llviewerimage.h.

Referenced by bind(), cleanupClass(), and LLViewerImageList::doPreloadImages().

LLPointer< LLImageGL > LLViewerImage::sNullImagep = NULL [static]

Definition at line 371 of file llviewerimage.h.

Referenced by bind(), cleanupClass(), initClass(), and LLPipeline::renderHighlights().

LLPointer< LLViewerImage > LLViewerImage::sSmokeImagep = NULL [static]

Definition at line 370 of file llviewerimage.h.

Referenced by cleanupClass(), LLDrawPoolWater::getDebugTexture(), initClass(), LLDrawPoolAlpha::render(), and LLVOTextBubble::updateGeometry().

S32 LLViewerImage::sTotalTextureMemory = 0 [static]

Definition at line 378 of file llviewerimage.h.

Referenced by LLGLTexMemBar::draw(), processTextureStats(), and updateClass().

LLPointer< LLViewerImage > LLViewerImage::sWhiteImagep = NULL [static]

Definition at line 368 of file llviewerimage.h.

Referenced by cleanupClass(), and LLViewerImageList::doPreloadImages().


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