7#include "exiv2lib_export.h"
52 [[nodiscard]] std::string
mimeType()
const override {
66 void doWriteMetadata(
BasicIo& outIo);
68 static byte readPgfMagicNumber(
BasicIo& iIo);
70 size_t readPgfHeaderSize(
BasicIo& iIo)
const;
72 DataBuf readPgfHeaderStructure(
BasicIo& iIo, uint32_t& width, uint32_t& height)
const;
90EXIV2API
bool isPgfType(BasicIo& iIo,
bool advance);
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
std::string mimeType() const override
Return the MIME type of the image.
Definition pgfimage.hpp:52
void readMetadata() override
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition pgfimage.cpp:67
void writeMetadata() override
Write metadata back to the image.
Definition pgfimage.cpp:116
PgfImage(BasicIo::UniquePtr io, bool create)
Constructor that can either open an existing PGF image or create a new image from scratch....
Definition pgfimage.cpp:52
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
EXIV2API bool isPgfType(BasicIo &iIo, bool advance)
Check if the file iIo is a PGF image.
Definition pgfimage.cpp:297
EXIV2API Image::UniquePtr newPgfInstance(BasicIo::UniquePtr io, bool create)
Create a new PgfImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition pgfimage.cpp:289
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition types.hpp:124