#include <exif.hpp>
Public Types | |
typedef std::auto_ptr< Thumbnail > | AutoPtr |
Shortcut for a Thumbnail auto pointer. | |
Public Member Functions | |
Creators | |
virtual | ~Thumbnail () |
Virtual destructor. | |
Accessors | |
virtual int | setDataArea (ExifData &exifData, Ifd *pIfd1, const byte *buf, long len) const =0 |
Set the image data as data area of the appropriate Exif metadatum. Read the thumbnail image data from data buffer buf. Return 0 if successful. | |
virtual DataBuf | copy (const ExifData &exifData) const =0 |
Return the thumbnail image in a DataBuf. The caller owns the data buffer and DataBuf ensures that it will be deleted. | |
virtual const char * | format () const =0 |
Return a short string for the format of the thumbnail ("TIFF", "JPEG"). | |
virtual const char * | extension () const =0 |
Return the file extension for the format of the thumbnail (".tif", ".jpg"). | |
Protected Member Functions | |
Manipulators | |
Thumbnail & | operator= (const Thumbnail &rhs) |
Assignment operator. Protected so that it can only be used by subclasses but not directly. |
virtual int Exiv2::Thumbnail::setDataArea | ( | ExifData & | exifData, | |
Ifd * | pIfd1, | |||
const byte * | buf, | |||
long | len | |||
) | const [pure virtual] |
Set the image data as data area of the appropriate Exif metadatum. Read the thumbnail image data from data buffer buf. Return 0 if successful.
exifData | Exif data corresponding to the data buffer. | |
pIfd1 | Corresponding raw IFD1. | |
buf | Data buffer containing the thumbnail data. The buffer must start with the TIFF header. | |
len | Number of bytes in the data buffer. |
Implemented in Exiv2::TiffThumbnail, and Exiv2::JpegThumbnail.