OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ossimKakaduJ2kReader Class Reference

ossimKakaduJ2kReader class for reading images with JPEG2000 (J2K) compressed blocks using kakadu library for decompression. More...

#include <ossimKakaduJ2kReader.h>

Inheritance diagram for ossimKakaduJ2kReader:
ossimImageHandler ossimImageSource ossimSource ossimConnectableObject ossimErrorStatusInterface ossimObject ossimListenerManager ossimPropertyInterface ossimReferenced

Public Member Functions

 ossimKakaduJ2kReader ()
 default construtor More...
 
virtual ~ossimKakaduJ2kReader ()
 virtural destructor More...
 
virtual ossimString getShortName () const
 Returns short name. More...
 
virtual ossimString getLongName () const
 Returns long name. More...
 
virtual ossimString getClassName () const
 Returns short name. More...
 
virtual ossimRefPtr< ossimImageDatagetTile (const ossimIrect &rect, ossim_uint32 resLevel=0)
 Method to grab a tile(rectangle) from image. More...
 
virtual ossim_uint32 getNumberOfInputBands () const
 Returns the number of bands in the image. More...
 
virtual ossim_uint32 getNumberOfOutputBands () const
 Returns the number of bands in a tile returned from this TileSource. More...
 
virtual ossim_uint32 getImageTileWidth () const
 Returns the tile width of the image or 0 if the image is not tiled. More...
 
virtual ossim_uint32 getImageTileHeight () const
 Returns the tile width of the image or 0 if the image is not tiled. More...
 
virtual ossimScalarType getOutputScalarType () const
 Returns the output pixel type of the tile source. More...
 
virtual void getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const
 Gets the decimation factor for a resLevel. More...
 
virtual void getDecimationFactors (vector< ossimDpt > &decimations) const
 Get array of decimations for all levels. More...
 
virtual ossim_uint32 getNumberOfDecimationLevels () const
 Returns the number of decimation levels. More...
 
virtual ossim_uint32 getNumberOfLines (ossim_uint32 resLevel=0) const
 Gets number of lines for res level. More...
 
virtual ossim_uint32 getNumberOfSamples (ossim_uint32 resLevel=0) const
 Gets the number of samples for res level. More...
 
virtual bool open ()
 Open method. More...
 
virtual bool isOpen () const
 Method to test for open file stream. More...
 
virtual void closeEntry ()
 Method to close current entry. More...
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 Method to the load (recreate) the state of an object from a keyword list. More...
 
- Public Member Functions inherited from ossimImageHandler
 ossimImageHandler ()
 Constructor (default): More...
 
virtual ~ossimImageHandler ()
 Destructor: Derived classes should implement. More...
 
virtual void initialize ()
 initialize Does nothing in this class. More...
 
virtual bool openOverview ()
 Searches for an overview. More...
 
virtual bool openOverview (const ossimFilename &overview_file)
 Calls closeOverview(), then attempts to open the overview_file. More...
 
virtual void closeOverview ()
 If theOverview is initialized it will be deleted and set to NULL. More...
 
virtual const ossimImageHandlergetOverview () const
 
virtual bool hasOverviews () const
 
virtual ossimFilename createDefaultOverviewFilename () const
 
virtual ossimFilename createDefaultGeometryFilename () const
 
virtual ossimFilename createDefaultMetadataFilename () const
 
virtual ossimFilename createDefaultHistogramFilename () const
 
virtual ossimFilename createDefaultValidVerticesFilename () const
 
virtual bool writeValidImageVertices (const std::vector< ossimIpt > &vertices, const ossimFilename &file=ossimFilename(""))
 Outputs vertices to file and updates the internal vertex array variable "theValidImageVertices". More...
 
virtual bool openValidVertices (const ossimFilename &vertices_file)
 Opens the valid image vertices file and sets theValidImageVerticesFile variable. More...
 
virtual bool openValidVertices ()
 Creates vertices file name based on image, then tries to open. More...
 
virtual bool open (const ossimFilename &imageFile, ossim_uint32 entryIndex)
 Opens the image file. More...
 
virtual bool open (const ossimFilename &imageFile)
 
virtual bool open (std::shared_ptr< ossim::ImageHandlerState > state)
 
virtual void close ()
 Deletes the overview and clears the valid image vertices. More...
 
virtual bool buildHistogram (int numberOfRLevels=0, ossimHistogramMode mode=OSSIM_HISTO_MODE_NORMAL)
 Build a histogram for image file. More...
 
virtual bool buildAllHistograms (int numberOfRLevels=0, ossimHistogramMode mode=OSSIM_HISTO_MODE_NORMAL)
 Build a histograms for all image entries. More...
 
virtual bool buildOverview (ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false)
 Will build over file for theImageFile. More...
 
virtual bool buildAllOverviews (ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false)
 Will build over file for all image entries. More...
 
virtual bool buildOverview (const ossimFilename &filename, ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false)
 Will build an over file for filename. More...
 
ossimRefPtr< ossimMultiResLevelHistogramgetImageHistogram () const
 Fetches the current entry image's histogram. More...
 
virtual ossimRefPtr< ossimImageGeometrygetImageGeometry ()
 Returns the image geometry object associated with this tile source or NULL if non defined. More...
 
virtual void setImageGeometry (ossimImageGeometry *geom)
 Sets the image geometry object. More...
 
virtual void saveImageGeometry () const
 Saves the image geometry to a file that will be made based on the image file name. More...
 
virtual void saveImageGeometry (const ossimFilename &geometry_file) const
 Saves the image geometry to a file that will be made based on the image file name. More...
 
virtual ossimIrect getImageRectangle (ossim_uint32 resLevel=0) const
 Returns zero-based bounding rectangle of the image. More...
 
virtual ossimIrect getBoundingRect (ossim_uint32 resLevel=0) const
 Returns zero-based bounding rectangle of the image. More...
 
virtual ossim_uint32 getNumberOfReducedResSets () const
 This method is obsolete. More...
 
virtual void setFilename (const ossimFilename &filename)
 Sets the filename. More...
 
virtual const ossimFilenamegetFilename () const
 Returns the filename. More...
 
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 Method to save the state of an object to a keyword list. More...
 
virtual bool isValidRLevel (ossim_uint32 resLevel) const
 Determines if the passed in reslution level is valid. More...
 
bool canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const
 Connection rule. More...
 
