Stateless parser class for data in TIFF format. Images use this class to decode and encode TIFF-based data. More...
#include <tiffimage_int.hpp>
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 (BasicIo &io, 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. | |
Stateless parser class for data in TIFF format. Images use this class to decode and encode TIFF-based data.
| 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.
| exifData | Exif metadata container.
|
References Exiv2::Internal::TiffHeaderBase::byteOrder().
| WriteMethod Exiv2::Internal::TiffParserWorker::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 | |||
| ) | [static] |
Encode TIFF metadata from the metadata containers into a memory block blob.
1) Parse the binary image, if one is provided, and 2) attempt updating the parsed tree in-place ("non-intrusive writing") 3) else, create a new tree and write a new TIFF structure ("intrusive writing"). If there is a parsed tree, it is only used to access the image data in this case.
References Exiv2::Internal::TiffHeaderBase::byteOrder(), Exiv2::Internal::TiffCreator::create(), Exiv2::Internal::Group::none, Exiv2::DataBuf::pData_, Exiv2::DataBuf::size_, Exiv2::BasicIo::temporary(), Exiv2::BasicIo::transfer(), and Exiv2::Internal::TiffHeaderBase::write().
1.6.3