diff options
author | Merov Linden <merov@lindenlab.com> | 2011-04-13 18:11:56 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2011-04-13 18:11:56 -0700 |
commit | b77a7b4711cc9a8294ce3d20ea34f999336b0441 (patch) | |
tree | 0eaef66ecfa652a5ec32c4f7dd5266f7191a9d2a /indra/llimage/llimagej2c.h | |
parent | 759d72a46c5d487e6881426f90c54c6ae2da4847 (diff) | |
parent | cd363e8c87e176776f5db8fbaf60c264eabdaa3b (diff) |
EXP-663 : Allow creation of j2c images with precincts and blocks, limited to llimage_libtest, no viewer change
Diffstat (limited to 'indra/llimage/llimagej2c.h')
-rw-r--r-- | indra/llimage/llimagej2c.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llimage/llimagej2c.h b/indra/llimage/llimagej2c.h index dd5bec8b2e..6bba81aab5 100644 --- a/indra/llimage/llimagej2c.h +++ b/indra/llimage/llimagej2c.h @@ -56,6 +56,8 @@ public: /*virtual*/ void resetLastError(); /*virtual*/ void setLastError(const std::string& message, const std::string& filename = std::string()); + BOOL initDecode(LLImageRaw &raw_image, int discard_level, int* region); + BOOL initEncode(LLImageRaw &raw_image, int blocks_size, int precincts_size); // Encode with comment text BOOL encode(const LLImageRaw *raw_imagep, const char* comment_text, F32 encode_time=0.0); @@ -117,6 +119,8 @@ protected: virtual BOOL decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count) = 0; virtual BOOL encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, const char* comment_text, F32 encode_time=0.0, BOOL reversible=FALSE) = 0; + virtual BOOL initDecode(LLImageJ2C &base, LLImageRaw &raw_image, int discard_level = -1, int* region = NULL) = 0; + virtual BOOL initEncode(LLImageJ2C &base, LLImageRaw &raw_image, int blocks_size = -1, int precincts_size = -1) = 0; friend class LLImageJ2C; }; |