Loading...
Searching...
No Matches
orfimage_int.hpp
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef ORFIMAGE_INT_HPP_
#define ORFIMAGE_INT_HPP_
// *****************************************************************************
// included header files
#include "tiffimage_int.hpp"
// *****************************************************************************
// namespace extensions
namespace Exiv2::Internal {
// *****************************************************************************
// class definitions
class OrfHeader : public TiffHeaderBase {
public:
explicit OrfHeader(ByteOrder byteOrder = littleEndian);
bool read(const byte* pData, size_t size) override;
[[nodiscard]] DataBuf write() const override;
private:
// DATA
uint16_t sig_{0x4f52};
};
} // namespace Exiv2::Internal
#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