libopenraw
|
Public Types | |
typedef std::shared_ptr< IfdDir > | Ref |
typedef std::vector< Ref > | RefVec |
Public Member Functions | |
IfdDir (off_t _offset, IfdFileContainer &_container) | |
bool | isPrimary () const |
bool | isThumbnail () const |
off_t | offset () const |
const IfdFileContainer & | container () const |
bool | load () |
int | numTags () |
IfdEntry::Ref | getEntry (uint16_t id) const |
template<typename T > | |
Option< T > | getValue (uint16_t id) const |
Option< uint32_t > | getIntegerValue (uint16_t id) |
off_t | nextIFD () |
Ref | getSubIFD (uint32_t idx=0) const |
Option< std::vector< IfdDir::Ref > > | getSubIFDs () |
Ref | getExifIFD () |
Ref | getMakerNoteIfd () |
Definition at line 44 of file ifddir.hpp.
typedef std::shared_ptr<IfdDir> OpenRaw::Internals::IfdDir::Ref |
Definition at line 46 of file ifddir.hpp.
typedef std::vector<Ref> OpenRaw::Internals::IfdDir::RefVec |
Definition at line 47 of file ifddir.hpp.
OpenRaw::Internals::IfdDir::IfdDir | ( | off_t | _offset, |
IfdFileContainer & | _container | ||
) |
Definition at line 50 of file ifddir.cpp.
|
virtual |
Definition at line 55 of file ifddir.cpp.
|
inline |
Definition at line 57 of file ifddir.hpp.
IfdEntry::Ref OpenRaw::Internals::IfdDir::getEntry | ( | uint16_t | id | ) | const |
Definition at line 90 of file ifddir.cpp.
IfdDir::Ref OpenRaw::Internals::IfdDir::getExifIFD | ( | ) |
get the Exif IFD.
The SubIFD is located at offset found in the field EXIF_TAG_SUB_IFDS
Definition at line 173 of file ifddir.cpp.
Option< uint32_t > OpenRaw::Internals::IfdDir::getIntegerValue | ( | uint16_t | id | ) |
Get an loosely typed integer value from an entry. This method is preferred over getLongValue() or getShortValue() unless you really want the strong typing that IFD structure provide
id | the IFD field id |
Definition at line 101 of file ifddir.cpp.
IfdDir::Ref OpenRaw::Internals::IfdDir::getMakerNoteIfd | ( | ) |
get the MakerNote IFD.
Definition at line 191 of file ifddir.cpp.
IfdDir::Ref OpenRaw::Internals::IfdDir::getSubIFD | ( | uint32_t | idx = 0 | ) | const |
get the SubIFD at index idx.
The SubIFD is locate at offset found in the field EXIF_TAG_SUB_IFDS
Definition at line 131 of file ifddir.cpp.
Option< std::vector< IfdDir::Ref > > OpenRaw::Internals::IfdDir::getSubIFDs | ( | ) |
get all SubIFDs
Definition at line 151 of file ifddir.cpp.
|
inline |
Get a T value from an entry
id | the IFD field id |
Definition at line 70 of file ifddir.hpp.
bool OpenRaw::Internals::IfdDir::isPrimary | ( | ) | const |
Definition at line 38 of file ifddir.cpp.
bool OpenRaw::Internals::IfdDir::isThumbnail | ( | ) | const |
Definition at line 44 of file ifddir.cpp.
bool OpenRaw::Internals::IfdDir::load | ( | ) |
load the directory to memory
Definition at line 59 of file ifddir.cpp.
off_t OpenRaw::Internals::IfdDir::nextIFD | ( | ) |
get the offset of the next IFD in absolute
Definition at line 110 of file ifddir.cpp.
|
inline |
return the number of entries
Definition at line 62 of file ifddir.hpp.
|
inline |
return the offset
Definition at line 56 of file ifddir.hpp.
Referenced by OpenRaw::Internals::MakerNoteDir::createMakerNote().