![]() |
Exiv2
|
Header of a Nikon 3 Makernote. More...
#include <makernote_int.hpp>
Public Member Functions | |
Creators | |
Nikon3MnHeader () | |
Default constructor. | |
Manipulators | |
bool | read (const byte *pData, size_t size, ByteOrder byteOrder) override |
Read the header from a data buffer, return true if ok. | |
void | setByteOrder (ByteOrder byteOrder) override |
Set the byte order for the makernote. | |
![]() | |
virtual | ~MnHeader ()=default |
Virtual destructor. | |
Accessors | |
size_t | size () const override |
Return the size of the header (in bytes). | |
size_t | write (IoWrapper &ioWrapper, ByteOrder byteOrder) const override |
Write the header to a data buffer, return the number of bytes written. | |
size_t | ifdOffset () const override |
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of the header). | |
ByteOrder | byteOrder () const override |
Return the byte order for the makernote. If the return value is invalidByteOrder, this means that the byte order of the the image should be used for the makernote. | |
size_t | baseOffset (size_t mnOffset) const override |
Return the base offset for the makernote IFD entries relative to the start of the TIFF header. mnOffset is the offset to the makernote from the start of the TIFF header. | |
static size_t | sizeOfSignature () |
Return the size of the makernote header signature. | |
Header of a Nikon 3 Makernote.
|
overridevirtual |
Return the base offset for the makernote IFD entries relative to the start of the TIFF header. mnOffset is the offset to the makernote from the start of the TIFF header.
Reimplemented from Exiv2::Internal::MnHeader.
|
overridevirtual |
Return the byte order for the makernote. If the return value is invalidByteOrder, this means that the byte order of the the image should be used for the makernote.
Reimplemented from Exiv2::Internal::MnHeader.
Referenced by setByteOrder(), and write().
|
overridevirtual |
Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of the header).
Reimplemented from Exiv2::Internal::MnHeader.
|
overridevirtual |
Read the header from a data buffer, return true if ok.
Implements Exiv2::Internal::MnHeader.
References Exiv2::DataBuf::alloc(), Exiv2::Internal::TiffHeaderBase::byteOrder(), Exiv2::DataBuf::data(), Exiv2::Internal::TiffHeaderBase::offset(), Exiv2::Internal::TiffHeaderBase::read(), size(), and sizeOfSignature().
|
overridevirtual |
Set the byte order for the makernote.
Reimplemented from Exiv2::Internal::MnHeader.
References byteOrder().
|
overridevirtual |
Return the size of the header (in bytes).
Implements Exiv2::Internal::MnHeader.
References sizeOfSignature().
Referenced by read().
|
overridevirtual |
Write the header to a data buffer, return the number of bytes written.
Implements Exiv2::Internal::MnHeader.
References byteOrder(), Exiv2::DataBuf::c_data(), Exiv2::Internal::TiffHeaderBase::write(), and Exiv2::Internal::IoWrapper::write().