|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimJpegCodec.h>
Public Member Functions | |
| ossimJpegCodec () | |
| virtual | ~ossimJpegCodec () |
| virtual ossimString | getCodecType () const |
| virtual bool | encode (const ossimRefPtr< ossimImageData > &in, std::vector< ossim_uint8 > &out) const |
| Encode jpeg method. More... | |
| virtual bool | decode (const std::vector< ossim_uint8 > &in, ossimRefPtr< ossimImageData > &out) const |
| Decode jpeg 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... | |
Public Member Functions inherited from ossimObject | |
| 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) |
Public Member Functions inherited from ossimReferenced | |
| 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 |
Public Member Functions inherited from ossimPropertyInterface | |
| 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 Member Functions | |
| bool | decodeJpeg (const std::vector< ossim_uint8 > &in, ossimRefPtr< ossimImageData > &out) const |
| For decoding standard jpeg block. More... | |
| bool | decodeJpegToRgb (const std::vector< ossim_uint8 > &in, ossimRefPtr< ossimImageData > &out) const |
| For decoding color spaces other that mono and rgb. More... | |
| ossim_int32 | getColorSpace (const std::vector< ossim_uint8 > &in) const |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Protected Attributes | |
| ossim_uint32 | m_quality |
| std::string | m_ext |
Definition at line 14 of file ossimJpegCodec.h.
| ossimJpegCodec::ossimJpegCodec | ( | ) |
Definition at line 45 of file ossimJpegCodec.cpp.
|
virtual |
Definition at line 51 of file ossimJpegCodec.cpp.
|
virtual |
Decode jpeg 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 186 of file ossimJpegCodec.cpp.
References decodeJpeg(), and decodeJpegToRgb().
|
protected |
For decoding standard jpeg block.
Curently only handles CMYK.
| in | Input jpeg buffer. |
| out | Initialized by this. |
Definition at line 212 of file ossimJpegCodec.cpp.
References ossimJpegErrorExit(), ossimJpegMemorySrc(), ossimJpegErrorMgr::pub, ossimJpegErrorMgr::setjmp_buffer, and TRUE.
Referenced by decode(), and decodeJpegToRgb().
|
protected |
For decoding color spaces other that mono and rgb.
Curently only handles CMYK.
| in | Input jpeg buffer. |
| out | Initialized by this. |
Definition at line 334 of file ossimJpegCodec.cpp.
References decodeJpeg(), getColorSpace(), ossimImageData::getImageRectangle(), ossimImageData::getNumberOfBands(), ossimImageData::getUcharBuf(), ossimIrect::height(), ossimImageData::initialize(), ossimNotify(), ossimNotifyLevel_WARN, ossimImageData::setImageRectangleAndBands(), ossimRefPtr< T >::valid(), ossimImageData::validate(), and ossimIrect::width().
Referenced by decode().
|
virtual |
Encode jpeg method.
Current options handled by this factory:
type: jpeg quality: 75
| in | Input data to encode. |
| out | Encoded output data. |
Implements ossimCodecBase.
Definition at line 65 of file ossimJpegCodec.cpp.
References ossimDataObject::getDataObjectStatus(), ossimImageData::getHeight(), ossimImageData::getNumberOfBands(), ossimRectilinearDataObject::getScalarType(), ossimImageData::getUcharBuf(), ossimImageData::getWidth(), jpeg_cpp_stream_dest(), m_quality, OSSIM_NULL, OSSIM_UINT8, ossimNotify(), ossimNotifyLevel_WARN, TRUE, and ossimRefPtr< T >::valid().
|
virtual |
Implements ossimCodecBase.
Definition at line 55 of file ossimJpegCodec.cpp.
|
protected |
Definition at line 462 of file ossimJpegCodec.cpp.
References ossimJpegErrorExit(), ossimJpegMemorySrc(), ossimJpegErrorMgr::pub, ossimJpegErrorMgr::setjmp_buffer, and TRUE.
Referenced by decodeJpegToRgb().
|
virtual |
|
virtual |
Interface to get the value of a specific property.
| in | name. Property name to retrieve |
Reimplemented from ossimPropertyInterface.
Definition at line 494 of file ossimJpegCodec.cpp.
References ossimPropertyInterface::getProperty(), m_quality, ossimKeywordNames::QUALITY_KW, and ossimString::toString().
|
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 512 of file ossimJpegCodec.cpp.
References ossimPropertyInterface::getPropertyNames(), and ossimKeywordNames::QUALITY_KW.
|
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 518 of file ossimJpegCodec.cpp.
References ossimKeywordlist::find(), ossimObject::loadState(), m_quality, ossimKeywordNames::QUALITY_KW, and ossimString::toUInt32().
|
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 530 of file ossimJpegCodec.cpp.
References ossimKeywordlist::add(), m_quality, ossimKeywordNames::QUALITY_KW, and ossimObject::saveState().
|
virtual |
Ineterface to allow for specific properties to be set.
Reimplemented from ossimPropertyInterface.
Definition at line 486 of file ossimJpegCodec.cpp.
References ossimProperty::getName(), m_quality, and ossimKeywordNames::QUALITY_KW.
|
protected |
Definition at line 131 of file ossimJpegCodec.h.
Referenced by getExtension().
|
protected |
Definition at line 130 of file ossimJpegCodec.h.
Referenced by encode(), getProperty(), loadState(), saveState(), and setProperty().
1.8.14