MrSID Decode SDK for Raster Reference Manual  9.5.1.4427
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 
21 
22 class LTISceneBuffer;
23 
24 
32 {
33 public:
43  LTIPixelLookupTable(const LTIPixel& pixelProps,
44  lt_uint32 tableSize);
45 
50 
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 
128 
129 #endif // LTI_PIXELLOOKUPTABLE_H
#define LT_END_NAMESPACE(theNameSpace)
compiler does not support namespaces
Definition: lt_define.h:85
color lookup table
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:39
basic properties of a pixel
Definition: lti_pixel.h:36
class to hold data passed between image stages
#define LT_BEGIN_NAMESPACE(theNameSpace)
compiler does not support namespaces
Definition: lt_define.h:84
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:54

LizardTech