<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>steghide: JpegSampleValue Class 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 class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <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> <div class="contents"> <h1>JpegSampleValue Class Reference</h1><!-- doxytag: class="JpegSampleValue" --><!-- doxytag: inherits="SampleValue" --><code>#include <<a class="el" href="JpegSampleValue_8h_source.html">JpegSampleValue.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for JpegSampleValue:</div> <div class="dynsection"> <p><center><img src="classJpegSampleValue.png" usemap="#JpegSampleValue_map" border="0" alt=""></center> <map name="JpegSampleValue_map"> <area href="classSampleValue.html" alt="SampleValue" shape="rect" coords="0,0,114,24"> </map> </div> <p> <a href="classJpegSampleValue-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJpegSampleValue.html#56c663648ba670a7e9dfe75326940227">JpegSampleValue</a> (int c)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSampleValue.html">SampleValue</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classJpegSampleValue.html#d4e9adaf0f0de519ee06d6868dbd17dc">getNearestTargetSampleValue</a> (<a class="el" href="common_8h.html#cf820202f81f25eb00734eac0d7aed2d">EmbValue</a> t) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="common_8h.html#6b8592979b076e06aa233e3f586ac999">UWORD32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJpegSampleValue.html#3d1c422d07e9d9644080313c92a21ea0">calcDistance</a> (const <a class="el" href="classSampleValue.html">SampleValue</a> *s) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classJpegSampleValue.html#dab7120fa72b4672200f5556062f77b0">getName</a> (void) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="common_8h.html#75e993730bc2fad258c1f7becd24fec9">SWORD16</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJpegSampleValue.html#6999704b4827cd487cdd8f6a5ac3ecfd">getDctCoeff</a> (void) const </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 <a class="el" href="common_8h.html#cf820202f81f25eb00734eac0d7aed2d">EmbValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJpegSampleValue.html#06fbe97eb12bf1b5c5ad6f995973f2d2">calcEValue</a> (<a class="el" href="common_8h.html#75e993730bc2fad258c1f7becd24fec9">SWORD16</a> dctc)</td></tr> <tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="common_8h.html#75e993730bc2fad258c1f7becd24fec9">SWORD16</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJpegSampleValue.html#d51e8f0375dbb30b66ff3f83b4665a08">DctCoeff</a></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="56c663648ba670a7e9dfe75326940227"></a><!-- doxytag: member="JpegSampleValue::JpegSampleValue" ref="56c663648ba670a7e9dfe75326940227" args="(int c)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">JpegSampleValue::JpegSampleValue </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>c</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="3d1c422d07e9d9644080313c92a21ea0"></a><!-- doxytag: member="JpegSampleValue::calcDistance" ref="3d1c422d07e9d9644080313c92a21ea0" args="(const SampleValue *s) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="common_8h.html#6b8592979b076e06aa233e3f586ac999">UWORD32</a> JpegSampleValue::calcDistance </td> <td>(</td> <td class="paramtype">const <a class="el" href="classSampleValue.html">SampleValue</a> * </td> <td class="paramname"> <em>s</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> calculate the distance between the sample value s and this sample value <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>a sample value of the same type as this </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the distance </dd></dl> <p>Implements <a class="el" href="classSampleValue.html#a7e5d9b69203f6f6edf97c79319232dd">SampleValue</a>.</p> </div> </div><p> <a class="anchor" name="06fbe97eb12bf1b5c5ad6f995973f2d2"></a><!-- doxytag: member="JpegSampleValue::calcEValue" ref="06fbe97eb12bf1b5c5ad6f995973f2d2" args="(SWORD16 dctc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="common_8h.html#cf820202f81f25eb00734eac0d7aed2d">EmbValue</a> JpegSampleValue::calcEValue </td> <td>(</td> <td class="paramtype"><a class="el" href="common_8h.html#75e993730bc2fad258c1f7becd24fec9">SWORD16</a> </td> <td class="paramname"> <em>dctc</em> </td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="6999704b4827cd487cdd8f6a5ac3ecfd"></a><!-- doxytag: member="JpegSampleValue::getDctCoeff" ref="6999704b4827cd487cdd8f6a5ac3ecfd" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="common_8h.html#75e993730bc2fad258c1f7becd24fec9">SWORD16</a> JpegSampleValue::getDctCoeff </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="dab7120fa72b4672200f5556062f77b0"></a><!-- doxytag: member="JpegSampleValue::getName" ref="dab7120fa72b4672200f5556062f77b0" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string JpegSampleValue::getName </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> return a short name uniquely identifying this sample value <p>Implements <a class="el" href="classSampleValue.html#eaf5c46ec6d023840e9773604b20d25c">SampleValue</a>.</p> </div> </div><p> <a class="anchor" name="d4e9adaf0f0de519ee06d6868dbd17dc"></a><!-- doxytag: member="JpegSampleValue::getNearestTargetSampleValue" ref="d4e9adaf0f0de519ee06d6868dbd17dc" args="(EmbValue t) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSampleValue.html">SampleValue</a> * JpegSampleValue::getNearestTargetSampleValue </td> <td>(</td> <td class="paramtype"><a class="el" href="common_8h.html#cf820202f81f25eb00734eac0d7aed2d">EmbValue</a> </td> <td class="paramname"> <em>t</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> get the nearest (with the least distance to this sample value) sample value whose embedded value equals the specified target <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>t</em> </td><td>the target embedded value</td></tr> </table> </dl> If two or more target sample values have equal distance each of them should be returned with equal probability.<p> The returned <a class="el" href="classSampleValue.html" title="the value of a sample in a CvrStgFile">SampleValue</a> object should be deleted by the callser. <p>Implements <a class="el" href="classSampleValue.html#eca3fc1fd34c09d2244706b010935c2c">SampleValue</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="d51e8f0375dbb30b66ff3f83b4665a08"></a><!-- doxytag: member="JpegSampleValue::DctCoeff" ref="d51e8f0375dbb30b66ff3f83b4665a08" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="common_8h.html#75e993730bc2fad258c1f7becd24fec9">SWORD16</a> <a class="el" href="classJpegSampleValue.html#d51e8f0375dbb30b66ff3f83b4665a08">JpegSampleValue::DctCoeff</a><code> [private]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="JpegSampleValue_8h_source.html">JpegSampleValue.h</a><li><a class="el" href="JpegSampleValue_8cc.html">JpegSampleValue.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Aug 17 10:58:32 2009 for steghide 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>