#include <exif.hpp>
Public Types | |
typedef std::auto_ptr < TiffThumbnail > | AutoPtr |
Shortcut for a TiffThumbnail auto pointer. | |
Public Member Functions | |
Manipulators | |
TiffThumbnail & | operator= (const TiffThumbnail &rhs) |
Assignment operator. | |
Accessors | |
int | setDataArea (ExifData &exifData, Ifd *pIfd1, const byte *buf, long len) const |
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. | |
DataBuf | copy (const ExifData &exifData) const |
Return the thumbnail image in a DataBuf. The caller owns the data buffer and DataBuf ensures that it will be deleted. | |
const char * | format () const |
Return a short string for the format of the thumbnail ("TIFF", "JPEG"). | |
const char * | extension () const |
Return the file extension for the format of the thumbnail (".tif", ".jpg"). |
int Exiv2::TiffThumbnail::setDataArea | ( | ExifData & | exifData, | |
Ifd * | pIfd1, | |||
const byte * | buf, | |||
long | len | |||
) | const [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. |
Implements Exiv2::Thumbnail.