7#include "exiv2lib_export.h"
66 std::string
mimeType()
const override;
75 std::string primaryGroup()
const;
79 mutable std::string primaryGroup_;
80 mutable std::string mimeType_;
81 mutable uint32_t pixelWidthPrimary_{0};
82 mutable uint32_t pixelHeightPrimary_{0};
An interface for simple binary IO.
Definition basicio.hpp:35
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:379
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 ...
Definition image.cpp:132
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition image.cpp:680
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition iptc.hpp:153
void readMetadata() override
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition tiffimage.cpp:131
void writeMetadata() override
Write metadata back to the image.
Definition tiffimage.cpp:164
TiffImage(BasicIo::UniquePtr io, bool create)
Constructor that can either open an existing TIFF image or create a new image from scratch....
Definition tiffimage.cpp:41
std::string mimeType() const override
Return the MIME type of the image.
Definition tiffimage.cpp:59
uint32_t pixelHeight() const override
Return the pixel height of the image.
Definition tiffimage.cpp:113
uint32_t pixelWidth() const override
Return the pixel width of the image.
Definition tiffimage.cpp:100
void printStructure(std::ostream &out, PrintStructureOption option, size_t depth) override
Print out the structure of image file.
Definition tiffimage.cpp:262
void setComment(const std::string &) override
Not supported. TIFF format does not contain a comment. Calling this function will throw an Error(Erro...
Definition tiffimage.cpp:126
Stateless parser class for data in TIFF format. Images use this class to decode and encode TIFF data....
Definition tiffimage.hpp:91
static WriteMethod encode(BasicIo &io, const byte *pData, size_t size, ByteOrder byteOrder, ExifData &exifData, IptcData &iptcData, XmpData &xmpData)
Encode metadata from the provided metadata to TIFF format.
Definition tiffimage.cpp:219
static ByteOrder decode(ExifData &exifData, IptcData &iptcData, XmpData &xmpData, const byte *pData, size_t size)
Decode metadata from a buffer pData of length size with data in TIFF format to the provided metadata ...
Definition tiffimage.cpp:207
A container for XMP data. This is a top-level class of the Exiv2 library.
Definition xmp_exiv2.hpp:138
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
EXIV2API Image::UniquePtr newTiffInstance(BasicIo::UniquePtr io, bool create)
Create a new TiffImage instance and return an auto-pointer to it. Caller owns the returned object and...
Definition tiffimage.cpp:239
PrintStructureOption
Options for printStructure.
Definition image.hpp:38
EXIV2API bool isTiffType(BasicIo &iIo, bool advance)
Check if the file iIo is a TIFF image.
Definition tiffimage.cpp:247
ByteOrder
Type to express the byte order (little or big endian)
Definition types.hpp:34
WriteMethod
Type to indicate write method used by TIFF parsers.
Definition types.hpp:41