MrSID Decode SDK for Raster Reference Manual  9.5.5.5244
lti_rawImageReader.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 LTIRAWIMAGEREADER_H
9 #define LTIRAWIMAGEREADER_H
10 
11 // lt_lib_mrsid_core
12 #include "lti_geoImageReader.h"
13 
14 
15 LT_BEGIN_LIZARDTECH_NAMESPACE
16 
17 
26 {
28 public:
43  const LTIPixel& pixelProps,
44  lt_uint32 width,
45  lt_uint32 height,
46  bool useWorldFile = true);
47 
61  LT_STATUS initialize(const LTFileSpec& fileSpec,
62  const LTIPixel& pixelProps,
63  lt_uint32 width,
64  lt_uint32 height,
65  bool useWorldFile = true);
66 
80  LT_STATUS initialize(const char* file,
81  const LTIPixel& pixelProps,
82  lt_uint32 width,
83  lt_uint32 height,
84  bool useWorldFile = true);
85 
86 
94 
109  void setStreamOwnership(bool takeOwnership);
110 
125  void setRowBytes(lt_uint32 rowBytes);
126 
138  void setLayout(LTILayout layout);
139 
154  void setSkipBytes(lt_int64 leadingBytes, lt_int64 trailingBytes = 0);
155 
165  void setByteOrder(LTIEndian byteOrder);
166 
169 protected:
170  LT_STATUS decodeBegin(const LTIPixel &pixelProps,
171  const LTIScene &fullScene);
173  const LTIScene &stripScene);
175 
176  const char *getSourceName(void) const;
177 
178 protected:
180 
181 private:
182  LTIOStreamInf* m_stream;
183  bool m_ownsStream;
184  lt_int64 m_fileSize;
185  lt_uint32 m_rowBytes;
186  LTILayout m_layout;
187  lt_int64 m_leadingSkipBytes;
188  lt_int64 m_trailingSkipBytes;
189  LTIEndian m_byteOrder;
190 
191 };
192 
193 
194 LT_END_LIZARDTECH_NAMESPACE
195 
196 
197 #endif // LTIRAWIMAGEREADER_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
#define LTI_REFERENCE_COUNTED_BOILERPLATE(classname)
LTILayout
constants representing data layout
Definition: lti_types.h:148
LTIEndian
constants representing endianness (byte order)
Definition: lti_types.h:160
Represents a file or directory path.
Definition: lt_fileSpec.h:35
Abstract definition of a stream.
abstract class for implementing a geo image reader
basic properties of a pixel
Definition: lti_pixel.h:32
class for reading RAW files
void setRowBytes(lt_uint32 rowBytes)
sets the number of bytes in each row
LT_STATUS decodeStrip(LTISceneBuffer &stripBuffer, const LTIScene &stripScene)
set stream ownership
void setLayout(LTILayout layout)
sets the layout or organization of the raw data
void setStreamOwnership(bool takeOwnership)
set stream ownership
LT_STATUS initialize(LTIOStreamInf *stream, const LTIPixel &pixelProps, lt_uint32 width, lt_uint32 height, bool useWorldFile=true)
initialize (stream)
LTFileSpec * m_fileSpec
set stream ownership
LT_STATUS decodeEnd(void)
set stream ownership
void setSkipBytes(lt_int64 leadingBytes, lt_int64 trailingBytes=0)
sets the number of bytes to skip at the beginning and end of the file
void setByteOrder(LTIEndian byteOrder)
sets endianness of input file
LT_STATUS decodeBegin(const LTIPixel &pixelProps, const LTIScene &fullScene)
set stream ownership
LT_STATUS initialize(const LTFileSpec &fileSpec, const LTIPixel &pixelProps, lt_uint32 width, lt_uint32 height, bool useWorldFile=true)
initialize (FileSpec)
const char * getSourceName(void) const
set stream ownership
LT_STATUS initialize(const char *file, const LTIPixel &pixelProps, lt_uint32 width, lt_uint32 height, bool useWorldFile=true)
initialize (char*)
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages

Extensis