virtual void getValidImageVertices (vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const
 ordering specifies how the vertices should be arranged. More...
 
virtual bool isBandSelector () const
 Indicates whether or not the image handler can control output band selection via the setOutputBandList method. More...
 
virtual bool setOutputBandList (const std::vector< ossim_uint32 > &band_list)
 If the image handler "isBandSeletor()" then the band selection of the output chip can be controlled. More...
 
virtual bool setOutputToInputBandList ()
 If the image handler "isBandSeletor()" then the band selection of the output are set to input or identity. More...
 
virtual bool isIdentityBandList (const std::vector< ossim_uint32 > &bandList) const
 Convenience method to see if band list is identity. More...
 
virtual bool isImageTiled () const
 Indicates whether or not the image is tiled internally. More...
 
virtual bool hasMetaData () const
 
virtual ossimRefPtr< ossimNBandLutDataObjectgetLut () const
 
virtual bool hasLut () const
 
virtual void loadMetaData ()
 There is an external file with an omd extension. More...
 
virtual double getMinPixelValue (ossim_uint32 band=0) const
 Retuns the min pixel value. More...
 
virtual double getMaxPixelValue (ossim_uint32 band=0) const
 Returns the max pixel of the band. More...
 
virtual double getNullPixelValue (ossim_uint32 band=0) const
 Each band has a null pixel associated with it. More...
 
virtual void setMinPixelValue (ossim_uint32 band, const ossim_float64 &pix)
 convenience method to set min pixel value. More...
 
virtual void setMaxPixelValue (ossim_uint32 band, const ossim_float64 &pix)
 convenience method to set max pixel value. More...
 
virtual void setNullPixelValue (ossim_uint32 band, const ossim_float64 &pix)
 convenience method to set null pixel value. More...
 
virtual ossim_uint32 getCurrentEntry () const
 
virtual ossim_uint32 getNumberOfEntries () const
 
virtual void getEntryName (ossim_uint32 entryIdx, std::string &name) const
 Get the name of entry as a string. More...
 
virtual void getEntryList (std::vector< ossim_uint32 > &entryList) const
 
virtual void getEntryNames (std::vector< ossimString > &entryNames) const
 
bool useEntryIndex () const
 Convenience method to determine if entry index should be used for support files, e.g. More...
 
ossimFilename getOverviewFile () const
 
virtual bool setCurrentEntry (ossim_uint32 entryIdx)
 
virtual void setProperty (ossimRefPtr< ossimProperty > property)
 
virtual ossimRefPtr< ossimPropertygetProperty (const ossimString &name) const
 
virtual void getPropertyNames (std::vector< ossimString > &propertyNames) const
 
ossimFilename getFilenameWithThisExtension (const ossimString &ext, bool set_e0_prefix=false) const
 Returns the image file with extension set using supplentary directory for dirname if set. More...
 
void getFilenameWithThisExt (const ossimString &ext, ossimFilename &f) const
 Returns the image file with extension set using supplentary directory for dirname if set. More...
 
ossim_uint32 getStartingResLevel () const
 
void setStartingResLevel (ossim_uint32 level)
 
bool getOpenOverviewFlag () const
 
void setOpenOverviewFlag (bool flag)
 Sets theOpenOverviewFlag. More...
 
virtual void setSupplementaryDirectory (const ossimFilename &dir)
 Sets the supplementary directory. More...
 
virtual const ossimFilenamegetSupplementaryDirectory () const
 Returns the supplementary directory. More...
 
const ossimStringgetImageID () const
 Fetches the image ID. More...
 
void setImageID (const ossimString &id)
 Sets the image ID in case it is externally generated. More...
 
ossimPixelType getPixelType () const
 Returns the raster pixel alignment type. More...
 
virtual bool getRgbBandList (std::vector< ossim_uint32 > &bandList) const
 Convenience method to get the zero based rgb output band list. More...
 
template<class T >
std::shared_ptr< T > getStateAs ()
 
template<class T >
std::shared_ptr< const T > getStateAs () const
 
std::shared_ptr< ossim::ImageHandlerState > getState ()
 
std::shared_ptr< const ossim::ImageHandlerState > getState () const
 
void setState (std::shared_ptr< ossim::ImageHandlerState > state)
 
- Public Member Functions inherited from ossimImageSource
 ossimImageSource (ossimObject *owner=0)
 
 ossimImageSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimImageSource ()
 
virtual ossimRefPtr< ossimImageDatagetTile (const ossimIpt &origin, ossim_uint32 resLevel=0)
 
virtual bool getTile (ossimImageData *result, ossim_uint32 resLevel=0)
 Method to get a tile. More...
 
virtual ossimObjectgetObject ()
 For RTTI support. More...
 
virtual const ossimObjectgetObject () const
 For RTTI support. More...
 
virtual void getDecimationFactors (std::vector< ossimDpt > &decimations) const
 Will return an array of all decimations for each resolution level. More...
 
virtual void getOutputBandList (std::vector< ossim_uint32 > &bandList) const
 Initializes bandList. More...
 
virtual ossim_uint32 getTileWidth () const
 Returns the default processing tile width. More...
 
virtual ossim_uint32 getTileHeight () const
 Returns the default processing tile height. More...
 
virtual void getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const
 Gets the bounding rectangle of the source. More...
 
virtual void getValidImageVertices (std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const
 ordering specifies how the vertices should be arranged. More...
 
virtual void setImageGeometry (const ossimImageGeometry *geom)
 Default implementation sets geometry of the first input to the geometry specified. More...
 
virtual bool isIndexedData () const
 
- Public Member Functions inherited from ossimSource
 ossimSource (ossimObject *owner=0)
 
 ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimSource ()
 
virtual bool isSourceEnabled () const
 
virtual void enableSource ()
 
virtual void disableSource ()
 
virtual bool getEnableFlag () const
 
virtual void setEnableFlag (bool flag)
 
virtual bool isInitialized () const
 
virtual void setInitializedFlag (bool flag)
 
virtual std::ostream & print (std::ostream &out) const
 Outputs theErrorStatus as an ossimErrorCode and an ossimString. More...
 
- Public Member Functions inherited from ossimConnectableObject
 ossimConnectableObject (ossimObject *owner=0)
 Base constructor of this object. More...
 
 ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true)
 
virtual ~ossimConnectableObject ()
 
void setId (const ossimId &id)
 All connectable objects will have id's. More...
 
const ossimIdgetId () const
 Will allow us to get this object's id. More...
 
const ossimObjectgetOwner () const
 Fetches the current owner, most likely a container but not limited to one. More...
 
virtual void changeOwner (ossimObject *owner)
 Permits changing the object's owner. More...
 
virtual void setDescription (const ossimString &description)
 
virtual ossimString getDescription () const
 
virtual bool isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const
 will check the direction specified to see if all slots are full. More...
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className))
 
virtual ossim_int32 findInputIndex (const ossimConnectableObject *object)
 Return a valid index of the input list if the passed in object is found else return -1. More...
 
virtual ossim_int32 findInputIndex (const ossimId &id)
 Return a valid index of the input list if the passed id is found else return -1. More...
 
virtual ossim_int32 findOutputIndex (const ossimConnectableObject *object)
 Return a valid index of the output list if the passed in object is found else return -1. More...
 
virtual ossim_int32 findOutputIndex (const ossimId &id)
 Return a valid index of the output list if the passed in object is found else return -1. More...
 
virtual ossim_int32 getMyInputIndexToConnectTo (ossimConnectableObject *object) const
 Should return the first available index to connect to. More...
 
virtual ossim_int32 getMyOutputIndexToConnectTo (ossimConnectableObject *object) const
 Should return the first available index to connect to. More...
 
virtual bool canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const
 default implementation is to allow anyone to connect to us. More...
 
virtual void disconnect (ossimConnectableObject *object=0)
 Will disconnect the object passed in. More...
 
virtual void disconnect (const ossimId &id)
 Will disconnect the object passed in. More...
 
virtual ossimRefPtr< ossimConnectableObjectdisconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true)
 Will disconnect the object at the given input index and generate a connection event. More...
 
virtual void disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true)
 Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More...
 
virtual void disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true)
 
virtual ossimRefPtr< ossimConnectableObjectdisconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true)
 Will disconnect the object at the given output index and generate a connection event. More...
 
virtual void disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true)
 Will disconnect the output object. More...
 
virtual void disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true)
 
virtual void disconnectAllInputs ()
 Will disconnect all of the input objects. More...
 
virtual void disconnectAllOutputs ()
 Will disconnect all of the output objects. More...
 
virtual ossim_int32 connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
 Will try to connect this objects input to the passed in object. More...
 
virtual ossim_int32 connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
 Will connect the specified input to the passed in object. More...
 
virtual bool connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true)
 
virtual ossim_int32 connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true)
 Will try to connect this objects output to the passed in object. More...
 
virtual bool connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true)
 
virtual bool connectInputList (ConnectableObjectList &inputList)
 Will disconnect itself from all inputs and reset to the passed in input list. More...
 
virtual bool connectOutputList (ConnectableObjectList &outputList)
 Will disconnect itself from all outputs and reset to the passed in output list. More...
 
virtual ossim_uint32 getNumberOfInputs () const
 Returns the number of input objects. More...
 
virtual ossim_uint32 getNumberOfOutputs () const
 Return the number of output objects. More...
 
ossimConnectableObjectgetInput (ossim_uint32 index=0)
 returns the object at the specified index. More...
 
const ossimConnectableObjectgetInput (ossim_uint32 index=0) const
 returns the object at the specified index. More...
 
ossimConnectableObjectgetOutput (ossim_uint32 index=0)
 returns the object at the specified index. More...
 
const ossimConnectableObjectgetOutput (ossim_uint32 index=0) const
 returns the object at the specified index. More...
 
virtual void setNumberOfInputs (ossim_int32 numberOfInputs)
 Will set the number of inputs. More...
 
virtual bool getInputListIsFixedFlag () const
 
virtual bool getOutputListIsFixedFlag () const
 
virtual void setNumberOfOutputs (ossim_int32 numberOfInputs)
 Will set the number of outputs. More...
 
const ConnectableObjectListgetInputList () const
 
const ConnectableObjectListgetOutputList () const
 
ConnectableObjectListgetInputList ()
 
ConnectableObjectListgetOutputList ()
 
 OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true))
 
 OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true))
 
virtual void propagateEventToOutputs (ossimEvent &event)
 
virtual void propagateEventToInputs (ossimEvent &event)
 
virtual void setProperty (const ossimString &name, const ossimString &value)
 
virtual ossim_uint32 saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const
 Save the state of all inputs to a keyword list. More...
 
virtual bool fillContainer (ossimConnectableContainer &container)
 Inserts this object and all of its children and inputs into the container provided. More...
 
bool moveInputUp (const ossimId &id)
 Moves the input connection matching id up one in the connection list. More...
 
bool moveInputDown (const ossimId &id)
 Moves the input connection matching id down one in the connection list. More...
 
bool moveInputToTop (const ossimId &id)
 Moves the input connection matching id to the top of the connection list. More...
 
bool moveInputToBottom (const ossimId &id)
 Moves the input connection matching id to the bottom of the connection list. More...
 
virtual void accept (ossimVisitor &visitor)
 We will add a visitor interface for all connectable objects. More...
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimObjectdup () const
 
virtual RTTItypeid getType () const
 
virtual bool canCastTo (ossimObject *obj) const
 
virtual bool canCastTo (const RTTItypeid &id) const
 
