MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
lti_imageReader.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_IMAGE_READER_H
9 #define LTI_IMAGE_READER_H
10 
11 // lt_lib_mrsid_core
12 #include "lti_imageStage.h"
14 
15 
16 LT_BEGIN_LIZARDTECH_NAMESPACE
17 
25 #ifdef SWIG
26 class LTIImageReader : public LTIImageStage
27 #else
29  <LTIOverridePixelProps
30  <LTIOverrideGeoCoord
31  <LTIOverrideMagnification
32  <LTIOverrideIsSelective
33  <LTIOverrideStripHeight
34  <LTIOverrideDelegates
35  <LTIOverridePixelLookupTables
36  <LTIOverrideMetadata
37  <LTIImageStage> > > > > > > > >
38 #endif
39 {
40  LT_DISALLOW_COPY_CONSTRUCTOR(LTIImageReader);
41 public:
42  // LTIImage
43  LT_STATUS getDimsAtMag(double mag,
44  lt_uint32& width,
45  lt_uint32& height) const;
46 
47  lt_uint32 getModifications(const LTIScene &scene) const;
48 
49 
50  // LTIImageStage
51  LTIMaskSource *getMask() const;
52  bool getPipelineInfo(LTIPipelineInfo info) const;
54 
55  lt_int64 getEncodingCost(const LTIScene& scene) const;
56  bool getReaderScene(const LTIScene &decodeScene,
57  LTIScene &readerScene) const;
58 
59  // override too support ImageReaders that don't support band selection
60  LT_STATUS readBegin(const LTIPixel &pixelProps, const LTIScene &fullScene);
61  LT_STATUS readStrip(LTISceneBuffer &buffer, const LTIScene &stripScene);
63 
64 protected:
65  LTIImageReader(bool supportBandSelection);
66 
67  LT_STATUS init(const LTIImage *image = nullptr);
68 
69 
71  LTIPixel &pixelProps,
72  bool updatePixelProps,
73  bool updateGeoCoord);
74  virtual const char *getSourceName(void) const = 0;
75 
76 protected:
78 };
79 
80 
81 LT_END_LIZARDTECH_NAMESPACE
82 
83 
84 #endif // LTI_IMAGE_READER_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
long long int lt_int64
signed 64-bit integer
Definition: lt_types.h:57
LTIPipelineInfo
Definition: lti_types.h:224
abstract class representing an image
Definition: lti_image.h:28
abstract class for implementing an image reader
LT_STATUS readStrip(LTISceneBuffer &buffer, const LTIScene &stripScene)
LTIImageStage * getPreviousStage(void) const
LT_STATUS loadMetadataIntoObjects(const LTIMetadataDatabase &fileMetadata, LTIPixel &pixelProps, bool updatePixelProps, bool updateGeoCoord)
LT_STATUS getDimsAtMag(double mag, lt_uint32 &width, lt_uint32 &height) const
bool getPipelineInfo(LTIPipelineInfo info) const
lt_int64 getEncodingCost(const LTIScene &scene) const
LT_STATUS init(const LTIImage *image=nullptr)
LTIMaskSource * getMask() const
lt_uint32 getModifications(const LTIScene &scene) const
const bool m_supportBandSelection
virtual const char * getSourceName(void) const =0
bool getReaderScene(const LTIScene &decodeScene, LTIScene &readerScene) const
LT_STATUS readEnd(void)
LTIImageReader(bool supportBandSelection)
LT_STATUS readBegin(const LTIPixel &pixelProps, const LTIScene &fullScene)
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
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages

Extensis