31#include "exiv2lib_export.h"
An interface for simple binary IO.
Definition basicio.hpp:55
std::auto_ptr< BasicIo > AutoPtr
BasicIo auto_ptr type.
Definition basicio.hpp:58
void writeMetadata()
Write metadata back to the image.
Definition cr2image.cpp:113
int pixelHeight() const
Return the pixel height of the image.
Definition cr2image.cpp:68
Cr2Image(BasicIo::AutoPtr io, bool create)
Constructor that can either open an existing CR2 image or create a new image from scratch....
Definition cr2image.cpp:49
std::string mimeType() const
Return the MIME type of the image.
Definition cr2image.cpp:54
void printStructure(std::ostream &out, PrintStructureOption option, int depth)
Print out the structure of image file.
Definition cr2image.cpp:77
int pixelWidth() const
Return the pixel width of the image.
Definition cr2image.cpp:59
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition cr2image.cpp:90
void setComment(const std::string &comment)
Not supported. CR2 format does not contain a comment. Calling this function will throw an Error(kerIn...
Definition cr2image.cpp:84
Stateless parser class for data in CR2 format. Images use this class to decode and encode CR2 data....
Definition cr2image.hpp:115
static ByteOrder decode(ExifData &exifData, IptcData &iptcData, XmpData &xmpData, const byte *pData, uint32_t size)
Decode metadata from a buffer pData of length size with data in CR2 format to the provided metadata c...
Definition cr2image.cpp:140
static WriteMethod encode(BasicIo &io, const byte *pData, uint32_t size, ByteOrder byteOrder, const ExifData &exifData, const IptcData &iptcData, const XmpData &xmpData)
Encode metadata from the provided metadata to CR2 format. See TiffParser::encode().
Definition cr2image.cpp:159
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:434
virtual std::string comment() const
Return a copy of the image comment. May be an empty string.
Definition image.cpp:742
std::auto_ptr< Image > AutoPtr
Image auto_ptr type.
Definition image.hpp:81
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition image.cpp:752
Image(int imageType, uint16_t supportedMetadata, BasicIo::AutoPtr io)
Constructor taking the image type, a bitmap of the supported metadata types and an auto-pointer that ...
Definition image.cpp:167
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition iptc.hpp:170
A container for XMP data. This is a top-level class of the Exiv2 library.
Definition xmp_exiv2.hpp:166
Supported image formats.
Definition asfvideo.hpp:42
const int cr2
CR2 image type (see class Cr2Image).
Definition cr2image.hpp:45
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition asfvideo.hpp:36
PrintStructureOption
Options for printStructure.
Definition image.hpp:64
ByteOrder
Type to express the byte order (little or big endian).
Definition types.hpp:102
WriteMethod
Type to indicate write method used by TIFF parsers.
Definition types.hpp:105
EXIV2API Image::AutoPtr newCr2Instance(BasicIo::AutoPtr io, bool create)
Create a new Cr2Image instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition cr2image.cpp:203
EXIV2API bool isCr2Type(BasicIo &iIo, bool advance)
Check if the file iIo is a CR2 image.
Definition cr2image.cpp:212