MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lti_bandSelectFilter.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_BANDSELECTFILTER_H
9#define LTI_BANDSELECTFILTER_H
10
11// lt_lib_mrsid_core
12#include "lti_imageFilter.h"
14
15
16LT_BEGIN_LIZARDTECH_NAMESPACE
17class LTReusableBuffer;
30#ifdef SWIG
32#else
34 <LTIOverrideMetadata
35 <LTIImageFilter> >
36#endif
37{
39public:
65 const int srcImageBands[],
66 lt_uint16 numOutputBands,
67 LTIColorSpace colorSpace);
68
83 lt_uint16 numOutputBands,
84 LTIColorSpace colorSpace);
85
102 const lt_uint16 srcImageBands[],
103 lt_uint16 numOutputBands,
104 LTIColorSpace colorSpace);
105
106 // LTIImageStage
109 lt_int64 getEncodingCost(const LTIScene& scene) const;
110
139 static LT_STATUS parseString(const char* inputString,
140 lt_int32 *&bandList,
141 lt_uint16& numBands);
142
143 // LTIImageStage
144 virtual lt_uint32 getModifications(const LTIScene &scene) const;
145
146 // for LizardTech internal use only
147 // this only works if there is one source image
148 // this will change the drMin, drMax, noData and background pixels
149 LT_STATUS remapBands(const lt_uint16 srcImageBands[]);
150 LT_STATUS getBandMap(lt_uint16 srcImageBands[]) const;
151
152 static LT_STATUS push(LTIImageStage *&pipeline, const LTIPixel &pixelProps);
153
154 static void remapPixel(const LTIPixel &srcPixel,
155 const lt_uint16 srcImageBands[],
156 LTIPixel &dstPixel);
157 struct BandSelectMap;
158protected:
159 LT_STATUS decodeBegin(const LTIPixel &pixelProps,
160 const LTIScene &fullScene);
162 const LTIScene &stripScene);
164
165protected:
167 {
172 };
173 void remapPixel(LTIPixel& pixel, SourcePixel name) const;
174
175 BandSelectMap *m_bandSelectMap;
176 BandSelectMap *m_decodeMap;
177
178private:
179 LT_STATUS privateInit(lt_uint16 numOutputBands,
180 LTIColorSpace colorSpace,
181 bool callInit);
182};
183
184
185LT_END_LIZARDTECH_NAMESPACE
186
187#endif // LTI_BANDSELECTFILTER_H
#define LTI_REFERENCE_COUNTED_BOILERPLATE(classname)
LTIColorSpace
colorspaces
Definition: lti_types.h:34
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned short lt_uint16
unsigned 16-bit integer
Definition: lt_types.h:40
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
long long int lt_int64
signed 64-bit integer
Definition: lt_types.h:57
signed int lt_int32
signed 32-bit integer
Definition: lt_types.h:42
combine N different bands from M images into one N-banded image
LT_STATUS initialize(LTIImageStage *srcImage, const lt_uint16 srcImageBands[], lt_uint16 numOutputBands, LTIColorSpace colorSpace)
single image initializer
static LT_STATUS parseString(const char *inputString, lt_int32 *&bandList, lt_uint16 &numBands)
parse band string
static void remapPixel(const LTIPixel &srcPixel, const lt_uint16 srcImageBands[], LTIPixel &dstPixel)
LT_STATUS decodeEnd(void)
finish strip-based read
virtual lt_uint32 getModifications(const LTIScene &scene) const
get the modification bitfield for this image
lt_uint32 getStripHeight() const
get strip height
static LT_STATUS push(LTIImageStage *&pipeline, const LTIPixel &pixelProps)
void remapPixel(LTIPixel &pixel, SourcePixel name) const
LT_STATUS getBandMap(lt_uint16 srcImageBands[]) const
LT_STATUS initialize(LTIImageStage *srcImages[], const int srcImageBands[], lt_uint16 numOutputBands, LTIColorSpace colorSpace)
general initializer
BandSelectMap * m_decodeMap
BandSelectMap * m_bandSelectMap
LT_STATUS setStripHeight(lt_uint32 stripHeight)
set the strip height
lt_int64 getEncodingCost(const LTIScene &scene) const
get the cost to encode this scene
LT_STATUS initialize(LTIImageStage *srcImages[], lt_uint16 numOutputBands, LTIColorSpace colorSpace)
LTIColorCompositeFilter initializer.
LT_STATUS decodeBegin(const LTIPixel &pixelProps, const LTIScene &fullScene)
start strip-based read
LT_STATUS remapBands(const lt_uint16 srcImageBands[])
LT_STATUS decodeStrip(LTISceneBuffer &stripBuffer, const LTIScene &stripScene)
read a strip from the image
abstract class for implementing an image transform
abstract class for decoding from an image
basic properties of a pixel
Definition: lti_pixel.h:32
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages

Extensis