Exiv2::Internal::Cr2Header Class Reference

Canon CR2 header structure. More...

#include <cr2image_int.hpp>

Inheritance diagram for Exiv2::Internal::Cr2Header:

Inheritance graph
[legend]
Collaboration diagram for Exiv2::Internal::Cr2Header:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Creators
 Cr2Header ()
 Default constructor.
 ~Cr2Header ()
 Destructor.
Manipulators
bool read (const byte *pData, uint32_t size)
 Read the image header from a data buffer. Return false if the data buffer does not contain an image header of the expected format, else true.
Accessors
uint32_t write (Blob &blob) const
 Write the image header to the binary image blob. This method appends to the blob.

Detailed Description

Canon CR2 header structure.


Member Function Documentation

bool Exiv2::Internal::Cr2Header::read const byte pData,
uint32_t  size
[virtual]
 

Read the image header from a data buffer. Return false if the data buffer does not contain an image header of the expected format, else true.

Parameters:
pData Pointer to the data buffer.
size Number of bytes in the data buffer.
Returns:
True if the TIFF header was read successfully. False if the data buffer does not contain a valid TIFF header.

Reimplemented from Exiv2::Internal::TiffHeaderBase.

uint32_t Exiv2::Internal::Cr2Header::write Blob blob  )  const [virtual]
 

Write the image header to the binary image blob. This method appends to the blob.

Parameters:
blob Binary image to add to.
Returns:
Number of bytes written.

Reimplemented from Exiv2::Internal::TiffHeaderBase.


The documentation for this class was generated from the following files:
Generated on Sun Jul 5 00:00:38 2009 for Exiv2 by  doxygen 1.3.9.1