MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
GraphicSegment.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 GraphicSegment_H
9#define GraphicSegment_H
10
11// lt_lib_base
12#include "lt_base.h"
13
14// local
15#include "Segment.h"
16
17LT_BEGIN_LIZARDTECH_NAMESPACE
18class LTIOStreamInf;
19
20namespace Nitf {
21
22
33class GraphicSegment : public Segment
34{
35public:
36 // not for public use -- to get a DataSegment, use NITFReaderManager::getGraphicSegment
38 int segmentNumber,
39 lt_int64 headerOffset, lt_int64 headerLength,
40 lt_int64 dataOffset, lt_int64 dataLength);
42
43 // not for public use
45
54 lt_uint8* getGraphicData(lt_uint32& graphicDataLen) const;
55
56 // not for public use
58
59private:
60 LT_STATUS readHeader();
61 LT_STATUS readData();
62
63 char* m_SID; // 10
64 char* m_SNAME; // 20
65 char* m_STYPE; // 1
66 char* m_SSTRUCT; // 13
67 int m_NLIPS;
68 int m_NPIXPL;
69 int m_NWDTH;
70 int m_NBPP;
71
72 int m_SDLVL;
73 int m_SALVL;
74 int m_SLOCr;
75 int m_SLOCc;
76 char* m_SBND1; // 10
77 char* m_SCOLOR; // 1
78 char* m_SBND2; // 10
79 char* m_SRES2; // 2
80
81 int m_SNUM;
82 int m_SROT;
83 int m_NELUT;
84 lt_uint8* m_DLUT;
85
86 lt_uint8* m_graphicData;
87 lt_uint32 m_graphicDataLen;
88
89 // nope
91 GraphicSegment& operator=(const GraphicSegment&);
92};
93
94
95}
96LT_END_LIZARDTECH_NAMESPACE
97
98#endif // GraphicSegment_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
Abstract definition of a stream.
class for storing metadata associated with an image
class for reading an NITF file
represents a graphic segment in an existing NITF file
LT_STATUS initialize()
initializer
GraphicSegment(NITFReaderManager &, LTIOStreamInf &, int segmentNumber, lt_int64 headerOffset, lt_int64 headerLength, lt_int64 dataOffset, lt_int64 dataLength)
lt_uint8 * getGraphicData(lt_uint32 &graphicDataLen) const
returns the graphic segment contents
LT_STATUS addMetadataLocal(LTIMetadataDatabase &db) const
base class for segment data in an NITF file
Definition: Segment.h:39

Extensis