| Exiv2

Loading...
Searching...
No Matches
rafimage.hpp
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#ifndef RAFIMAGE_HPP_
4#define RAFIMAGE_HPP_
5
6// *****************************************************************************
7#include "exiv2lib_export.h"
8
9// included header files
10#include "image.hpp"
11
12// *****************************************************************************
13// namespace extensions
14 namespace Exiv2 {
15// *****************************************************************************
16// class definitions
17
22 class EXIV2API RafImage : public Image {
23 public:
25
26
41 RafImage(BasicIo::UniquePtr io, bool create);
43
45
46 void printStructure(std::ostream& out, PrintStructureOption option, size_t depth) override;
47 void readMetadata() override;
52 void writeMetadata() override;
57 void setExifData(const ExifData& exifData) override;
62 void setIptcData(const IptcData& iptcData) override;
67 void setComment(const std::string&) override;
69
71
72 [[nodiscard]] std::string mimeType() const override;
73 [[nodiscard]] uint32_t pixelWidth() const override;
74 [[nodiscard]] uint32_t pixelHeight() const override;
76}; // class RafImage
77
78// *****************************************************************************
79// template, inline and free functions
80
81// These could be static private functions on Image subclasses but then
82// ImageFactory needs to be made a friend.
88EXIV2API Image::UniquePtr newRafInstance(BasicIo::UniquePtr io, bool create);
89
91EXIV2API bool isRafType(BasicIo& iIo, bool advance);
92
93} // namespace Exiv2
94
95#endif // #ifndef RAFIMAGE_HPP_
Exiv2::BasicIo
An interface for simple binary IO.
Definition basicio.hpp:35
Exiv2::BasicIo::UniquePtr
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
Exiv2::ExifData
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:379
Exiv2::Image::Image
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
Exiv2::Image::io
virtual BasicIo & io() const
Return a reference to the BasicIo instance being used for Io.
Definition image.cpp:696
Exiv2::Image::iptcData
virtual IptcData & iptcData()
Returns an IptcData instance containing currently buffered IPTC data.
Definition image.cpp:536
Exiv2::Image::exifData
virtual ExifData & exifData()
Returns an ExifData instance containing currently buffered Exif data.
Definition image.cpp:532
Exiv2::Image::UniquePtr
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
Exiv2::IptcData
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition iptc.hpp:153
Exiv2::RafImage::pixelWidth
uint32_t pixelWidth() const override
Return the pixel width of the image.
Definition rafimage.cpp:30
Exiv2::RafImage::writeMetadata
void writeMetadata() override
Todo: Write metadata back to the image. This method is not yet implemented. Calling it will throw an ...
Definition rafimage.cpp:324
Exiv2::RafImage::readMetadata
void readMetadata() override
Read all metadata supported by a specific image format from the image. Before this method is called,...
Definition rafimage.cpp:224
Exiv2::RafImage::printStructure
void printStructure(std::ostream &out, PrintStructureOption option, size_t depth) override
Print out the structure of image file.
Definition rafimage.cpp:65
Exiv2::RafImage::setIptcData
void setIptcData(const IptcData &iptcData) override
Todo: Not supported yet, requires writeMetadata(). Calling this function will throw an Error(ErrorCod...
Definition rafimage.cpp:55
Exiv2::RafImage::RafImage
RafImage(BasicIo::UniquePtr io, bool create)
Constructor that can either open an existing RAF image or create a new image from scratch....
Definition rafimage.cpp:22
Exiv2::RafImage::setComment
void setComment(const std::string &) override
Not supported. RAF format does not contain a comment. Calling this function will throw an Error(Error...
Definition rafimage.cpp:60
Exiv2::RafImage::setExifData
void setExifData(const ExifData &exifData) override
Todo: Not supported yet, requires writeMetadata(). Calling this function will throw an Error(ErrorCod...
Definition rafimage.cpp:50
Exiv2::RafImage::mimeType
std::string mimeType() const override
Return the MIME type of the image.
Definition rafimage.cpp:26
Exiv2::RafImage::pixelHeight
uint32_t pixelHeight() const override
Return the pixel height of the image.
Definition rafimage.cpp:40
Exiv2
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
Exiv2::PrintStructureOption
PrintStructureOption
Options for printStructure.
Definition image.hpp:38
Exiv2::isRafType
EXIV2API bool isRafType(BasicIo &iIo, bool advance)
Check if the file iIo is a RAF image.
Definition rafimage.cpp:339
Exiv2::newRafInstance
EXIV2API Image::UniquePtr newRafInstance(BasicIo::UniquePtr io, bool create)
Create a new RafImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition rafimage.cpp:331