MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
MrSIDImageReader.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 MRSIDIMAGEREADER_H
9 #define MRSIDIMAGEREADER_H
10 
11 // lt_lib_mrsid_mrsidReader
12 #include "MrSIDImageReaderBase.h"
13 #include "lti_imageFilter.h"
14 
15 
16 LT_BEGIN_LIZARDTECH_NAMESPACE
17 
19 class LTIMosaicFilter;
20 class MG2ImageReader;
21 class MG3SingleImageReader;
22 class MG4SingleImageReader;
23 
32 {
34 public:
45  LT_STATUS initialize(const LTFileSpec& fileSpec,
46  bool useWorldFile = false,
49 
61  LTIOStreamInf* worldFileStream = nullptr,
64 
65  // LTIImageStage
66  virtual lt_int64 getEncodingCost(const LTIScene& scene) const;
67  virtual lt_uint32 getModifications(const LTIScene &scene) const;
68 
69  // MrSIDImageReaderInterface overrides
70  lt_uint8 getNumLevels(void) const;
71  bool isLocked(void) const;
72  void setMaxWorkerThreads(int numThreads);
73  int getMaxWorkerThreads() const;
74 
75  // for LizardTech internal use only
76  const MrSIDImageStageManager &getManager(void) const;
77  // for LizardTech internal use only
78  const LTIMosaicFilter *getMosaicFilter(void) const;
79  // for LizardTech internal use only
80  const MG2ImageReader *getMG2ImageReader(void) const;
81  // for LizardTech internal use only
82  const MG3SingleImageReader *getMG3ImageReader(void) const;
83  // for LizardTech internal use only
84  const MG4SingleImageReader *getMG4ImageReader(void) const;
85 
86 protected:
88  bool deleteImages);
89 
94  bool m_isLocked;
95 };
96 
97 
98 LT_END_LIZARDTECH_NAMESPACE
99 
100 #endif // MRSIDIMAGEREADER_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(classname)
MrSIDStreamUsage
@ MRSID_STREAM_USAGE_DEFAULT
MrSIDMemoryUsage
@ MRSID_MEMORY_USAGE_DEFAULT
Represents a file or directory path.
Definition: lt_fileSpec.h:35
Abstract definition of a stream.
abstract class for implementing an image transform
create a single mosaicked image from a set of images
representation of a scene
Definition: lti_scene.h:60
reader for MrSID images (MG2, MG3 and MG4)
const MG3SingleImageReader * getMG3ImageReader(void) const
void setMaxWorkerThreads(int numThreads)
set the maximum number of worker threads
bool isLocked(void) const
image encryption query
virtual lt_uint32 getModifications(const LTIScene &scene) const
get the modification bitfield for this image
int getMaxWorkerThreads() const
get the maximum number of worker threads
const MG2ImageReader * getMG2ImageReader(void) const
MrSIDImageStageManager * m_manager
const MrSIDImageStageManager & getManager(void) const
lt_uint8 getNumLevels(void) const
get number of resolution levels
LTIMosaicFilter * m_mosaicFilter
LT_STATUS initialize(const LTFileSpec &fileSpec, bool useWorldFile=false, MrSIDMemoryUsage memoryUsage=MRSID_MEMORY_USAGE_DEFAULT, MrSIDStreamUsage streamUsage=MRSID_STREAM_USAGE_DEFAULT)
initializer
LT_STATUS initialize(LTIOStreamInf *stream, LTIOStreamInf *worldFileStream=nullptr, MrSIDMemoryUsage memoryUsage=MRSID_MEMORY_USAGE_DEFAULT, MrSIDStreamUsage streamUsage=MRSID_STREAM_USAGE_DEFAULT)
initializer
virtual lt_int64 getEncodingCost(const LTIScene &scene) const
get the cost to encode this scene
const LTIMosaicFilter * getMosaicFilter(void) const
MrSIDSingleImageReaderBase * m_mrsidReader
LT_STATUS protectedInit(LTIOStreamInf *worldfile, bool deleteImages)
const MG4SingleImageReader * getMG4ImageReader(void) const
base class for MrSID image readers

Extensis