virtual bool canCastTo (const ossimString &parentClassName) const
 
virtual bool isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (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
 
- Public Member Functions inherited from ossimListenerManager
 ossimListenerManager ()
 
virtual ~ossimListenerManager ()
 
virtual void fireEvent (ossimEvent &event)
 
virtual bool addListener (ossimListener *listener)
 
virtual bool removeListener (ossimListener *listener)
 
virtual bool findListener (ossimListener *listener)
 
- Public Member Functions inherited from ossimPropertyInterface
 ossimPropertyInterface ()
 
virtual ~ossimPropertyInterface ()
 
virtual ossimString getPropertyValueAsString (const ossimString &name) const
 
void getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const
 
void setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList)
 
- Public Member Functions inherited from ossimErrorStatusInterface
 ossimErrorStatusInterface ()
 
virtual ~ossimErrorStatusInterface ()
 
virtual ossimErrorCode getErrorStatus () const
 
virtual ossimString getErrorStatusString () const
 
virtual void setErrorStatus (ossimErrorCode error_status) const
 
virtual void setErrorStatus () const
 
virtual void clearErrorStatus () const
 
bool hasError () const
 

Protected Member Functions

virtual bool getOverviewTile (ossim_uint32 resLevel, ossimImageData *result)
 Gets an overview tile. More...
 
virtual ossim_int32 get_capabilities ()
 Gets kdu source capability. More...
 
virtual ossim_int32 read (kdu_core::kdu_byte *buf, ossim_int32 num_bytes)
 Read method. More...
 
virtual bool seek (kdu_core::kdu_long offset)
 Seek method. More...
 
virtual kdu_core::kdu_long get_pos ()
 Get file position relative to the start of code stream offset. More...
 
- Protected Member Functions inherited from ossimImageHandler
virtual ossimRefPtr< ossimImageGeometrygetExternalImageGeometry () const
 Returns the image geometry object associated with this tile source or NULL if non defined. More...
 
virtual ossimRefPtr< ossimImageGeometrygetInternalImageGeometry () const
 
bool initVertices (const char *file)
 Opens file and attempts to initialize the valid image vertices. More...
 
virtual void completeOpen ()
 Will complete the opening process. More...
 
void initImageParameters (ossimImageGeometry *geom) const
 Convenience method to set things needed in the image geometry from the image handler. More...
 
virtual void establishDecimationFactors ()
 Virtual method determines the decimation factors at each resolution level. More...
 
virtual bool setOutputBandList (const std::vector< ossim_uint32 > &inBandList, std::vector< ossim_uint32 > &outBandList)
 Convenience method to set output band list. More...
 
void getFilenameWithNoExtension (ossimFilename &f) const
 Get filename with no extension, using supplentary directory for dirname if set. More...
 
- Protected Member Functions inherited from ossimImageSource
 ossimImageSource (const ossimImageSource &rhs)
 
const ossimImageSourceoperator= (const ossimImageSource &)
 
- Protected Member Functions inherited from ossimSource
 ossimSource (const ossimSource &rhs)
 
const ossimSourceoperator= (const ossimSource &rhs)
 
- Protected Member Functions inherited from ossimConnectableObject
ossimConnectableObjectfindObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor)
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 
- Protected Member Functions inherited from ossimListenerManager
 ossimListenerManager (const ossimListenerManager &rhs)
 

Private Member Functions

void initializeTile ()
 Initializes data member "theTile". More...
 
bool loadTileFromCache (ossim_uint32 x, ossim_uint32 y, const ossimIrect &clipRect)
 Loads a block of data to theCacheTile from the cache. More...
 
bool loadTile (ossim_uint32 x, ossim_uint32 y)
 Loads a block of data to theCacheTile. More...
 

Private Attributes

kdu_core::kdu_codestream theCodestream
 
kdu_core::kdu_thread_env * theThreadEnv
 
kdu_core::kdu_thread_queue * theOpenTileThreadQueue
 
ossim_uint32 theSourcePrecisionBits
 
ossim_uint32 theMinDwtLevels
 
std::ifstream theFileStr
 
ossimJ2kSizRecord theSizRecord
 
ossimScalarType theScalarType
 
ossimIrect theImageRect
 
ossimRefPtr< ossimImageDatatheTile
 
ossimRefPtr< ossimImageDatatheCacheTile
 
ossim_uint32 theTileSizeX
 
ossim_uint32 theTileSizeY
 
ossimAppFixedTileCache::ossimAppFixedCacheId theCacheId
 

Additional Inherited Members

- Public Types inherited from ossimImageHandler
enum  ossimImageHandlerOverviewCompressionType {
  OSSIM_OVERVIEW_COMPRESSION_NONE = 0, OSSIM_OVERVIEW_COMPRESSION_JPEG, OSSIM_OVERVIEW_COMPRESSION_LZW, OSSIM_OVERVIEW_COMPRESSION_DEFLATE,
  OSSIM_OVERVIEW_COMPRESSION_PACKBITS
}
 
- Public Types inherited from ossimConnectableObject
enum  ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 }
 
typedef std::vector< ossimRefPtr< ossimConnectableObject > > ConnectableObjectList
 
- Protected Attributes inherited from ossimImageHandler
ossimFilename theImageFile
 
ossimFilename theOverviewFile
 
ossimFilename theSupplementaryDirectory
 
ossimRefPtr< ossimImageHandlertheOverview
 
vector< ossimIpttheValidImageVertices
 
ossimImageMetaData theMetaData
 
ossimRefPtr< ossimImageGeometrytheGeometry
 
ossimRefPtr< ossimNBandLutDataObjecttheLut
 
std::vector< ossimDpttheDecimationFactors
 
ossimString theImageID
 
ossim_uint32 theStartingResLevel
 theStartingResLevel If set to something other than zero(default) this is indicative that the reader is an overview. More...
 
bool theOpenOverviewFlag
 If true opening of overviews will be attempted. More...
 
ossimPixelType thePixelType
 
std::shared_ptr< ossim::ImageHandlerState > m_state
 
- Protected Attributes inherited from ossimSource
bool theEnableFlag
 
bool theInitializedFlag
 
- Protected Attributes inherited from ossimConnectableObject
ossimId theId
 
ossimString theDescription
 
ossimObjecttheOwner
 
bool theInputListIsFixedFlag
 Indicates whether the theInputObjectList is fixed. More...
 
bool theOutputListIsFixedFlag
 Indicates whether the theOutputObjectList is fixed. More...
 
ConnectableObjectList theInputObjectList
 Holds a list of input objects. More...
 
ConnectableObjectList theOutputObjectList
 Holds a list of output objects. More...
 
- Protected Attributes inherited from ossimListenerManager
std::list< ossimListener * > theListenerList
 
bool theEnabledFlag
 
std::list< ossimListener * > theDelayedAdd
 
std::list< ossimListener * > theDelayedRemove
 
bool theFireEventFlag
 
- Protected Attributes inherited from ossimErrorStatusInterface
ossimErrorCode theErrorStatus
 

Detailed Description

ossimKakaduJ2kReader class for reading images with JPEG2000 (J2K) compressed blocks using kakadu library for decompression.

Definition at line 44 of file ossimKakaduJ2kReader.h.

Constructor & Destructor Documentation

◆ ossimKakaduJ2kReader()

ossimKakaduJ2kReader::ossimKakaduJ2kReader ( )

default construtor

◆ ~ossimKakaduJ2kReader()

ossimKakaduJ2kReader::~ossimKakaduJ2kReader ( )
virtual

virtural destructor

Definition at line 73 of file ossimKakaduJ2kReader.cpp.

References closeEntry().

74 {
75  closeEntry();
76 }
virtual void closeEntry()
Method to close current entry.

Member Function Documentation

◆ closeEntry()

void ossimKakaduJ2kReader::closeEntry ( )
virtual

Method to close current entry.

Note
There is a bool kdu_compressed_source::close() and a void ossimImageHandler::close(); hence, a new close to avoid conflicting return types.

Definition at line 462 of file ossimKakaduJ2kReader.cpp.

References ossimImageHandler::close(), ossimAppFixedTileCache::deleteCache(), ossimAppFixedTileCache::instance(), theCacheId, theCacheTile, theCodestream, theFileStr, theOpenTileThreadQueue, theThreadEnv, theTile, theTileSizeX, and theTileSizeY.

Referenced by ~ossimKakaduJ2kReader().

