Canon CR2 header structure. More...
#include <cr2image_int.hpp>
Public Member Functions | |
Creators | |
Cr2Header () | |
Default constructor. | |
~Cr2Header () | |
Destructor. | |
Manipulators | |
bool | read (const byte *pData, uint32_t size) |
Read the image header from a data buffer. Return false if the data buffer does not contain an image header of the expected format, else true. | |
Accessors | |
uint32_t | write (Blob &blob) const |
Write the image header to the binary image blob. This method appends to the blob. |
Canon CR2 header structure.
bool Exiv2::Internal::Cr2Header::read | ( | const byte * | pData, | |
uint32_t | size | |||
) | [virtual] |
Read the image header from a data buffer. Return false if the data buffer does not contain an image header of the expected format, else true.
pData | Pointer to the data buffer. | |
size | Number of bytes in the data buffer. |
Reimplemented from Exiv2::Internal::TiffHeaderBase.
References Exiv2::Internal::TiffHeaderBase::byteOrder(), Exiv2::getULong(), Exiv2::getUShort(), Exiv2::Internal::TiffHeaderBase::setByteOrder(), Exiv2::Internal::TiffHeaderBase::setOffset(), and Exiv2::Internal::TiffHeaderBase::tag().
uint32_t Exiv2::Internal::Cr2Header::write | ( | Blob & | blob | ) | const [virtual] |
Write the image header to the binary image blob. This method appends to the blob.
blob | Binary image to add to. |
Reimplemented from Exiv2::Internal::TiffHeaderBase.