Exiv2::ExifParser Class Reference

Stateless parser class for Exif data. Images use this class to decode and encode binary Exif data. See class TiffParser for details. More...

#include <exif.hpp>

List of all members.

Static Public Member Functions

static ByteOrder decode (ExifData &exifData, const byte *pData, uint32_t size)
 Decode metadata from a buffer pData of length size with binary Exif data to the provided metadata container. Return byte order in which the data is encoded. See TiffParser::decode().
static WriteMethod encode (Blob &blob, const byte *pData, uint32_t size, ByteOrder byteOrder, const ExifData &exifData)
 Encode metadata from the provided metadata to Exif format. See TiffParser::encode().
static void encode (Blob &blob, ByteOrder byteOrder, const ExifData &exifData)
 Encode metadata from the provided metadata to Exif format. See TiffParser::encode().


Detailed Description

Stateless parser class for Exif data. Images use this class to decode and encode binary Exif data. See class TiffParser for details.

Member Function Documentation

static void Exiv2::ExifParser::encode ( Blob blob,
ByteOrder  byteOrder,
const ExifData exifData 
) [inline, static]

Encode metadata from the provided metadata to Exif format. See TiffParser::encode().

Encode Exif metadata from the ExifData container to binary format in the blob encoded in byteOrder.

This simpler encode method uses "intrusive" writing, i.e., it builds the binary representation of the metadata from scratch. It does not attempt "non-intrusive", i.e., in-place updating. It's better to use the other encode() method, if the metadata is already available in binary format, in order to allow for "non-intrusive" updating of the existing binary representation.

This is just an inline wrapper for ExifParser::encode(blob, 0, 0, byteOrder, exifData).


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

Generated on Sun Apr 19 21:52:40 2009 for Exiv2 by  doxygen 1.5.8