OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimPngCodec.h
Go to the documentation of this file.
1 #ifndef ossimPngCodec_HEADER
2 #define ossimPngCodec_HEADER 1
4 
6 {
7 public:
8  ossimPngCodec(bool addAlpha=false);
9 
10  virtual ossimString getCodecType()const;
11 
25  virtual bool encode( const ossimRefPtr<ossimImageData>& in,
26  std::vector<ossim_uint8>& out ) const;
27 
42  virtual bool decode( const std::vector<ossim_uint8>& in,
43  ossimRefPtr<ossimImageData>& out ) const;
44 
45  virtual const std::string& getExtension() const;
46 
51  virtual void setProperty(ossimRefPtr<ossimProperty> property);
52 
60  virtual ossimRefPtr<ossimProperty> getProperty(const ossimString& name)const;
61 
68  virtual void getPropertyNames(std::vector<ossimString>& propertyNames)const;
69 
77  virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix=0);
78 
86  virtual bool saveState(ossimKeywordlist& kwl, const char* prefix=0)const;
87 
88 
89 protected:
91  std::string m_ext;
92 };
93 
94 #endif
virtual const std::string & getExtension() const
std::string m_ext
Definition: ossimPngCodec.h:91
virtual void setProperty(ossimRefPtr< ossimProperty > property)
Ineterface to allow for specific properties to be set.
Represents serializable keyword/value map.
bool m_addAlphaChannel
Definition: ossimPngCodec.h:90
ossimPngCodec(bool addAlpha=false)
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Interface to get the value of a specific property.
virtual bool decode(const std::vector< ossim_uint8 > &in, ossimRefPtr< ossimImageData > &out) const
Decode png method.
virtual ossimString getCodecType() const
Will return the identifier used to identify the codec type.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Save the state of the codec to the keywordlist.
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Get a list of all supported property names.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Allocate the state of the object thorugh a factory load/keywordlist.
virtual bool encode(const ossimRefPtr< ossimImageData > &in, std::vector< ossim_uint8 > &out) const
Encode png method.