aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llimage/llimagej2c.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llimage/llimagej2c.h
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llimage/llimagej2c.h')
-rw-r--r--linden/indra/llimage/llimagej2c.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/llimage/llimagej2c.h b/linden/indra/llimage/llimagej2c.h
index a6894ab..24a1429 100644
--- a/linden/indra/llimage/llimagej2c.h
+++ b/linden/indra/llimage/llimagej2c.h
@@ -72,7 +72,7 @@ protected:
72 friend class LLImageJ2CImpl; 72 friend class LLImageJ2CImpl;
73 friend class LLImageJ2COJ; 73 friend class LLImageJ2COJ;
74 friend class LLImageJ2CKDU; 74 friend class LLImageJ2CKDU;
75 void setDecodingDone(BOOL complete = TRUE); 75 void decodeFailed();
76 void updateRawDiscardLevel(); 76 void updateRawDiscardLevel();
77 77
78 S32 mMaxBytes; // Maximum number of bytes of data to use... 78 S32 mMaxBytes; // Maximum number of bytes of data to use...
@@ -87,7 +87,17 @@ class LLImageJ2CImpl
87public: 87public:
88 virtual ~LLImageJ2CImpl(); 88 virtual ~LLImageJ2CImpl();
89protected: 89protected:
90 // Find out the image size and number of channels.
91 // Return value:
92 // true: image size and number of channels was determined
93 // false: error on decode
90 virtual BOOL getMetadata(LLImageJ2C &base) = 0; 94 virtual BOOL getMetadata(LLImageJ2C &base) = 0;
95 // Decode the raw image optionally aborting (to continue later) after
96 // decode_time seconds. Decode at most max_channel_count and start
97 // decoding channel first_channel.
98 // Return value:
99 // true: decoding complete (even if it failed)
100 // false: time expired while decoding
91 virtual BOOL decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count) = 0; 101 virtual BOOL decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count) = 0;
92 virtual BOOL encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, const char* comment_text, F32 encode_time=0.0) = 0; 102 virtual BOOL encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, const char* comment_text, F32 encode_time=0.0) = 0;
93 103