|
Exiv2
|
Canon CR2 header structure. More...
#include <cr2image_int.hpp>
Inheritance diagram for Exiv2::Internal::Cr2Header:
Collaboration diagram for Exiv2::Internal::Cr2Header:Public Member Functions | |
Creators | |
| Cr2Header (ByteOrder byteOrder=littleEndian) | |
| 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 | |
| DataBuf | write () const |
| Return the image header in binary format. The caller owns this data and DataBuf ensures that it will be deleted. | |
| bool | isImageTag (uint16_t tag, IfdId group, const PrimaryGroups *pPrimaryGroups) const |
Return true if the Exif tag from group is an image tag. | |
Static Public Member Functions | |
| static uint32_t | offset2addr () |
| Return the address of offset2 from the start of the header. | |
Canon CR2 header structure.
| bool Exiv2::Internal::Cr2Header::isImageTag | ( | uint16_t | tag, |
| IfdId | group, | ||
| const PrimaryGroups * | pPrimaryGroups | ||
| ) | const [virtual] |
Return true if the Exif tag from group is an image tag.
Certain tags of TIFF and TIFF-like images are required to correctly display the primary image. These image tags contain image data rather than metadata.
| tag | Tag number. |
| group | Group identifier. |
| pPrimaryGroups | Pointer to a list of TIFF groups that contain primary images, empty if none are marked. |
false. Reimplemented from Exiv2::Internal::TiffHeaderBase.
References Exiv2::Internal::isTiffImageTag().
| 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().
| DataBuf Exiv2::Internal::Cr2Header::write | ( | ) | const [virtual] |
Return the image header in binary format. The caller owns this data and DataBuf ensures that it will be deleted.
Reimplemented from Exiv2::Internal::TiffHeaderBase.
References Exiv2::Internal::TiffHeaderBase::byteOrder(), Exiv2::DataBuf::pData_, Exiv2::Internal::TiffHeaderBase::tag(), Exiv2::ul2Data(), and Exiv2::us2Data().
1.7.3