Exiv2
Loading...
Searching...
No Matches
tifffwd_int.hpp
1// ***************************************************************** -*- C++ -*-
2/*
3 * Copyright (C) 2004-2021 Exiv2 authors
4 * This program is part of the Exiv2 distribution.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
19 */
20#ifndef TIFFFWD_INT_HPP_
21#define TIFFFWD_INT_HPP_
22
23// *****************************************************************************
24// included header files
25#include "types.hpp"
26#include "tags_int.hpp"
27
28// + standard includes
29#include <memory>
30#include <stack>
31#include <vector>
32
33// *****************************************************************************
34// Exiv2 namespace extensions
35namespace Exiv2 {
36
37 class Exifdatum;
38
39 namespace Internal {
40
41 class TiffHeaderBase;
42 class TiffComponent;
43 class TiffEntryBase;
44 class TiffEntry;
45 class TiffDataEntry;
46 class TiffSizeEntry;
47 class TiffDirectory;
48 class TiffSubIfd;
49 class TiffMnEntry;
50 class TiffBinaryArray;
52
53 class TiffIfdMakernote;
54 class MnHeader;
55
56 class TiffVisitor;
57 class TiffFinder;
58 class TiffDecoder;
59 class TiffEncoder;
60 class TiffReader;
61
62 class TiffRwState;
63 class TiffPathItem;
64 struct TiffMappingInfo;
65
66 class IoWrapper;
67 class OffsetWriter;
68
69// *****************************************************************************
70// type definitions
71
76 typedef void (TiffDecoder::*DecoderFct)(const TiffEntryBase*);
81 typedef void (TiffEncoder::*EncoderFct)(TiffEntryBase*, const Exifdatum*);
85 typedef DecoderFct (*FindDecoderFct)(const std::string& make,
86 uint32_t extendedTag,
87 IfdId group);
92 const std::string& make,
93 uint32_t extendedTag,
94 IfdId group
95 );
101 typedef std::auto_ptr<TiffComponent> (*NewTiffCompFct)(uint16_t tag, IfdId group);
102
104 typedef std::stack<TiffPathItem> TiffPath;
105
107 typedef std::vector<IfdId> PrimaryGroups;
108
109}} // namespace Internal, Exiv2
110
111#endif // #ifndef TIFFFWD_INT_HPP_
An Exif metadatum, consisting of an ExifKey and a Value and methods to manipulate these.
Definition exif.hpp:59
Simple IO wrapper to ensure that the header is only written if there is any other data at all.
Definition tiffcomposite_int.hpp:121
Makernote header interface. This class is used with TIFF makernotes.
Definition makernote_int.hpp:126
Class to insert pointers or offsets to computed addresses at specific locations in an image....
Definition tiffimage_int.hpp:419
Composite to model an array of different tags. The tag types as well as other aspects of the array ar...
Definition tiffcomposite_int.hpp:1354
Element of a TiffBinaryArray.
Definition tiffcomposite_int.hpp:1493
Interface class for components of a TIFF directory hierarchy (Composite pattern). Both TIFF directori...
Definition tiffcomposite_int.hpp:171
A standard TIFF IFD entry consisting of a value which is an offset to a data area and the data area....
Definition tiffcomposite_int.hpp:650
TIFF composite visitor to decode metadata from the TIFF tree and add it to an Image,...
Definition tiffvisitor_int.hpp:276
This class models a TIFF directory (Ifd). It is a composite component of the TIFF tree.
Definition tiffcomposite_int.hpp:858
TIFF composite visitor to encode metadata from an image to the TIFF tree. The metadata containers and...
Definition tiffvisitor_int.hpp:376
This abstract base class provides the common functionality of an IFD directory entry and defines an e...
Definition tiffcomposite_int.hpp:411
A standard TIFF IFD entry.
Definition tiffcomposite_int.hpp:563
Search the composite for a component with tag and group. Return a pointer to the component or 0,...
Definition tiffvisitor_int.hpp:156
Abstract base class defining the interface of an image header. Used internally by classes for TIFF-ba...
Definition tiffimage_int.hpp:52
Tiff IFD Makernote. This is a concrete class suitable for all IFD makernotes.
Definition tiffcomposite_int.hpp:1147
This class is the basis for Makernote support in TIFF. It contains a pointer to a concrete Makernote....
Definition tiffcomposite_int.hpp:1071
A tupel consisting of extended Tag and group used as an item in TIFF paths.
Definition tiffcomposite_int.hpp:87
TIFF composite visitor to read the TIFF structure from a block of memory and build the composite from...
Definition tiffvisitor_int.hpp:622
Simple state class containing relevant state information for the TIFF reader. This is in a separate c...
Definition tiffvisitor_int.hpp:580
A TIFF IFD entry containing the size of a data area of a related TiffDataEntry. This component is use...
Definition tiffcomposite_int.hpp:816
This class models a TIFF sub-directory (sub-IFD). A sub-IFD is an entry with one or more values that ...
Definition tiffcomposite_int.hpp:982
Abstract base class defining the interface for TIFF composite visitors (Visitor pattern).
Definition tiffvisitor_int.hpp:65
Contains internal objects which are not published and are not part of the libexiv2 API.
Definition slice.hpp:32
DecoderFct(* FindDecoderFct)(const std::string &make, uint32_t extendedTag, IfdId group)
Type for a function pointer for a function to decode a TIFF component.
Definition tifffwd_int.hpp:85
std::auto_ptr< TiffComponent >(* NewTiffCompFct)(uint16_t tag, IfdId group)
Type for a function pointer for a function to create a TIFF component. Use TiffComponent::AutoPtr,...
Definition tifffwd_int.hpp:101
void(TiffEncoder::* EncoderFct)(TiffEntryBase *, const Exifdatum *)
Function pointer type for a TiffDecoder member function to decode a TIFF component.
Definition tifffwd_int.hpp:81
void(TiffDecoder::* DecoderFct)(const TiffEntryBase *)
Function pointer type for a TiffDecoder member function to decode a TIFF component.
Definition tifffwd_int.hpp:76
std::vector< IfdId > PrimaryGroups
Type for a list of primary image groups.
Definition tifffwd_int.hpp:107
std::stack< TiffPathItem > TiffPath
Stack to hold a path from the TIFF root element to a TIFF entry.
Definition tifffwd_int.hpp:104
IfdId
Type to specify the IFD to which a metadata belongs.
Definition tags_int.hpp:46
EncoderFct(* FindEncoderFct)(const std::string &make, uint32_t extendedTag, IfdId group)
Type for a function pointer for a function to encode a TIFF component.
Definition tifffwd_int.hpp:91
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition asfvideo.hpp:36
EXIV2API ExifData::const_iterator make(const ExifData &ed)
Return the camera make.
Definition easyaccess.cpp:437
TIFF mapping table for functions to decode special cases.
Definition tiffcomposite_int.hpp:373