#include <tiffvisitor.hpp>
Public Types | |
typedef std::auto_ptr< TiffRwState > | AutoPtr |
TiffRWState auto_ptr type. | |
Public Member Functions | |
Creators | |
TiffRwState (ByteOrder byteOrder, uint32_t baseOffset, TiffCompFactoryFct createFct=0) | |
Constructor. | |
Accessors | |
ByteOrder | byteOrder () const |
Return the applicable byte order. May be different for the Makernote and the rest of the TIFF entries. | |
uint32_t | baseOffset () const |
Return the base offset. | |
TiffCompFactoryFct | createFct () const |
Return the factory function to create new TIFF components. | |
Friends | |
class | TiffReader |
uint32_t Exiv2::TiffRwState::baseOffset | ( | ) | const [inline] |
Return the base offset.
TIFF standard format uses byte offsets which are always relative to the start of the TIFF file, i.e., relative to the start of the TIFF image header. In this case, the base offset is 0. However, some camera vendors encode their makernotes in TIFF IFDs using offsets relative to (somewhere near) the start of the makernote data. In this case, base offset added to the start of the TIFF image header points to the basis for such makernote offsets.
TiffCompFactoryFct Exiv2::TiffRwState::createFct | ( | ) | const [inline] |
Return the factory function to create new TIFF components.
Different create functions may use different lookup tables, so that makernotes can independently use their own factory function and lookup table, which can be defined together with the makernote implementation.