1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<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.4.6 -->
<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 id="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>
</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>
<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).
<p>
<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)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void Exiv2::CrwParser::decode </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classExiv2_1_1CrwImage.html">CrwImage</a> * </td>
<td class="mdname" nowrap> <em>pCrwImage</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
<td class="mdname" nowrap> <em>pData</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>uint32_t </td>
<td class="mdname" nowrap> <em>size</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<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">CiffHeader</a>, <a class="el" href="classExiv2_1_1CiffEntry.html">CiffEntry</a>, <a class="el" href="classExiv2_1_1CiffDirectory.html">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">Error</a></em> </td><td>If the data buffer cannot be parsed. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="f8bccbf5e6631527192df0b86a234d88"></a><!-- doxytag: member="Exiv2::CrwParser::encode" ref="f8bccbf5e6631527192df0b86a234d88" args="(Blob &blob, CiffHeader *pHead, const CrwImage *pCrwImage)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void Exiv2::CrwParser::encode </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#6e7b9a2ef47caec919b15f1ae6ff4872">Blob</a> & </td>
<td class="mdname" nowrap> <em>blob</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classExiv2_1_1CiffHeader.html">CiffHeader</a> * </td>
<td class="mdname" nowrap> <em>pHead</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="classExiv2_1_1CrwImage.html">CrwImage</a> * </td>
<td class="mdname" nowrap> <em>pCrwImage</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<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">Error</a></em> </td><td>If the metadata from the Crw image cannot be encoded. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<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="align: right;"><small>Generated on Fri Jun 2 23:54:49 2006 for Exiv2 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>
|