MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
lti_imageFilter.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_IMAGEFILTER_H
9 #define LTI_IMAGEFILTER_H
10 
11 // lt_lib_mrsid_core
12 #include "lti_imageStage.h"
14 
15 LT_BEGIN_LIZARDTECH_NAMESPACE
16 
25 {
27 public:
28  // LTIImage
31  LT_STATUS getDimsAtMag(double mag,
32  lt_uint32 &width,
33  lt_uint32 &height) const;
34  const LTIPixel &getPixelProps() const;
35  const LTIPixel *getBackgroundPixel() const;
36  const LTIPixel *getNoDataPixel() const;
38  const LTIPixel &getMinDynamicRange() const;
39  const LTIPixel &getMaxDynamicRange() const;
40  const LTIGeoCoord &getGeoCoord() const;
41  bool isGeoCoordImplicit() const;
43  double getMinMagnification() const;
44  double getMaxMagnification() const;
45  bool isSelective() const;
46  lt_uint32 getModifications(const LTIScene &scene) const;
47  LT_STATUS getMetadataBlob(const char *type, LTIOStreamInf *&stream) const;
48  bool hasMetadataBlob(const char *type) const;
49 
50 
51 
52  // LTIImageStage
59  lt_int64 getEncodingCost(const LTIScene& scene) const;
60  bool getReaderScene(const LTIScene &decodeScene,
61  LTIScene &readerScene) const;
62 
63  LT_STATUS overrideBackgroundPixel(const LTIPixel *backgroundPixel);
64  LT_STATUS overrideNoDataPixel(const LTIPixel *nodataPixel);
67  const LTIPixel& drmax);
72 
73  LTIMaskSource *getMask() const;
74  bool getPipelineInfo(LTIPipelineInfo info) const;
75 
77 protected:
78  LT_STATUS decodeBegin(const LTIPixel &pixelProps,
79  const LTIScene &fullScene);
81  const LTIScene &stripScene);
83 
84 protected:
85  LT_STATUS init(LTIImageStage *previousStage);
86 
87  // HACK: use when the filter owns resources needed by the previousStage
89 
90  // Changes the prev pointer of this filter. Probably not a good idea.
92 
93 private:
94  LTIImageStage* m_previousStage;
95 };
96 
97 
98 LT_END_LIZARDTECH_NAMESPACE
99 
100 #endif // LTI_IMAGEFILTER_H
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned char lt_uint8
unsigned 8-bit integer
Definition: lt_types.h:36
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
#define LTI_REFERENCE_COUNTED_BOILERPLATE_BASE(classname)
Macros for defining boilerplate parts of derived LTIReferenceCountedObject classes.
LTIColorSpace
colorspaces
Definition: lti_types.h:34
LTIPipelineInfo
Definition: lti_types.h:224
Abstract definition of a stream.
interrupt delegate (callback) base class
Definition: lti_delegates.h:35
progress delegate (callback) base class
Definition: lti_delegates.h:68
represents a geographic coordinate
Definition: lti_geoCoord.h:28
abstract class for implementing an image transform
void releasePreviousStageNow(void)
lt_int64 getEncodingCost(const LTIScene &scene) const
get the cost to encode this scene
void setInterruptDelegate(LTIInterruptDelegate *delegate)
set interrupt delegate
LT_STATUS overridePixelLookupTable(const LTIPixelLookupTable *pixelLookupTable)
override the CLUT of the image
lt_uint32 getHeight() const
get image height
LT_STATUS overridePixelBPS(lt_uint8)
override the bits-per-sample of the image's (sample's) datatype
double getMaxMagnification() const
get the maximum magnification
LT_STATUS overrideColorSpace(LTIColorSpace colorspace)
override the colorspace of all the pixel properties (PixelProps, NoData, Background,...
bool getPipelineInfo(LTIPipelineInfo info) const
LT_STATUS getMetadataBlob(const char *type, LTIOStreamInf *&stream) const
extract the metadata associated with the image of the given type
LT_STATUS overrideNoDataPixel(const LTIPixel *nodataPixel)
override the "no data" (transparency) color of the image
const LTIPixel & getPixelProps() const
get the pixel properties of the image
const LTIPixel & getMaxDynamicRange() const
get the maximum dynamic range value of image
LTIMaskSource * getMask() const
LT_STATUS decodeBegin(const LTIPixel &pixelProps, const LTIScene &fullScene)
start strip-based read
LTIProgressDelegate * getProgressDelegate() const
get progress delegate
bool getReaderScene(const LTIScene &decodeScene, LTIScene &readerScene) const
get the underlying scene to be used
bool isGeoCoordImplicit() const
is geo information "real" or not
LT_STATUS decodeEnd(void)
finish strip-based read
LT_STATUS getDimsAtMag(double mag, lt_uint32 &width, lt_uint32 &height) const
get image width and height at given magnification
bool isSelective() const
check if image supports "random access" decoding
LT_STATUS decodeStrip(LTISceneBuffer &stripBuffer, const LTIScene &stripScene)
read a strip from the image
LTIInterruptDelegate * getInterruptDelegate() const
get interrupt delegate
LT_STATUS overrideBackgroundPixel(const LTIPixel *backgroundPixel)
override the background color of the image
lt_uint32 getModifications(const LTIScene &scene) const
get the modification bitfield for this image
LT_STATUS overrideDynamicRange(const LTIPixel &drmin, const LTIPixel &drmax)
override the dynamic range of the image
const LTIPixel & getMinDynamicRange() const
get the minimum dynamic range value of image
LTIImageStage * getPreviousStage(void) const
LT_STATUS overrideMetadata(const LTIMetadataDatabase &metadata)
override the metadata of the image
LT_STATUS setStripHeight(lt_uint32 stripHeight)
set the strip height
lt_uint32 getWidth() const
get image width
void changePreviousStage(LTIImageStage *newPref)
const LTIPixel * getNoDataPixel() const
get the values of the "no data" (transparency) pixel
LT_STATUS overrideGeoCoord(const LTIGeoCoord &geoCoord)
override the geographic coordinates of the image
double getMinMagnification() const
get the minimum magnification
void setProgressDelegate(LTIProgressDelegate *delegate)
set progress delegate
bool hasMetadataBlob(const char *type) const
LT_STATUS init(LTIImageStage *previousStage)
lt_uint32 getStripHeight() const
get strip height
const LTIPixel * getBackgroundPixel() const
get the values of the background pixel
const LTIGeoCoord & getGeoCoord() const
get the geographic coordinates of the image
const LTIMetadataDatabase & getMetadata() const
get the metadata associated with the image
const LTIPixelLookupTable * getPixelLookupTable() const
get the color lookup table, if any
abstract class for decoding from an image
class for storing metadata associated with an image
basic properties of a pixel
Definition: lti_pixel.h:32
color lookup table
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages

Extensis