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

ossimJpeg12NitfReader class for reading NITF images with 12 bit jpeg compressed blocks using libjpeg-turbo library compiled specifically with "--with-12bit" compiler option. More...

#include <ossimJpeg12NitfReader.h>

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

Protected Member Functions

virtual bool canUncompress (const ossimNitfImageHeader *hdr) const
 
virtual bool uncompressJpegBlock (ossim_uint32 x, ossim_uint32 y)
 
Uncompresses a jpeg block using the jpeg-6b library. More...
 
bool loadJpeg12QuantizationTables (jpeg12_decompress_struct &cinfo) const
 Loads one of the default tables based on COMRAT value. More...
 
bool loadJpeg12HuffmanTables (jpeg12_decompress_struct &cinfo) const
 Loads default huffman tables. More...
 
- Protected Member Functions inherited from ossimNitfTileSource
virtual ~ossimNitfTileSource ()
 
void setBoundingRectangle (const ossimIrect &imageRect)
 
 ossimNitfTileSource (const ossimNitfTileSource &obj)
 Copy constructor, disallow... More...
 
ossimNitfTileSourceoperator= (const ossimNitfTileSource &rhs)
 Operator=, disallow... More...
 
bool loadTile (const ossimIrect &clipRect)
 Returns true on success, false on error. More...
 
ossim_uint32 getBlockNumber (const ossimIpt &block_origin) const
 
void destroy ()
 Deletes all memory allocated by this object. More...
 
virtual bool parseFile ()
 Parses "theImageFile" and initializes all nitf headers. More...
 
virtual bool allocate ()
 Allocates everything for current entry. More...
 
virtual bool allocateBuffers ()
 Allocates buffers for current entry. More...
 
virtual void initializeScalarType ()
 Initializes the data member "theScalarType" from the current entry. More...
 
virtual void initializeSwapBytesFlag ()
 Initializes the data member "theSwapBytesFlag" from the current entry. More...
 
virtual void initializeReadMode ()
 Initializes the data member "theReadMode" from the current entry. More...
 
void initializeBandCount ()
 Initializes the data member "theNumberOfBands" from the current entry. More...
 
bool initializeBlockSize ()
 Initializes the data member "theBlockSize" from the current entry. More...
 
virtual bool initializeImageRect ()
 Initializes the data members "theImageRect" and "theBlockRect" from the current entry. More...
 
void initializeCacheSize ()
 Initializes the data member "theCacheSize". More...
 
virtual void initializeCacheTileInterLeaveType ()
 Initializes the data member "theCacheTileInterLeaveType". More...
 
void initializeCacheTile ()
 Initializes the cache tile size(width and height). More...
 
virtual void initializeCompressedBuf ()
 Initializes the data member theCompressedBuf. More...
 
virtual void initializeOutputTile ()
 Initializes the output tile size(width and height). More...
 
void initializeLut ()
 Initializes "theLut" if applicable. More...
 
bool loadBlockFromCache (ossim_uint32 x, ossim_uint32 y, const ossimIrect &clipRect)
 Loads a block of data to theCacheTile. More...
 
virtual bool loadBlock (ossim_uint32 x, ossim_uint32 y)
 Loads a block of data to theCacheTile. More...
 
bool getPosition (std::streamoff &position, ossim_uint32 x, ossim_uint32 y, ossim_uint32 band) const
 
ossim_uint32 getNumberOfBlocks () const
 
std::streampos getBandOffset () const
 
std::streampos getBlockOffset () const
 
void explodePackedBits (ossimRefPtr< ossimImageData > packedBuffer) const
 
void convertTransparentToNull (ossimRefPtr< ossimImageData > tile) const
 
ossim_uint32 getPartialReadSize (const ossimIpt &blockOrigin) const
 
bool isVqCompressed (const ossimString &compressionCode) const
 
void vqUncompressC4 (ossimRefPtr< ossimImageData > destination, ossim_uint8 *source)
 Uncompresses Vector Quantization unmasked image data. More...
 
void vqUncompressM4 (ossimRefPtr< ossimImageData > destination, ossim_uint8 *source)
 Uncompresses Vector Quantization masked image data. More...
 
void lutUncompress (ossimRefPtr< ossimImageData > destination, ossim_uint8 *source)
 
