7#include "exiv2lib_export.h"
64 [[nodiscard]] std::string
mimeType()
const override;
75 void doWriteMetadata(
BasicIo& outIo);
85 static std::string toAscii(uint32_t n);
An interface for simple binary IO.
Definition basicio.hpp:35
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
Image(ImageType type, uint16_t supportedMetadata, BasicIo::UniquePtr io)
Constructor taking the image type, a bitmap of the supported metadata types and an auto-pointer that ...
Definition image.cpp:132
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition image.cpp:680
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
Jp2Image(BasicIo::UniquePtr io, bool create)
Constructor to open a JPEG-2000 image. Since the constructor can not return a result,...
Definition jp2image.cpp:86
void readMetadata() override
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition jp2image.cpp:117
void writeMetadata() override
Write metadata back to the image.
Definition jp2image.cpp:569
std::string mimeType() const override
Return the MIME type of the image.
Definition jp2image.cpp:109
void printStructure(std::ostream &out, PrintStructureOption option, size_t depth) override
Print out the structure of image file.
Definition jp2image.cpp:377
void setComment(const std::string &) override
Todo: Not supported yet(?). Calling this function will throw an instance of Error(ErrorCode::kerInval...
Definition jp2image.cpp:113
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
EXIV2API bool isJp2Type(BasicIo &iIo, bool advance)
Check if the file iIo is a JPEG-2000 image.
Definition jp2image.cpp:873
PrintStructureOption
Options for printStructure.
Definition image.hpp:38
EXIV2API Image::UniquePtr newJp2Instance(BasicIo::UniquePtr io, bool create)
Create a new Jp2Image instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition jp2image.cpp:865
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition types.hpp:124