 |
Exiv2
|
Go to the documentation of this file.
38 #include "exiv2lib_export.h"
124 #endif // #ifndef EPSIMAGE_HPP_
virtual int open()=0
Open the IO source using the default access mode. The default mode should allow for reading and writi...
Provides binary IO on blocks of memory by implementing the BasicIo interface. A copy-on-write impleme...
Definition: basicio.hpp:540
std::string xmpPacket_
XMP packet.
Definition: image.hpp:493
virtual bool isopen() const =0
Returns true if the IO source is open, otherwise false.
virtual void transfer(BasicIo &src)=0
Remove all data from this object's IO source and then transfer data from the src BasicIo object into ...
std::string filter_
Filter.
Definition: image.hpp:57
virtual int error() const =0
Returns 0 if the IO source is in a valid state, otherwise nonzero.
byte * pData_
Pointer to the buffer, 0 if none has been allocated.
Definition: types.hpp:269
Utility class that closes a BasicIo instance upon destruction. Meant to be used as a stack variable i...
Definition: basicio.hpp:264
EXIV2LIB_DEPRECATED_EXPORT Image::AutoPtr newEpsInstance(BasicIo::AutoPtr io, bool create)
Create a new EpsImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition: epsimage.cpp:1154
NativePreviewList nativePreviews_
list of native previews
Definition: image.hpp:496
#define EXV_DEBUG
Shorthand to create a temp debug log message object and return its ostringstream.
Definition: error.hpp:144
uint32_t width_
Width.
Definition: image.hpp:55
std::string mimeType() const
Return the MIME type of the image.
Definition: epsimage.cpp:1098
Exiv2 type for the Exif user comment.
Definition: types.hpp:150
Native preview information. This is meant to be used only by the PreviewManager.
Definition: image.hpp:52
EXIV2API std::string strError()
Return a system error message and the error code (errno). See strerror(3).
Definition: futils.cpp:352
Precompiler define and a function to test the Exiv2 version. References: Similar versioning defines a...
void writeMetadata()
Write metadata back to the image.
Definition: epsimage.cpp:1130
Class to access EPS images.
Definition: epsimage.hpp:59
long position_
Position.
Definition: image.hpp:53
virtual int close()=0
Close the IO source. After closing a BasicIo instance can not be read or written. Closing flushes any...
uint32_t size_
Size.
Definition: image.hpp:54
uint8_t byte
1 byte unsigned integer type.
Definition: types.hpp:105
EXIV2LIB_DEPRECATED_EXPORT bool isEpsType(BasicIo &iIo, bool advance)
Check if the file iIo is a EPS image.
Definition: epsimage.cpp:1163
void setComment(const std::string &comment)
Not supported. Calling this function will throw an instance of Error(kerInvalidSettingForImage).
Definition: epsimage.cpp:1103
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition: epsimage.cpp:1108
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition: types.hpp:204
EXIV2API long us2Data(byte *buf, uint16_t s, ByteOrder byteOrder)
Convert an unsigned short to data, write the data to the buffer, return number of bytes written.
Definition: types.cpp:395
long size_
The current size of the buffer.
Definition: types.hpp:271
static int encode(std::string &xmpPacket, const XmpData &xmpData, uint16_t formatFlags=useCompactFormat, uint32_t padding=0)
Encode (serialize) XMP metadata from xmpData into a string xmpPacket. The XMP packet returned in the ...
Definition: xmp.cpp:836
virtual DataBuf read(long rcount)=0
Read data from the IO source. Reading starts at the current IO position and the position is advanced ...
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
virtual std::string path() const =0
Return the path to the IO resource. Often used to form comprehensive error messages where only a Basi...
EXIV2API long ul2Data(byte *buf, uint32_t l, ByteOrder byteOrder)
Convert an unsigned long to data, write the data to the buffer, return number of bytes written.
Definition: types.cpp:408
uint32_t height_
Height.
Definition: image.hpp:56
#define EXV_WARNING
Shorthand for a temp warning log message object and return its ostringstream.
Definition: error.hpp:148
virtual long write(const byte *data, long wcount)=0
Write data to the IO source. Current IO position is advanced by the number of bytes written.
EXIV2API uint16_t getUShort(const byte *buf, ByteOrder byteOrder)
Read a 2 byte unsigned short value from the data buffer.
Definition: types.cpp:278
virtual byte * mmap(bool isWriteable=false)=0
Direct access to the IO data. For files, this is done by mapping the file into the process's address ...
BasicIo::AutoPtr io_
Image data IO pointer.
Definition: image.hpp:487
virtual size_t size() const =0
Get the current size of the IO source in bytes.
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
EPS image. References: [1] Adobe PostScript Language Document Structuring Conventions Specification...
bool writeXmpFromPacket() const
Return the flag indicating the source when writing XMP metadata.
Definition: image.cpp:728
BasicError< char > Error
Error class used for exceptions (std::string based)
Definition: error.hpp:323
std::vector< NativePreview > NativePreviewList
List of native previews. This is meant to be used only by the PreviewManager.
Definition: image.hpp:62
IPTC string type.
Definition: types.hpp:147
virtual long tell() const =0
Get the current IO position.
virtual int seek(long offset, Position pos)=0
Move the current IO position.
std::string toString(const T &arg)
Utility function to convert the argument of any type to a string.
Definition: types.hpp:521
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
std::string mimeType_
MIME type.
Definition: image.hpp:58
Basic file utility functions required by Exiv2.
static int decode(XmpData &xmpData, const std::string &xmpPacket)
Decode XMP metadata from an XMP packet xmpPacket into xmpData. The format of the XMP packet must foll...
Definition: xmp.cpp:723
EXIV2API uint32_t getULong(const byte *buf, ByteOrder byteOrder)
Read a 4 byte unsigned long value from the data buffer.
Definition: types.cpp:283
Error class for exceptions, log message class.
const int eps
EPS image type.
Definition: epsimage.hpp:53
EXIV2API std::string versionNumberHexString()
Return the version of Exiv2 as hex string of fixed length 6.
Definition: version.cpp:95