13 #ifndef ossimPngReader_HEADER 14 #define ossimPngReader_HEADER 1 111 const char* prefix=0)
const;
118 const char* prefix=0);
141 virtual void getPropertyNames(std::vector<ossimString>& propertyNames)
const;
188 virtual bool open( std::shared_ptr<ossim::istream>& str,
189 const std::string& connectionString );
192 virtual void close();
219 bool open( std::shared_ptr<ossim::istream>& str );
285 png_structp png_ptr, png_bytep data, png_size_t length);
293 std::shared_ptr<ossim::istream>
m_str;
virtual ossim_uint32 getImageTileWidth() const
Returns the tile width of the image or 0 if the image is not tiled.
void fillTile(const ossimIrect &clip_rect, ossimImageData *tile)
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Get propterty method.
char ossim_int8
Previous DLL import export section.
void destroy()
Free tile and buffer memory.
bool isOpen() const
Derived classes must implement this method to be concrete.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &rect, ossim_uint32 resLevel=0)
Returns a pointer to a tile given an origin representing the upper left corner of the tile to grab fr...
std::shared_ptr< ossim::istream > m_str
void allocate()
Initializes tiles and buffers.
void copyLines(T dummy, ossim_uint32 stopLine)
Represents serializable keyword/value map.
virtual ossimIrect getImageRectangle(ossim_uint32 reduced_res_level=0) const
Returns the zero based image rectangle for the reduced resolution data set (rrds) passed in...
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Get propterty names.
ossimAppFixedTileCache::ossimAppFixedCacheId m_cacheId
ossim_uint8 * m_lineBuffer
bool initReader()
Initializes this reader from libpng m_pngPtr and infoPtr.
bool checkSignature(std::istream &str)
std::vector< ossim_float64 > m_maxPixelValue
virtual void setProperty(ossimRefPtr< ossimProperty > property)
Set propterty method.
ossimRefPtr< ossimImageData > m_cacheTile
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
ossim_uint32 m_lineBufferSizeInBytes
virtual ossim_uint32 getNumberOfLines(ossim_uint32 reduced_res_level=0) const
Returns the number of lines in the image.
ossimString getPngColorTypeString() const
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
ossimPngReader()
default constructor
ossimPngReadMode m_readMode
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Gets the image geometry.
ossim_uint32 m_numberOfInputBands
unsigned int ossim_uint32
virtual ossim_uint32 getTileHeight() const
Returns the height of the output tile.
void copyLinesWithAlpha(T, ossim_uint32 stopLine)
bool m_useAlphaChannelFlag
virtual ossimScalarType getOutputScalarType() const
Returns the output pixel type of the tile source.
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
ossim_int8 m_pngColorType
ossim_int32 ossimAppFixedCacheId
virtual ossimString getShortName() const
virtual ~ossimPngReader()
virtual destructor
void setMaxPixelValue()
the max pixel value.
virtual ossimString getLongName() const
virtual ossimString getClassName() const
std::basic_istream< char > istream
Base class for char input streams.
ossim_uint32 m_bytePerPixelPerBand
ossim_uint32 m_numberOfOutputBands
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual ossim_uint32 getImageTileHeight() const
Returns the tile width of the image or 0 if the image is not tiled.
ossimRefPtr< ossimImageData > m_tile
virtual void close()
Close method.
void restart()
Method to restart reading from the beginning (for backing up).
virtual ossim_uint32 getTileWidth() const
Returns the width of the output tile.
virtual bool open()
open method.
virtual ossim_uint32 getNumberOfInputBands() const
Returns the number of bands in the image.
ossim_int32 m_interlacePasses
ossim_uint32 m_currentRow
static void pngReadData(png_structp png_ptr, png_bytep data, png_size_t length)
Callback method for reading from a stream.
void readPngVersionInfo()
unsigned char ossim_uint8
png_infop m_pngReadInfoPtr
ossimScalarType m_outputScalarType
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 reduced_res_level=0) const
Returns the number of samples in the image.
bool readPngInit()
Performs signature check and initializes png_structp and png_infop.