33#include "exiv2lib_export.h"
130 static void decode(
CrwImage* pCrwImage,
const byte* pData, uint32_t size);
An interface for simple binary IO.
Definition basicio.hpp:55
std::auto_ptr< BasicIo > AutoPtr
BasicIo auto_ptr type.
Definition basicio.hpp:58
Class to access raw Canon CRW images. Only Exif metadata and a comment are supported....
Definition crwimage.hpp:59
void writeMetadata()
Write metadata back to the image.
Definition crwimage.cpp:111
int pixelHeight() const
Return the pixel height of the image.
Definition crwimage.cpp:74
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition crwimage.cpp:89
void setIptcData(const IptcData &iptcData)
Not supported. CRW format does not contain IPTC metadata. Calling this function will throw an Error(k...
Definition crwimage.cpp:83
std::string mimeType() const
Return the MIME type of the image.
Definition crwimage.cpp:60
int pixelWidth() const
Return the pixel width of the image.
Definition crwimage.cpp:65
CrwImage(BasicIo::AutoPtr io, bool create)
Constructor that can either open an existing CRW image or create a new image from scratch....
Definition crwimage.cpp:55
Definition crwimage.hpp:113
static void encode(Blob &blob, const byte *pData, uint32_t size, const CrwImage *pCrwImage)
Encode metadata from the CRW image into a data buffer (the binary CRW image).
Definition crwimage.cpp:164
static void decode(CrwImage *pCrwImage, const byte *pData, uint32_t size)
Decode metadata from a Canon CRW image in data buffer pData of length size into crwImage.
Definition crwimage.cpp:143
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:434
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
virtual IptcData & iptcData()
Returns an IptcData instance containing currently buffered IPTC data.
Definition image.cpp:585
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
Supported image formats.
Definition asfvideo.hpp:42
const int crw
CRW image type (see class CrwImage).
Definition crwimage.hpp:52
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition asfvideo.hpp:36
EXIV2API Image::AutoPtr newCrwInstance(BasicIo::AutoPtr io, bool create)
Create a new CrwImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition crwimage.cpp:186
std::vector< byte > Blob
Container for binary data.
Definition types.hpp:151
EXIV2API bool isCrwType(BasicIo &iIo, bool advance)
Check if the file iIo is a CRW image.
Definition crwimage.cpp:195