OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimJ2kSizRecord.h>
Public Member Functions | |
ossimJ2kSizRecord () | |
default constructor More... | |
~ossimJ2kSizRecord () | |
destructor More... | |
void | parseStream (ossim::istream &in) |
Parse method. More... | |
void | writeStream (std::ostream &out) |
Write method. More... | |
ossimScalarType | getScalarType () const |
Gets the scalar type. 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 | m_marker |
segmet marker 0xff51 (big endian) More... | |
ossim_uint16 | m_Lsiz |
length of segment minus marker More... | |
ossim_uint16 | m_Rsiz |
profile More... | |
ossim_uint32 | m_Xsiz |
width of reference grid More... | |
ossim_uint32 | m_Ysiz |
height of reference grid More... | |
ossim_uint32 | m_XOsiz |
Horizontal offset from the orgin of reference grid to the left side of image. More... | |
ossim_uint32 | m_YOsiz |
Vertical offset from the orgin of reference grid to the top of image. More... | |
ossim_uint32 | m_XTsiz |
width of one reference tile More... | |
ossim_uint32 | m_YTsiz |
height of one reference tile More... | |
ossim_uint32 | m_XTOsiz |
Horizontal offset from the orgin of reference grid to the left edge of first tile. More... | |
ossim_uint32 | m_YTOsiz |
Vertical offset from the orgin of reference grid to the top edge of first tile. More... | |
ossim_uint16 | m_Csiz |
number of component in the image More... | |
std::vector< ossim_uint8 > | m_Ssiz |
One for each component: More... | |
std::vector< ossim_uint8 > | m_XRsiz |
One for each component: More... | |
std::vector< ossim_uint8 > | m_YRsiz |
One for each component: More... | |
Friends | |
OSSIM_DLL std::ostream & | operator<< (std::ostream &out, const ossimJ2kSizRecord &obj) |
operator<< More... | |
Definition at line 16 of file ossimJ2kSizRecord.h.
ossimJ2kSizRecord::ossimJ2kSizRecord | ( | ) |
default constructor
Definition at line 23 of file ossimJ2kSizRecord.cpp.
ossimJ2kSizRecord::~ossimJ2kSizRecord | ( | ) |
ossimScalarType ossimJ2kSizRecord::getScalarType | ( | ) | const |
Gets the scalar type.
Currently assumes all components are the same scalar type. I.e., only looks at first component.
Definition at line 157 of file ossimJ2kSizRecord.cpp.
References ossim::isSigned(), m_Ssiz, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT16, OSSIM_SINT8, OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, and OSSIM_USHORT15.
Referenced by ossimKakaduJ2kReader::getOutputScalarType(), and ossimOpjJp2Reader::getOutputScalarType().
void ossimJ2kSizRecord::parseStream | ( | ossim::istream & | in | ) |
Parse method.
Performs byte swapping as needed.
in | Stream to parse. |
Definition at line 47 of file ossimJ2kSizRecord.cpp.
References ossim::byteOrder(), m_Csiz, m_Lsiz, m_Rsiz, m_Ssiz, m_XOsiz, m_XRsiz, m_Xsiz, m_XTOsiz, m_XTsiz, m_YOsiz, m_YRsiz, m_Ysiz, m_YTOsiz, m_YTsiz, OSSIM_LITTLE_ENDIAN, and ossimEndian::swap().
Referenced by ossimKakaduNitfReader::dumpTiles(), ossimOpjJp2Reader::initSizRecord(), and ossimJ2kInfo::printSizMarker().
std::ostream & ossimJ2kSizRecord::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 252 of file ossimJ2kSizRecord.cpp.
References m_Csiz, m_Lsiz, m_marker, m_Rsiz, m_Ssiz, m_XOsiz, m_XRsiz, m_Xsiz, m_XTOsiz, m_XTsiz, m_YOsiz, m_YRsiz, m_Ysiz, m_YTOsiz, and m_YTsiz.
Referenced by ossimKakaduNitfReader::dumpTiles(), operator<<(), and ossimJ2kInfo::printSizMarker().
void ossimJ2kSizRecord::writeStream | ( | std::ostream & | out | ) |
Write method.
out | Stream to write to. |
Definition at line 89 of file ossimJ2kSizRecord.cpp.
References ossim::byteOrder(), m_Csiz, m_Lsiz, m_Rsiz, m_Ssiz, m_XOsiz, m_XRsiz, m_Xsiz, m_XTOsiz, m_XTsiz, m_YOsiz, m_YRsiz, m_Ysiz, m_YTOsiz, m_YTsiz, OSSIM_LITTLE_ENDIAN, and ossimEndian::swap().
|
friend |
operator<<
Definition at line 292 of file ossimJ2kSizRecord.cpp.
ossim_uint16 ossimJ2kSizRecord::m_Csiz |
number of component in the image
Definition at line 114 of file ossimJ2kSizRecord.h.
Referenced by ossimOpjJp2Reader::getNumberOfInputBands(), ossimKakaduJ2kReader::getNumberOfInputBands(), ossimOpjJp2Reader::getNumberOfOutputBands(), ossimKakaduJ2kReader::getNumberOfOutputBands(), parseStream(), print(), and writeStream().
ossim_uint16 ossimJ2kSizRecord::m_Lsiz |
length of segment minus marker
Definition at line 72 of file ossimJ2kSizRecord.h.
Referenced by parseStream(), print(), and writeStream().
ossim_uint16 ossimJ2kSizRecord::m_marker |
segmet marker 0xff51 (big endian)
Definition at line 69 of file ossimJ2kSizRecord.h.
Referenced by print().
ossim_uint16 ossimJ2kSizRecord::m_Rsiz |
profile
Definition at line 75 of file ossimJ2kSizRecord.h.
Referenced by parseStream(), print(), and writeStream().
std::vector<ossim_uint8> ossimJ2kSizRecord::m_Ssiz |
One for each component:
sign bit and bit depth of data unsigned = 0xxx xxxx (msb == 0) signed = 1xxx xxxx (msb == 1) bit depth = x000 0000 + 1 (first seven bits plus one)
Definition at line 124 of file ossimJ2kSizRecord.h.
Referenced by getScalarType(), parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSizRecord::m_XOsiz |
Horizontal offset from the orgin of reference grid to the left side of image.
Definition at line 87 of file ossimJ2kSizRecord.h.
Referenced by ossimOpjJp2Reader::getNumberOfSamples(), ossimOpjJp2Reader::getOverviewTile(), parseStream(), print(), and writeStream().
std::vector<ossim_uint8> ossimJ2kSizRecord::m_XRsiz |
One for each component:
Horizontal separation of a sample of the component with respect to the reference grid.
Definition at line 132 of file ossimJ2kSizRecord.h.
Referenced by parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSizRecord::m_Xsiz |
width of reference grid
Definition at line 78 of file ossimJ2kSizRecord.h.
Referenced by ossimOpjJp2Reader::getNumberOfSamples(), ossimKakaduJ2kReader::getNumberOfSamples(), parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSizRecord::m_XTOsiz |
Horizontal offset from the orgin of reference grid to the left edge of first tile.
Definition at line 105 of file ossimJ2kSizRecord.h.
Referenced by ossimOpjJp2Reader::getImageTileWidth(), parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSizRecord::m_XTsiz |
width of one reference tile
Definition at line 96 of file ossimJ2kSizRecord.h.
Referenced by ossimKakaduJ2kReader::getImageTileHeight(), ossimKakaduJ2kReader::getImageTileWidth(), ossimOpjJp2Reader::getImageTileWidth(), parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSizRecord::m_YOsiz |
Vertical offset from the orgin of reference grid to the top of image.
Definition at line 93 of file ossimJ2kSizRecord.h.
Referenced by ossimOpjJp2Reader::getNumberOfLines(), ossimOpjJp2Reader::getOverviewTile(), parseStream(), print(), and writeStream().
std::vector<ossim_uint8> ossimJ2kSizRecord::m_YRsiz |
One for each component:
Vertical separation of a sample of the component with respect to the reference grid.
Definition at line 140 of file ossimJ2kSizRecord.h.
Referenced by parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSizRecord::m_Ysiz |
height of reference grid
Definition at line 81 of file ossimJ2kSizRecord.h.
Referenced by ossimOpjJp2Reader::getNumberOfLines(), ossimKakaduJ2kReader::getNumberOfLines(), parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSizRecord::m_YTOsiz |
Vertical offset from the orgin of reference grid to the top edge of first tile.
Definition at line 111 of file ossimJ2kSizRecord.h.
Referenced by ossimOpjJp2Reader::getImageTileHeight(), parseStream(), print(), and writeStream().
ossim_uint32 ossimJ2kSizRecord::m_YTsiz |
height of one reference tile
Definition at line 99 of file ossimJ2kSizRecord.h.
Referenced by ossimKakaduJ2kReader::getImageTileHeight(), ossimOpjJp2Reader::getImageTileHeight(), ossimKakaduJ2kReader::getImageTileWidth(), parseStream(), print(), and writeStream().