MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lti_pixelLookupTable.h
Go to the documentation of this file.
1//
2// This code is property of Celartem, Inc dba Extensis.
3// Copyright (c) 1995-2023. All rights reserved.
4// Use permitted only under license from Extensis.
5//
6/* PUBLIC */
7
8#ifndef LTI_PIXELLOOKUPTABLE_H
9#define LTI_PIXELLOOKUPTABLE_H
10
11// lt_lib_mrsid_core
12#include "lti_pixel.h"
13
14
15LT_BEGIN_LIZARDTECH_NAMESPACE
16
17class LTISceneBuffer;
18
19
27{
28public:
38 LTIPixelLookupTable(const LTIPixel& pixelProps,
39 lt_uint32 tableSize);
40
45
50
59
73 const LTIPixel& pixelData);
74
85 void setTableEntries(const void* mapData);
86
97
104 const void* getTableEntries() const;
105
106 LT_STATUS apply(const LTISceneBuffer &srcData, LTISceneBuffer &dstData) const;
107
108
109private:
110 LT_STATUS init(const void* data);
111
112 lt_uint32 m_tableSize;
113
114 // for an RGB map, entry I is formed by: R=data[I], G=data[I+256], B=data[I+512]
115 void* m_data;
116
117 // nope
118 LTIPixelLookupTable& operator=(const LTIPixelLookupTable&);
119};
120
121
122LT_END_LIZARDTECH_NAMESPACE
123
124#endif // LTI_PIXELLOOKUPTABLE_H
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
basic properties of a pixel
Definition: lti_pixel.h:32
color lookup table
~LTIPixelLookupTable()
destructor
LTIPixelLookupTable(const LTIPixelLookupTable &)
copy constructor
void setTableEntry(lt_uint32 index, const LTIPixel &pixelData)
set table entry
lt_uint32 getTableSize() const
get table size
void setTableEntries(const void *mapData)
set all table entries
const void * getTableEntries() const
get all table entries
LT_STATUS apply(const LTISceneBuffer &srcData, LTISceneBuffer &dstData) const
LTIPixelLookupTable(const LTIPixel &pixelProps, lt_uint32 tableSize)
default constructor
LTIPixel * getTableEntry(lt_uint32 index) const
get table entry
class to hold data passed between image stages

Extensis