You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exiv2/src/tifffwd_int.hpp

86 lines
2.5 KiB
C++

// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef TIFFFWD_INT_HPP_
#define TIFFFWD_INT_HPP_
// *****************************************************************************
// included header files
#include "types.hpp"
#include "tags_int.hpp"
// + standard includes
#include <stack>
// *****************************************************************************
// Exiv2 namespace extensions
namespace Exiv2 {
class Exifdatum;
namespace Internal {
class TiffHeaderBase;
class TiffComponent;
class TiffEntryBase;
class TiffEntry;
class TiffDataEntry;
class TiffSizeEntry;
class TiffDirectory;
class TiffSubIfd;
class TiffMnEntry;
class TiffBinaryArray;
class TiffBinaryElement;
class TiffIfdMakernote;
class MnHeader;
class TiffVisitor;
class TiffFinder;
class TiffDecoder;
class TiffEncoder;
class TiffReader;
class TiffRwState;
class TiffPathItem;
struct TiffMappingInfo;
class IoWrapper;
class OffsetWriter;
// *****************************************************************************
// type definitions
/*!
@brief Function pointer type for a TiffDecoder member function
to decode a TIFF component.
*/
using DecoderFct = void (TiffDecoder::*)(const TiffEntryBase*);
/*!
@brief Function pointer type for a TiffDecoder member function
to decode a TIFF component.
*/
using EncoderFct = void (TiffEncoder::*)(TiffEntryBase*, const Exifdatum*);
/*!
@brief Type for a function pointer for a function to decode a TIFF component.
*/
using FindDecoderFct = DecoderFct (*)(const std::string& make, uint32_t extendedTag, IfdId group);
/*!
@brief Type for a function pointer for a function to encode a TIFF component.
*/
using FindEncoderFct = EncoderFct (*)(const std::string& make, uint32_t extendedTag, IfdId group);
/*!
@brief Type for a function pointer for a function to create a TIFF component.
Use TiffComponent::UniquePtr, it is not used in this declaration only
to reduce dependencies.
*/
using NewTiffCompFct = std::unique_ptr<TiffComponent> (*)(uint16_t tag, IfdId group);
//! Stack to hold a path from the TIFF root element to a TIFF entry
using TiffPath = std::stack<TiffPathItem>;
//! Type for a list of primary image groups
using PrimaryGroups = std::vector<IfdId>;
}} // namespace Internal, Exiv2
#endif // #ifndef TIFFFWD_INT_HPP_