 |
Exiv2
|
Go to the documentation of this file.
31 #include "exiv2lib_export.h"
85 void setExifData(
const ExifData& exifData);
90 void setIptcData(
const IptcData& iptcData);
101 int pixelWidth()
const;
102 int pixelHeight()
const;
155 #endif // #ifndef RW2IMAGE_HPP_
virtual int error() const =0
Returns 0 if the IO source is in a valid state, otherwise nonzero.
IptcData iptcData_
IPTC data container.
Definition: image.hpp:489
void setExifData(const ExifData &exifData)
Todo: Not supported yet, requires writeMetadata(). Calling this function will throw an Error(kerInval...
Definition: rw2image.cpp:80
Utility class that closes a BasicIo instance upon destruction. Meant to be used as a stack variable i...
Definition: basicio.hpp:264
iterator findKey(const ExifKey &key)
Find the first Exifdatum with the given key, return an iterator to it.
Definition: exif.cpp:590
void writeMetadata()
Todo: Write metadata back to the image. This method is not yet implemented. Calling it will throw an ...
Definition: rw2image.cpp:220
void add(const ExifKey &key, const Value *pValue)
Add an Exifdatum from the supplied key and value pair. This method copies (clones) key and value....
Definition: exif.cpp:573
iterator begin()
Begin of the metadata.
Definition: exif.hpp:490
int pixelWidth() const
Return the pixel width of the image.
Definition: rw2image.cpp:60
ExifMetadata::const_iterator const_iterator
ExifMetadata const iterator type.
Definition: exif.hpp:439
Class to access raw Panasonic RW2 images. Exif metadata is supported directly, IPTC and XMP are read ...
Definition: rw2image.hpp:53
iterator erase(iterator pos)
Delete the Exifdatum at iterator position pos, return the position of the next exifdatum....
Definition: exif.cpp:616
@ comment
Exiv2 type for the Exif user comment.
Definition: types.hpp:150
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 RW2 format to the provided metadata c...
Definition: rw2image.cpp:226
EXIV2API std::string strError()
Return a system error message and the error code (errno). See strerror(3).
Definition: futils.cpp:356
std::vector< PreviewProperties > PreviewPropertiesList
Container type to hold all preview images metadata.
Definition: preview.hpp:68
EXIV2API bool isRw2Type(BasicIo &iIo, bool advance)
Check if the file iIo is a RW2 image.
Definition: rw2image.cpp:256
#define EXV_COUNTOF(a)
Macro to determine the size of an array.
Definition: types.hpp:517
ExifData exifData_
Exif data container.
Definition: image.hpp:488
iterator end()
End of the metadata.
Definition: exif.hpp:492
Rw2Image(BasicIo::AutoPtr io)
Constructor to open an existing RW2 image. Since the constructor can not return a result,...
Definition: rw2image.cpp:50
virtual void clearMetadata()
Erase all buffered metadata. Metadata is not removed from the actual image until the writeMetadata() ...
Definition: image.cpp:549
Internal classes to support RW2 image format.
void setComment(const std::string &comment)
Not supported. RW2 format does not contain a comment. Calling this function will throw an Error(kerIn...
Definition: rw2image.cpp:92
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition: rw2image.cpp:113
static DecoderFct findDecoder(const std::string &make, uint32_t extendedTag, IfdId group)
Find the decoder function for a key.
Definition: tiffimage_int.cpp:1589
static Image::AutoPtr open(const std::string &path, bool useCurl=true)
Create an Image subclass of the appropriate type by reading the specified file. Image type is derived...
Definition: image.cpp:901
const byte * pData() const
Return a pointer to the image data for read-only access.
Definition: preview.cpp:1097
void printStructure(std::ostream &out, PrintStructureOption option, int depth)
Print out the structure of image file.
Definition: rw2image.cpp:98
void setByteOrder(ByteOrder byteOrder)
Set the byte order to encode the Exif metadata in.
Definition: image.cpp:686
Classes to access all preview images embedded in an image.
Internal class TiffParserWorker to parse TIFF data.
void printTiffStructure(BasicIo &io, std::ostream &out, PrintStructureOption option, int depth, size_t offset=0)
Print out the structure of image file.
Definition: image.cpp:531
std::string mimeType() const
Return the MIME type of the image.
Definition: rw2image.cpp:55
PreviewPropertiesList getPreviewProperties() const
Return the properties of all preview images in a list sorted by preview width * height,...
Definition: preview.cpp:1144
Concrete keys for Exif metadata and access to Exif tag reference data.
Definition: tags.hpp:148
virtual bool eof() const =0
Returns true if the IO position has reached the end, otherwise false.
const uint32_t pana
Special tag: root IFD of Panasonic RAW images.
Definition: tiffcomposite_int.hpp:83
virtual DataBuf read(long rcount)=0
Read data from the IO source. Reading starts at the current IO position and the position is advanced ...
int imageType() const
set type support for this image format
Definition: image.hpp:483
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
A container for XMP data. This is a top-level class of the Exiv2 library.
Definition: xmp_exiv2.hpp:173
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition: image.cpp:731
const int none
Not an image.
Definition: image.hpp:48
PreviewImage getPreviewImage(const PreviewProperties &properties) const
Return the preview image for the given preview properties.
Definition: preview.cpp:1161
#define EXV_WARNING
Shorthand for a temp warning log message object and return its ostringstream.
Definition: error.hpp:148
Class that holds preview image properties and data buffer.
Definition: preview.hpp:73
BasicIo::AutoPtr io_
Image data IO pointer.
Definition: image.hpp:487
ByteOrder
Type to express the byte order (little or big endian)
Definition: types.hpp:113
EXIV2API Image::AutoPtr newRw2Instance(BasicIo::AutoPtr io, bool create)
Create a new Rw2Image instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition: rw2image.cpp:247
bool empty() const
Return true if there is no Exif metadata.
Definition: exif.hpp:512
std::auto_ptr< Image > AutoPtr
Image auto_ptr type.
Definition: image.hpp:84
std::auto_ptr< BasicIo > AutoPtr
BasicIo auto_ptr type.
Definition: basicio.hpp:58
BasicError< char > Error
Error class used for exceptions (std::string based)
Definition: error.hpp:323
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition: iptc.hpp:173
const int rw2
RW2 image type (see class Rw2Image)
Definition: rw2image.hpp:45
@ string
IPTC string type.
Definition: types.hpp:147
Stateless parser class for data in RW2 format. Images use this class to decode and encode RW2 data....
Definition: rw2image.hpp:121
PrintStructureOption
Options for printStructure.
Definition: image.hpp:67
Class for extracting preview images from image metadata.
Definition: preview.hpp:168
void setIptcData(const IptcData &iptcData)
Todo: Not supported yet, requires writeMetadata(). Calling this function will throw an Error(kerInval...
Definition: rw2image.cpp:86
virtual int seek(long offset, Position pos)=0
Move the current IO position.
uint32_t size() const
Return the size of the preview image in bytes.
Definition: preview.cpp:1102
ExifMetadata::iterator iterator
ExifMetadata iterator type.
Definition: exif.hpp:437
An interface for simple binary IO.
Definition: basicio.hpp:55
XmpData xmpData_
XMP data container.
Definition: image.hpp:490
Abstract base class defining the interface for an image. This is the top-level interface to the Exiv2...
Definition: image.hpp:81
int pixelHeight() const
Return the pixel height of the image.
Definition: rw2image.cpp:70
Basic file utility functions required by Exiv2.
virtual ExifData & exifData()
Returns an ExifData instance containing currently buffered Exif data.
Definition: image.cpp:559
static ByteOrder decode(ExifData &exifData, IptcData &iptcData, XmpData &xmpData, const byte *pData, uint32_t size, uint32_t root, FindDecoderFct findDecoderFct, TiffHeaderBase *pHeader=0)
Decode TIFF metadata from a data buffer pData of length size into the provided metadata containers.
Definition: tiffimage_int.cpp:1666
Error class for exceptions, log message class.
Internal classes used in a TIFF composite structure.
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434