virtual bool scanForJpegBlockOffsets ()
 scans the file storing in offsets in "theNitfBlockOffset" and block sizes in "theNitfBlockSize". More...
 
bool loadJpegQuantizationTables (jpeg_decompress_struct &cinfo) const
 Loads one of the default tables based on COMRAT value. More...
 
bool loadJpegHuffmanTables (jpeg_decompress_struct &cinfo) const
 Loads default huffman tables. More...
 
virtual void establishDecimationFactors ()
 Virtual method determines the decimation factors at each resolution level. 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
 
virtual bool getOverviewTile (ossim_uint32 resLevel, ossimImageData *result)
 Method to get an overview tile. More...
 
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 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)
 

Additional Inherited Members

- Public Types inherited from ossimNitfTileSource
enum  ReadMode {
  READ_MODE_UNKNOWN = 0, READ_BIB_BLOCK = 1, READ_BIP_BLOCK = 2, READ_BIR_BLOCK = 3,
  READ_BSQ_BLOCK = 4, READ_BIB = 5, READ_BIP = 6, READ_BIR = 7,
  READ_JPEG_BLOCK = 8
}
 
- 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
 
- Public Member Functions inherited from ossimNitfTileSource
 ossimNitfTileSource ()
 
virtual ossimString getShortName () const
 
virtual ossimString getLongName () const
 
virtual bool open ()
 Returns true if the image_file can be opened and is a valid nitf file. More...
 
bool open (std::shared_ptr< ossim::istream > &str, const std::string &connectionString)
 This open takes a stream and stores/captures the shared pointer on success. More...
 
virtual void close ()
 Closes file and destroys all memory allocated. More...
 
virtual ossimRefPtr< ossimImageDatagetTile (const ossimIrect &tileRect, ossim_uint32 resLevel=0)
 
virtual ossim_uint32 getNumberOfInputBands () const
 
virtual ossim_uint32 getNumberOfOutputBands () const
 
virtual ossim_uint32 getNumberOfLines (ossim_uint32 resLevel=0) const
 Returns the number of lines in the image. More...
 
virtual ossim_uint32 getNumberOfSamples (ossim_uint32 resLevel=0) const
 Returns the number of samples in the image. 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 loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 Method to the load (recreate) the state of an object from a keyword list. More...
 
virtual ossimScalarType getOutputScalarType () const
 Returns the output pixel type of the tile source. More...
 
virtual ossim_uint32 getTileWidth () const
 Returns the width of the output tile. More...
 
virtual ossim_uint32 getTileHeight () const
 Returns the height of the output tile. 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 bool isOpen () const
 Derived classes must implement this method to be concrete. More...
 
virtual ossim_uint32 getCurrentEntry () const
 
virtual void getEntryList (std::vector< ossim_uint32 > &entryList) const
 
ossim_uint32 getNumberOfEntries () const
 
virtual bool setCurrentEntry (ossim_uint32 entryIdx)
 
virtual ossimRefPtr< ossimPropertygetProperty (const ossimString &name) const
 
virtual void setProperty (ossimRefPtr< ossimProperty > property)
 
virtual void getPropertyNames (std::vector< ossimString > &propertyNames) const
 
ossimString getSecurityClassification () const
 
bool getCacheEnabledFlag () const
 
void setCacheEnabledFlag (bool flag)
 
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...
 
const ossimNitfFileHeadergetFileHeader () const
 
ossimNitfFileHeadergetFileHeader ()
 
const ossimNitfImageHeadergetCurrentImageHeader () const
 
ossimNitfImageHeadergetCurrentImageHeader ()
 
virtual bool getRgbBandList (std::vector< ossim_uint32 > &bandList) const
 Convenience method to get the zero based rgb output band 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 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 void getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const
 
virtual void getDecimationFactors (vector< ossimDpt > &decimations) const
 This returns all decimation for all levels. More...
 
virtual ossim_uint32 getNumberOfDecimationLevels () const
 This returns the total number of decimation levels. 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 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 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 void getEntryName (ossim_uint32 entryIdx, std::string &name) const
 Get the name of entry as a string. More...
 
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
 
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...
 
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 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 ossimString getClassName () 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 Attributes inherited from ossimNitfTileSource
ossimRefPtr< ossimImageDatatheTile
 
