llimage.cpp File Reference

Base class for images. More...

#include "linden_common.h"
#include "llimage.h"
#include "llmath.h"
#include "v4coloru.h"
#include "llmemtype.h"
#include "llimagebmp.h"
#include "llimagetga.h"
#include "llimagej2c.h"
#include "llimagedxt.h"

Include dependency graph for llimage.cpp:

Go to the source code of this file.

Defines

#define NUM_FILE_EXTENSIONS   sizeof(file_extensions)/sizeof(file_extensions[0])

Functions

static LLString find_file (LLString &name, S8 *codec)
static S8 get_codec (const LLString &exten)
static void avg4_colors4 (const U8 *a, const U8 *b, const U8 *c, const U8 *d, U8 *dst)
static void avg4_colors3 (const U8 *a, const U8 *b, const U8 *c, const U8 *d, U8 *dst)
static void avg4_colors2 (const U8 *a, const U8 *b, const U8 *c, const U8 *d, U8 *dst)

Variables

struct {
   const char *   exten
   S8   codec
file_extensions []


Detailed Description

Base class for images.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-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.cpp.


Define Documentation

#define NUM_FILE_EXTENSIONS   sizeof(file_extensions)/sizeof(file_extensions[0])

Definition at line 1081 of file llimage.cpp.

Referenced by find_file(), and get_codec().


Function Documentation

static void avg4_colors2 ( const U8 a,
const U8 b,
const U8 c,
const U8 d,
U8 dst 
) [static]

Definition at line 1519 of file llimage.cpp.

static void avg4_colors3 ( const U8 a,
const U8 b,
const U8 c,
const U8 d,
U8 dst 
) [static]

Definition at line 1512 of file llimage.cpp.

static void avg4_colors4 ( const U8 a,
const U8 b,
const U8 c,
const U8 d,
U8 dst 
) [static]

Definition at line 1504 of file llimage.cpp.

static LLString find_file ( LLString name,
S8 codec 
) [static]

Definition at line 1083 of file llimage.cpp.

References exten, file_extensions, i, llifstream, and NUM_FILE_EXTENSIONS.

Referenced by LLImageRaw::createFromFile().

static S8 get_codec ( const LLString exten  )  [static]

Definition at line 1101 of file llimage.cpp.

References codec, exten, file_extensions, i, IMG_CODEC_INVALID, and NUM_FILE_EXTENSIONS.

Referenced by LLImageFormatted::createFromExtension(), and LLImageRaw::createFromFile().


Variable Documentation

S8 codec

Definition at line 1066 of file llimage.cpp.

Referenced by LLImageFormatted::createFromExtension(), LLImageRaw::createFromFile(), LLFloaterColorPicker::createUI(), get_codec(), LLFloaterColorPicker::handleMouseUp(), idle_startup(), LLFloaterImagePreview::loadImage(), and LLViewerImageList::receiveImageHeader().

const char* exten

Definition at line 1065 of file llimage.cpp.

Referenced by LLImageFormatted::createFromExtension(), LLImageRaw::createFromFile(), find_file(), and get_codec().

struct { ... } file_extensions[] [static]

Referenced by find_file(), and get_codec().


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