#include <tiffcomposite_int.hpp>
Public Member Functions | |
Creators | |
TiffImageEntry (uint16_t tag, uint16_t group, uint16_t szTag, uint16_t szGroup) | |
Constructor. | |
virtual | ~TiffImageEntry () |
Virtual destructor. | |
Manipulators | |
virtual void | setStrips (const Value *pSize, const byte *pData, uint32_t sizeData, uint32_t baseOffset) |
Set the data areas ("strips"). | |
Protected Member Functions | |
Protected Manipulators | |
virtual void | doAccept (TiffVisitor &visitor) |
Implements accept(). | |
virtual void | doEncode (TiffEncoder &encoder, const Exifdatum *datum) |
Implements encode(). | |
virtual uint32_t | doWrite (IoWrapper &ioWrapper, ByteOrder byteOrder, int32_t offset, uint32_t valueIdx, uint32_t dataIdx, uint32_t &imageIdx) |
Implements write(). Write pointers into the image data area to the ioWrapper. Return the number of bytes written. The valueIdx and dataIdx arguments are not used. | |
Protected Accessors | |
virtual uint32_t | doWriteData (IoWrapper &ioWrapper, ByteOrder byteOrder, int32_t offset, uint32_t dataIdx, uint32_t &imageIdx) const |
Implements writeData(). Write the image data area to the ioWrapper. Return the number of bytes written. | |
virtual uint32_t | doWriteImage (IoWrapper &ioWrapper, ByteOrder byteOrder) const |
Implements writeImage(). Write the image data area to the ioWrapper. Return the number of bytes written. | |
virtual uint32_t | doSize () const |
Implements size(). Return the size of the strip pointers. | |
virtual uint32_t | doSizeData () const |
Implements sizeData(). Return the size of the image data area. | |
virtual uint32_t | doSizeImage () const |
Implements sizeImage(). Return the size of the image data area. | |
Friends | |
class | TiffEncoder |
The data is not extracted into the higher level metadata tags, it is only copied to the target image when the image is written. This component is used, e.g., for Exif.Image.StripOffsets for which the sizes are provided in Exif.Image.StripByteCounts.
uint32_t Exiv2::Internal::TiffImageEntry::doWriteData | ( | IoWrapper & | ioWrapper, | |
ByteOrder | byteOrder, | |||
int32_t | offset, | |||
uint32_t | dataIdx, | |||
uint32_t & | imageIdx | |||
) | const [protected, virtual] |
Implements writeData(). Write the image data area to the ioWrapper. Return the number of bytes written.
This function writes the image data to the data area of the current directory. It is used for TIFF image entries in the makernote (large preview images) so that the image data remains in the makernote IFD.
Reimplemented from Exiv2::Internal::TiffEntryBase.
References Exiv2::Internal::TiffComponent::group(), Exiv2::Internal::Group::mn, and Exiv2::Internal::TiffComponent::writeImage().
void Exiv2::Internal::TiffImageEntry::setStrips | ( | const Value * | pSize, | |
const byte * | pData, | |||
uint32_t | sizeData, | |||
uint32_t | baseOffset | |||
) | [virtual] |
Set the data areas ("strips").
pSize | Pointer to the Value holding the sizes corresponding to this data entry. | |
pData | Pointer to the data area. | |
sizeData | Size of the data area. | |
baseOffset | Base offset into the data area. |
Implements Exiv2::Internal::TiffDataEntryBase.
References Exiv2::Value::count(), Exiv2::Internal::TiffComponent::count(), Exiv2::Internal::TiffComponent::group(), Exiv2::Internal::TiffEntryBase::offset(), Exiv2::Internal::TiffEntryBase::pValue(), Exiv2::Internal::TiffComponent::size(), Exiv2::Internal::TiffComponent::tag(), Exiv2::Internal::tiffGroupName(), and Exiv2::Value::toLong().