#include <exif.hpp>
Inheritance diagram for Exiv2::JpegThumbnail:
Public Member Functions | |
Creators | |
| JpegThumbnail () | |
| Virtual destructor. | |
| virtual | ~JpegThumbnail () |
| Virtual destructor. | |
| JpegThumbnail (const JpegThumbnail &rhs) | |
| Copy constructor. | |
Manipulators | |
| JpegThumbnail & | operator= (const JpegThumbnail &rhs) |
| Assignment operator. | |
| int | read (const byte *buf, long len, const ExifData &exifData, ByteOrder byteOrder=littleEndian) |
| Read the thumbnail from the data buffer buf, using Exif metadata exifData. Return 0 if successful. | |
| void | setOffsets (Ifd &ifd1, ByteOrder byteOrder) |
| Update the internal offset and the thumbnail data offsets in IFD1 assuming the thumbnail data follows immediately after IFD1. | |
Accessors | |
| int | write (const std::string &path) const |
| Write thumbnail to file path. | |
| 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"). | |
| long | copy (byte *buf) const |
| Copy the thumbnail image data (without the IFD, if any) to the data buffer buf. The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour. Return the number of characters written. | |
| void | update (ExifData &exifData) const |
| Update the Exif data according to the actual thumbnail image. | |
| long | offset () const |
| Return the position of the thumbnail image data from the start of the TIFF header in the original Exif data. | |
| long | size () const |
| Return the size of the thumbnail image (the size it would occupy when extracted from the Exif data). | |
| long | dataSize () const |
| Return the size of the thumbnail data (data only, without the IFD, in case of a TIFF thumbnail). | |
|
||||||||||||||||||||
|
Read the thumbnail from the data buffer buf, using Exif metadata exifData. Return 0 if successful.
Implements Exiv2::Thumbnail.
|
|
||||||||||||
|
Update the internal offset and the thumbnail data offsets in IFD1 assuming the thumbnail data follows immediately after IFD1. If the type of the thumbnail image is JPEG, JPEGInterchangeFormat is set to point directly behind the data area of IFD1. If the type is TIFF, StripOffsets from the thumbnail image are adjusted to point to the strips, which have to follow immediately after IFD1. Use copy() to write the thumbnail image data. The offset of IFD1 must be set correctly. Changing the size or data size of IFD1 invalidates the thumbnail data offsets set by this method. Implements Exiv2::Thumbnail.
|
|
|
Update the Exif data according to the actual thumbnail image. If the type of the thumbnail image is JPEG, JPEGInterchangeFormat is set to 0. If the type is TIFF, StripOffsets are set to the offsets of the IFD of the thumbnail image itself. Implements Exiv2::Thumbnail.
|
|
|
Write thumbnail to file path.
Implements Exiv2::Thumbnail.
|
1.3.8