Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > e31b59fe09ff595814e8029d984f51c5 > files > 250

lib64exiv2_2-devel-0.16-3mdv2008.1.x86_64.rpm

<!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&nbsp;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>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</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&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;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 &lt;crwimage.hpp&gt;</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&nbsp;</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">&nbsp;</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&nbsp;</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> &amp;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">&nbsp;</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> *&nbsp;</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> *&nbsp;</td>
          <td class="paramname"> <em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&nbsp;</td>
          <td class="paramname"> <em>size</em></td><td>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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 &amp;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> &amp;&nbsp;</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> *&nbsp;</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> *&nbsp;</td>
          <td class="paramname"> <em>pCrwImage</em></td><td>&nbsp;</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>&nbsp;</td><td>Data buffer for the binary image (target). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pCrwImage</em>&nbsp;</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>&nbsp;</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>&nbsp;</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&nbsp;
<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>