Exiv2
Loading...
Searching...
No Matches
orfimage.hpp
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#ifndef ORFIMAGE_HPP_
4#define ORFIMAGE_HPP_
5
6// *****************************************************************************
7#include "exiv2lib_export.h"
8
9// included header files
10#include "tiffimage.hpp"
11
12// *****************************************************************************
13// namespace extensions
14namespace Exiv2 {
15// *****************************************************************************
16// class definitions
17
22class EXIV2API OrfImage : public TiffImage {
23 public:
25
26
41 OrfImage(BasicIo::UniquePtr io, bool create);
43
45
46 void printStructure(std::ostream& out, PrintStructureOption option, size_t depth) override;
47 void readMetadata() override;
48 void writeMetadata() override;
53 void setComment(const std::string&) override;
55
57
58 std::string mimeType() const override;
59 uint32_t pixelWidth() const override;
60 uint32_t pixelHeight() const override;
62}; // class OrfImage
63
69class EXIV2API OrfParser {
70 public:
76 static ByteOrder decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size);
81 static WriteMethod encode(BasicIo& io, const byte* pData, size_t size, ByteOrder byteOrder, ExifData& exifData,
82 IptcData& iptcData, XmpData& xmpData);
83}; // class OrfParser
84
85// *****************************************************************************
86// template, inline and free functions
87
88// These could be static private functions on Image subclasses but then
89// ImageFactory needs to be made a friend.
95EXIV2API Image::UniquePtr newOrfInstance(BasicIo::UniquePtr io, bool create);
96
98EXIV2API bool isOrfType(BasicIo& iIo, bool advance);
99
100} // namespace Exiv2
101
102#endif // #ifndef ORFIMAGE_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
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 Olympus ORF images. Exif metadata is supported directly, IPTC is read from the Ex...
Definition orfimage.hpp:22
Stateless parser class for data in ORF format. Images use this class to decode and encode ORF data....
Definition orfimage.hpp:69
Class to access TIFF images. Exif metadata is supported directly, IPTC is read from the Exif data,...
Definition tiffimage.hpp:22
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 isOrfType(BasicIo &iIo, bool advance)
Check if the file iIo is an ORF image.
Definition orfimage.cpp:147
ByteOrder
Type to express the byte order (little or big endian)
Definition types.hpp:34
WriteMethod
Type to indicate write method used by TIFF parsers.
Definition types.hpp:41
EXIV2API Image::UniquePtr newOrfInstance(BasicIo::UniquePtr io, bool create)
Create a new OrfImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition orfimage.cpp:139
List of TIFF compression to MIME type mappings.
Definition tiffimage.cpp:47