llimage.h File Reference

Object for managing images and their textures. More...

#include "lluuid.h"
#include "llstring.h"
#include "llmemory.h"
#include "llthread.h"

Include dependency graph for llimage.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LLImageBase
class  LLImageRaw
class  LLImageFormatted

Enumerations

enum  {
  IMG_CODEC_INVALID = 0, IMG_CODEC_RGB = 1, IMG_CODEC_J2C = 2, IMG_CODEC_BMP = 3,
  IMG_CODEC_TGA = 4, IMG_CODEC_JPEG = 5, IMG_CODEC_DXT = 6, IMG_CODEC_PNG = 7,
  IMG_CODEC_EOF = 8
}

Variables

const S32 MIN_IMAGE_MIP = 2
const S32 MAX_IMAGE_MIP = 11
const S32 MAX_DISCARD_LEVEL = 5
const S32 MIN_IMAGE_SIZE = (1<<MIN_IMAGE_MIP)
const S32 MAX_IMAGE_SIZE = (1<<MAX_IMAGE_MIP)
const S32 MIN_IMAGE_AREA = MIN_IMAGE_SIZE * MIN_IMAGE_SIZE
const S32 MAX_IMAGE_AREA = MAX_IMAGE_SIZE * MAX_IMAGE_SIZE
const S32 MAX_IMAGE_COMPONENTS = 8
const S32 MAX_IMAGE_DATA_SIZE = MAX_IMAGE_AREA * MAX_IMAGE_COMPONENTS
const S32 FIRST_PACKET_SIZE = 600
const S32 MAX_IMG_PACKET_SIZE = 1000


Detailed Description

Object for managing images and their textures.

LicenseInfo
firstyear=2000&license=viewergpl

Copyright (c) 2000-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llimage.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
IMG_CODEC_INVALID 
IMG_CODEC_RGB 
IMG_CODEC_J2C 
IMG_CODEC_BMP 
IMG_CODEC_TGA 
IMG_CODEC_JPEG 
IMG_CODEC_DXT 
IMG_CODEC_PNG 
IMG_CODEC_EOF 

Definition at line 63 of file llimage.h.


Variable Documentation

const S32 FIRST_PACKET_SIZE = 600

Definition at line 52 of file llimage.h.

Referenced by LLTextureFetch::createRequest(), LLTextureFetchWorker::doWork(), LLTextureFetch::getFetchState(), and LLTextureFetch::receiveImageHeader().

const S32 MAX_DISCARD_LEVEL = 5

Definition at line 42 of file llimage.h.

Referenced by LLViewerImage::calcDecodePriority(), LLImageJ2C::calcDiscardLevelBytes(), LLImageRaw::createFromFile(), LLTextureFetch::createRequest(), LLViewerImage::doLoadedCallbacks(), LLVLComposition::generateComposition(), LLVLComposition::generateTexture(), LLViewerImage::init(), LLImageGL::init(), LLVOAvatar::LLVOAvatar(), LLVOAvatar::onFirstTEMessageReceived(), LLViewerImage::processTextureStats(), LLVOAvatar::setLocalTexture(), LLImageGL::setSize(), and LLViewerImageList::shutdown().

const S32 MAX_IMAGE_AREA = MAX_IMAGE_SIZE * MAX_IMAGE_SIZE

Definition at line 47 of file llimage.h.

Referenced by LLPreviewTexture::draw(), LLPipeline::renderHighlights(), and LLVOSky::updateTextures().

const S32 MAX_IMAGE_COMPONENTS = 8

Definition at line 48 of file llimage.h.

Referenced by LLImageBase::sanityCheck().

const S32 MAX_IMAGE_DATA_SIZE = MAX_IMAGE_AREA * MAX_IMAGE_COMPONENTS

Definition at line 49 of file llimage.h.

Referenced by LLImageRaw::LLImageRaw(), and LLImageBase::sanityCheck().

const S32 MAX_IMAGE_MIP = 11

Definition at line 41 of file llimage.h.

Referenced by LLImageFormatted::calcDiscardLevelBytes(), and LLImageDXT::updateData().

const S32 MAX_IMAGE_SIZE = (1<<MAX_IMAGE_MIP)

Definition at line 45 of file llimage.h.

Referenced by LLImageBase::sanityCheck().

const S32 MAX_IMG_PACKET_SIZE = 1000

Definition at line 53 of file llimage.h.

Referenced by LLTextureFetchWorker::doWork(), LLTextureFetch::getFetchState(), and LLTextureFetchWorker::insertPacket().

const S32 MIN_IMAGE_AREA = MIN_IMAGE_SIZE * MIN_IMAGE_SIZE

Definition at line 46 of file llimage.h.

const S32 MIN_IMAGE_MIP = 2

Definition at line 40 of file llimage.h.

const S32 MIN_IMAGE_SIZE = (1<<MIN_IMAGE_MIP)

Definition at line 44 of file llimage.h.

Referenced by LLImageRaw::biasedScaleToPowerOfTwo(), LLImageRaw::contractToPowerOfTwo(), and LLImageRaw::expandToPowerOfTwo().


Generated on Thu Jul 1 06:10:29 2010 for Second Life Viewer by  doxygen 1.4.7