463 {
464  theFileStr.close();
465 
466  // Cleanup processing environment
467  if ( theThreadEnv )
468  {
469  theThreadEnv->join(NULL,true); // Wait until all internal processing is complete.
470  theThreadEnv->terminate(theOpenTileThreadQueue, true);
471  theThreadEnv->cs_terminate(theCodestream); // Terminates background codestream processing.
472  theThreadEnv->destroy();
473  delete theThreadEnv;
474  theThreadEnv = 0;
475  }
476 
477  if(theCodestream.exists())
478  {
479  theCodestream.destroy();
480  }
481 
483  {
485  }
486 
487  if (theCacheId != -1)
488  {
490  theCacheId = -1;
491  }
492 
493  theTile = 0;
494  theCacheTile = 0;
495  theTileSizeX = 0;
496  theTileSizeY = 0;
497 
499 }
virtual void deleteCache(ossimAppFixedCacheId cacheId)
ossimRefPtr< ossimImageData > theCacheTile
static ossimAppFixedTileCache * instance(ossim_uint32 maxSize=0)
kdu_core::kdu_codestream theCodestream
kdu_core::kdu_thread_queue * theOpenTileThreadQueue
virtual void close()
Deletes the overview and clears the valid image vertices.
ossimRefPtr< ossimImageData > theTile
kdu_core::kdu_thread_env * theThreadEnv
ossimAppFixedTileCache::ossimAppFixedCacheId theCacheId

◆ get_capabilities()

ossim_int32 ossimKakaduJ2kReader::get_capabilities ( )
inlineprotectedvirtual

Gets kdu source capability.

Overrides kdu_compressed_source::get_capabilities

Returns
KDU_SOURCE_CAP_SEEKABLE

Definition at line 316 of file ossimKakaduJ2kReader.h.

317 {
318  return ( KDU_SOURCE_CAP_SEEKABLE );
319 }

◆ get_pos()

kdu_core::kdu_long ossimKakaduJ2kReader::get_pos ( )
inlineprotectedvirtual

Get file position relative to the start of code stream offset.

Overrides kdu_compressed_source::get_pos

Returns
Position in codestream.

Definition at line 344 of file ossimKakaduJ2kReader.h.

References theFileStr.

345 {
346  //---
347  // Must subtract the SOC(start of code stream) from the real file position
348  // since positions are relative to SOC.
349  //---
350  return static_cast<kdu_core::kdu_long>(theFileStr.tellg());
351 }

◆ getClassName()

ossimString ossimKakaduJ2kReader::getClassName ( ) const
virtual

Returns short name.

Returns
"ossim_kakadu_j2k_reader"

Reimplemented from ossimObject.

Definition at line 88 of file ossimKakaduJ2kReader.cpp.

89 {
90  return ossimString("ossimKakaduJ2kReader");
91 }

◆ getDecimationFactor()

void ossimKakaduJ2kReader::getDecimationFactor ( ossim_uint32  resLevel,
ossimDpt result 
) const
virtual

Gets the decimation factor for a resLevel.

Parameters
resLevelReduced resolution set for requested decimation.
resultossimDpt to initialize with requested decimation.

Reimplemented from ossimImageHandler.

Definition at line 93 of file ossimKakaduJ2kReader.cpp.

References getNumberOfDecimationLevels(), getNumberOfLines(), ossimImageHandler::getNumberOfLines(), getNumberOfSamples(), ossimImageHandler::getNumberOfSamples(), ossim::nan(), theMinDwtLevels, ossimImageHandler::theOverview, ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.

Referenced by getDecimationFactors(), getNumberOfLines(), and getNumberOfSamples().

