24#include "exiv2lib_export.h"
82 void doWriteMetadata(
BasicIo& outIo);
85 long getHeaderOffset(
byte *data,
long data_size,
86 byte *header,
long header_size);
88 void debugPrintHex(
byte *data,
long size);
89 void decodeChunks(
long filesize);
90 void inject_VP8X(
BasicIo& iIo,
bool has_xmp,
bool has_exif,
91 bool has_alpha,
bool has_icc,
int width,
101 const static byte WEBP_PAD_ODD;
102 const static int WEBP_TAG_SIZE;
103 const static int WEBP_VP8X_ICC_BIT;
104 const static int WEBP_VP8X_ALPHA_BIT;
105 const static int WEBP_VP8X_EXIF_BIT;
106 const static int WEBP_VP8X_XMP_BIT;
107 const static char* WEBP_CHUNK_HEADER_VP8X;
108 const static char* WEBP_CHUNK_HEADER_VP8L;
109 const static char* WEBP_CHUNK_HEADER_VP8;
110 const static char* WEBP_CHUNK_HEADER_ANMF;
111 const static char* WEBP_CHUNK_HEADER_ANIM;
112 const static char* WEBP_CHUNK_HEADER_ICCP;
113 const static char* WEBP_CHUNK_HEADER_EXIF;
114 const static char* WEBP_CHUNK_HEADER_XMP;
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
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
WebPImage(BasicIo::AutoPtr io)
Constructor for a WebP video. Since the constructor can not return a result, callers should check the...
Definition webpimage.cpp:71
void setIptcData(const IptcData &)
Assign new IPTC data. The new IPTC data is not written to the image until the writeMetadata() method ...
Definition webpimage.cpp:105
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition webpimage.cpp:502
void setComment(const std::string &comment)
Not supported. Calling this function will throw an Error(kerInvalidSettingForImage).
Definition webpimage.cpp:112
void printStructure(std::ostream &out, PrintStructureOption option, int depth)
Print out the structure of image file.
Definition webpimage.cpp:436
void writeMetadata()
Write metadata back to the image.
Definition webpimage.cpp:120
std::string mimeType() const
Return the MIME type of the image.
Definition webpimage.cpp:76
Supported image formats.
Definition asfvideo.hpp:42
const int webp
Treating webp as an image type>.
Definition webpimage.hpp:38
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
EXIV2API bool isWebPType(BasicIo &iIo, bool advance)
Check if the file iIo is a WebP Video.
Definition webpimage.cpp:743
EXIV2API Image::AutoPtr newWebPInstance(BasicIo::AutoPtr io, bool create)
Create a new WebPImage instance and return an auto-pointer to it. Caller owns the returned object and...
Definition webpimage.cpp:734