MrSID Decode SDK for Raster Reference Manual
9.5.1.4427
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
lti_pixelLookupTable.h
Go to the documentation of this file.
1
/* $Id$ */
2
/* //////////////////////////////////////////////////////////////////////////
3
// //
4
// This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, //
5
// Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
6
// prohibited. Access to and use of this code is permitted only under //
7
// license from LizardTech, Inc. Portions of the code are protected by //
8
// US and foreign patents and other filings. All Rights Reserved. //
9
// //
11
/* PUBLIC */
12
13
#ifndef LTI_PIXELLOOKUPTABLE_H
14
#define LTI_PIXELLOOKUPTABLE_H
15
16
// lt_lib_mrsid_core
17
#include "
lti_pixel.h
"
18
19
20
LT_BEGIN_NAMESPACE
(LizardTech)
21
22
class
LTISceneBuffer
;
23
24
31
class
LTIPixelLookupTable
: public
LTIPixel
32
{
33
public
:
43
LTIPixelLookupTable
(
const
LTIPixel& pixelProps,
44
lt_uint32
tableSize);
45
49
LTIPixelLookupTable
(
const
LTIPixelLookupTable
&);
50
54
~
LTIPixelLookupTable
();
55
63
lt_uint32
getTableSize()
const
;
64
77
void
setTableEntry(
lt_uint32
index,
78
const
LTIPixel& pixelData);
79
90
void
setTableEntries(
const
void
* mapData);
91
101
LTIPixel* getTableEntry(
lt_uint32
index)
const
;
102
109
const
void
* getTableEntries()
const
;
110
111
LT_STATUS
apply(
const
LTISceneBuffer &srcData, LTISceneBuffer &dstData)
const
;
112
113
114
private
:
115
LT_STATUS
init(
const
void
* data);
116
117
lt_uint32
m_tableSize;
118
119
// for an RGB map, entry I is formed by: R=data[I], G=data[I+256], B=data[I+512]
120
void
* m_data;
121
122
// nope
123
LTIPixelLookupTable
& operator=(
const
LTIPixelLookupTable
&);
124
};
125
126
127
LT_END_NAMESPACE
(LizardTech)
128
129
#endif // LTI_PIXELLOOKUPTABLE_H
LizardTech