95 {
96  if (resLevel == 0)
97  {
98  //---
99  // Assumption r0 or first layer is full res. Might need to change to
100  // use nitf IMAG field.
101  //---
102  result.x = 1.0;
103  result.y = 1.0;
104  }
105  else if ( theOverview.valid() && (resLevel > theMinDwtLevels) &&
106  (resLevel < getNumberOfDecimationLevels()) )
107  {
108  //---
109  // External overview file.
110  //
111  // Use the real lines and samples in case an resLevel is skipped.
112  //
113  // Note we must subtract the internal overviews as the external
114  // overview reader does not know about them.
115  //---
117  ossim_float64 rL =
119 
120  if (r0) // Divide by zero check
121  {
122  result.x = rL/r0;
123  }
124  else
125  {
126  result.x = ossim::nan();
127  }
128  r0 = getNumberOfLines(0);
130 
131  if (r0) // Divide by zero check.
132  {
133  result.y = rL/r0;
134  }
135  else
136  {
137  result.y = ossim::nan();
138  }
139  }
140  else
141  {
142  // Internal overviews are on power of two decimation.
143  result.x = 1.0 / pow((double)2, (double)resLevel);
144  result.y = result.x;
145  }
146 }
bool valid() const
Definition: ossimRefPtr.h:75
virtual ossim_uint32 getNumberOfLines(ossim_uint32 resLevel=0) const
Gets number of lines for res level.
virtual ossim_uint32 getNumberOfLines(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
double nan()
Method to return ieee floating point double precision NAN.
Definition: ossimCommon.h:135
double y
Definition: ossimDpt.h:165
double ossim_float64
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const
Gets the number of samples for res level.
virtual ossim_uint32 getNumberOfDecimationLevels() const
Returns the number of decimation levels.
ossimRefPtr< ossimImageHandler > theOverview
double x
Definition: ossimDpt.h:164
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.

◆ getDecimationFactors()

void ossimKakaduJ2kReader::getDecimationFactors ( vector< ossimDpt > &  decimations) const
virtual

Get array of decimations for all levels.

Parameters
decimationsVector to initialize with decimations.

Reimplemented from ossimImageHandler.

Definition at line 148 of file ossimKakaduJ2kReader.cpp.

References getDecimationFactor(), and getNumberOfDecimationLevels().

150 {
151  const ossim_uint32 LEVELS = getNumberOfDecimationLevels();
152  decimations.resize(LEVELS);
153  for (ossim_uint32 level = 0; level < LEVELS; ++level)
154  {
155  getDecimationFactor(level, decimations[level]);
156  }
157 }
unsigned int ossim_uint32
virtual void getDecimationFactor(ossim_uint32 resLevel, ossimDpt &result) const
Gets the decimation factor for a resLevel.
virtual ossim_uint32 getNumberOfDecimationLevels() const
Returns the number of decimation levels.

◆ getImageTileHeight()

ossim_uint32 ossimKakaduJ2kReader::getImageTileHeight ( ) const
virtual

Returns the tile width of the image or 0 if the image is not tiled.

Note: this is not the same as the ossimImageSource::getTileWidth which returns the output tile width which can be different than the internal image tile width on disk.

Implements ossimImageHandler.

Definition at line 669 of file ossimKakaduJ2kReader.cpp.

References ossimJ2kSizRecord::m_XTsiz, ossimJ2kSizRecord::m_YTsiz, and theSizRecord.

Referenced by initializeTile().

670 {
671  ossim_uint32 result = 0;
672  if ( (theSizRecord.m_XTsiz <= 1024) && (theSizRecord.m_YTsiz <= 1024) )
673  {
674  result = theSizRecord.m_YTsiz;
675  }
676  return result;
677 }
ossim_uint32 m_YTsiz
height of one reference tile
ossim_uint32 m_XTsiz
width of one reference tile
unsigned int ossim_uint32
ossimJ2kSizRecord theSizRecord

◆ getImageTileWidth()

ossim_uint32 ossimKakaduJ2kReader::getImageTileWidth ( ) const
virtual

Returns the tile width of the image or 0 if the image is not tiled.

Note: this is not the same as the ossimImageSource::getTileWidth which returns the output tile width which can be different than the internal image tile width on disk.

Implements ossimImageHandler.

Definition at line 659 of file ossimKakaduJ2kReader.cpp.

References ossimJ2kSizRecord::m_XTsiz, ossimJ2kSizRecord::m_YTsiz, and theSizRecord.

Referenced by initializeTile().

660 {
661  ossim_uint32 result = 0;
662  if ( (theSizRecord.m_XTsiz <= 1024) && (theSizRecord.m_YTsiz <= 1024) )
663  {
664  result = theSizRecord.m_XTsiz;
665  }
666  return result;
667 }
ossim_uint32 m_YTsiz
height of one reference tile
ossim_uint32 m_XTsiz
width of one reference tile
unsigned int ossim_uint32
ossimJ2kSizRecord theSizRecord

◆ getLongName()

ossimString ossimKakaduJ2kReader::getLongName ( ) const
virtual

Returns long name.

Returns
"ossim kakadu j2k reader"

Reimplemented from ossimObject.

Definition at line 83 of file ossimKakaduJ2kReader.cpp.

84 {
85  return ossimString("ossim kakadu j2k reader");
86 }

◆ getNumberOfDecimationLevels()

ossim_uint32 ossimKakaduJ2kReader::getNumberOfDecimationLevels ( ) const
virtual

Returns the number of decimation levels.

This returns the total number of decimation levels. It is important to note that res level 0 or full resolution is included in the list and has decimation values 1.0, 1.0

Returns
The number of decimation levels.

Reimplemented from ossimImageHandler.

Definition at line 159 of file ossimKakaduJ2kReader.cpp.

References ossimImageHandler::getNumberOfDecimationLevels(), theMinDwtLevels, ossimImageHandler::theOverview, and ossimRefPtr< T >::valid().

Referenced by getDecimationFactor(), getDecimationFactors(), getNumberOfLines(), getNumberOfSamples(), and getOverviewTile().

160 {
161  ossim_uint32 result = 1; // Add r0
162 
163  if (theMinDwtLevels)
164  {
165  //---
166  // Add internal overviews.
167  //---
168  result += theMinDwtLevels;
169  }
170 
171  if (theOverview.valid())
172  {
173  //---
174  // Add external overviews.
175  //
176  // NOTE: The ossimTiffTileSource will count r0 if present or it will
177  // add 1 to the decimation count if r0 is NOT present. Since
178  // since r0 has already be added subtract one.
179  //---
181  }
182 
183  return result;
184 }
bool valid() const
Definition: ossimRefPtr.h:75
virtual ossim_uint32 getNumberOfDecimationLevels() const
This returns the total number of decimation levels.
unsigned int ossim_uint32
ossimRefPtr< ossimImageHandler > theOverview

◆ getNumberOfInputBands()

ossim_uint32 ossimKakaduJ2kReader::getNumberOfInputBands ( ) const
virtual

Returns the number of bands in the image.

Satisfies pure virtual from ImageHandler class.

Implements ossimImageSource.

Definition at line 649 of file ossimKakaduJ2kReader.cpp.

References ossimJ2kSizRecord::m_Csiz, and theSizRecord.

650 {
651  return theSizRecord.m_Csiz;
652 }
ossim_uint16 m_Csiz
number of component in the image
ossimJ2kSizRecord theSizRecord

◆ getNumberOfLines()

ossim_uint32 ossimKakaduJ2kReader::getNumberOfLines ( ossim_uint32  resLevel = 0) const
virtual

Gets number of lines for res level.

Overrides ossimJ2kTileSource::getNumberOfLines

Parameters
resLevelReduced resolution level to return lines of. Default = 0
Returns
The number of lines for specified reduced resolution level.

Implements ossimImageHandler.

Definition at line 186 of file ossimKakaduJ2kReader.cpp.

References getDecimationFactor(), getNumberOfDecimationLevels(), ossimDpt::hasNans(), ossimJ2kSizRecord::m_Ysiz, theSizRecord, and ossimDpt::y.

Referenced by getDecimationFactor().

188 {
189  ossim_uint32 result = 0;
190  if (resLevel < getNumberOfDecimationLevels())
191  {
192  result = theSizRecord.m_Ysiz;
193  if ( resLevel > 0 )
194  {
195  ossimDpt dpt;
196  getDecimationFactor(resLevel, dpt);
197  if ( !dpt.hasNans() )
198  {
199  result = static_cast<ossim_uint32>(result * dpt.y);
200  }
201  }
202  }
203  return result;
204 }
double y
Definition: ossimDpt.h:165
unsigned int ossim_uint32
bool hasNans() const
Definition: ossimDpt.h:67
virtual void getDecimationFactor(ossim_uint32 resLevel, ossimDpt &result) const
Gets the decimation factor for a resLevel.
virtual ossim_uint32 getNumberOfDecimationLevels() const
Returns the number of decimation levels.
ossimJ2kSizRecord theSizRecord
ossim_uint32 m_Ysiz
height of reference grid

◆ getNumberOfOutputBands()

ossim_uint32 ossimKakaduJ2kReader::getNumberOfOutputBands ( ) const
virtual

Returns the number of bands in a tile returned from this TileSource.

Note: we are supporting sources that can have multiple data objects. If you want to know the scalar type of an object you can pass in the

Reimplemented from ossimImageSource.

Definition at line 654 of file ossimKakaduJ2kReader.cpp.

References ossimJ2kSizRecord::m_Csiz, and theSizRecord.

Referenced by getOverviewTile(), and initializeTile().

655 {
656  return theSizRecord.m_Csiz;
657 }
ossim_uint16 m_Csiz
number of component in the image
ossimJ2kSizRecord theSizRecord

◆ getNumberOfSamples()

ossim_uint32 ossimKakaduJ2kReader::getNumberOfSamples ( ossim_uint32  resLevel = 0) const
virtual

Gets the number of samples for res level.

Overrides ossimJ2kTileSource::getNumberOfSamples

Parameters
resLevelReduced resolution level to return samples of. Default = 0
Returns
The number of samples for specified reduced resolution level.

Implements ossimImageHandler.

Definition at line 206 of file ossimKakaduJ2kReader.cpp.

References getDecimationFactor(), getNumberOfDecimationLevels(), ossimJ2kSizRecord::m_Xsiz, theSizRecord, and ossimDpt::x.

Referenced by getDecimationFactor().

208 {
209  ossim_uint32 result = 0;
210  if (resLevel < getNumberOfDecimationLevels())
211  {
212  result = theSizRecord.m_Xsiz;
213  if ( resLevel > 0 )
214  {
215  ossimDpt dpt;
216  getDecimationFactor(resLevel, dpt);
217  result = static_cast<ossim_uint32>(result * dpt.x);
218  }
219  }
220  return result;
221 }
ossim_uint32 m_Xsiz
width of reference grid
unsigned int ossim_uint32
virtual void getDecimationFactor(ossim_uint32 resLevel, ossimDpt &result) const
Gets the decimation factor for a resLevel.
virtual ossim_uint32 getNumberOfDecimationLevels() const
Returns the number of decimation levels.
double x
Definition: ossimDpt.h:164
ossimJ2kSizRecord theSizRecord

◆ getOutputScalarType()

ossimScalarType ossimKakaduJ2kReader::getOutputScalarType ( ) const
virtual

Returns the output pixel type of the tile source.

Reimplemented from ossimImageSource.

Definition at line 679 of file ossimKakaduJ2kReader.cpp.

References ossimJ2kSizRecord::getScalarType(), and theSizRecord.

Referenced by initializeTile().

680 {
681  return theSizRecord.getScalarType();
682 }
ossimJ2kSizRecord theSizRecord
ossimScalarType getScalarType() const
Gets the scalar type.

◆ getOverviewTile()

bool ossimKakaduJ2kReader::getOverviewTile ( ossim_uint32  resLevel,
ossimImageData result 
)
protectedvirtual

Gets an overview tile.

Overrides ossimImageHandler::getOverviewTile

Parameters
resLevelThe resolution level to pull from with resLevel 0 being full res.
resultThe tile to stuff. Note The requested rectangle in full image space and bands should be set in the result tile prior to passing. This method will subtract the subImageOffset if needed for external overview call since they do not know about the sub image offset.
Returns
true on success false on error. Typically this will return false if resLevel==0 unless the overview has r0. If return is false, result is undefined so caller should handle appropriately with makeBlank or whatever.

Reimplemented from ossimImageHandler.

Definition at line 611 of file ossimKakaduJ2kReader.cpp.

References ossim::copyRegionToTile(), ossimImageData::getNumberOfBands(), getNumberOfDecimationLevels(), getNumberOfOutputBands(), ossimImageSource::getTile(), ossimNotify(), ossimNotifyLevel_WARN, status, theCodestream, theMinDwtLevels, theOpenTileThreadQueue, ossimImageHandler::theOverview, theThreadEnv, and ossimException::what().

Referenced by getTile(), and loadTile().

613 {
614  bool status = false;
615 
616  if ( (resLevel < getNumberOfDecimationLevels()) && result &&
617  (result->getNumberOfBands() == getNumberOfOutputBands()) )
618  {
619  if (resLevel <= theMinDwtLevels)
620  {
621  // Internal overviews...
622  try
623  {
625  static_cast<int>(resLevel),
626  theThreadEnv,
628  result);
629  }
630  catch(const ossimException& e)
631  {
633  << __FILE__ << " " << __LINE__ << " caught exception\n"
634  << e.what();
635  status = false;
636  }
637 
638  } // matches: if (resLevel <= theMinDwtLevels)
639  else
640  {
641  // External overviews...
642  status = theOverview->getTile(result, resLevel - theMinDwtLevels);
643  }
644  }
645 
646  return status;
647 }
virtual ossim_uint32 getNumberOfBands() const
kdu_core::kdu_codestream theCodestream
kdu_core::kdu_thread_queue * theOpenTileThreadQueue
virtual const char * what() const
Returns the error message.
virtual ossim_uint32 getNumberOfDecimationLevels() const
Returns the number of decimation levels.
return status
ossimRefPtr< ossimImageHandler > theOverview
bool copyRegionToTile(kdu_supp::kdu_channel_mapping *channelMapping, kdu_core::kdu_codestream &codestream, int discard_levels, kdu_core::kdu_thread_env *threadEnv, kdu_core::kdu_thread_queue *threadQueue, ossimImageData *destTile)
Copies region from codestream to tile at a given rlevel.
kdu_core::kdu_thread_env * theThreadEnv
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)

◆ getShortName()

ossimString ossimKakaduJ2kReader::getShortName ( ) const
virtual

