Exiv2::Internal::TiffParserWorker Class Reference

Stateless parser class for data in TIFF format. Images use this class to decode and encode TIFF-based data. More...

#include <tiffimage_int.hpp>

List of all members.

Static Public Member Functions

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.
static WriteMethod encode (Blob &blob, const byte *pData, uint32_t size, const ExifData &exifData, const IptcData &iptcData, const XmpData &xmpData, uint32_t root, FindEncoderFct findEncoderFct, TiffHeaderBase *pHeader)
 Encode TIFF metadata from the metadata containers into a memory block blob.


Detailed Description

Stateless parser class for data in TIFF format. Images use this class to decode and encode TIFF-based data.

Member Function Documentation

ByteOrder Exiv2::Internal::TiffParserWorker::decode ( ExifData exifData,
IptcData iptcData,
XmpData xmpData,
const byte pData,
uint32_t  size,
uint32_t  root,
FindDecoderFct  findDecoderFct,
TiffHeaderBase pHeader = 0 
) [static]

Decode TIFF metadata from a data buffer pData of length size into the provided metadata containers.

This is the entry point to access image data in TIFF format. The parser uses classes TiffHeader and the TiffComponent and TiffVisitor hierarchies.

Parameters:
exifData Exif metadata container.
iptcData IPTC metadata container.
xmpData XMP metadata container.
pData Pointer to the data buffer. Must point to data in TIFF format; no checks are performed.
size Length of the data buffer.
root Root tag of the TIFF tree for new TIFF components.
findDecoderFct Function to access special decoding info.
pHeader Optional pointer to a TIFF header. If not provided, a standard TIFF header is used.
Returns:
Byte order in which the data is encoded, invalidByteOrder if decoding failed.

References Exiv2::Internal::TiffHeaderBase::byteOrder().


The documentation for this class was generated from the following files:

Generated on Thu Apr 16 17:19:23 2009 for Exiv2 by  doxygen 1.5.8