forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtifffwd_int.hpp
104 lines (89 loc) · 3.4 KB
/
tifffwd_int.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// ***************************************************************** -*- 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 TIFFFWD_INT_HPP_
#define TIFFFWD_INT_HPP_
// *****************************************************************************
// included header files
#include "types.hpp"
#include "tags_int.hpp"
// + standard includes
#include <memory>
#include <stack>
#include <vector>
// *****************************************************************************
// 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_