Returns short name.

Returns
"ossim_kakadu_j2k_reader"

Reimplemented from ossimObject.

Definition at line 78 of file ossimKakaduJ2kReader.cpp.

79 {
80  return ossimString("ossim_kakadu_j2k_reader");
81 }

◆ getTile()

ossimRefPtr< ossimImageData > ossimKakaduJ2kReader::getTile ( const ossimIrect rect,
ossim_uint32  resLevel = 0 
)
virtual

Method to grab a tile(rectangle) from image.

Parameters
rectThe zero based rectangle to grab.
resLevelThe reduced resolution level to grab from.
Returns
The ref pointer with the image data pointer.

Reimplemented from ossimImageSource.

Definition at line 515 of file ossimKakaduJ2kReader.cpp.

References ossimIrect::clipToRect(), ossimIrect::completely_within(), ossimRefPtr< T >::get(), ossimImageData::getBuf(), ossimImageData::getImageRectangle(), getOverviewTile(), ossimIrect::intersects(), isOpen(), ossimSource::isSourceEnabled(), ossimImageHandler::isValidRLevel(), loadTile(), ossimImageData::loadTile(), loadTileFromCache(), ossimIrect::lr(), ossimImageData::makeBlank(), OSSIM_BSQ, ossimImageData::setImageRectangle(), ossimIrect::stretchToTileBoundary(), theCacheTile, theImageRect, theTile, theTileSizeX, theTileSizeY, ossimIrect::ul(), ossimRefPtr< T >::valid(), ossimImageData::validate(), ossimIpt::x, x, ossimIpt::y, and y.

517 {
518  // This tile source bypassed, or invalid res level, return a blank tile.
519  if(!isSourceEnabled() || !isOpen() || !isValidRLevel(resLevel))
520  {
522  }
523 
524  if (theTile.valid())
525  {
526  // Rectangle must be set prior to getOverviewTile call.
527  theTile->setImageRectangle(rect);
528 
529  if (resLevel)
530  {
531  if ( getOverviewTile(resLevel, theTile.get() ) == false )
532  {
533  theTile->makeBlank();
534  }
535  }
536  else
537  {
538  //---
539  // See if the whole tile is going to be filled, if not, start out with
540  // a blank tile so data from a previous load gets wiped out.
541  //---
542  if ( !rect.completely_within(theImageRect) )
543  {
544  // Start with a blank tile.
545  theTile->makeBlank();
546  }
547 
548  //---
549  // See if any point of the requested tile is in the image.
550  //---
551  if ( rect.intersects(theImageRect) )
552  {
553  ossimIrect clipRect = rect.clipToRect(theImageRect);
554 
555  ossimIrect exandedRect = clipRect;
556 
557  //---
558  // Shift the upper left corner of the "clip_rect" to the an even
559  // j2k tile boundry.
560  //---
562  theTileSizeY));
563 
564  // Vertical tile loop.
565  ossim_int32 y = exandedRect.ul().y;
566  while (y < exandedRect.lr().y)
567  {
568  // Horizontal tile loop.
569  ossim_int32 x = exandedRect.ul().x;
570  while (x < exandedRect.lr().x)
571  {
572  if ( loadTileFromCache(x, y, clipRect) == false )
573  {
574  if ( loadTile(x, y) )
575  {
576  //---
577  // Note: Clip the cache tile to the image clipRect
578  // since there are j2k tiles that go beyond the image
579  // dimensions, i.e., edge tiles.
580  //---
581  ossimIrect cr =
583  clipToRect(clipRect);
584 
587  cr,
588  OSSIM_BSQ);
589  }
590 
591  }
592 
593  x += theTileSizeX; // Go to next tile.
594  }
595 
596  y += theTileSizeY; // Go to next row of tiles.
597  }
598 
599  // Set the tile status.
600  theTile->validate();
601 
602  } // matches: if ( rect.intersects(theImageRect) )
603 
604  } // r0 block
605 
606  } // matches: if (theTile.valid())
607 
608  return theTile;
609 }
ossim_uint32 x
virtual bool isSourceEnabled() const
Definition: ossimSource.cpp:79
virtual void setImageRectangle(const ossimIrect &rect)
ossim_uint32 y
bool valid() const
Definition: ossimRefPtr.h:75
ossimRefPtr< ossimImageData > theCacheTile
const ossimIpt & ul() const
Definition: ossimIrect.h:274
bool intersects(const ossimIrect &rect) const
Definition: ossimIrect.cpp:183
bool loadTile(ossim_uint32 x, ossim_uint32 y)
Loads a block of data to theCacheTile.
virtual bool isValidRLevel(ossim_uint32 resLevel) const
Determines if the passed in reslution level is valid.
bool completely_within(const ossimIrect &rect) const
Definition: ossimIrect.cpp:425
virtual void loadTile(const void *src, const ossimIrect &src_rect, ossimInterleaveType il_type)
virtual bool isOpen() const
Method to test for open file stream.
virtual ossimDataObjectStatus validate() const
virtual bool getOverviewTile(ossim_uint32 resLevel, ossimImageData *result)
Gets an overview tile.
virtual ossimIrect getImageRectangle() const
const ossimIpt & lr() const
Definition: ossimIrect.h:276
ossimIrect clipToRect(const ossimIrect &rect) const
Definition: ossimIrect.cpp:501
virtual void makeBlank()
Initializes data to null pixel values.
ossimRefPtr< ossimImageData > theTile
ossim_int32 y
Definition: ossimIpt.h:142
virtual const void * getBuf() const
bool loadTileFromCache(ossim_uint32 x, ossim_uint32 y, const ossimIrect &clipRect)
Loads a block of data to theCacheTile from the cache.
void stretchToTileBoundary(const ossimIpt &tileWidthHeight)
Definition: ossimIrect.cpp:212
ossim_int32 x
Definition: ossimIpt.h:141
int ossim_int32

◆ initializeTile()

void ossimKakaduJ2kReader::initializeTile ( )
private

Initializes data member "theTile".

Definition at line 684 of file ossimKakaduJ2kReader.cpp.

References ossim::defaultTileSize(), getImageTileHeight(), getImageTileWidth(), getNumberOfOutputBands(), getOutputScalarType(), ossimImageData::initialize(), ossimImageDataFactory::instance(), theCacheTile, theTile, theTileSizeX, theTileSizeY, ossimIpt::x, and ossimIpt::y.

685 {
688 
689  // Check for zero width, height and limit output tile sizes to 1024.
690  if ( !theTileSizeX || !theTileSizeY ||
691  ( theTileSizeX > 1024) || (theTileSizeY > 1024) )
692  {
693  ossimIpt tileSize;
694  ossim::defaultTileSize(tileSize);
695 
696  theTileSizeX = tileSize.x;
697  theTileSizeY = tileSize.y;
698  }
699 
701  create( this,
702  this->getOutputScalarType(),
703  this->getNumberOfOutputBands(),
704  theTileSizeX,
705  theTileSizeY);
706 
707  theTile->initialize();
708 
710  create( this,
711  this->getOutputScalarType(),
712  this->getNumberOfOutputBands(),
713  theTileSizeX,
714  theTileSizeY);
715 
717 }
ossimRefPtr< ossimImageData > theCacheTile
OSSIM_DLL void defaultTileSize(ossimIpt &tileSize)
virtual void initialize()
Initialize the data buffer.
virtual ossim_uint32 getImageTileWidth() const
Returns the tile width of the image or 0 if the image is not tiled.
static ossimImageDataFactory * instance()
ossimRefPtr< ossimImageData > theTile
ossim_int32 y
Definition: ossimIpt.h:142
virtual ossimScalarType getOutputScalarType() const
Returns the output pixel type of the tile source.
virtual ossim_uint32 getImageTileHeight() const
Returns the tile width of the image or 0 if the image is not tiled.
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
ossim_int32 x
Definition: ossimIpt.h:141

◆ isOpen()

bool ossimKakaduJ2kReader::isOpen ( ) const
virtual

Method to test for open file stream.

Returns
true if open, false if not.

Implements ossimImageHandler.

Definition at line 454 of file ossimKakaduJ2kReader.cpp.

References theTile, and ossimRefPtr< T >::valid().

Referenced by getTile().

455 {
456  // return theFileStr.is_open();
457 
458  // Temp fix for gcc's that don't have a const "ifstream::is_open() const"
459  return theTile.valid();
460 }
bool valid() const
Definition: ossimRefPtr.h:75
ossimRefPtr< ossimImageData > theTile

◆ loadState()

bool ossimKakaduJ2kReader::loadState ( const ossimKeywordlist kwl,
const char *  prefix = 0 
)
virtual

Method to the load (recreate) the state of an object from a keyword list.

Return true if ok or false on error.

Reimplemented from ossimImageHandler.

Definition at line 501 of file ossimKakaduJ2kReader.cpp.

References ossimImageHandler::loadState(), and open().

