OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimJ2kSotRecord.h>
Public Member Functions | |
ossimJ2kSotRecord () | |
default constructor More... | |
~ossimJ2kSotRecord () | |
destructor More... | |
void | parseStream (ossim::istream &in) |
Parse method. More... | |
void | writeStream (std::ostream &out) |
Write method. More... | |
void | setIsot (ossim_uint16 isot) |
Sets the tile index. More... | |
std::ostream & | print (std::ostream &out, const std::string &prefix=std::string()) const |
print method that outputs a key/value type format adding prefix to keys. More... | |
Public Attributes | |
ossim_uint16 | theLsot |
Length in bytes of the marker segment. More... | |
ossim_uint16 | theIsot |
Tile index. More... | |
ossim_uint32 | thePsot |
The length in bytes of this record including the SOT marker. More... | |
ossim_uint8 | theTpsot |
Tile-Part index. More... | |
ossim_uint8 | theTnsot |
0 = Number of tile-parts of this tile in the codestream is not defined in this header. More... | |
Friends | |
OSSIM_DLL std::ostream & | operator<< (std::ostream &out, const ossimJ2kSotRecord &obj) |
operator<<. More... | |
Definition at line 16 of file ossimJ2kSotRecord.h.
ossimJ2kSotRecord::ossimJ2kSotRecord | ( | ) |
default constructor
Definition at line 25 of file ossimJ2kSotRecord.cpp.
ossimJ2kSotRecord::~ossimJ2kSotRecord | ( | ) |
void ossimJ2kSotRecord::parseStream | ( | ossim::istream & | in | ) |
Parse method.
Performs byte swapping as needed.
in | Stream to parse. |
Definition at line 39 of file ossimJ2kSotRecord.cpp.
References ossim::byteOrder(), OSSIM_LITTLE_ENDIAN, ossimEndian::swap(), theIsot, theLsot, thePsot, theTnsot, and theTpsot.
Referenced by ossimKakaduNitfReader::dumpTiles(), and ossimJ2kInfo::printSotMarker().
std::ostream & ossimJ2kSotRecord::print | ( | std::ostream & | out, |
const std::string & | prefix = std::string() |
||
) | const |
print method that outputs a key/value type format adding prefix to keys.
out | String to output to. |
prefix | This will be prepended to key. e.g. Where prefix = "nitf." and key is "file_name" key becomes: "nitf.file_name:" |
Definition at line 98 of file ossimJ2kSotRecord.cpp.
References theIsot, theLsot, thePsot, theTnsot, and theTpsot.
Referenced by ossimKakaduNitfReader::dumpTiles(), operator<<(), and ossimJ2kInfo::printSotMarker().
void ossimJ2kSotRecord::setIsot | ( | ossim_uint16 | isot | ) |
Sets the tile index.
isot |
Definition at line 93 of file ossimJ2kSotRecord.cpp.
References theIsot.
void ossimJ2kSotRecord::writeStream | ( | std::ostream & | out | ) |
Write method.
Note: Write includes two marker bytes.
out | Stream to write to. |
Definition at line 59 of file ossimJ2kSotRecord.cpp.
References ossim::byteOrder(), OSSIM_LITTLE_ENDIAN, ossimEndian::swap(), theIsot, theLsot, thePsot, theTnsot, and theTpsot.
|
friend |
operator<<.
Definition at line 124 of file ossimJ2kSotRecord.cpp.
ossim_uint16 ossimJ2kSotRecord::theIsot |
Tile index.
Tiles are in raster order starting at 0.
Definition at line 72 of file ossimJ2kSotRecord.h.
Referenced by parseStream(), print(), setIsot(), and writeStream().
ossim_uint16 ossimJ2kSotRecord::theLsot |
Length in bytes of the marker segment.
Definition at line 69 of file ossimJ2kSotRecord.h.
Referenced by parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSotRecord::thePsot |
The length in bytes of this record including the SOT marker.
Definition at line 75 of file ossimJ2kSotRecord.h.
Referenced by ossimKakaduNitfReader::dumpTiles(), parseStream(), print(), ossimJ2kInfo::printSotMarker(), and writeStream().
ossim_uint8 ossimJ2kSotRecord::theTnsot |
0 = Number of tile-parts of this tile in the codestream is not defined in this header.
1-255 number of tile-parts of this tile in the codestream.
Definition at line 86 of file ossimJ2kSotRecord.h.
Referenced by parseStream(), print(), and writeStream().
ossim_uint8 ossimJ2kSotRecord::theTpsot |
Tile-Part index.
Definition at line 78 of file ossimJ2kSotRecord.h.
Referenced by parseStream(), print(), and writeStream().