OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimJ2kCodRecord.h>
Public Member Functions | |
ossimJ2kCodRecord () | |
default constructor More... | |
~ossimJ2kCodRecord () | |
destructor More... | |
void | parseStream (std::istream &in) |
Parse method. 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... | |
std::string | getProgressionOrderAsString (ossim_uint8 progressionOrder) const |
ossim_uint8 | getProgressionOrder () const |
Public Attributes | |
ossim_uint16 | m_marker |
segmet marker 0xff52 (big endian) More... | |
ossim_uint16 | m_lcod |
length of segment minus marker More... | |
ossim_uint8 | m_scod |
Coding style. More... | |
ossim_uint8 | m_progressionOrder |
SGcod - Progression order. More... | |
ossim_uint16 | m_numberOfLayers |
SGcod - Number of layers. More... | |
ossim_uint8 | m_multipleComponentTransform |
SGcod - Multiple component transform. More... | |
ossim_uint8 | m_numberOfDecompositionLevels |
SPcod - Number of decomposition levels. More... | |
ossim_uint8 | m_codeBlockWidth |
SPcod - Code-block width. More... | |
ossim_uint8 | m_codeBlockHeight |
SPcod - Code-block height. More... | |
ossim_uint8 | m_codeBlockStyle |
SPcod - Code-block height. More... | |
ossim_uint8 | m_transformation |
SPcod - transformation (wavelet filter) More... | |
ossim_uint8 | m_precinctSize |
SPcod - precinct size (only is defined, Scod = xxxx xxx1) More... | |
Friends | |
OSSIM_DLL std::ostream & | operator<< (std::ostream &out, const ossimJ2kCodRecord &obj) |
operator<< More... | |
Definition at line 23 of file ossimJ2kCodRecord.h.
ossimJ2kCodRecord::ossimJ2kCodRecord | ( | ) |
default constructor
Definition at line 23 of file ossimJ2kCodRecord.cpp.
ossimJ2kCodRecord::~ossimJ2kCodRecord | ( | ) |
ossim_uint8 ossimJ2kCodRecord::getProgressionOrder | ( | ) | const |
Definition at line 151 of file ossimJ2kCodRecord.cpp.
References m_progressionOrder.
std::string ossimJ2kCodRecord::getProgressionOrderAsString | ( | ossim_uint8 | progressionOrder | ) | const |
Definition at line 119 of file ossimJ2kCodRecord.cpp.
Referenced by print().
void ossimJ2kCodRecord::parseStream | ( | std::istream & | in | ) |
Parse method.
Performs byte swapping as needed.
in | Stream to parse. |
Definition at line 44 of file ossimJ2kCodRecord.cpp.
References ossim::byteOrder(), m_codeBlockHeight, m_codeBlockStyle, m_codeBlockWidth, m_lcod, m_multipleComponentTransform, m_numberOfDecompositionLevels, m_numberOfLayers, m_precinctSize, m_progressionOrder, m_scod, m_transformation, OSSIM_LITTLE_ENDIAN, and ossimEndian::swap().
Referenced by ossimKakaduNitfReader::dumpTiles(), ossimOpjJp2Reader::initCodRecord(), and ossimJ2kInfo::printCodMarker().
std::ostream & ossimJ2kCodRecord::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 = "j2k." and key is "file_name" key becomes: "nitf.file_name:" |
Definition at line 84 of file ossimJ2kCodRecord.cpp.
References getProgressionOrderAsString(), m_codeBlockHeight, m_codeBlockStyle, m_codeBlockWidth, m_lcod, m_multipleComponentTransform, m_numberOfDecompositionLevels, m_numberOfLayers, m_precinctSize, m_progressionOrder, m_scod, and m_transformation.
Referenced by ossimKakaduNitfReader::dumpTiles(), operator<<(), and ossimJ2kInfo::printCodMarker().
|
friend |
operator<<
Definition at line 156 of file ossimJ2kCodRecord.cpp.
ossim_uint8 ossimJ2kCodRecord::m_codeBlockHeight |
SPcod - Code-block height.
Definition at line 91 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint8 ossimJ2kCodRecord::m_codeBlockStyle |
SPcod - Code-block height.
Definition at line 94 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint8 ossimJ2kCodRecord::m_codeBlockWidth |
SPcod - Code-block width.
Definition at line 88 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint16 ossimJ2kCodRecord::m_lcod |
length of segment minus marker
Definition at line 70 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint16 ossimJ2kCodRecord::m_marker |
segmet marker 0xff52 (big endian)
Definition at line 67 of file ossimJ2kCodRecord.h.
ossim_uint8 ossimJ2kCodRecord::m_multipleComponentTransform |
SGcod - Multiple component transform.
Definition at line 82 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint8 ossimJ2kCodRecord::m_numberOfDecompositionLevels |
SPcod - Number of decomposition levels.
Definition at line 85 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint16 ossimJ2kCodRecord::m_numberOfLayers |
SGcod - Number of layers.
Definition at line 79 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint8 ossimJ2kCodRecord::m_precinctSize |
SPcod - precinct size (only is defined, Scod = xxxx xxx1)
Definition at line 100 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint8 ossimJ2kCodRecord::m_progressionOrder |
SGcod - Progression order.
Definition at line 76 of file ossimJ2kCodRecord.h.
Referenced by getProgressionOrder(), parseStream(), and print().
ossim_uint8 ossimJ2kCodRecord::m_scod |
Coding style.
Definition at line 73 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().
ossim_uint8 ossimJ2kCodRecord::m_transformation |
SPcod - transformation (wavelet filter)
Definition at line 97 of file ossimJ2kCodRecord.h.
Referenced by parseStream(), and print().