aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llimage/llimagej2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llimage/llimagej2c.h')
-rw-r--r--linden/indra/llimage/llimagej2c.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/linden/indra/llimage/llimagej2c.h b/linden/indra/llimage/llimagej2c.h
index 2b4a3ec..ad514eb 100644
--- a/linden/indra/llimage/llimagej2c.h
+++ b/linden/indra/llimage/llimagej2c.h
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2001&license=viewergpl$ 5 * $LicenseInfo:firstyear=2001&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2001-2008, Linden Research, Inc. 7 * Copyright (c) 2001-2009, 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
@@ -54,6 +54,10 @@ public:
54 /*virtual*/ S32 calcDataSize(S32 discard_level = 0); 54 /*virtual*/ S32 calcDataSize(S32 discard_level = 0);
55 /*virtual*/ S32 calcDiscardLevelBytes(S32 bytes); 55 /*virtual*/ S32 calcDiscardLevelBytes(S32 bytes);
56 /*virtual*/ S8 getRawDiscardLevel(); 56 /*virtual*/ S8 getRawDiscardLevel();
57 // Override these so that we don't try to set a global variable from a DLL
58 /*virtual*/ void resetLastError();
59 /*virtual*/ void setLastError(const std::string& message, const std::string& filename = std::string());
60
57 61
58 // Encode with comment text 62 // Encode with comment text
59 BOOL encode(const LLImageRaw *raw_imagep, const char* comment_text, F32 encode_time=0.0); 63 BOOL encode(const LLImageRaw *raw_imagep, const char* comment_text, F32 encode_time=0.0);
@@ -86,6 +90,7 @@ protected:
86 F32 mRate; 90 F32 mRate;
87 BOOL mReversible; 91 BOOL mReversible;
88 LLImageJ2CImpl *mImpl; 92 LLImageJ2CImpl *mImpl;
93 std::string mLastError;
89}; 94};
90 95
91// Derive from this class to implement JPEG2000 decoding 96// Derive from this class to implement JPEG2000 decoding