Class to access Windows bitmaps. This is just a stub - we only read width and height.  
 More...
 | 
 | 
|   | BmpImage (BasicIo::UniquePtr io) | 
|   | Constructor to open a Windows bitmap image. Since the constructor can not return a result, callers should check the good() method after object construction to determine success or failure.  
  | 
|   | 
 | 
| void  | readMetadata () override | 
|   | Read all metadata supported by a specific image format from the image. Before this method is called, the image metadata will be cleared.  
  | 
|   | 
| void  | writeMetadata () override | 
|   | 
| void  | setExifData (const ExifData &exifData) override | 
|   | 
| void  | setIptcData (const IptcData &iptcData) override | 
|   | 
| void  | setComment (const std::string &) override | 
|   | 
 | 
| std::string  | mimeType () const override | 
|   | Return the MIME type of the image.  
  | 
|   | 
| 
  | Image (ImageType type, uint16_t supportedMetadata, BasicIo::UniquePtr io) | 
|   | Constructor taking the image type, a bitmap of the supported metadata types and an auto-pointer that owns an IO instance. See subclass constructor doc. 
  | 
|   | 
| 
virtual  | ~Image ()=default | 
|   | Virtual Destructor. 
  | 
|   | 
| 
ByteOrder  | byteOrder () const | 
|   | Return the byte order in which the Exif metadata of the image is encoded. Initially, it is not set (invalidByteOrder). 
  | 
|   | 
| bool  | good () const | 
|   | Check if the Image instance is valid. Use after object construction.  
  | 
|   | 
| virtual uint32_t  | pixelWidth () const | 
|   | Return the pixel width of the image.  
  | 
|   | 
| virtual uint32_t  | pixelHeight () const | 
|   | Return the pixel height of the image.  
  | 
|   | 
| virtual const ExifData &  | exifData () const | 
|   | Returns an ExifData instance containing currently buffered Exif data.  
  | 
|   | 
| virtual const IptcData &  | iptcData () const | 
|   | Returns an IptcData instance containing currently buffered IPTC data.  
  | 
|   | 
| virtual const XmpData &  | xmpData () const | 
|   | Returns an XmpData instance containing currently buffered XMP data.  
  | 
|   | 
| 
virtual std::string  | comment () const | 
|   | Return a copy of the image comment. May be an empty string. 
  | 
|   | 
| 
virtual const std::string &  | xmpPacket () const | 
|   | Return the raw XMP packet as a string. 
  | 
|   | 
| virtual BasicIo &  | io () const | 
|   | Return a reference to the BasicIo instance being used for Io.  
  | 
|   | 
| AccessMode  | checkMode (MetadataId metadataId) const | 
|   | Returns the access mode, i.e., the metadata functions, which this image supports for the metadata type metadataId.  
  | 
|   | 
| 
bool  | supportsMetadata (MetadataId metadataId) const | 
|   | Check if image supports a particular type of metadata. This method is deprecated. Use checkMode() instead. 
  | 
|   | 
| 
bool  | writeXmpFromPacket () const | 
|   | Return the flag indicating the source when writing XMP metadata. 
  | 
|   | 
| 
const NativePreviewList &  | nativePreviews () const | 
|   | Return list of native previews. This is meant to be used only by the PreviewManager. 
  | 
|   | 
| 
void  | setTypeSupported (ImageType imageType, uint16_t supportedMetadata) | 
|   | set type support for this image format 
  | 
|   | 
| 
ImageType  | imageType () const | 
|   | set type support for this image format 
  | 
|   | 
| 
  | Image (const Image &)=delete | 
|   | Copy constructor. 
  | 
|   | 
| 
Image &  | operator= (const Image &)=delete | 
|   | Assignment operator. 
  | 
|   | 
| virtual void  | printStructure (std::ostream &out, PrintStructureOption option=kpsNone, size_t depth=0) | 
|   | Print out the structure of image file.  
  | 
|   | 
| 
virtual void  | clearExifData () | 
|   | Erase any buffered Exif data. Exif data is not removed from the actual image until the writeMetadata() method is called. 
  | 
|   | 
| 
virtual void  | clearIptcData () | 
|   | Erase any buffered IPTC data. IPTC data is not removed from the actual image until the writeMetadata() method is called. 
  | 
|   | 
| virtual void  | setXmpPacket (const std::string &xmpPacket) | 
|   | Assign a raw XMP packet. The new XMP packet is not written to the image until the writeMetadata() method is called.  
  | 
|   | 
| virtual void  | clearXmpPacket () | 
|   | Erase the buffered XMP packet. XMP data is not removed from the actual image until the writeMetadata() method is called.  
  | 
|   | 
| virtual void  | setXmpData (const XmpData &xmpData) | 
|   | Assign new XMP data. The new XMP data is not written to the image until the writeMetadata() method is called.  
  | 
|   | 
| virtual void  | clearXmpData () | 
|   | Erase any buffered XMP data. XMP data is not removed from the actual image until the writeMetadata() method is called.  
  | 
|   | 
| 
virtual void  | clearComment () | 
|   | Erase any buffered comment. Comment is not removed from the actual image until the writeMetadata() method is called. 
  | 
|   | 
| virtual void  | setIccProfile (DataBuf &&iccProfile, bool bTestValid=true) | 
|   | Set the image iccProfile. The new profile is not written to the image until the writeMetadata() method is called.  
  | 
|   | 
| void  | appendIccProfile (const uint8_t *bytes, size_t size, bool bTestValid) | 
|   | Append more bytes to the iccProfile.  
  | 
