MrSID Decode SDK for Raster Reference Manual 9.5.4.4709

- Main Page
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

MrSIDImageReader.h
Go to the documentation of this file.
1 /* $Id$ */
2 /* //////////////////////////////////////////////////////////////////////////
3 // //
4 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, //
5 // Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
6 // prohibited. Access to and use of this code is permitted only under //
7 // license from LizardTech, Inc. Portions of the code are protected by //
8 // US and foreign patents and other filings. All Rights Reserved. //
9 // //
11 /* PUBLIC */
12
13 #ifndef MRSIDIMAGEREADER_H
14 #define MRSIDIMAGEREADER_H
15
16 // lt_lib_mrsid_mrsidReader
17 #include "MrSIDImageReaderBase.h"
18 #include "lti_imageFilter.h"
19
20
21 LT_BEGIN_NAMESPACE(LizardTech)
22
23 class MrSIDImageStageManager;
24 class LTIMosaicFilter;
25 class MG2ImageReader;
26 class MG3SingleImageReader;
27 class MG4SingleImageReader;
28
35 class MrSIDImageReader : public LTIImageFilter,
36 public MrSIDImageReaderInterface
37 {
38 LTI_REFERENCE_COUNTED_BOILERPLATE(MrSIDImageReader);
39 public:
50 LT_STATUS initialize(const LTFileSpec& fileSpec,
51 bool useWorldFile = false,
52 MrSIDMemoryUsage memoryUsage = MRSID_MEMORY_USAGE_DEFAULT,
53 MrSIDStreamUsage streamUsage = MRSID_STREAM_USAGE_DEFAULT);
54
65 LT_STATUS initialize(LTIOStreamInf* stream,
66 LTIOStreamInf* worldFileStream = NULL,
67 MrSIDMemoryUsage memoryUsage = MRSID_MEMORY_USAGE_DEFAULT,
68 MrSIDStreamUsage streamUsage = MRSID_STREAM_USAGE_DEFAULT);
69
70 // LTIImageStage
71 virtual lt_int64 getEncodingCost(const LTIScene& scene) const;
72 virtual lt_uint32 getModifications(const LTIScene &scene) const;
73
74 // MrSIDImageReaderInterface overrides
75 lt_uint8 getNumLevels(void) const;
76 bool isLocked(void) const;
77 void setMaxWorkerThreads(int numThreads);
78 int getMaxWorkerThreads() const;
79
80 // for LizardTech internal use only
81 const MrSIDImageStageManager &getManager(void) const;
82 // for LizardTech internal use only
83 const LTIMosaicFilter *getMosaicFilter(void) const;
84 // for LizardTech internal use only
85 const MG2ImageReader *getMG2ImageReader(void) const;
86 // for LizardTech internal use only
87 const MG3SingleImageReader *getMG3ImageReader(void) const;
88 // for LizardTech internal use only
89 const MG4SingleImageReader *getMG4ImageReader(void) const;
90
91 protected:
92 LT_STATUS protectedInit(LTIOStreamInf *worldfile,
93 bool deleteImages);
94
95 MrSIDImageStageManager *m_manager;
96 LTIMosaicFilter *m_mosaicFilter;
97 MrSIDSingleImageReaderBase *m_mrsidReader;
98 lt_uint8 m_numLevels;
99 bool m_isLocked;
100 };
101
102
103 LT_END_NAMESPACE(LizardTech)
104
105 #endif // MRSIDIMAGEREADER_H

LizardTech