MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
J2KImageReader.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 J2KIMAGEREADER_H
9 #define J2KIMAGEREADER_H
10 
11 // lt_lib_mrsid_core
12 #include "lti_imageFilter.h"
13 
14 // lt_lib_mrsid_j2k
15 #include "j2k_types.h"
16 
17 LT_BEGIN_LIZARDTECH_NAMESPACE
18 
19 class LTFileSpec;
20 class LTIOStreamInf;
21 class Jpeg2000ReaderManager;
22 class Jpeg2000ReaderSource;
23 class Jpeg2000ReaderStreamSource;
24 class JPCReader;
25 
26 /***!!! ONLY FOR BACKWARDS COMPAT !!!***/
27 
28 
38 {
40 public:
72  LT_STATUS initialize(const LTFileSpec& fileSpec,
73  bool isPersistent = true,
74  float maxBpp = -1.0f,
75  bool useWorldFile = true);
76 
92  bool isPersistent = true,
93  float maxBpp = -1.0f,
94  bool useWorldFile = true);
99 
123 
151  void getParameter_TileSize(int& width, int& height) const;
152 
164  void getParameter_Precincts(const int*& widths,
165  const int*& heights,
166  int& numPrecincts) const;
167 
176 
185  void getParameter_CodeblockSize(int& width, int& height) const;
186 
198 
208 
219 
232 
233  // for LizardTech internal use only
234  LT_STATUS writeProfile(const LTFileSpec& file) const;
235 
236  // for LizardTech internal use only
237  Jpeg2000ReaderSource& getReaderSouce() const;
238 
239  // LTIImageStage
240  virtual lt_int64 getEncodingCost(const LTIScene& scene) const;
241  virtual lt_uint32 getModifications(const LTIScene &scene) const;
242 
243 protected:
244 
245 private:
246  LT_STATUS privateInit(bool isPersistent,
247  float maxBpp,
248  bool useWorldFile);
249 
250  Jpeg2000ReaderManager* m_manager;
251  Jpeg2000ReaderStreamSource* m_source;
252  JPCReader* m_reader;
253 };
254 
255 
256 LT_END_LIZARDTECH_NAMESPACE
257 
258 #endif // J2KIMAGEREADER_H
J2KProgressionOrder
constants used to define progression orders
Definition: j2k_types.h:20
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)
image reader for JPEG 2000 images
lt_uint32 getParameter_DefaultPrecision() const
control decoder use of bits of precision
lt_uint32 getParameter_MinPrecision() const
control decoder use of bits of precision
void getParameter_Precincts(const int *&widths, const int *&heights, int &numPrecincts) const
get image precinct sizes
virtual lt_int64 getEncodingCost(const LTIScene &scene) const
control decoder use of quality layers
bool getParameter_Wavelet97() const
query if 9-7 wavelet used
lt_uint32 getParameter_Precision() const
control decoder use of bits of precision
void getParameter_CodeblockSize(int &width, int &height) const
get image codeblock size
LT_STATUS setParameter_Layers(lt_uint32 numLayers)
control decoder use of quality layers
LT_STATUS initialize(const LTFileSpec &fileSpec, bool isPersistent=true, float maxBpp=-1.0f, bool useWorldFile=true)
initializer
Jpeg2000ReaderSource & getReaderSouce() const
control decoder use of quality layers
bool getParameter_UsingYCbCr() const
query if YCC transform is used
lt_uint32 getParameter_MaxLayers() const
control decoder use of quality layers
lt_uint32 getParameter_MinLayers() const
control decoder use of quality layers
LT_STATUS setParameter_Precision(lt_uint32 precision)
control decoder use of bits of precision
LT_STATUS readMetadataBox(const lt_uint8 *uuid, LTIOStreamInf &stream)
get metadata chunk
J2KProgressionOrder getParameter_ProgressionOrder() const
get image progression order
lt_uint32 getParameter_DefaultLayers() const
control decoder use of quality layers
LT_STATUS writeProfile(const LTFileSpec &file) const
control decoder use of quality layers
void getParameter_TileSize(int &width, int &height) const
get image tile size
LT_STATUS initialize(LTIOStreamInf &stream, bool isPersistent=true, float maxBpp=-1.0f, bool useWorldFile=true)
initializer
lt_uint32 getParameter_MaxPrecision() const
control decoder use of bits of precision
lt_uint8 getNumLevels() const
get number of resolution levels
lt_uint32 getParameter_Layers() const
control decoder use of quality layers
virtual lt_uint32 getModifications(const LTIScene &scene) const
control decoder use of quality layers
Represents a file or directory path.
Definition: lt_fileSpec.h:35
Abstract definition of a stream.
abstract class for implementing an image transform
representation of a scene
Definition: lti_scene.h:60

Extensis