15 #ifndef ossimKakaduNitfReader_HEADER 16 #define ossimKakaduNitfReader_HEADER 1 20 #include <kdu_compressed.h> 28 class kdu_thread_queue;
35 struct kdu_channel_mapping;
52 SIGNATURE_BOX_SIZE = 12
302 virtual bool seek(kdu_core::kdu_long offset);
311 virtual kdu_core::kdu_long get_pos();
319 bool isEntryJ2k()
const;
329 bool checkJp2Signature();
334 void configureChannelMapping();
371 return ( KDU_SOURCE_CAP_SEEKABLE | KDU_SOURCE_CAP_SEQUENTIAL );
ossim_float64 m_maxSampleValue
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
kdu_core::kdu_codestream m_codestream
virtual void initializeCacheTileInterLeaveType()
Initializes the data member "theCacheTileInterLeaveType".
virtual void setMaxPixelValue(ossim_uint32 band, const ossim_float64 &pix)
convenience method to set max pixel value.
virtual ossim_int32 read(kdu_core::kdu_byte *buf, ossim_int32 num_bytes)
Read method.
std::shared_ptr< ossim::istream > theFileStr
std::streamoff m_startOfCodestreamOffset
virtual ossim_uint32 getNumberOfLines(ossim_uint32 resLevel=0) const
Returns the number of lines in the image.
virtual void initializeSwapBytesFlag()
Initializes the data member "theSwapBytesFlag" from the current entry.
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const
Returns the number of samples in the image.
virtual double getNullPixelValue(ossim_uint32 band=0) const
Each band has a null pixel associated with it.
virtual bool canUncompress(const ossimNitfImageHeader *hdr) const
virtual bool allocate()
Allocates everything for current entry.
virtual ossim_uint32 getNumberOfDecimationLevels() const
This returns the total number of decimation levels.
kdu_supp::jp2_source * m_jp2Source
ossim_float64 m_minSampleValue
min/max/null These are class attributes so that when behaving as an overview the owner or base image ...
virtual bool getOverviewTile(ossim_uint32 resLevel, ossimImageData *result)
Method to get an overview tile.
ossim_float64 m_nullSampleValue
kdu_supp::kdu_channel_mapping * m_channels
unsigned int ossim_uint32
virtual ossimString getLongName() const
virtual void setMinPixelValue(ossim_uint32 band, const ossim_float64 &pix)
convenience method to set min pixel value.
virtual bool parseFile()
Parses "theImageFile" and initializes all nitf headers.
kdu_core::kdu_thread_queue * m_openTileThreadQueue
ossim_uint32 m_sourcePrecisionBits
#define OSSIM_PLUGINS_DLL
kdu_supp::jp2_family_src * m_jp2FamilySrc
kdu_core::kdu_thread_env * m_threadEnv
ossim_uint32 m_minDwtLevels
virtual bool scanForJpegBlockOffsets()
scans the file storing in offsets in "theNitfBlockOffset" and block sizes in "theNitfBlockSize".
virtual bool seek(kdu_core::kdu_long offset)
Seek method.
virtual void setNullPixelValue(ossim_uint32 band, const ossim_float64 &pix)
convenience method to set null pixel value.
virtual double getMinPixelValue(ossim_uint32 band=0) const
Retuns the min pixel value.
ossimKakaduNitfReader class for reading NITF images with JPEG2000 (J2K) compressed blocks using kakad...
virtual void initializeReadMode()
Initializes the data member "theReadMode" from the current entry.
virtual ossim_int32 get_capabilities()
Gets kdu source capability.
virtual bool loadBlock(ossim_uint32 x, ossim_uint32 y)
Loads a block of data to theCacheTile.
virtual ossimString getShortName() const
virtual bool allocateBuffers()
Allocates buffers for current entry.
virtual kdu_core::kdu_long get_pos()
Get file position relative to the start of code stream offset.
std::vector< ossimIrect > m_imageDims
Image dimensions for each level.
std::basic_ostream< char > ostream
Base class for char output streams.