MrSID Decode SDK for Raster Reference Manual  9.0.0.3864
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 
29 {
30 public:
40  LTIPixelLookupTable(const LTIPixel& pixelProps,
41  lt_uint32 tableSize);
42 
47 
52 
60  lt_uint32 getTableSize() const;
61 
74  void setTableEntry(lt_uint32 index,
75  const LTIPixel& pixelData);
76 
87  void setTableEntries(const void* mapData);
88 
98  LTIPixel* getTableEntry(lt_uint32 index) const;
99 
106  const void* getTableEntries() const;
107 
108 private:
109  LT_STATUS init(const void* data);
110 
111  lt_uint32 m_tableSize;
112 
113  // for an RGB map, entry I is formed by: R=data[I], G=data[I+256], B=data[I+512]
114  void* m_data;
115 
116  // nope
117  LTIPixelLookupTable& operator=(const LTIPixelLookupTable&);
118 };
119 
120 
121 LT_END_NAMESPACE(LizardTech)
122 
123 #endif // LTI_PIXELLOOKUPTABLE_H

LizardTech