24#include "exiv2lib_export.h"
34 EXIV2API
bool enableBMFF(
bool enable =
true);
42 Iloc(uint32_t ID = 0, uint32_t start = 0, uint32_t length = 0) : ID_(ID), start_(start), length_(length){};
49 std::string toString()
const;
95 void parseTiff(uint32_t root_tag, uint64_t length,uint64_t start);
125 uint32_t width_offset,
126 uint32_t height_offset,
127 uint32_t size_offset,
128 uint32_t relative_position);
159 const
long pbox_end,
int depth);
160 std::
string indent(
int i)
162 return std::string(2*i,
' ');
166 std::set<uint64_t> visits_;
167 uint64_t visits_max_;
171 std::map<uint32_t, Iloc> ilocs_;
178 std::string toAscii(
long n);
179 std::string boxName(uint32_t box);
180 bool superBox(uint32_t box);
181 bool fullBox(uint32_t box);
An interface for simple binary IO.
Definition basicio.hpp:55
std::auto_ptr< BasicIo > AutoPtr
BasicIo auto_ptr type.
Definition basicio.hpp:58
void setComment(const std::string &comment)
Set the image comment. The new comment is not written to the image until the writeMetadata() method i...
void writeMetadata()
Write metadata back to the image.
void parseCr3Preview(DataBuf &data, std::ostream &out, bool bTrace, uint8_t version, uint32_t width_offset, uint32_t height_offset, uint32_t size_offset, uint32_t relative_position)
Parse a Canon PRVW or THMB box and add an entry to the set of native previews.
BmffImage(BasicIo::AutoPtr io, bool create)
Constructor to open a BMFF image. Since the constructor can not return a result, callers should check...
void parseXmp(uint64_t length, uint64_t start)
parse embedded xmp/xml
void readMetadata()
Read all metadata supported by a specific image format from the image. Before this method is called,...
void printStructure(std::ostream &out, Exiv2::PrintStructureOption option, int depth)
Print out the structure of image file.
std::string mimeType() const
Return the MIME type of the image.
int pixelWidth() const
Return the pixel width of the image.
int pixelHeight() const
Return the pixel height of the image.
void parseTiff(uint32_t root_tag, uint64_t length)
parse embedded tiff file (Exif metadata)
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
Supported image formats.
Definition asfvideo.hpp:42
const int bmff
BMFF (bmff) image type (see class BMFF).
Definition bmffimage.hpp:58
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 const char * version()
Return the version of Exiv2 as "C" string eg "0.27.0.2".
Definition version.cpp:103
EXIV2API Image::AutoPtr newBmffInstance(BasicIo::AutoPtr io, bool create)
Create a new BMFF instance and return an auto-pointer to it. Caller owns the returned object and the ...
ByteOrder
Type to express the byte order (little or big endian).
Definition types.hpp:102
EXIV2API bool isBmffType(BasicIo &iIo, bool advance)
Check if the file iIo is a BMFF image.