ossimRefPtr< ossimImageDatatheCacheTile
 
ossimRefPtr< ossimNitfFiletheNitfFile
 
std::vector< ossimRefPtr< ossimNitfImageHeader > > theNitfImageHeader
 
ReadMode theReadMode
 
ossimScalarType theScalarType
 
bool theSwapBytesFlag
 
ossim_uint32 theNumberOfInputBands
 
ossim_uint32 theNumberOfOutputBands
 
ossim_uint32 theBlockSizeInBytes
 
ossim_uint32 theReadBlockSizeInBytes
 
ossim_uint32 theNumberOfImages
 
ossim_uint32 theCurrentEntry
 
ossimIrect theImageRect
 
std::shared_ptr< ossim::istreamtheFileStr
 
std::vector< ossim_uint32theSelectorBandList
 
std::vector< ossim_uint32theOutputBandList
 
ossimIpt theCacheSize
 
ossimInterleaveType theCacheTileInterLeaveType
 
bool theCacheEnabledFlag
 
std::vector< ossim_uint32theEntryList
 
ossimAppFixedTileCache::ossimAppFixedCacheId theCacheId
 
bool thePackedBitsFlag
 
ossimIrect theBlockImageRect
 
std::vector< ossim_uint8theCompressedBuf
 
std::vector< std::streamoff > theNitfBlockOffset
 
std::vector< ossim_uint32theNitfBlockSize
 
bool m_jpegOffsetsDirty
 
- 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

ossimJpeg12NitfReader class for reading NITF images with 12 bit jpeg compressed blocks using libjpeg-turbo library compiled specifically with "--with-12bit" compiler option.

Definition at line 33 of file ossimJpeg12NitfReader.h.

Member Function Documentation

◆ canUncompress()

bool ossimJpeg12NitfReader::canUncompress ( const ossimNitfImageHeader hdr) const
protectedvirtual
Parameters
hdrPointer to image header.
Returns
true if reader can uncompress nitf.

Reimplemented from ossimNitfTileSource.

Definition at line 62 of file ossimJpeg12NitfReader.cpp.

References ossimNitfTileSource::canUncompress(), ossimNitfImageHeader::getBitsPerPixelPerBand(), and ossimNitfImageHeader::getCompressionCode().

63 {
64  bool result = false;
65  if (hdr)
66  {
67  // C3 = jpeg. We only do 12 bit jpeg.
68  if ( (hdr->getCompressionCode() == "C3") && (hdr->getBitsPerPixelPerBand() == 12) )
69  {
70  result = true;
71  }
72  else
73  {
75  }
76  }
77  return result;
78 }
virtual bool canUncompress(const ossimNitfImageHeader *hdr) const
virtual ossimString getCompressionCode() const =0
virtual ossim_int32 getBitsPerPixelPerBand() const =0

◆ loadJpeg12HuffmanTables()

bool ossimJpeg12NitfReader::loadJpeg12HuffmanTables ( jpeg12_decompress_struct &  cinfo) const
protected

Loads default huffman tables.

Returns
true success, false on error.

Definition at line 333 of file ossimJpeg12NitfReader.cpp.

334 {
335  if ( (cinfo.ac_huff_tbl_ptrs[0] != NULL) &&
336  (cinfo.dc_huff_tbl_ptrs[0] != NULL) )
337  {
338  return false;
339  }
340 
341  cinfo.ac_huff_tbl_ptrs[0] = jpeg12_alloc_huff_table((j12_common_ptr)&cinfo);
342  cinfo.dc_huff_tbl_ptrs[0] = jpeg12_alloc_huff_table((j12_common_ptr)&cinfo);
343 
344  ossim_int32 i;
345  JHUFF_TBL* huff_ptr;
346 
347  // Copy the ac tables.
348  huff_ptr = cinfo.ac_huff_tbl_ptrs[0]; /* huff_ptr is JHUFF_TBL* */
349  for (i = 0; i < 16; ++i)
350  {
351  // huff_ptr->bits is array of 17 bits[0] is unused; hence, the i+1
352  huff_ptr->bits[i+1] = AC_BITS[i];
353  }
354 
355  for (i = 0; i < 256; ++i)
356  {
357  huff_ptr->huffval[i] = AC_HUFFVAL[i];
358  }
359 
360  // Copy the dc tables.
361  huff_ptr = cinfo.dc_huff_tbl_ptrs[0]; /* huff_ptr is JHUFF_TBL* */
362  for (i = 0; i < 16; ++i)
363  {
364  // huff_ptr->bits is array of 17 bits[0] is unused; hence, the i+1
365  huff_ptr->bits[i+1] = DC_BITS[i];
366  }
367 
368  for (i = 0; i < 256; i++)
369  {
370  /* symbols[] is the list of Huffman symbols, in code-length order */
371  huff_ptr->huffval[i] = DC_HUFFVAL[i];
372  }
373  return true;
374 }
int ossim_int32

