<!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::Photoshop Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <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="annotated.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="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</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="navpath"><a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="structExiv2_1_1Photoshop.html">Photoshop</a> </div> </div> <div class="contents"> <h1>Exiv2::Photoshop Struct Reference</h1><!-- doxytag: class="Exiv2::Photoshop" -->Helper class, has methods to deal with Photoshop "Information Resource Blocks" (IRBs). <a href="#_details">More...</a> <p> <code>#include <jpgimage.hpp></code> <p> <p> <a href="structExiv2_1_1Photoshop-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 int </td><td class="memItemRight" valign="bottom"><a class="el" href="structExiv2_1_1Photoshop.html#e4f7ba385f695ca7f3534ab4643ad5a6">locateIrb</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pPsData, long sizePsData, uint16_t psTag, const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> **record, uint32_t *const sizeHdr, uint32_t *const sizeData)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Locates the data for a Photoshop tag in a Photoshop formated memory buffer. Operates on raw data to simplify reuse. <a href="#e4f7ba385f695ca7f3534ab4643ad5a6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63788220e2a8f18ae546cd84fa01908c"></a><!-- doxytag: member="Exiv2::Photoshop::locateIptcIrb" ref="63788220e2a8f18ae546cd84fa01908c" args="(const byte *pPsData, long sizePsData, const byte **record, uint32_t *const sizeHdr, uint32_t *const sizeData)" --> static int </td><td class="memItemRight" valign="bottom"><a class="el" href="structExiv2_1_1Photoshop.html#63788220e2a8f18ae546cd84fa01908c">locateIptcIrb</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pPsData, long sizePsData, const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> **record, uint32_t *const sizeHdr, uint32_t *const sizeData)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Forwards to <a class="el" href="structExiv2_1_1Photoshop.html#e4f7ba385f695ca7f3534ab4643ad5a6" title="Locates the data for a Photoshop tag in a Photoshop formated memory buffer. Operates...">locateIrb()</a> with <em>psTag</em> = <em>iptc_</em>. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structExiv2_1_1Photoshop.html#1e0c68308b334a3adb2db245abe0e187">setIptcIrb</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pPsData, long sizePsData, const <a class="el" href="classExiv2_1_1IptcData.html">IptcData</a> &iptcData)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the new IPTC IRB, keeps existing IRBs but removes the IPTC block if there is no new IPTC data to write. <a href="#1e0c68308b334a3adb2db245abe0e187"></a><br></td></tr> <tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7cfeaf38d59872d02be313454a45fcff"></a><!-- doxytag: member="Exiv2::Photoshop::ps3Id_" ref="7cfeaf38d59872d02be313454a45fcff" args="[]" --> static const char </td><td class="memItemRight" valign="bottom"><a class="el" href="structExiv2_1_1Photoshop.html#7cfeaf38d59872d02be313454a45fcff">ps3Id_</a> []</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Photoshop marker <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26c4018dcd65619cf55408b08a426f07"></a><!-- doxytag: member="Exiv2::Photoshop::bimId_" ref="26c4018dcd65619cf55408b08a426f07" args="[]" --> static const char </td><td class="memItemRight" valign="bottom"><a class="el" href="structExiv2_1_1Photoshop.html#26c4018dcd65619cf55408b08a426f07">bimId_</a> []</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Photoshop marker <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1f901d93824440438f7a015cb2738bd5"></a><!-- doxytag: member="Exiv2::Photoshop::iptc_" ref="1f901d93824440438f7a015cb2738bd5" args="" --> static const uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structExiv2_1_1Photoshop.html#1f901d93824440438f7a015cb2738bd5">iptc_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Photoshop IPTC marker <br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Helper class, has methods to deal with Photoshop "Information Resource Blocks" (IRBs). <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e4f7ba385f695ca7f3534ab4643ad5a6"></a><!-- doxytag: member="Exiv2::Photoshop::locateIrb" ref="e4f7ba385f695ca7f3534ab4643ad5a6" args="(const byte *pPsData, long sizePsData, uint16_t psTag, const byte **record, uint32_t *const sizeHdr, uint32_t *const sizeData)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int Exiv2::Photoshop::locateIrb </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td> <td class="paramname"> <em>pPsData</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long </td> <td class="paramname"> <em>sizePsData</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint16_t </td> <td class="paramname"> <em>psTag</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>record</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t *const </td> <td class="paramname"> <em>sizeHdr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t *const </td> <td class="paramname"> <em>sizeData</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Locates the data for a Photoshop tag in a Photoshop formated memory buffer. Operates on raw data to simplify reuse. <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>pPsData</em> </td><td>Pointer to buffer containing entire payload of Photoshop formated data, e.g., from APP13 Jpeg segment. </td></tr> <tr><td valign="top"></td><td valign="top"><em>sizePsData</em> </td><td>Size in bytes of pPsData. </td></tr> <tr><td valign="top"></td><td valign="top"><em>psTag</em> </td><td>Tag number of the block to look for. </td></tr> <tr><td valign="top"></td><td valign="top"><em>record</em> </td><td>Output value that is set to the start of the data block within pPsData (may not be null). </td></tr> <tr><td valign="top"></td><td valign="top"><em>sizeHdr</em> </td><td>Output value that is set to the size of the header within the data block pointed to by record (may not be null). </td></tr> <tr><td valign="top"></td><td valign="top"><em>sizeData</em> </td><td>Output value that is set to the size of the actual data within the data block pointed to by record (may not be null). </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful;<br> 3 if no data for psTag was found in pPsData;<br> -2 if the pPsData buffer does not contain valid data. </dd></dl> </div> </div><p> <a class="anchor" name="1e0c68308b334a3adb2db245abe0e187"></a><!-- doxytag: member="Exiv2::Photoshop::setIptcIrb" ref="1e0c68308b334a3adb2db245abe0e187" args="(const byte *pPsData, long sizePsData, const IptcData &iptcData)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a> Exiv2::Photoshop::setIptcIrb </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td> <td class="paramname"> <em>pPsData</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">long </td> <td class="paramname"> <em>sizePsData</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classExiv2_1_1IptcData.html">IptcData</a> & </td> <td class="paramname"> <em>iptcData</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the new IPTC IRB, keeps existing IRBs but removes the IPTC block if there is no new IPTC data to write. <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>pPsData</em> </td><td>Existing IRB buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>sizePsData</em> </td><td>Size of the IRB buffer, may be 0 </td></tr> <tr><td valign="top"></td><td valign="top"><em>iptcData</em> </td><td>Iptc data to embed, may be empty </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A data buffer containing the new IRB buffer, may have 0 size </dd></dl> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="jpgimage_8hpp.html">jpgimage.hpp</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jun 25 15:17:59 2009 for Exiv2 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>