MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lti_embeddedImage.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
7#ifndef LTI_EMBEDDED_IMAGE_H
8#define LTI_EMBEDDED_IMAGE_H
9
10// lt_lib_mrsid_core
11#include "lti_imageFilter.h"
13#include "lti_scene.h"
14#include "lti_sceneBuffer.h"
15
16LT_BEGIN_LIZARDTECH_NAMESPACE
17
33#ifdef SWIG
35#else
37 <LTIOverridePixelProps
38 <LTIOverrideGeoCoord
39 <LTIImageFilter> > >
40#endif
41{
43public:
45 {
49 };
50
71 lt_uint32 newWidth,
72 lt_uint32 newHeight,
73 double newXPos,
74 double newYPos,
75 const LTIPixel *backgroundPixel,
76 const LTIPixel *nodataPixel,
77 AlphaMode alphaMode = DoNothing);
78
80 const LTIGeomRect<lt_int32> &cropRect,
81 const LTIPixel *backgroundPixel = nullptr,
82 const LTIPixel *nodataPixel = nullptr,
83 AlphaMode alphaMode = DoNothing);
84
85 // LTIImage
87 lt_uint32 &width,
88 lt_uint32 &height) const;
89
90 // LTIImageStage
91 lt_int64 getEncodingCost(const LTIScene& scene) const;
92 bool getReaderScene(const LTIScene &decodeScene,
93 LTIScene &readerScene) const;
94
95
103
109 bool getFillingBackground(void) const;
110
117 double fuzzyThreshold /*= LTISceneBuffer::DefaultFuzzyThreshold*/);
118
123 double getFuzzyThreshold(void) const;
124
125 LT_STATUS setTransparency(double transparency);
126
127 // LTIImageStage
128 virtual lt_uint32 getModifications(const LTIScene &scene) const;
129
130 // for LizardTech internal use only
131 lt_int32 getChildXPosAtMag(double mag) const;
132 // for LizardTech internal use only
133 lt_int32 getChildYPosAtMag(double mag) const;
134 // for LizardTech internal use only
135 bool getChildScene(const LTIScene &parentScene, LTIScene &childScene) const;
136
137
138 static LT_STATUS push(LTIImageStage *&pipeline, LTIScene &scene,
139 const LTIPixel *backgroundPixel = nullptr);
140
141protected:
142 LT_STATUS decodeBegin(const LTIPixel &pixelProps,
143 const LTIScene &fullScene);
145 const LTIScene &stripScene);
147
148private:
149 double m_childXPos_P;
150 double m_childYPos_P;
151
152 LTIScene m_parentScene;
153 LTIScene m_childScene;
154 bool m_haveAnything;
155 lt_int32 m_firstStrip;
156 lt_int32 m_lastStrip;
157
158 bool m_fillingBackground;
159 LTIPixelFillMethod m_fillMethod;
160 double m_fuzzyThreshold;
161 AlphaMode m_alphaMode;
162 float m_transparency;
163
164 LTIPixel *m_decodePixelProps;
165};
166
167
168LT_END_LIZARDTECH_NAMESPACE
169
170#endif // LTI_EMBEDDED_IMAGE_H
#define LTI_REFERENCE_COUNTED_BOILERPLATE(classname)
LTIPixelFillMethod
constants representing pixel filling methods
Definition: lti_types.h:183
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
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
create a larger frame for the image
LT_STATUS initialize(LTIImageStage *srcImage, lt_uint32 newWidth, lt_uint32 newHeight, double newXPos, double newYPos, const LTIPixel *backgroundPixel, const LTIPixel *nodataPixel, AlphaMode alphaMode=DoNothing)
initialize
bool getReaderScene(const LTIScene &decodeScene, LTIScene &readerScene) const
get the underlying scene to be used
LT_STATUS initialize(LTIImageStage *srcImage, const LTIGeomRect< lt_int32 > &cropRect, const LTIPixel *backgroundPixel=nullptr, const LTIPixel *nodataPixel=nullptr, AlphaMode alphaMode=DoNothing)
LT_STATUS decodeBegin(const LTIPixel &pixelProps, const LTIScene &fullScene)
start strip-based read
virtual lt_uint32 getModifications(const LTIScene &scene) const
get the modification bitfield for this image
LTIPixelFillMethod getFillMethod(void) const
Get the fill method.
static LT_STATUS push(LTIImageStage *&pipeline, LTIScene &scene, const LTIPixel *backgroundPixel=nullptr)
lt_int32 getChildXPosAtMag(double mag) const
LT_STATUS decodeEnd(void)
finish strip-based read
bool getChildScene(const LTIScene &parentScene, LTIScene &childScene) const
LT_STATUS setTransparency(double transparency)
double getFuzzyThreshold(void) const
lt_int64 getEncodingCost(const LTIScene &scene) const
get the cost to encode this scene
LT_STATUS setFillMethod(LTIPixelFillMethod method, double fuzzyThreshold)
Set the fill method which controls how noData pixels are matched.
LT_STATUS decodeStrip(LTISceneBuffer &stripBuffer, const LTIScene &stripScene)
read a strip from the image
LT_STATUS getDimsAtMag(double mag, lt_uint32 &width, lt_uint32 &height) const
get image width and height at given magnification
lt_int32 getChildYPosAtMag(double mag) const
LT_STATUS setFillingBackground(bool fill)
control whether or not the background of the new "outer" image should be filled
bool getFillingBackground(void) const
query whether or not the background of the new "outer" image should be filled
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