◆ loadJpeg12QuantizationTables()

bool ossimJpeg12NitfReader::loadJpeg12QuantizationTables ( jpeg12_decompress_struct &  cinfo) const
protected

Loads one of the default tables based on COMRAT value.

Returns
true if comrat had valid table value(1-5) and table was loaded, false if COMRAT value did not contain a valid value. Will also return false if there is already a table loaded.
Note
COMRAT is nitf compression rate code field:
  • "00.2" == default compression table 2
  • "00.5" == default compression table 5 and so on.

Definition at line 290 of file ossimJpeg12NitfReader.cpp.

References ossimNitfImageHeader::getCompressionRateCode(), ossimNitfTileSource::getCurrentImageHeader(), ossimNotify(), ossimNotifyLevel_WARN, ossimString::push_back(), ossimString::size(), and ossimString::toInt32().

292 {
294  if (!hdr)
295  {
296  return false;
297  }
298 
299  ossimString comrat = hdr->getCompressionRateCode();
300  ossim_uint32 tableIndex = 0;
301  if (comrat.size() >= 4)
302  {
303  // COMRAT string like: "00.2" = use table 2. (between 1 and 5).
304  ossimString s;
305  s.push_back(comrat[static_cast<std::string::size_type>(3)]);
306  ossim_int32 comTbl = s.toInt32();
307  if ( (comTbl > 0) && (comTbl < 6) )
308  {
309  tableIndex = comTbl-1;
310  }
311  else
312  {
314  << "ossimJpeg12NitrReader::loadJpegQuantizationTables WARNING\n"
315  << "\nNo quantization tables specified!"
316  << endl;
317  return false;
318  }
319  }
320 
321  cinfo.quant_tbl_ptrs[0] = jpeg12_alloc_quant_table((j12_common_ptr) &cinfo);
322 
323  JQUANT_TBL* quant_ptr = cinfo.quant_tbl_ptrs[0]; // quant_ptr is JQUANT_TBL*
324 
325  for (ossim_int32 i = 0; i < 64; ++i)
326  {
327  /* Qtable[] is desired quantization table, in natural array order */
328  quant_ptr->quantval[i] = QTABLE_ARRAY[tableIndex][i];
329  }
330  return true;
331 }
virtual ossimString getCompressionRateCode() const =0
ossim_int32 toInt32() const
void push_back(char c)
Equivalent to insert(end(), c).
Definition: ossimString.h:905
std::string::size_type size() const
Definition: ossimString.h:405
unsigned int ossim_uint32
const ossimNitfImageHeader * getCurrentImageHeader() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
int ossim_int32

◆ uncompressJpegBlock()

bool ossimJpeg12NitfReader::uncompressJpegBlock ( ossim_uint32  x,
ossim_uint32  y 
)
protectedvirtual


Uncompresses a jpeg block using the jpeg-6b library.

Parameters
xsample location in image space.
yline location in image space.
Returns
true on success, false on error.

Reimplemented from ossimNitfTileSource.

Definition at line 80 of file ossimJpeg12NitfReader.cpp.

References ossimNitfTileSource::getBlockNumber(), x, and y.

