Exiv2::CrwParser Class Reference

#include <crwimage.hpp>

Static Public Member Functions

static void decode (CrwImage *pCrwImage, const byte *pData, size_t size)
 Decode metadata from a Canon CRW image in data buffer pData of length size into crwImage. More...
 
static void encode (Blob &blob, const byte *pData, size_t size, const CrwImage *pCrwImage)
 Encode metadata from the CRW image into a data buffer (the binary CRW image). More...
 

Detailed Description

Stateless parser class for Canon CRW images (Ciff format).

Member Function Documentation

◆ decode()

static void Exiv2::CrwParser::decode ( CrwImage pCrwImage,
const byte pData,
size_t  size 
)
static

Decode metadata from a Canon CRW image in data buffer pData of length size into crwImage.

This is the entry point to access image data in Ciff format. The parser uses classes CiffHeader, CiffEntry, CiffDirectory.

Parameters
pCrwImagePointer to the Exiv2 CRW image to hold the metadata read from the buffer.
pDataPointer to the data buffer. Must point to the data of a CRW image; no checks are performed.
sizeLength of the data buffer.
Exceptions
ErrorIf the data buffer cannot be parsed.

◆ encode()

static void Exiv2::CrwParser::encode ( Blob blob,
const byte pData,
size_t  size,
const CrwImage pCrwImage 
)
static

Encode metadata from the CRW image into a data buffer (the binary CRW image).

Parameters
blobData buffer for the binary image (target).
pDataPointer to the binary image data buffer. Must point to data in CRW format; no checks are performed.
sizeLength of the data buffer.
pCrwImagePointer to the Exiv2 CRW image with the metadata to encode.
Exceptions
ErrorIf the metadata from the CRW image cannot be encoded.

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