MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lti_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 LTI_IMAGE_READER_H
9#define LTI_IMAGE_READER_H
10
11// lt_lib_mrsid_core
12#include "lti_imageStage.h"
14
15
16LT_BEGIN_LIZARDTECH_NAMESPACE
17
25#ifdef SWIG
26class LTIImageReader : public LTIImageStage
27#else
29 <LTIOverridePixelProps
30 <LTIOverrideGeoCoord
31 <LTIOverrideMagnification
32 <LTIOverrideIsSelective
33 <LTIOverrideStripHeight
34 <LTIOverrideDelegates
35 <LTIOverridePixelLookupTables
36 <LTIOverrideMetadata
37 <LTIImageStage> > > > > > > > >
38#endif
39{
40 LT_DISALLOW_COPY_CONSTRUCTOR(LTIImageReader);
41public:
42 // LTIImage
44 lt_uint32& width,
45 lt_uint32& height) const;
46
47 lt_uint32 getModifications(const LTIScene &scene) const;
48
49
50 // LTIImageStage
51 LTIMaskSource *getMask() const;
54
55 lt_int64 getEncodingCost(const LTIScene& scene) const;
56 bool getReaderScene(const LTIScene &decodeScene,
57 LTIScene &readerScene) const;
58
59 // override too support ImageReaders that don't support band selection
60 LT_STATUS readBegin(const LTIPixel &pixelProps, const LTIScene &fullScene);
61 LT_STATUS readStrip(LTISceneBuffer &buffer, const LTIScene &stripScene);
63
64protected:
65 LTIImageReader(bool supportBandSelection);
66
67 LT_STATUS init(const LTIImage *image = nullptr);
68
69
71 LTIPixel &pixelProps,
72 bool updatePixelProps,
73 bool updateGeoCoord);
74 virtual const char *getSourceName(void) const = 0;
75
76protected:
78};
79
80
81LT_END_LIZARDTECH_NAMESPACE
82
83
84#endif // LTI_IMAGE_READER_H
LTIPipelineInfo
Definition: lti_types.h:224
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
abstract class representing an image
Definition: lti_image.h:28
abstract class for implementing an image reader
LT_STATUS readStrip(LTISceneBuffer &buffer, const LTIScene &stripScene)
read a strip from the image
LT_STATUS loadMetadataIntoObjects(const LTIMetadataDatabase &fileMetadata, LTIPixel &pixelProps, bool updatePixelProps, bool updateGeoCoord)
LTIMaskSource * getMask() const
LT_STATUS getDimsAtMag(double mag, lt_uint32 &width, lt_uint32 &height) const
get image width and height at given magnification
bool getPipelineInfo(LTIPipelineInfo info) const
virtual const char * getSourceName(void) const =0
lt_int64 getEncodingCost(const LTIScene &scene) const
get the cost to encode this scene
LT_STATUS init(const LTIImage *image=nullptr)
lt_uint32 getModifications(const LTIScene &scene) const
get the modification bitfield for this image
const bool m_supportBandSelection
bool getReaderScene(const LTIScene &decodeScene, LTIScene &readerScene) const
get the underlying scene to be used
LT_STATUS readEnd(void)
finish strip-based read
LTIImageStage * getPreviousStage(void) const
LTIImageReader(bool supportBandSelection)
LT_STATUS readBegin(const LTIPixel &pixelProps, const LTIScene &fullScene)
start strip-based read
abstract class for decoding from an image
class for storing metadata associated with an image
basic properties of a pixel
Definition: lti_pixel.h:32
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages

Extensis