OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimPngCodec.h>
Public Member Functions | |
ossimPngCodec (bool addAlpha=false) | |
virtual ossimString | getCodecType () const |
Will return the identifier used to identify the codec type. More... | |
virtual bool | encode (const ossimRefPtr< ossimImageData > &in, std::vector< ossim_uint8 > &out) const |
Encode png method. More... | |
virtual bool | decode (const std::vector< ossim_uint8 > &in, ossimRefPtr< ossimImageData > &out) const |
Decode png method. More... | |
virtual const std::string & | getExtension () const |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
Ineterface to allow for specific properties to be set. More... | |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
Interface to get the value of a specific property. More... | |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
Get a list of all supported property names. More... | |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
Allocate the state of the object thorugh a factory load/keywordlist. More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
Save the state of the codec to the keywordlist. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () 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 std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (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 |
![]() | |
ossimPropertyInterface () | |
virtual | ~ossimPropertyInterface () |
virtual void | setProperty (const ossimString &name, const ossimString &value) |
virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
Protected Attributes | |
bool | m_addAlphaChannel |
std::string | m_ext |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 5 of file ossimPngCodec.h.
ossimPngCodec::ossimPngCodec | ( | bool | addAlpha = false | ) |
Definition at line 28 of file ossimPngCodec.cpp.
|
virtual |
Decode png method.
in | Input data to decode. |
out | Output tile. If the pointer to ossimImageData is null internally it will be created. For code loops it is better to pre initialized to correct size. |
Implements ossimCodecBase.
Definition at line 244 of file ossimPngCodec.cpp.
References y.
|
virtual |
Encode png method.
Current options handled by this factory:
type: png
in | Input data to encode. |
out | Encoded output data. |
Implements ossimCodecBase.
Definition at line 46 of file ossimPngCodec.cpp.
References ossimImageData::getBuf(), ossimImageData::getHeight(), ossimImageData::getNumberOfBands(), ossimRectilinearDataObject::getScalarType(), ossimImageData::getWidth(), m_addAlphaChannel, OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, and y.
|
virtual |
Will return the identifier used to identify the codec type.
For example the Jpeg codec will have "jpeg" as the identifier
Implements ossimCodecBase.
Definition at line 35 of file ossimPngCodec.cpp.
|
virtual |
|
virtual |
Interface to get the value of a specific property.
in | name. Property name to retrieve |
Reimplemented from ossimPropertyInterface.
Definition at line 466 of file ossimPngCodec.cpp.
|
virtual |
Get a list of all supported property names.
Currently only "quality" property is exposed
out | proeprtyNames. push the list of proeprty names to the list |
Reimplemented from ossimPropertyInterface.
Definition at line 482 of file ossimPngCodec.cpp.
|
virtual |
Allocate the state of the object thorugh a factory load/keywordlist.
in | kwl. Input keywordlist that holds the values. |
in | prefix. prefix to use for all keywords. |
Reimplemented from ossimObject.
Definition at line 487 of file ossimPngCodec.cpp.
References ossimKeywordlist::find().
|
virtual |
Save the state of the codec to the keywordlist.
out | kwl. Input keywordlist that holds the values. |
in | prefix. prefix to use for all keywords. |
Reimplemented from ossimObject.
Definition at line 499 of file ossimPngCodec.cpp.
References ossimKeywordlist::add().
|
virtual |
Ineterface to allow for specific properties to be set.
Reimplemented from ossimPropertyInterface.
Definition at line 454 of file ossimPngCodec.cpp.
References ossimProperty::getName().
|
protected |
Definition at line 90 of file ossimPngCodec.h.
Referenced by encode().
|
protected |
Definition at line 91 of file ossimPngCodec.h.
Referenced by getExtension().