27 #ifndef TIFFIMAGE_INT_HPP_ 28 #define TIFFIMAGE_INT_HPP_ 110 virtual uint32_t
offset()
const;
112 virtual uint32_t
size()
const;
114 virtual uint16_t
tag()
const;
137 const uint32_t size_;
155 uint32_t
offset =0x00000008,
156 bool hasImageTags =
true);
259 static std::auto_ptr<TiffComponent>
create(uint32_t extendedTag,
267 uint32_t extendedTag,
352 static std::auto_ptr<TiffComponent> parse(
365 static void findPrimaryGroups(
394 uint32_t extendedTag,
411 uint32_t extendedTag,
458 OffsetData() : origin_(0), target_(0), byteOrder_(littleEndian) {}
460 OffsetData(uint32_t origin,
ByteOrder byteOrder) : origin_(origin), target_(0), byteOrder_(byteOrder) {}
467 typedef std::map<OffsetId, OffsetData> OffsetList;
470 OffsetList offsetList_;
490 #endif // #ifndef TIFFIMAGE_INT_HPP_
An interface for simple binary IO.
Definition: basicio.hpp:55
IfdId g_
Group
Definition: tiffimage_int.hpp:245
A container for XMP data. This is a top-level class of the Exiv2 library.
Definition: xmp_exiv2.hpp:173
void setTarget(OffsetId id, uint32_t target)
Set the target for offset id, i.e., the address to which the offset points.
Definition: tiffimage_int.cpp:2012
static void getPath(TiffPath &tiffPath, uint32_t extendedTag, IfdId group, uint32_t root)
Get the path, i.e., a list of extended tag and group pairs, from the root TIFF element to the TIFF en...
Definition: tiffimage_int.cpp:1581
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
Internal TIFF parser related typedefs and forward definitions.
ByteOrder
Type to express the byte order (little or big endian)
Definition: types.hpp:113
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition: types.hpp:204
Unary predicate that matches an Exifdatum with a given IfdId.
Definition: tiffimage_int.hpp:476
Key(uint32_t e, IfdId g)
Constructor.
Definition: tiffimage_int.hpp:203
static std::auto_ptr< TiffComponent > create(uint32_t extendedTag, IfdId group)
Create the TiffComponent for TIFF entry extendedTag and group. The embedded lookup table is used to f...
Definition: tiffimage_int.cpp:1555
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:92
uint8_t byte
1 byte unsigned integer type.
Definition: types.hpp:105
const uint32_t all
Special tag: all tags in a group.
Definition: tiffcomposite_int.hpp:82
Table of TIFF decoding and encoding functions and find functions. This class is separated from the me...
Definition: tiffimage_int.hpp:379
Type definitions for Exiv2 and related functionality.
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition: iptc.hpp:173
IfdId g_
Group
Definition: tiffimage_int.hpp:205
IfdId group_
Each group is a node in the tree.
Definition: tiffimage_int.hpp:235
OffsetId
Identifiers for supported offsets.
Definition: tiffimage_int.hpp:429
WriteMethod
Type to indicate write method used by TIFF parsers.
Definition: types.hpp:116
IfdId group_
Group that contains the tag.
Definition: tiffimage_int.hpp:219
std::stack< TiffPathItem > TiffPath
Stack to hold a path from the TIFF root element to a TIFF entry.
Definition: tifffwd_int.hpp:111
static WriteMethod encode(BasicIo &io, const byte *pData, uint32_t size, const ExifData &exifData, const IptcData &iptcData, const XmpData &xmpData, uint32_t root, FindEncoderFct findEncoderFct, TiffHeaderBase *pHeader, OffsetWriter *pOffsetWriter)
Encode TIFF metadata from the metadata containers into a memory block blob.
Definition: tiffimage_int.cpp:1627
Interface class for components of a TIFF directory hierarchy (Composite pattern). Both TIFF directori...
Definition: tiffcomposite_int.hpp:174
IfdId parentGroup_
Parent group.
Definition: tiffimage_int.hpp:236
Stateless parser class for data in TIFF format. Images use this class to decode and encode TIFF-based...
Definition: tiffimage_int.hpp:281
NewTiffCompFct newTiffCompFct_
Function to create the correct TIFF component.
Definition: tiffimage_int.hpp:220
Internal classes used in a TIFF composite structure.
Search key for TIFF tree structure.
Definition: tiffimage_int.hpp:241
bool operator()(const Exiv2::Exifdatum &md) const
Returns true if IFD id matches.
Definition: tiffimage_int.hpp:481
bool operator==(const Key &key) const
Comparison operator to compare a TiffGroupStruct with a TiffGroupStruct::Key.
Definition: tiffimage_int.hpp:209
uint16_t tag() const
Return the tag corresponding to the extended tag.
Definition: tiffimage_int.hpp:215
Data structure used as a row of the table which describes TIFF trees. Multiple trees are needed as TI...
Definition: tiffimage_int.hpp:228
void(TiffEncoder::* EncoderFct)(TiffEntryBase *, const Exifdatum *)
Function pointer type for a TiffDecoder member function to decode a TIFF component.
Definition: tifffwd_int.hpp:88
bool operator==(const Key &key) const
Comparison operator to compare a TiffTreeStruct with a TiffTreeStruct::Key.
Definition: tiffimage_int.cpp:1550
FindExifdatum(Exiv2::Internal::IfdId ifdId)
Constructor, initializes the object with the IfdId to look for.
Definition: tiffimage_int.hpp:479
void writeOffsets(BasicIo &io) const
Write the offsets to the IO instance io.
Definition: tiffimage_int.cpp:2018
uint32_t extendedTag_
Tag (32 bit so that it can contain special tags)
Definition: tiffimage_int.hpp:218
uint32_t r_
Root.
Definition: tiffimage_int.hpp:244
void setOrigin(OffsetId id, uint32_t origin, ByteOrder byteOrder)
Set the origin of the offset for id, i.e., the location in the image where the offset is...
Definition: tiffimage_int.cpp:2007
IPTC string type.
Definition: types.hpp:147
EXIV2API ExifData::const_iterator make(const ExifData &ed)
Return the camera make.
Definition: easyaccess.cpp:428
static ByteOrder decode(ExifData &exifData, IptcData &iptcData, XmpData &xmpData, const byte *pData, uint32_t size, uint32_t root, FindDecoderFct findDecoderFct, TiffHeaderBase *pHeader=0)
Decode TIFF metadata from a data buffer pData of length size into the provided metadata containers...
Definition: tiffimage_int.cpp:1597
Class to insert pointers or offsets to computed addresses at specific locations in an image...
Definition: tiffimage_int.hpp:426
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, it is not used in this declaration only to reduce dependencies.
Definition: tifffwd_int.hpp:108
uint32_t root_
Tree root element, identifies a tree.
Definition: tiffimage_int.hpp:234
uint32_t e_
Extended tag.
Definition: tiffimage_int.hpp:204
static DecoderFct findDecoder(const std::string &make, uint32_t extendedTag, IfdId group)
Find the decoder function for a key.
Definition: tiffimage_int.cpp:1520
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
uint32_t parentExtTag_
Parent tag (32 bit so that it can contain special tags)
Definition: tiffimage_int.hpp:237
const uint32_t root
Special tag: root IFD.
Definition: tiffcomposite_int.hpp:80
void(TiffDecoder::* DecoderFct)(const TiffEntryBase *)
Function pointer type for a TiffDecoder member function to decode a TIFF component.
Definition: tifffwd_int.hpp:83
An Exif metadatum, consisting of an ExifKey and a Value and methods to manipulate these...
Definition: exif.hpp:59
int ifdId() const
Return the IFD id as an integer. (Do not use, this is meant for library internal use.)
Definition: exif.cpp:340
bool isTiffImageTag(uint16_t tag, IfdId group)
Convenience function to check if tag, group is in the list of TIFF image tags.
Definition: tiffimage_int.cpp:1873
std::vector< IfdId > PrimaryGroups
Type for a list of primary image groups.
Definition: tifffwd_int.hpp:114
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:98
IfdId
Type to specify the IFD to which a metadata belongs.
Definition: tags_int.hpp:54
Data structure used as a row (element) of a table (array) defining the TIFF component used for each t...
Definition: tiffimage_int.hpp:199
TIFF component factory.
Definition: tiffimage_int.hpp:251
TIFF mapping table for functions to decode special cases.
Definition: tiffcomposite_int.hpp:376
Key(uint32_t r, IfdId g)
Constructor.
Definition: tiffimage_int.hpp:243
CR2 RAW IFD offset, a pointer in the CR2 header to the 4th IFD in a CR2 image.
Definition: tiffimage_int.hpp:430
Search key for TIFF group structure.
Definition: tiffimage_int.hpp:201
static EncoderFct findEncoder(const std::string &make, uint32_t extendedTag, IfdId group)
Find special encoder function for a key.
Definition: tiffimage_int.cpp:1534