MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
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 ImageReader_H
9#define ImageReader_H
10
11// lt_lib_base
12#include "lt_base.h"
13
14// lt_lib_mrsid_core
15#include "lti_geoImageReader.h"
16
17// local
18#include "nitf_types.h"
19
20LT_BEGIN_LIZARDTECH_NAMESPACE
21class LTFileSpec;
22class LTIOStreamInf;
23class LTReusableBuffer;
25
26namespace Nitf {
27class FileHeader;
28class ImageSegment;
29class ImageSegmentMetadata;
30class SecurityMetadata;
31
32
43{
44 LT_DISALLOW_COPY_CONSTRUCTOR(ImageReader);
45public:
49 const char* getIID1() const;
50
52
53 // not for public use
55
60
65
69 bool isBlocked() const;
70
74 bool isMasked() const;
75
79 int getSegmentNumber() const;
80
85
90
92
93
94
95 // inherited
97 lt_uint32& width,
98 lt_uint32& height) const = 0;
99
100protected:
102 ImageReader(bool supportBandSelection);
103
104 const char *getSourceName(void) const;
105
107 NITFReaderManager *manager,
108 const ImageSegment *imageSegment,
109 bool useWorldFile);
110
112
113 // blocked image support
116 LTISceneBuffer& dstBuffer) const;
117 bool activeSceneContains(const LTIScene& scene) const;
119 lt_uint8* buf,
120 lt_uint32 blockRow,
121 lt_uint32 blockCol,
122 lt_uint32 blockBand) const;
124 lt_uint8* buf,
125 lt_uint32 blockRow,
126 lt_uint32 blockCol) const;
128 lt_uint8* buf,
129 lt_uint32 blockRow,
130 lt_uint32 blockCol) const;
132 lt_uint8* buf,
133 lt_uint32 blockRow,
134 lt_uint32 blockCol) const;
135
136
137
140
143
144 LTReusableBuffer *m_reusableBuffer;
147};
148
149
150}
151LT_END_LIZARDTECH_NAMESPACE
152
153#endif // ImageReader_H
Include file for all LizardTech sources.
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
This file contains a number of enums, typedefs, etc, that are used within the NITF support classes.
Layout
layout
Definition: nitf_types.h:64
Format
image/compression format
Definition: nitf_types.h:46
Represents a file or directory path.
Definition: lt_fileSpec.h:35
Abstract definition of a stream.
abstract class for implementing a geo image reader
abstract class for decoding from an image
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages
class for reading an NITF file
represents the file header properties of a NITF file
Definition: FileHeader.h:38
class for representing an NITF image segment as an LTIImageReader
Definition: ImageReader.h:43
Layout getLayout() const
returns the pixel layout of the segment
bool isMasked() const
returns true iff block masking is used in the image segment
LT_STATUS init(LTIOStreamInf *stream, NITFReaderManager *manager, const ImageSegment *imageSegment, bool useWorldFile)
LT_STATUS getDimsAtMag(double mag, lt_uint32 &width, lt_uint32 &height) const =0
get image width and height at given magnification
LTISceneBuffer * m_activeSceneBuffer
Definition: ImageReader.h:146
LT_STATUS copyIntoUserBuffer(const LTIScene &dstScene, LTISceneBuffer &dstBuffer) const
NITFReaderManager & getManager() const
int getSegmentNumber() const
returns the index of this image segment
void putBlockIntoBuffer_SEQ(LTISceneBuffer &cBuffer, lt_uint8 *buf, lt_uint32 blockRow, lt_uint32 blockCol, lt_uint32 blockBand) const
const ImageSegment * getImageSegment() const
const FileHeader * m_fileHeader
Definition: ImageReader.h:142
const SecurityMetadata * getSecurityMetadata() const
returns the security metadata object for this segment
LTIScene computeBlockedScene(const LTIScene &scene) const
const ImageSegment * m_imageSegment
Definition: ImageReader.h:141
NITFReaderManager * m_manager
Definition: ImageReader.h:139
lt_int64 getPhysicalFileSize() const
void putBlockIntoBuffer_PIXEL(LTISceneBuffer &cBuffer, lt_uint8 *buf, lt_uint32 blockRow, lt_uint32 blockCol) const
Format getFormat() const
returns the compression format of the segment
LTIOStreamInf * m_stream
Definition: ImageReader.h:138
LT_STATUS addUnderlyingMetadata(const LTIImageStage &image)
LTIScene * m_activeScene
Definition: ImageReader.h:145
const char * getSourceName(void) const
const char * getIID1() const
returns the IID1 field for the segment
void putBlockIntoBuffer_BLOCK(LTISceneBuffer &cBuffer, lt_uint8 *buf, lt_uint32 blockRow, lt_uint32 blockCol) const
bool activeSceneContains(const LTIScene &scene) const
ImageReader(bool supportBandSelection)
LTReusableBuffer * m_reusableBuffer
Definition: ImageReader.h:144
const ImageSegmentMetadata * getImageMetadata() const
returns the image segment metadata object for this segment
void putBlockIntoBuffer_ROW(LTISceneBuffer &cBuffer, lt_uint8 *buf, lt_uint32 blockRow, lt_uint32 blockCol) const
bool isBlocked() const
returns true iff the image segment is in blocked form
represents a image segment in an existing NITF file
Definition: ImageSegment.h:41
container for Image Segment metadata
container for Security metadata

Extensis