503 {
504  bool result = false;
505 
506  if ( ossimImageHandler::loadState(kwl, prefix) )
507  {
508  result = open();
509  }
510 
511  return result;
512 }
virtual bool open()
Open method.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.

◆ loadTile()

bool ossimKakaduJ2kReader::loadTile ( ossim_uint32  x,
ossim_uint32  y 
)
private

Loads a block of data to theCacheTile.

Parameters
xStarting x position of block to load.
yStarting y position of block to load.
Returns
true on success, false on error.
Note
x and y are zero based relative to the upper left corner so any sub image offset should be subtracted off.

Definition at line 748 of file ossimKakaduJ2kReader.cpp.

References ossimAppFixedTileCache::addTile(), ossimRefPtr< T >::get(), getOverviewTile(), ossimAppFixedTileCache::instance(), ossimNotify(), ossimNotifyLevel_WARN, ossimImageData::setImageRectangle(), theCacheId, theCacheTile, theTileSizeX, theTileSizeY, ossimIpt::x, x, ossimIpt::y, and y.

Referenced by getTile().

749 {
750  bool result = true;
751 
752  ossimIpt ul(x, y);
753  ossimIpt lr(ul.x + theTileSizeX - 1,
754  ul.y + theTileSizeY - 1);
755 
756  // Set the cache rectangle to be an even j2k tile.
758 
759  //---
760  // Let the getOverviewTile do the rest of the work.
761  if ( getOverviewTile(0, theCacheTile.get()) )
762  {
763  // Add it to the cache for the next time.
765  }
766  else
767  {
769  << __FILE__ << __LINE__
770  << " ossimKakaduJ2kReader::loadBlock failed!"
771  << std::endl;
772  result = false;
773  }
774 
775  return result;
776 }
ossim_uint32 x
virtual void setImageRectangle(const ossimIrect &rect)
ossim_uint32 y
ossimRefPtr< ossimImageData > theCacheTile
static ossimAppFixedTileCache * instance(ossim_uint32 maxSize=0)
virtual bool getOverviewTile(ossim_uint32 resLevel, ossimImageData *result)
Gets an overview tile.
ossimAppFixedTileCache::ossimAppFixedCacheId theCacheId
ossimRefPtr< ossimImageData > addTile(ossimAppFixedCacheId cacheId, ossimRefPtr< ossimImageData > data, bool duplicateData=true)
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)

◆ loadTileFromCache()

bool ossimKakaduJ2kReader::loadTileFromCache ( ossim_uint32  x,
ossim_uint32  y,
const ossimIrect clipRect 
)
private

Loads a block of data to theCacheTile from the cache.

Parameters
xStarting x position of block to load.
yStarting y position of block to load.
clipRectThe rectangle to fill.
Returns
true on success, false on error.
Note
x and y are zero based relative to the upper left corner so any sub image offset should be subtracted off.

Definition at line 719 of file ossimKakaduJ2kReader.cpp.

References ossimIrect::clipToRect(), ossimRefPtr< T >::get(), ossimImageData::getBuf(), ossimImageData::getImageRectangle(), ossimAppFixedTileCache::getTile(), ossimAppFixedTileCache::instance(), ossimImageData::loadTile(), OSSIM_BSQ, theCacheId, theTile, ossimRefPtr< T >::valid(), x, and y.

Referenced by getTile().

721 {
722  bool result = false;
723 
724  ossimIpt origin(x, y);
725 
726  ossimRefPtr<ossimImageData> tempTile =
728 
729  if (tempTile.valid())
730  {
731  //---
732  // Note: Clip the cache j2k tile to the image clipRect since
733  // there are j2k tiles that go beyond the image dimensions, i.e.,
734  // edge tiles.
735  //---
736  ossimIrect cr =
737  tempTile->getImageRectangle().clipToRect(clipRect);
738 
739  theTile->loadTile(tempTile.get()->getBuf(),
740  tempTile->getImageRectangle(),
741  cr,
742  OSSIM_BSQ);
743  result = true;
744  }
745  return result;
746 }
ossim_uint32 x
ossim_uint32 y
bool valid() const
Definition: ossimRefPtr.h:75
static ossimAppFixedTileCache * instance(ossim_uint32 maxSize=0)
virtual void loadTile(const void *src, const ossimIrect &src_rect, ossimInterleaveType il_type)
ossimRefPtr< ossimImageData > getTile(ossimAppFixedCacheId cacheId, const ossimIpt &origin)
virtual ossimIrect getImageRectangle() const
ossimIrect clipToRect(const ossimIrect &rect) const
Definition: ossimIrect.cpp:501
ossimRefPtr< ossimImageData > theTile
virtual const void * getBuf() const
ossimAppFixedTileCache::ossimAppFixedCacheId theCacheId

◆ open()

bool ossimKakaduJ2kReader::open ( )
virtual

Open method.

Returns
true on success, false on error.

Implements ossimImageHandler.

Definition at line 223 of file ossimKakaduJ2kReader.cpp.

Referenced by loadState().

