diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llimage/llimage.h | 10 |
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 | ||
41 | const S32 MIN_IMAGE_MIP = 2; // 4x4, only used for expand/contract power of 2 | 42 | const S32 MIN_IMAGE_MIP = 2; // 4x4, only used for expand/contract power of 2 |
42 | const S32 MAX_IMAGE_MIP = 11; // 2048x2048 | 43 | const S32 MAX_IMAGE_MIP = 11; // 2048x2048 |
@@ -130,7 +131,7 @@ public: | |||
130 | 131 | ||
131 | protected: | 132 | protected: |
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 | ||
135 | public: | 136 | public: |
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 | |||
242 | public: | 246 | public: |
243 | static S32 sGlobalRawMemory; | 247 | static S32 sGlobalRawMemory; |
244 | static S32 sRawImageCount; | 248 | static S32 sRawImageCount; |