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
15LT_BEGIN_LIZARDTECH_NAMESPACE
16
25{
27public:
28 // LTIImage
32 lt_uint32 &width,
33 lt_uint32 &height) const;
34 const LTIPixel &getPixelProps() const;
36 const LTIPixel *getNoDataPixel() 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
67 const LTIPixel& drmax);
72
73 LTIMaskSource *getMask() const;
75
77protected:
78 LT_STATUS decodeBegin(const LTIPixel &pixelProps,
79 const LTIScene &fullScene);
81 const LTIScene &stripScene);
83
84protected:
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
93private:
94 LTIImageStage* m_previousStage;
95};
96
97
98LT_END_LIZARDTECH_NAMESPACE
99
100#endif // LTI_IMAGEFILTER_H
#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
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
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
LTIProgressDelegate * getProgressDelegate() const
get progress delegate
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 & getMaxDynamicRange() const
get the maximum dynamic range value of image
const LTIPixel * getBackgroundPixel() const
get the values of the background pixel
LTIImageStage * getPreviousStage(void) const
LT_STATUS decodeBegin(const LTIPixel &pixelProps, const LTIScene &fullScene)
start strip-based read
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
const LTIPixel & getMinDynamicRange() const
get the minimum dynamic range value of image
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
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
const LTIMetadataDatabase & getMetadata() const
get the metadata associated with the image
LT_STATUS overrideDynamicRange(const LTIPixel &drmin, const LTIPixel &drmax)
override the dynamic range of the image
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 & getPixelProps() const
get the pixel properties of the image
LTIMaskSource * getMask() const
LT_STATUS overrideGeoCoord(const LTIGeoCoord &geoCoord)
override the geographic coordinates of the image
LTIInterruptDelegate * getInterruptDelegate() const
get interrupt delegate
double getMinMagnification() const
get the minimum magnification
void setProgressDelegate(LTIProgressDelegate *delegate)
set progress delegate
bool hasMetadataBlob(const char *type) const
const LTIPixel * getNoDataPixel() const
get the values of the "no data" (transparency) pixel
LT_STATUS init(LTIImageStage *previousStage)
const LTIPixelLookupTable * getPixelLookupTable() const
get the color lookup table, if any
const LTIGeoCoord & getGeoCoord() const
get the geographic coordinates of the image
lt_uint32 getStripHeight() const
get strip height
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