| Exiv2

Loading...
Searching...
No Matches
orfimage_int.hpp
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#ifndef ORFIMAGE_INT_HPP_
4#define ORFIMAGE_INT_HPP_
5
6// *****************************************************************************
7// included header files
8#include "tiffimage_int.hpp"
9
10// *****************************************************************************
11// namespace extensions
12 namespace Exiv2::Internal {
13// *****************************************************************************
14// class definitions
15
19 class OrfHeader : public TiffHeaderBase {
20 public:
22
23
24 explicit OrfHeader(ByteOrder byteOrder = littleEndian);
26
28
29 bool read(const byte* pData, size_t size) override;
31
33
34 [[nodiscard]] DataBuf write() const override;
36 private:
37 // DATA
38 uint16_t sig_{0x4f52};
39};
40
41} // namespace Exiv2::Internal
42
43#endif // #ifndef ORFIMAGE_INT_HPP_
Exiv2::Internal::OrfHeader::read
bool read(const byte *pData, size_t size) override
Read the image header from a data buffer. Return false if the data buffer does not contain an image h...
Definition orfimage_int.cpp:9
Exiv2::Internal::OrfHeader::OrfHeader
OrfHeader(ByteOrder byteOrder=littleEndian)
Default constructor.
Definition orfimage_int.cpp:6
Exiv2::Internal::OrfHeader::write
DataBuf write() const override
Return the image header in binary format. The caller owns this data and DataBuf ensures that it will ...
Definition orfimage_int.cpp:29
Exiv2::Internal::TiffHeaderBase::size
virtual uint32_t size() const
Return the size (in bytes) of the image header.
Definition tiffimage_int.cpp:2216
Exiv2::Internal::TiffHeaderBase::TiffHeaderBase
TiffHeaderBase(uint16_t tag, uint32_t size, ByteOrder byteOrder, uint32_t offset)
Constructor taking tag, size and default byteOrder and offset.
Definition tiffimage_int.cpp:2139
Exiv2::Internal::TiffHeaderBase::byteOrder
virtual ByteOrder byteOrder() const
Return the byte order (little or big endian).
Definition tiffimage_int.cpp:2200
Exiv2::Internal
Helper structure for the Matroska tags lookup table.
Definition matroskavideo.hpp:39
Exiv2::ByteOrder
ByteOrder
Type to express the byte order (little or big endian).
Definition types.hpp:34
Exiv2::DataBuf
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition types.hpp:124