|   | 
| 
void  | checkIccProfile () | 
|   | Throw an exception if the size at the beginning of the iccProfile isn't correct. 
  | 
|   | 
| 
virtual void  | clearIccProfile () | 
|   | Erase iccProfile. the profile is not removed from the actual image until the writeMetadata() method is called. 
  | 
|   | 
| 
virtual bool  | iccProfileDefined () const | 
|   | Returns the status of the ICC profile in the image instance. 
  | 
|   | 
| 
virtual const DataBuf &  | iccProfile () const | 
|   | return iccProfile 
  | 
|   | 
| virtual void  | setMetadata (const Image &image) | 
|   | Copy all existing metadata from source Image. The data is copied into internal buffers and is not written to the image until the writeMetadata() method is called.  
  | 
|   | 
| 
virtual void  | clearMetadata () | 
|   | Erase all buffered metadata. Metadata is not removed from the actual image until the writeMetadata() method is called. 
  | 
|   | 
| virtual ExifData &  | exifData () | 
|   | Returns an ExifData instance containing currently buffered Exif data.  
  | 
|   | 
| virtual IptcData &  | iptcData () | 
|   | Returns an IptcData instance containing currently buffered IPTC data.  
  | 
|   | 
| virtual XmpData &  | xmpData () | 
|   | Returns an XmpData instance containing currently buffered XMP data.  
  | 
|   | 
| 
virtual std::string &  | xmpPacket () | 
|   | Return a modifiable reference to the raw XMP packet. 
  | 
|   | 
| void  | writeXmpFromPacket (bool flag) | 
|   | Determine the source when writing XMP.  
  | 
|   | 
| void  | setByteOrder (ByteOrder byteOrder) | 
|   | Set the byte order to encode the Exif metadata in.  
  | 
|   | 
| void  | printTiffStructure (BasicIo &io, std::ostream &out, PrintStructureOption option, size_t depth, size_t offset=0) | 
|   | Print out the structure of image file.  
  | 
|   | 
| 
void  | printIFDStructure (BasicIo &io, std::ostream &out, Exiv2::PrintStructureOption option, size_t start, bool bSwap, char c, size_t depth) | 
|   | Print out the structure of a TIFF IFD. 
  | 
|   | 
 | 
| 
using  | UniquePtr = std::unique_ptr< Image > | 
|   | Image auto_ptr type. 
  | 
|   | 
| 
static bool  | isBigEndianPlatform () | 
|   | is the host platform bigEndian 
  | 
|   | 
| 
static bool  | isLittleEndianPlatform () | 
|   | is the host platform littleEndian 
  | 
|   | 
| 
static bool  | isStringType (uint16_t type) | 
|   | 
| 
static bool  | isShortType (uint16_t type) | 
|   | 
| 
static bool  | isLongType (uint16_t type) | 
|   | 
| 
static bool  | isLongLongType (uint16_t type) | 
|   | 
| 
static bool  | isRationalType (uint16_t type) | 
|   | 
| 
static bool  | is2ByteType (uint16_t type) | 
|   | 
| 
static bool  | is4ByteType (uint16_t type) | 
|   | 
| 
static bool  | is8ByteType (uint16_t type) | 
|   | 
| 
static bool  | isPrintXMP (uint16_t type, Exiv2::PrintStructureOption option) | 
|   | 
| 
static bool  | isPrintICC (uint16_t type, Exiv2::PrintStructureOption option) | 
|   | 
| 
static uint64_t  | byteSwap (uint64_t value, bool bSwap) | 
|   | 
| 
static uint32_t  | byteSwap (uint32_t value, bool bSwap) | 
|   | 
| 
static uint16_t  | byteSwap (uint16_t value, bool bSwap) | 
|   | 
| 
static uint16_t  | byteSwap2 (const DataBuf &buf, size_t offset, bool bSwap) | 
|   | 
| 
static uint32_t  | byteSwap4 (const DataBuf &buf, size_t offset, bool bSwap) | 
|   | 
| 
static uint64_t  | byteSwap8 (const DataBuf &buf, size_t offset, bool bSwap) | 
|   | 
| 
const std::string &  | tagName (uint16_t tag) | 
|   | Return tag name for given tag id. 
  | 
|   | 
| 
static const char *  | typeName (uint16_t tag) | 
|   | Return tag type for given tag id. 
  | 
|   | 
| 
BasicIo::UniquePtr  | io_ | 
|   | Image data IO pointer. 
  | 
|   | 
| 
ExifData  | exifData_ | 
|   | Exif data container. 
  | 
|   | 
| 
IptcData  | iptcData_ | 
|   | IPTC data container. 
  | 
|   | 
| 
XmpData  | xmpData_ | 
|   | XMP data container. 
  | 
|   | 
| 
DataBuf  | iccProfile_ | 
|   | ICC buffer (binary data) 
  | 
|   | 
| 
std::string  | comment_ | 
|   | User comment. 
  | 
|   | 
| 
std::string  | xmpPacket_ | 
|   | XMP packet. 
  | 
|   | 
| 
uint32_t  | pixelWidth_ {0} | 
|   | image pixel width 
  | 
|   | 
| 
uint32_t  | pixelHeight_ {0} | 
|   | image pixel height 
  | 
|   | 
| 
NativePreviewList  | nativePreviews_ | 
|   | list of native previews 
  | 
|   | 
Class to access Windows bitmaps. This is just a stub - we only read width and height.