6 #include "exiv2lib_export.h"
25 void readMetadata()
override;
26 void writeMetadata()
override;
75 virtual bool isThisType(
BasicIo& iIo,
bool advance)
const = 0;
86 virtual int writeHeader(
BasicIo& oIo)
const = 0;
99 int initImage(
const byte initData[],
size_t dataSize);
107 void doWriteMetadata(
BasicIo& outIo);
155 [[nodiscard]] std::string
mimeType()
const override;
161 bool isThisType(
BasicIo& iIo,
bool advance)
const override;
173 int writeHeader(
BasicIo& outIo)
const override;
178 static const byte blank_[];
207 [[nodiscard]] std::string
mimeType()
const override;
213 bool isThisType(
BasicIo& iIo,
bool advance)
const override;
217 int writeHeader(
BasicIo& outIo)
const override;
222 static constexpr
char exiv2Id_[] =
"Exiv2";
223 static constexpr
byte blank_[] = {0xff, 0x01,
'E',
'x',
'i',
'v',
'2', 0xff, 0xd9};
251 #endif // #ifndef JPGIMAGE_HPP_
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition: image.hpp:53
An interface for simple binary IO.
Definition: basicio.hpp:35
EXIV2API bool isJpegType(BasicIo &iIo, bool advance)
Check if the file iIo is a JPEG image.
Definition: jpgimage.cpp:974
EXIV2API Image::UniquePtr newExvInstance(BasicIo::UniquePtr io, bool create)
Create a new ExvImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition: jpgimage.cpp:1014
Abstract helper base class to access JPEG images.
Definition: jpgimage.hpp:21
Helper class to access Exiv2 files.
Definition: jpgimage.hpp:182
EXIV2API Image::UniquePtr newJpegInstance(BasicIo::UniquePtr io, bool create)
Create a new JpegImage instance and return an auto-pointer to it. Caller owns the returned object and...
Definition: jpgimage.cpp:966
uint8_t byte
1 byte unsigned integer type.
Definition: types.hpp:26
Abstract base class defining the interface for an image. This is the top-level interface to the Exiv2...
Definition: image.hpp:50
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition: types.hpp:124
PrintStructureOption
Options for printStructure.
Definition: image.hpp:38
EXIV2API bool isExvType(BasicIo &iIo, bool advance)
Check if the file iIo is an EXV file.
Definition: jpgimage.cpp:1021
List of TIFF compression to MIME type mappings.
Definition: tiffimage.cpp:47
ImageType
Supported Image Formats.
Definition: image_types.hpp:8
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition: basicio.hpp:38
Error class for exceptions, log message class.
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition: asfvideo.hpp:15
Class to access JPEG images.
Definition: jpgimage.hpp:130
ErrorCode
Complete list of all Exiv2 error codes.
Definition: error.hpp:162