20 #ifndef TIFFIMAGE_INT_HPP_ 21 #define TIFFIMAGE_INT_HPP_ 25 #include "tifffwd_int.hpp" 26 #include "tiffcomposite_int.hpp" 28 #include "tags_int.hpp" 77 virtual bool read(
const byte* pData, uint32_t size);
99 virtual void print(std::ostream& os,
const std::string& prefix =
"")
const;
103 virtual uint32_t
offset()
const;
105 virtual uint32_t
size()
const;
107 virtual uint16_t
tag()
const;
130 const uint32_t size_;
148 uint32_t
offset =0x00000008,
149 bool hasImageTags =
true);
180 return key.
g_ == group_ && key.
t_ == tag_;
204 return key.
g_ == group_
205 && (
Tag::all == extendedTag_ || key.
e_ == extendedTag_);
208 uint16_t
tag()
const {
return static_cast<uint16_t
>(extendedTag_ & 0xffff); }
252 static std::auto_ptr<TiffComponent> create(uint32_t extendedTag,
259 static void getPath(
TiffPath& tiffPath,
260 uint32_t extendedTag,
345 static std::auto_ptr<TiffComponent> parse(
358 static void findPrimaryGroups(
387 uint32_t extendedTag,
403 const std::string& make,
404 uint32_t extendedTag,
439 void setTarget(
OffsetId id, uint32_t target);
444 void writeOffsets(
BasicIo& io)
const;
451 OffsetData() : origin_(0), target_(0), byteOrder_(littleEndian) {}
453 OffsetData(uint32_t origin,
ByteOrder byteOrder) : origin_(origin), target_(0), byteOrder_(byteOrder) {}
460 typedef std::map<OffsetId, OffsetData> OffsetList;
463 OffsetList offsetList_;
483 #endif // #ifndef TIFFIMAGE_INT_HPP_
An interface for simple binary IO.
Definition: basicio.hpp:55
IfdId g_
Group
Definition: tiffimage_int.hpp:238
A container for XMP data. This is a top-level class of the Exiv2 library.
Definition: xmp_exiv2.hpp:166
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition: exif.hpp:434
bool operator==(const TagDetails &td, const LensTypeAndFocalLengthAndMaxAperture <fl)
Compare tag details with a lens entry.
Definition: canonmn_int.cpp:2820
ByteOrder
Type to express the byte order (little or big endian)
Definition: types.hpp:102
Utility class containing a character array. All it does is to take care of memory allocation and dele...
Definition: types.hpp:193
Unary predicate that matches an Exifdatum with a given IfdId.
Definition: tiffimage_int.hpp:469
Key(uint32_t e, IfdId g)
Constructor.
Definition: tiffimage_int.hpp:196
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
uint8_t byte
1 byte unsigned integer type.
Definition: types.hpp:94
const uint32_t all
Special tag: all tags in a group.
Definition: tiffcomposite_int.hpp:75
Table of TIFF decoding and encoding functions and find functions. This class is separated from the me...
Definition: tiffimage_int.hpp:372
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition: iptc.hpp:170
IfdId g_
Group
Definition: tiffimage_int.hpp:198
IfdId group_
Each group is a node in the tree.
Definition: tiffimage_int.hpp:228
OffsetId
Identifiers for supported offsets.
Definition: tiffimage_int.hpp:422
WriteMethod
Type to indicate write method used by TIFF parsers.
Definition: types.hpp:105
IfdId group_
Group that contains the tag.
Definition: tiffimage_int.hpp:212
std::stack< TiffPathItem > TiffPath
Stack to hold a path from the TIFF root element to a TIFF entry.
Definition: tifffwd_int.hpp:104
Interface class for components of a TIFF directory hierarchy (Composite pattern). Both TIFF directori...
Definition: tiffcomposite_int.hpp:171
IfdId parentGroup_
Parent group.
Definition: tiffimage_int.hpp:229
Stateless parser class for data in TIFF format. Images use this class to decode and encode TIFF-based...
Definition: tiffimage_int.hpp:274
NewTiffCompFct newTiffCompFct_
Function to create the correct TIFF component.
Definition: tiffimage_int.hpp:213
Search key for TIFF tree structure.
Definition: tiffimage_int.hpp:234
bool operator()(const Exiv2::Exifdatum &md) const
Returns true if IFD id matches.
Definition: tiffimage_int.hpp:474
bool operator==(const Key &key) const
Comparison operator to compare a TiffGroupStruct with a TiffGroupStruct::Key.
Definition: tiffimage_int.hpp:202
uint16_t tag() const
Return the tag corresponding to the extended tag.
Definition: tiffimage_int.hpp:208
Data structure used as a row of the table which describes TIFF trees. Multiple trees are needed as TI...
Definition: tiffimage_int.hpp:221
void(TiffEncoder::* EncoderFct)(TiffEntryBase *, const Exifdatum *)
Function pointer type for a TiffDecoder member function to decode a TIFF component.
Definition: tifffwd_int.hpp:81
FindExifdatum(Exiv2::Internal::IfdId ifdId)
Constructor, initializes the object with the IfdId to look for.
Definition: tiffimage_int.hpp:472
uint32_t extendedTag_
Tag (32 bit so that it can contain special tags)
Definition: tiffimage_int.hpp:211
uint32_t r_
Root.
Definition: tiffimage_int.hpp:237
EXIV2API ExifData::const_iterator make(const ExifData &ed)
Return the camera make.
Definition: easyaccess.cpp:437
Class to insert pointers or offsets to computed addresses at specific locations in an image...
Definition: tiffimage_int.hpp:419
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:101
uint32_t root_
Tree root element, identifies a tree.
Definition: tiffimage_int.hpp:227
uint32_t e_
Extended tag.
Definition: tiffimage_int.hpp:197
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:230
void(TiffDecoder::* DecoderFct)(const TiffEntryBase *)
Function pointer type for a TiffDecoder member function to decode a TIFF component.
Definition: tifffwd_int.hpp:76
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:364
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:1993
std::vector< IfdId > PrimaryGroups
Type for a list of primary image groups.
Definition: tifffwd_int.hpp:107
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
IfdId
Type to specify the IFD to which a metadata belongs.
Definition: tags_int.hpp:46
Data structure used as a row (element) of a table (array) defining the TIFF component used for each t...
Definition: tiffimage_int.hpp:192
TIFF component factory.
Definition: tiffimage_int.hpp:244
TIFF mapping table for functions to decode special cases.
Definition: tiffcomposite_int.hpp:373
Key(uint32_t r, IfdId g)
Constructor.
Definition: tiffimage_int.hpp:236
Search key for TIFF group structure.
Definition: tiffimage_int.hpp:194