diff options
Diffstat (limited to 'linden/indra/llimagej2coj/llimagej2coj.h')
-rw-r--r-- | linden/indra/llimagej2coj/llimagej2coj.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/linden/indra/llimagej2coj/llimagej2coj.h b/linden/indra/llimagej2coj/llimagej2coj.h new file mode 100644 index 0000000..3fbf495 --- /dev/null +++ b/linden/indra/llimagej2coj/llimagej2coj.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /** | ||
2 | * @file llimagej2coj.h | ||
3 | * @brief This is an implementation of JPEG2000 encode/decode using OpenJPEG. | ||
4 | * | ||
5 | * Copyright (c) 2006-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLIMAGEJ2COJ_H | ||
29 | #define LL_LLIMAGEJ2COJ_H | ||
30 | |||
31 | #include "llimagej2c.h" | ||
32 | |||
33 | class LLImageJ2COJ : public LLImageJ2CImpl | ||
34 | { | ||
35 | public: | ||
36 | LLImageJ2COJ(); | ||
37 | virtual ~LLImageJ2COJ(); | ||
38 | |||
39 | protected: | ||
40 | /*virtual*/ BOOL getMetadata(LLImageJ2C &base); | ||
41 | /*virtual*/ BOOL decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count); | ||
42 | /*virtual*/ BOOL encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, const char* comment_text, F32 encode_time=0.0); | ||
43 | |||
44 | // Temporary variables for in-progress decodes... | ||
45 | LLImageRaw *mRawImagep; | ||
46 | }; | ||
47 | |||
48 | #endif | ||