aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llimage/llimage.h
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-05-07 18:16:10 -0700
committerJacek Antonelli2010-06-19 02:05:24 -0500
commit36b6111ea0b2896134e31c02a87db8687b54ec74 (patch)
tree78241409bd8fd1c91d6be531b17d3baefb80aff5 /linden/indra/llimage/llimage.h
parentAdded some missing entries to the logcontrol.xml debug entries, comment out e... (diff)
downloadmeta-impy-36b6111ea0b2896134e31c02a87db8687b54ec74.zip
meta-impy-36b6111ea0b2896134e31c02a87db8687b54ec74.tar.gz
meta-impy-36b6111ea0b2896134e31c02a87db8687b54ec74.tar.bz2
meta-impy-36b6111ea0b2896134e31c02a87db8687b54ec74.tar.xz
Backported llimage changes from Viewer 2.0.0
Diffstat (limited to '')
-rw-r--r--linden/indra/llimage/llimage.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/linden/indra/llimage/llimage.h b/linden/indra/llimage/llimage.h
index be2eb08..102e779 100644
--- a/linden/indra/llimage/llimage.h
+++ b/linden/indra/llimage/llimage.h
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2000&license=viewergpl$ 5 * $LicenseInfo:firstyear=2000&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2000-2009, Linden Research, Inc. 7 * Copyright (c) 2000-2010, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -35,8 +35,9 @@
35 35
36#include "lluuid.h" 36#include "lluuid.h"
37#include "llstring.h" 37#include "llstring.h"
38#include "llmemory.h" 38//#include "llmemory.h"
39#include "llthread.h" 39#include "llthread.h"
40#include "llmemtype.h"
40 41
41const S32 MIN_IMAGE_MIP = 2; // 4x4, only used for expand/contract power of 2 42const S32 MIN_IMAGE_MIP = 2; // 4x4, only used for expand/contract power of 2
42const S32 MAX_IMAGE_MIP = 11; // 2048x2048 43const S32 MAX_IMAGE_MIP = 11; // 2048x2048
@@ -130,7 +131,7 @@ public:
130 131
131protected: 132protected:
132 // special accessor to allow direct setting of mData and mDataSize by LLImageFormatted 133 // special accessor to allow direct setting of mData and mDataSize by LLImageFormatted
133 void setDataAndSize(U8 *data, S32 size) { mData = data; mDataSize = size; }; 134 void setDataAndSize(U8 *data, S32 size) { mData = data; mDataSize = size; }
134 135
135public: 136public:
136 static void generateMip(const U8 *indata, U8* mipdata, int width, int height, S32 nchannels); 137 static void generateMip(const U8 *indata, U8* mipdata, int width, int height, S32 nchannels);
@@ -191,6 +192,7 @@ public:
191 void contractToPowerOfTwo(S32 max_dim = MAX_IMAGE_SIZE, BOOL scale_image = TRUE); 192 void contractToPowerOfTwo(S32 max_dim = MAX_IMAGE_SIZE, BOOL scale_image = TRUE);
192 void biasedScaleToPowerOfTwo(S32 max_dim = MAX_IMAGE_SIZE); 193 void biasedScaleToPowerOfTwo(S32 max_dim = MAX_IMAGE_SIZE);
193 BOOL scale( S32 new_width, S32 new_height, BOOL scale_image = TRUE ); 194 BOOL scale( S32 new_width, S32 new_height, BOOL scale_image = TRUE );
195 BOOL scaleDownWithoutBlending( S32 new_width, S32 new_height) ;
194 196
195 // Fill the buffer with a constant color 197 // Fill the buffer with a constant color
196 void fill( const LLColor4U& color ); 198 void fill( const LLColor4U& color );
@@ -239,6 +241,8 @@ protected:
239 241
240 U8 fastFractionalMult(U8 a,U8 b); 242 U8 fastFractionalMult(U8 a,U8 b);
241 243
244 void setDataAndSize(U8 *data, S32 width, S32 height, S8 components) ;
245
242public: 246public:
243 static S32 sGlobalRawMemory; 247 static S32 sGlobalRawMemory;
244 static S32 sRawImageCount; 248 static S32 sRawImageCount;