<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Exiv2: Exiv2::CrwParser Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.4 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="nav"> <a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="classExiv2_1_1CrwParser.html">CrwParser</a></div> <h1>Exiv2::CrwParser Class Reference</h1><!-- doxytag: class="Exiv2::CrwParser" --><code>#include <crwimage.hpp></code> <p> <p> <a href="classExiv2_1_1CrwParser-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1CrwParser.html#80a0861a3c37e739ef144d425f439079">decode</a> (<a class="el" href="classExiv2_1_1CrwImage.html">CrwImage</a> *pCrwImage, const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pData, uint32_t size)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Decode metadata from a Canon Crw image in data buffer <em>pData</em> of length <em>size</em> into <em>crwImage</em>. <a href="#80a0861a3c37e739ef144d425f439079"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1CrwParser.html#f8bccbf5e6631527192df0b86a234d88">encode</a> (<a class="el" href="namespaceExiv2.html#6e7b9a2ef47caec919b15f1ae6ff4872">Blob</a> &blob, <a class="el" href="classExiv2_1_1CiffHeader.html">CiffHeader</a> *pHead, const <a class="el" href="classExiv2_1_1CrwImage.html">CrwImage</a> *pCrwImage)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Encode metadata from the Crw image into a data buffer (the binary Crw image). <a href="#f8bccbf5e6631527192df0b86a234d88"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Stateless parser class for Canon Crw images (Ciff format). <hr><h2>Member Function Documentation</h2> <a class="anchor" name="80a0861a3c37e739ef144d425f439079"></a><!-- doxytag: member="Exiv2::CrwParser::decode" ref="80a0861a3c37e739ef144d425f439079" args="(CrwImage *pCrwImage, const byte *pData, uint32_t size)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Exiv2::CrwParser::decode </td> <td>(</td> <td class="paramtype"><a class="el" href="classExiv2_1_1CrwImage.html">CrwImage</a> * </td> <td class="paramname"> <em>pCrwImage</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td> <td class="paramname"> <em>pData</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t </td> <td class="paramname"> <em>size</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Decode metadata from a Canon Crw image in data buffer <em>pData</em> of length <em>size</em> into <em>crwImage</em>. <p> This is the entry point to access image data in Ciff format. The parser uses classes <a class="el" href="classExiv2_1_1CiffHeader.html" title="This class models the header of a Crw (Canon Raw data) image. It is the head of a...">CiffHeader</a>, <a class="el" href="classExiv2_1_1CiffEntry.html" title="This class models one directory entry of a CIFF directory of a Crw (Canon Raw data)...">CiffEntry</a>, <a class="el" href="classExiv2_1_1CiffDirectory.html" title="This class models a CIFF directory of a Crw (Canon Raw data) image.">CiffDirectory</a>.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pCrwImage</em> </td><td>Pointer to the Exiv2 Crw image to hold the metadata read from the buffer. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pData</em> </td><td>Pointer to the data buffer. Must point to the data of a Crw image; no checks are performed. </td></tr> <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>Length of the data buffer.</td></tr> </table> </dl> <dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classExiv2_1_1Error.html" title="Simple error class used for exceptions. An output operator is provided to print errors...">Error</a></em> </td><td>If the data buffer cannot be parsed. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="f8bccbf5e6631527192df0b86a234d88"></a><!-- doxytag: member="Exiv2::CrwParser::encode" ref="f8bccbf5e6631527192df0b86a234d88" args="(Blob &blob, CiffHeader *pHead, const CrwImage *pCrwImage)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Exiv2::CrwParser::encode </td> <td>(</td> <td class="paramtype"><a class="el" href="namespaceExiv2.html#6e7b9a2ef47caec919b15f1ae6ff4872">Blob</a> & </td> <td class="paramname"> <em>blob</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classExiv2_1_1CiffHeader.html">CiffHeader</a> * </td> <td class="paramname"> <em>pHead</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classExiv2_1_1CrwImage.html">CrwImage</a> * </td> <td class="paramname"> <em>pCrwImage</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Encode metadata from the Crw image into a data buffer (the binary Crw image). <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>blob</em> </td><td>Data buffer for the binary image (target). </td></tr> <tr><td valign="top"></td><td valign="top"><em>pCrwImage</em> </td><td>Pointer to the Exiv2 Crw image with the metadata to encode. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pHead</em> </td><td>Parse tree containing the existing image.</td></tr> </table> </dl> <dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classExiv2_1_1Error.html" title="Simple error class used for exceptions. An output operator is provided to print errors...">Error</a></em> </td><td>If the metadata from the Crw image cannot be encoded. </td></tr> </table> </dl> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="crwimage_8hpp.html">crwimage.hpp</a><li>crwimage.cpp</ul> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Feb 5 11:51:02 2008 for Exiv2 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address> </body> </html>