224 {
225  static const char MODULE[] = "ossimKakaduJ2kReader::open";
226 
227  if (traceDebug())
228  {
230  << MODULE << " entered...\n";
231  }
232 
233  bool result = false;
234 
235  if(isOpen())
236  {
237  closeEntry();
238  }
239 
240  // Open up a stream to the file.
241  theFileStr.open(theImageFile.c_str(), ios::in | ios::binary);
242  if ( theFileStr.good() )
243  {
244  //---
245  // Check for the Start Of Codestream (SOC) and Size (SIZ) markers which
246  // are required as first and second fields in the main header.
247  //---
248  ossim_uint16 soc;
249  ossim_uint16 siz;
250  theFileStr.read((char*)&soc, 2);
251  theFileStr.read((char*)&siz, 2);
252 
253  if (ossim::byteOrder() == OSSIM_LITTLE_ENDIAN) // Alway big endian.
254  {
255  ossimEndian().swap(soc);
256  ossimEndian().swap(siz);
257  }
258 
259  const ossim_uint16 SOC_MARKER = 0xff4f; // start of codestream marker
260  const ossim_uint16 SIZ_MARKER = 0xff51; // size maker
261 
262  if ( (soc == SOC_MARKER) && (siz == SIZ_MARKER) )
263  {
264  // Read in and store the size record.
266 
267  // Position to start of code stream prior to create call.
268  theFileStr.seekg(0);
269 
270  //---
271  // Initialize the codestream. The class ossimKakaduNitfReader is a
272  // kdu_compressed source so we feed ourself to the codestream.
273  //
274  // TODO: Currently no kdu_thread_env. This should be implemented for
275  // speed...
276  //---
277 
278  //---
279  // Construct multi-threaded processing environment if required.
280  // Temp hard coded to a single thread.
281  //---
282 
283  if (theThreadEnv)
284  {
285  theThreadEnv->terminate(NULL, true);
286  theThreadEnv->destroy();
287  }
288  else
289  {
290  theThreadEnv = new kdu_core::kdu_thread_env();
291  }
292 
293  theThreadEnv->create(); // Creates the single "owner" thread
294 
295  // Check for threads in prefs file.
296  ossim_uint32 threads = 1;
297  const char* lookup = ossimPreferences::instance()->findPreference("kakadu_threads");
298  if ( lookup )
299  {
300  threads = ossimString::toUInt32(lookup);
301  if ( threads > 1 )
302  {
303  for (ossim_uint32 nt=1; nt < threads; ++nt)
304  {
305  if ( !theThreadEnv->add_thread() )
306  {
307  if (traceDebug())
308  {
310  << "Unable to create thread!\n";
311  }
312  }
313  }
314  }
315  }
316 
317  theOpenTileThreadQueue = theThreadEnv->add_queue(NULL,NULL,"open_tile_q");
318 
319  theCodestream.create(this, theThreadEnv);
320 
321  if ( theCodestream.exists() )
322  {
323  //---
324  // We have to store things here in this non-const method because
325  // NONE of the kakadu methods are const.
326  //---
327  theMinDwtLevels = theCodestream.get_min_dwt_levels();
328 
329  theCodestream.set_persistent(); // ????
330  theCodestream.enable_restart(); // ????
331 
332  kdu_core::kdu_dims region_of_interest;
333  region_of_interest.pos.x = 0;
334  region_of_interest.pos.y = 0;
335  region_of_interest.size.x = getNumberOfSamples(0);
336  region_of_interest.size.y = getNumberOfLines(0);
337 
338  theCodestream.apply_input_restrictions(
339  0, // first_component
340  0, // max_components (0 = all remaining will appear)
341  0, // highest resolution level
342  0, // max_layers (0 = all layers retained)
343  &region_of_interest, // expanded out to block boundary.
344  //KDU_WANT_CODESTREAM_COMPONENTS);
345  kdu_core::KDU_WANT_OUTPUT_COMPONENTS);
346 
347  // Set the scalar:
350  {
351  //---
352  // NOTE: Please leave commented out code for now.
353  //---
354  // Capture the sub image offset.
355  // theSubImageOffset.x = theSizRecord.theXOsiz;
356  // theSubImageOffset.y = theSizRecord.theYOsiz;
357 
358  // Initialize the image rect.
360  0,
362  theSizRecord.m_Ysiz-1);
363 
364  // Initialize the cache.
365  if (theCacheId != -1)
366  {
368  theCacheId = -1;
369  }
371 
372  // Stretch to tile boundary for the cache.
373  ossimIrect fullImgRect = theImageRect;
374  fullImgRect.stretchToTileBoundary(tileSize);
375 
376  // Set up the tile cache.
378  newTileCache(fullImgRect, tileSize);
379 
380  // Add the sub image rect after the
381 
382  // Initialize the tile we will return.
383  initializeTile();
384 
385  // Call the base complete open to pick up overviews.
386  completeOpen();
387 
388  // We should be good now so set the return result to true.
389  result = true;
390 
391  if (traceDebug())
392  {
394  << "\nSIZ marker segment"
395  << theSizRecord
396  << "theCodestream.get_num_components(false): "
397  << theCodestream.get_num_components(false)
398  << "\ntheCodestream.get_num_components(true): "
399  << theCodestream.get_num_components(true)
400  << "\ntheCodestream.get_bit_depth(0, true): "
401  << theCodestream.get_bit_depth(0, true)
402  << "\ntheCodestream.get_signed(0, true): "
403  << theCodestream.get_signed(0, true)
404  << "\ntheCodestream.get_min_dwt_levels(): "
405  << theCodestream.get_min_dwt_levels()
406  << "\ntheImageRect: " << theImageRect
407  << "\nFull image rect: " << fullImgRect
408  << "\nthreads: " << threads
409  << "\n";
410 
411  vector<ossimDpt> decimations;
412  getDecimationFactors(decimations);
413  for (ossim_uint32 i = 0; i < decimations.size(); ++i)
414  {
416  << theCodestream.get_min_dwt_levels()
417  << "Decimation factor[" << i << "]: "
418  << decimations[i]
419  << "\nsamples[" << i << "]: "
420  << getNumberOfSamples(i)
421  << "\nlines[" << i << "]: "
422  << getNumberOfLines(i)
423  << std::endl;
424 
425  }
426  }
427  }
428 
429  } // matches: if ( theCodestream.exists() )
430 
431  } // matches: if ( (soc == SOC_MARKER) && (siz == SIZ_MARKER) )
432 
433  } // matches: if ( theFileStr.good() )
434  else
435  {
436  if(traceDebug())
437  {
439  << MODULE << " ERROR:"
440  << "\nCannot open: " << theImageFile.c_str() << endl;
441  }
442  }
443 
444  if (traceDebug())
445  {
447  << MODULE << " exit status = " << (result?"true":"false\n")
448  << std::endl;
449  }
450 
451  return result;
452 }
virtual void deleteCache(ossimAppFixedCacheId cacheId)
ossimFilename theImageFile
ossim_uint32 m_Xsiz
width of reference grid
virtual ossim_uint32 getNumberOfLines(ossim_uint32 resLevel=0) const
Gets number of lines for res level.
OSSIM_DLL ossimByteOrder byteOrder()
Definition: ossimCommon.cpp:54
ossim_uint32 toUInt32() const
unsigned short ossim_uint16
void initializeTile()
Initializes data member "theTile".
static ossimAppFixedTileCache * instance(ossim_uint32 maxSize=0)
ossim_uint32 m_YTsiz
height of one reference tile
virtual bool isOpen() const
Method to test for open file stream.
kdu_core::kdu_codestream theCodestream
kdu_core::kdu_thread_queue * theOpenTileThreadQueue
const char * findPreference(const char *key) const
ossim_uint32 m_XTsiz
width of one reference tile
unsigned int ossim_uint32
static ossimPreferences * instance()
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const
Gets the number of samples for res level.
ossimScalarType theScalarType
virtual void completeOpen()
Will complete the opening process.
virtual void getDecimationFactors(vector< ossimDpt > &decimations) const
Get array of decimations for all levels.
kdu_core::kdu_thread_env * theThreadEnv
ossimAppFixedTileCache::ossimAppFixedCacheId theCacheId
ossimJ2kSizRecord theSizRecord
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
void stretchToTileBoundary(const ossimIpt &tileWidthHeight)
Definition: ossimIrect.cpp:212
virtual void closeEntry()
Method to close current entry.
void swap(ossim_sint8 &)
Definition: ossimEndian.h:26
ossimScalarType getScalarType() const
Gets the scalar type.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
ossim_uint32 m_Ysiz
height of reference grid
void parseStream(ossim::istream &in)
Parse method.

◆ read()

ossim_int32 ossimKakaduJ2kReader::read ( kdu_core::kdu_byte *  buf,
ossim_int32  num_bytes 
)
inlineprotectedvirtual

Read method.

Implements pure virtual kdu_compressed_source::read

Parameters
bufBuffer to fill.
num_bytesBytes to read.
Returns
Actual bytes read.

Definition at line 321 of file ossimKakaduJ2kReader.h.

References theFileStr.

323 {
324  theFileStr.read((char*)buf, num_bytes);
325  return theFileStr.gcount();
326 }

◆ seek()

bool ossimKakaduJ2kReader::seek ( kdu_core::kdu_long  offset)
inlineprotectedvirtual

Seek method.

Overrides kdu_compressed_source::seek

Parameters
offsetSeek position relative to the start of code stream offset.
Returns
true on success, false on error.

Definition at line 328 of file ossimKakaduJ2kReader.h.

References theFileStr.

329 {
330  // If the last byte is read, the eofbit must be reset.
331  if ( theFileStr.eof() )
332  {
333  theFileStr.clear();
334  }
335 
336  //---
337  // All seeks are relative to the start of code stream.
338  //---
339  theFileStr.seekg(offset, ios_base::beg);
340 
341  return theFileStr.good();
342 }

Member Data Documentation

◆ theCacheId

ossimAppFixedTileCache::ossimAppFixedCacheId ossimKakaduJ2kReader::theCacheId
private

Definition at line 311 of file ossimKakaduJ2kReader.h.

Referenced by closeEntry(), loadTile(), and loadTileFromCache().

◆ theCacheTile

ossimRefPtr<ossimImageData> ossimKakaduJ2kReader::theCacheTile
private

Definition at line 306 of file ossimKakaduJ2kReader.h.

Referenced by closeEntry(), getTile(), initializeTile(), and loadTile().

◆ theCodestream

kdu_core::kdu_codestream ossimKakaduJ2kReader::theCodestream
private

Definition at line 296 of file ossimKakaduJ2kReader.h.

Referenced by closeEntry(), and getOverviewTile().

◆ theFileStr

std::ifstream ossimKakaduJ2kReader::theFileStr
private

Definition at line 301 of file ossimKakaduJ2kReader.h.

Referenced by closeEntry(), get_pos(), read(), and seek().

◆ theImageRect

ossimIrect ossimKakaduJ2kReader::theImageRect
private

Definition at line 304 of file ossimKakaduJ2kReader.h.

Referenced by getTile().

◆ theMinDwtLevels

ossim_uint32 ossimKakaduJ2kReader::theMinDwtLevels
private

◆ theOpenTileThreadQueue

kdu_core::kdu_thread_queue* ossimKakaduJ2kReader::theOpenTileThreadQueue
private

Definition at line 298 of file ossimKakaduJ2kReader.h.

Referenced by closeEntry(), and getOverviewTile().

◆ theScalarType

ossimScalarType ossimKakaduJ2kReader::theScalarType
private

Definition at line 303 of file ossimKakaduJ2kReader.h.

◆ theSizRecord

ossimJ2kSizRecord ossimKakaduJ2kReader::theSizRecord
private

◆ theSourcePrecisionBits

ossim_uint32 ossimKakaduJ2kReader::theSourcePrecisionBits
private

Definition at line 299 of file ossimKakaduJ2kReader.h.

◆ theThreadEnv

kdu_core::kdu_thread_env* ossimKakaduJ2kReader::theThreadEnv
private

Definition at line 297 of file ossimKakaduJ2kReader.h.

Referenced by closeEntry(), and getOverviewTile().

◆ theTile

ossimRefPtr<ossimImageData> ossimKakaduJ2kReader::theTile
private

◆ theTileSizeX

ossim_uint32 ossimKakaduJ2kReader::theTileSizeX
private

Definition at line 307 of file ossimKakaduJ2kReader.h.

Referenced by closeEntry(), getTile(), initializeTile(), and loadTile().

◆ theTileSizeY

ossim_uint32 ossimKakaduJ2kReader::theTileSizeY
private

Definition at line 308 of file ossimKakaduJ2kReader.h.

Referenced by closeEntry(), getTile(), initializeTile(), and loadTile().


The documentation for this class was generated from the following files: