|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
JP2 info class. More...
#include <ossimJp2Info.h>
Public Types | |
| enum | { SIGNATURE_BOX_SIZE = 12, GEOTIFF_UUID_SIZE = 16 } |
| Anonymous enumerations: More... | |
Public Member Functions | |
| ossimJp2Info () | |
| default constructor More... | |
| virtual | ~ossimJp2Info () |
| virtual destructor More... | |
| virtual bool | open (const ossimFilename &file) |
| open method. More... | |
| virtual std::ostream & | print (std::ostream &out) const |
| Print method. More... | |
| std::streamoff | getBox (const ossim_uint32 type, bool includeAll, std::vector< ossim_uint8 > &box) const |
| This gets a box of type and stuffs in box. More... | |
| std::streamoff | getBox (const ossim_uint32 &type, bool includeAll, std::ifstream &str, std::vector< ossim_uint8 > &box) const |
| This gets a box of type and stuffs in box. More... | |
| std::streamoff | getGeotiffBox (std::ifstream &str, std::vector< ossim_uint8 > &box) const |
| Method to get the embedded JP2 GeoTIFF box. More... | |
| std::streamoff | getGmlBox (std::ifstream &str, std::vector< ossim_uint8 > &box) const |
| Method to get the embedded JP2 GML Box. More... | |
| std::streamoff | findBoxData (const ossim_uint32 &type, std::ifstream &str, ossim_uint32 &length) const |
| This finds a box of type and returns the location of its data. More... | |
Public Member Functions inherited from ossimJ2kInfo | |
| ossimJ2kInfo () | |
| default constructor More... | |
| virtual | ~ossimJ2kInfo () |
| virtual destructor More... | |
Public Member Functions inherited from ossimInfoBase | |
| ossimInfoBase () | |
| default constructor More... | |
| virtual bool | open (std::shared_ptr< ossim::istream > &str, const std::string &connectionString) |
| open method. More... | |
| void | setProcessOverviewFlag (bool flag) |
| Sets the overview flag. More... | |
| bool | getProcessOverviewFlag () const |
| Method to get the overview flag. More... | |
| virtual bool | getKeywordlist (ossimKeywordlist &kwl) const |
| Method to dump info to a keyword list. More... | |
| virtual bool | getKeywordlist (ossimKeywordlist &kwl, ossim_uint32 entryIndex) const |
| Method to dump info to a keyword list. More... | |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (const ossimReferenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| int | referenceCount () const |
Protected Member Functions | |
| void | printTboxType (ossim_uint32 tbox, std::ostream &out) const |
| Print tbox type as string if known. More... | |
| void | readUInt32 (ossim_uint32 &i, std::ifstream &str) const |
| Initializes i reference. More... | |
| void | readUInt64 (ossim_uint64 &i, std::ifstream &str) const |
| Initializes i reference. More... | |
Protected Member Functions inherited from ossimJ2kInfo | |
| void | readUInt16 (ossim_uint16 &s, std::ifstream &str) const |
| Initializes s reference. More... | |
| std::ostream & | printCodMarker (std::ostream &out, const std::string &prefix, std::ifstream &str) const |
| Prints 0xff52 COD_MARKER (0xff52). More... | |
| std::ostream & | printSizMarker (std::ostream &out, const std::string &prefix, std::ifstream &str) const |
| Prints 0xff51 SIZ_MARKER (0xff51). More... | |
| std::ostream & | printSotMarker (std::ostream &out, const std::string &prefix, std::ifstream &str) const |
| Prints 0xff90 SOT_MARKER (0xff90) More... | |
| std::ostream & | printUnknownMarker (std::ostream &out, const std::string &prefix, std::ifstream &str, ossim_uint16 marker) const |
| Prints unhandle segment. More... | |
Protected Member Functions inherited from ossimInfoBase | |
| virtual | ~ossimInfoBase () |
| virtual destructor More... | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Additional Inherited Members | |
Protected Attributes inherited from ossimJ2kInfo | |
| ossimFilename | m_file |
| ossimEndian * | m_endian |
Protected Attributes inherited from ossimInfoBase | |
| bool | theOverviewFlag |
JP2 info class.
Definition at line 21 of file ossimJp2Info.h.
| anonymous enum |
Anonymous enumerations:
| Enumerator | |
|---|---|
| SIGNATURE_BOX_SIZE | |
| GEOTIFF_UUID_SIZE | |
Definition at line 26 of file ossimJp2Info.h.
| ossimJp2Info::ossimJp2Info | ( | ) |
|
virtual |
| std::streamoff ossimJp2Info::findBoxData | ( | const ossim_uint32 & | type, |
| std::ifstream & | str, | ||
| ossim_uint32 & | length | ||
| ) | const |
This finds a box of type and returns the location of its data.
| type | Defines box type. E.g. 0x6A703268 (jp2h) |
| str | Stream to read from. |
| length | Number of bytes in the data. |
Definition at line 242 of file ossimJp2Info.cpp.
References readUInt32(), and readUInt64().
Referenced by getGmlBox().
| std::streamoff ossimJp2Info::getBox | ( | const ossim_uint32 | type, |
| bool | includeAll, | ||
| std::vector< ossim_uint8 > & | box | ||
| ) | const |
This gets a box of type and stuffs in box.
Code for copying a box to a buffer. Currently used in ossimOpjWriter to overcome short falls of trying to write in between the uuid box in between the jp2h and start of jp2c written by opj_start_compress.
| type | Defines box type. E.g. 0x6A703268 (jp2h) |
| includeAll | if true the length fields are copied. If false just the DBox is copied. |
| box | Initialized by this. LBox and XLBox fields are NOT copied to the box. |
Definition at line 319 of file ossimJp2Info.cpp.
References ossimString::c_str(), ossimJ2kInfo::m_file, and ossimString::size().
Referenced by getGeotiffBox(), and getGmlBox().
| std::streamoff ossimJp2Info::getBox | ( | const ossim_uint32 & | type, |
| bool | includeAll, | ||
| std::ifstream & | str, | ||
| std::vector< ossim_uint8 > & | box | ||
| ) | const |
This gets a box of type and stuffs in box.
Code for copying a box to a buffer. Note that stream is not rewound or cleared if it hits EOF.
| type | Defines box type. E.g. 0x6A703268 (jp2h) |
| includeAll | if true the length fields are copied. If false just the DBox is copied. |
| str | Stream to read from. |
| box | Initialized by this. LBox and XLBox fields are NOT copied to the box. |
Definition at line 341 of file ossimJp2Info.cpp.
References readUInt32(), and readUInt64().
| std::streamoff ossimJp2Info::getGeotiffBox | ( | std::ifstream & | str, |
| std::vector< ossim_uint8 > & | box | ||
| ) | const |
Method to get the embedded JP2 GeoTIFF box.
This includes the 16 GEOTIFF_UUID bytes.
| str | Stream to read from. |
Definition at line 467 of file ossimJp2Info.cpp.
References GEOTIFF_UUID_SIZE, and getBox().
| std::streamoff ossimJp2Info::getGmlBox | ( | std::ifstream & | str, |
| std::vector< ossim_uint8 > & | box | ||
| ) | const |
Method to get the embedded JP2 GML Box.
| str | Stream to read from. |
Definition at line 496 of file ossimJp2Info.cpp.
References findBoxData(), and getBox().
|
virtual |
open method.
| file | File name to open. |
Reimplemented from ossimJ2kInfo.
Definition at line 37 of file ossimJp2Info.cpp.
References ossimString::c_str(), ossimJ2kInfo::m_file, and SIGNATURE_BOX_SIZE.
|
virtual |
Print method.
| out | Stream to print to. |
Reimplemented from ossimJ2kInfo.
Definition at line 75 of file ossimJp2Info.cpp.
References ossimString::c_str(), GEOTIFF_UUID_SIZE, ossimJ2kInfo::m_file, readUInt32(), readUInt64(), and ossimString::size().
|
protected |
|
protected |
Initializes i reference.
Does byte swapping as needed.
Definition at line 224 of file ossimJp2Info.cpp.
References ossimJ2kInfo::m_endian, and ossimEndian::swap().
Referenced by findBoxData(), getBox(), and print().
|
protected |
Initializes i reference.
Does byte swapping as needed.
Definition at line 233 of file ossimJp2Info.cpp.
References ossimJ2kInfo::m_endian, and ossimEndian::swap().
Referenced by findBoxData(), getBox(), and print().
1.8.14