PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llimagej2coj/llimagej2coj.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 46 lines | 17 code | 4 blank | 25 comment | 0 complexity | a8509a35d3e2a5ebb89b9dfb01a1c6e1 MD5 | raw file
 1/** 
 2 * @file llimagej2coj.h
 3 * @brief This is an implementation of JPEG2000 encode/decode using OpenJPEG.
 4 *
 5 * $LicenseInfo:firstyear=2006&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_LLIMAGEJ2COJ_H
28#define LL_LLIMAGEJ2COJ_H
29
30#include "llimagej2c.h"
31
32class LLImageJ2COJ : public LLImageJ2CImpl
33{	
34public:
35	LLImageJ2COJ();
36	virtual ~LLImageJ2COJ();
37protected:
38	/*virtual*/ BOOL getMetadata(LLImageJ2C &base);
39	/*virtual*/ BOOL decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count);
40	/*virtual*/ BOOL encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, const char* comment_text, F32 encode_time=0.0,
41								BOOL reversible = FALSE);
42	/*virtual*/ BOOL initDecode(LLImageJ2C &base, LLImageRaw &raw_image, int discard_level = -1, int* region = NULL);
43	/*virtual*/ BOOL initEncode(LLImageJ2C &base, LLImageRaw &raw_image, int blocks_size = -1, int precincts_size = -1, int levels = 0);
44};
45
46#endif