Exiv2
Loading...
Searching...
No Matches
rw2image.hpp
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#ifndef RW2IMAGE_HPP_
4#define RW2IMAGE_HPP_
5
6// *****************************************************************************
7#include "exiv2lib_export.h"
8
9// included header files
10#include "image.hpp"
11
12// *****************************************************************************
13// namespace extensions
14namespace Exiv2 {
15// *****************************************************************************
16// class definitions
17
23class EXIV2API Rw2Image : public Image {
24 public:
26
27
39 explicit Rw2Image(BasicIo::UniquePtr io);
41
43
44 void printStructure(std::ostream& out, PrintStructureOption option, size_t depth) override;
45 void readMetadata() override;
50 void writeMetadata() override;
55 void setExifData(const ExifData& exifData) override;
60 void setIptcData(const IptcData& iptcData) override;
65 void setComment(const std::string&) override;
67
69
70 [[nodiscard]] std::string mimeType() const override;
71 [[nodiscard]] uint32_t pixelWidth() const override;
72 [[nodiscard]] uint32_t pixelHeight() const override;
74}; // class Rw2Image
75
81class EXIV2API Rw2Parser {
82 public:
88 static ByteOrder decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size);
89
90}; // class Rw2Parser
91
92// *****************************************************************************
93// template, inline and free functions
94
95// These could be static private functions on Image subclasses but then
96// ImageFactory needs to be made a friend.
102EXIV2API Image::UniquePtr newRw2Instance(BasicIo::UniquePtr io, bool create);
103
105EXIV2API bool isRw2Type(BasicIo& iIo, bool advance);
106
107} // namespace Exiv2
108
109#endif // #ifndef RW2IMAGE_HPP_
An interface for simple binary IO.
Definition basicio.hpp:35
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:379
Abstract base class defining the interface for an image. This is the top-level interface to the Exiv2...
Definition image.hpp:50
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition iptc.hpp:153
Class to access raw Panasonic RW2 images. Exif metadata is supported directly, IPTC and XMP are read ...
Definition rw2image.hpp:23
Stateless parser class for data in RW2 format. Images use this class to decode and encode RW2 data....
Definition rw2image.hpp:81
A container for XMP data. This is a top-level class of the Exiv2 library.
Definition xmp_exiv2.hpp:138
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
PrintStructureOption
Options for printStructure.
Definition image.hpp:38
EXIV2API bool isRw2Type(BasicIo &iIo, bool advance)
Check if the file iIo is a RW2 image.
Definition rw2image.cpp:203
EXIV2API Image::UniquePtr newRw2Instance(BasicIo::UniquePtr io, bool create)
Create a new Rw2Image instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition rw2image.cpp:195
ByteOrder
Type to express the byte order (little or big endian)
Definition types.hpp:34
List of TIFF compression to MIME type mappings.
Definition tiffimage.cpp:47