81 {
82  ossim_uint32 blockNumber = getBlockNumber( ossimIpt(x,y) );
83 
84  if (traceDebug())
85  {
87  << "ossimJpeg12NitrReader::uncompressJpegBlock DEBUG:"
88  << "\nblockNumber: " << blockNumber
89  << std::endl;
90  }
91 
92  //---
93  // Logic to hold off on scanning for offsets until a block is actually needed
94  // to speed up loads for things like ossim-info that don't actually read
95  // pixel data.
96  //---
97  if ( m_jpegOffsetsDirty )
98  {
100  {
101  m_jpegOffsetsDirty = false;
102  }
103  else
104  {
106  << "ossimJpeg12NitrReader::uncompressJpegBlock scan for offsets error!"
107  << "\nReturning error..." << endl;
109  return false;
110  }
111  }
112 
113  if (traceDebug())
114  {
116  << "\noffset to block: " << theNitfBlockOffset[blockNumber]
117  << "\nblock size: " << theNitfBlockSize[blockNumber]
118  << std::endl;
119  }
120 
121  // Seek to the block.
122  theFileStr->seekg(theNitfBlockOffset[blockNumber], ios::beg);
123 
124  // Read the block into memory.
125  std::vector<ossim_uint8> compressedBuf(theNitfBlockSize[blockNumber]);
126  if (!theFileStr->read((char*)&(compressedBuf.front()),
127  theNitfBlockSize[blockNumber]))
128  {
129  theFileStr->clear();
131  << "ossimJpeg12NitrReader::uncompressJpegBlock Read Error!"
132  << "\nReturning error..." << endl;
133  return false;
134  }
135 
136  jpeg12_decompress_struct cinfo;
137 
138  ossimJpegErrorMgr12 jerr;
139 
140  cinfo.err = jpeg12_std_error(&jerr.pub);
141 
142  jerr.pub.error_exit = ossimJpegErrorExit12;
143 
144  /* Establish the setjmp return context for my_error_exit to use. */
145  if (setjmp(jerr.setjmp_buffer))
146  {
147  jpeg12_destroy_decompress(&cinfo);
148 
149  return false;
150  }
151 
152  jpeg12_CreateDecompress(&cinfo, JPEG12_LIB_VERSION, sizeof(cinfo));
153 
154  //---
155  // Step 2: specify data source. In this case we will uncompress from
156  // memory so we will use "ossimJpegMemorySrc" in place of " jpeg_stdio_src".
157  //---
158  ossimJpegMemorySrc12( &cinfo,
159  &(compressedBuf.front()),
160  static_cast<size_t>(theReadBlockSizeInBytes) );
161 
162  /* Step 3: read file parameters with jpeg_read_header() */
163 
164  jpeg12_read_header(&cinfo, TRUE);
165 
166 
167  // Check for Quantization tables.
168  if (cinfo.quant_tbl_ptrs[0] == NULL)
169  {
170  // This will load table specified in COMRAT field.
171  if (loadJpeg12QuantizationTables(cinfo) == false)
172  {
173  jpeg12_destroy_decompress(&cinfo);
174  return false;
175  }
176  }
177 
178  // Check for huffman tables.
179  if (cinfo.ac_huff_tbl_ptrs[0] == NULL)
180  {
181  // This will load default huffman tables into .
182  if (loadJpeg12HuffmanTables(cinfo) == false)
183  {
184  jpeg12_destroy_decompress(&cinfo);
185  return false;
186  }
187  }
188 
189  /* Step 4: set parameters for decompression */
190 
191  /* In this example, we don't need to change any of the defaults set by
192  * jpeg_read_header(), so we do nothing here.
193  */
194 
195  /* Step 5: Start decompressor */
196 
197  jpeg12_start_decompress(&cinfo);
198 
199  const ossim_uint32 SAMPLES = cinfo.output_width;
200 
201  //---
202  // Note: Some nitf will be tagged with a given number of lines but the last
203  // jpeg block may go beyond that to a complete block. So it you clamp to
204  // last line of the nitf you will get a libjpeg error:
205  //
206  // "Application transferred too few scanlines"
207  //
208  // So here we will always read the full jpeg block even if it is beyond the
209  // last line of the nitf.
210  //---
211  const ossim_uint32 LINES_TO_READ =
212  min(static_cast<ossim_uint32>(theCacheSize.y), cinfo.output_height);
213 
214  /* JSAMPLEs per row in output buffer */
215  const ossim_uint32 ROW_STRIDE = SAMPLES * cinfo.output_components;
216 
217 #if 0 /* Please leave for debug. drb */
218  static bool TRACED = false;
219  if ( !TRACED )
220  {
221  cout << "theCacheTile:\n" << *(theCacheTile.get())
222  << "\nSAMPLES: " << SAMPLES
223  << "\nLINES_TO_READ: " << LINES_TO_READ
224  << "\nROW_STRIDE: " << ROW_STRIDE
225  << "\nJPEG12_BITS_IN_JSAMPLE: " << JPEG12_BITS_IN_JSAMPLE
226  << "\nsizeof jsamp: " << sizeof(JSAMPLE)
227  << "\ndata_precision: " << cinfo.data_precision
228  << "\ntotal_iMCU_rows: " << cinfo.total_iMCU_rows
229  << endl;
230 
231  TRACED = true;
232  }
233 #endif
234 
235  if ( (SAMPLES < theCacheTile->getWidth() ) ||
236  (LINES_TO_READ < theCacheTile->getHeight()) )
237  {
239  }
240 
241  if ( (SAMPLES > theCacheTile->getWidth()) ||
242  (LINES_TO_READ > theCacheTile->getHeight()) )
243  {
244  jpeg12_finish_decompress(&cinfo);
245  jpeg12_destroy_decompress(&cinfo);
246 
247  return false;
248  }
249 
250  // Get pointers to the cache tile buffers.
251  std::vector<ossim_uint16*> destinationBuffer(theNumberOfInputBands);
252  ossim_uint32 band = 0;
253  for (band = 0; band < theNumberOfInputBands; ++band)
254  {
255  destinationBuffer[band] = theCacheTile->getUshortBuf(band);
256  }
257 
258  std::vector<ossim_uint16> lineBuffer(ROW_STRIDE);
259  // std::vector<ossim_uint8> lineBuffer(ROW_STRIDE);
260  JSAMPROW jbuf[1];
261  jbuf[0] = (JSAMPROW) &(lineBuffer.front());
262 
263  while (cinfo.output_scanline < LINES_TO_READ)
264  {
265  // Read a line from the jpeg file.
266  jpeg12_read_scanlines(&cinfo, jbuf, 1);
267 
268  ossim_uint32 index = 0;
269  for (ossim_uint32 sample = 0; sample < SAMPLES; ++sample)
270  {
271  for (band = 0; band < theNumberOfInputBands; ++band)
272  {
273  destinationBuffer[band][sample] = lineBuffer[index];
274  ++index;
275  }
276  }
277 
278  for (band = 0; band < theNumberOfInputBands; ++band)
279  {
280  destinationBuffer[band] += theCacheSize.x;
281  }
282  }
283 
284  jpeg12_finish_decompress(&cinfo);
285  jpeg12_destroy_decompress(&cinfo);
286 
287  return true;
288 }
virtual ossim_uint32 getWidth() const
ossim_uint32 x
virtual const ossim_uint16 * getUshortBuf() const
ossim_uint32 theNumberOfInputBands
ossim_uint32 y
std::shared_ptr< ossim::istream > theFileStr
void ossimJpegErrorExit12(jpeg12_common_struct *cinfo)
std::vector< ossim_uint32 > theNitfBlockSize
ossim_uint32 theReadBlockSizeInBytes
virtual ossim_uint32 getHeight() const
bool loadJpeg12HuffmanTables(jpeg12_decompress_struct &cinfo) const
Loads default huffman tables.
static const ossimErrorCode OSSIM_ERROR
void ossimJpegMemorySrc12(j12_decompress_ptr cinfo, const ossim_uint8 *buffer, std::size_t bufsize)
unsigned int ossim_uint32
ossimRefPtr< ossimImageData > theCacheTile
virtual void makeBlank()
Initializes data to null pixel values.
ossim_int32 y
Definition: ossimIpt.h:142
virtual bool scanForJpegBlockOffsets()
scans the file storing in offsets in "theNitfBlockOffset" and block sizes in "theNitfBlockSize".
ossim_uint32 getBlockNumber(const ossimIpt &block_origin) const
ossim_int32 x
Definition: ossimIpt.h:141
bool loadJpeg12QuantizationTables(jpeg12_decompress_struct &cinfo) const
Loads one of the default tables based on COMRAT value.
std::vector< std::streamoff > theNitfBlockOffset
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
#define min(a, b)
Definition: auxiliary.h:75

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