24#include "exiv2lib_export.h"
77 std::string
mimeType()
const {
return "image/pgf"; }
95 void doWriteMetadata(
BasicIo& oIo);
97 byte readPgfMagicNumber(
BasicIo& iIo);
99 uint32_t readPgfHeaderSize(
BasicIo& iIo);
101 DataBuf readPgfHeaderStructure(
BasicIo& iIo,
int& width,
int & height);
119 EXIV2API
bool isPgfType(BasicIo& iIo,
bool advance);
An interface for simple binary IO.
Definition basicio.hpp:55
std::auto_ptr< BasicIo > AutoPtr
BasicIo auto_ptr type.
Definition basicio.hpp:58
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition types.hpp:193
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
Class to access PGF images. Exif and IPTC metadata are supported directly.
Definition pgfimage.hpp:47
void writeMetadata()
Write metadata back to the image.
Definition pgfimage.cpp:154
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition pgfimage.cpp:101
PgfImage(BasicIo::AutoPtr io, bool create)
Constructor that can either open an existing PGF image or create a new image from scratch....
Definition pgfimage.cpp:79
std::string mimeType() const
Return the MIME type of the image.
Definition pgfimage.hpp:77
Supported image formats.
Definition asfvideo.hpp:42
const int pgf
PGF image type (see class PgfImage).
Definition pgfimage.hpp:40
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition asfvideo.hpp:36
EXIV2API bool isPgfType(BasicIo &iIo, bool advance)
Check if the file iIo is a PGF image.
Definition pgfimage.cpp:327
EXIV2API Image::AutoPtr newPgfInstance(BasicIo::AutoPtr io, bool create)
Create a new PgfImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition pgfimage.cpp:317