orfimage_int.hpp
// ***************************************************************** -*- C++ -*-
/*
* Copyright (C) 2004-2021 Exiv2 authors
* This program is part of the Exiv2 distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/
#ifndef ORFIMAGE_INT_HPP_
#define ORFIMAGE_INT_HPP_
// *****************************************************************************
// included header files
#include "tiffimage_int.hpp"
#include "types.hpp"
// *****************************************************************************
// namespace extensions
namespace Exiv2 {
namespace Internal {
// *****************************************************************************
// class definitions
class OrfHeader : public TiffHeaderBase {
public:
explicit OrfHeader(ByteOrder byteOrder =littleEndian);
~OrfHeader();
bool read(const byte* pData, uint32_t size);
DataBuf write() const;
private:
// DATA
uint16_t sig_; //<! The actual magic number
}; // class OrfHeader
}} // namespace Internal, Exiv2
#endif // #ifndef ORFIMAGE_INT_HPP_
Exiv2::DataBuf
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition: types.hpp:193
Exiv2::Internal::OrfHeader
Olympus ORF header structure.
Definition: orfimage_int.hpp:39
Exiv2::Internal::OrfHeader::read
bool read(const byte *pData, uint32_t size)
Read the image header from a data buffer. Return false if the data buffer does not contain an image h...
Definition: orfimage_int.cpp:36
Exiv2::Internal::OrfHeader::write
DataBuf write() const
Return the image header in binary format. The caller owns this data and DataBuf ensures that it will ...
Definition: orfimage_int.cpp:57
Exiv2::Internal::OrfHeader::~OrfHeader
~OrfHeader()
Destructor.
Definition: orfimage_int.cpp:32
Exiv2::Internal::OrfHeader::OrfHeader
OrfHeader(ByteOrder byteOrder=littleEndian)
Default constructor.
Definition: orfimage_int.cpp:26
Exiv2::Internal::TiffHeaderBase
Abstract base class defining the interface of an image header. Used internally by classes for TIFF-ba...
Definition: tiffimage_int.hpp:52
Exiv2::Internal::TiffHeaderBase::size
virtual uint32_t size() const
Return the size (in bytes) of the image header.
Definition: tiffimage_int.cpp:1976
Exiv2::Internal::TiffHeaderBase::byteOrder
virtual ByteOrder byteOrder() const
Return the byte order (little or big endian).
Definition: tiffimage_int.cpp:1956
Exiv2
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
Exiv2::ByteOrder
ByteOrder
Type to express the byte order (little or big endian)
Definition: types.hpp:102