<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.5"/> <title>steghide: WavPCMSampleValue.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">steghide  <span id="projectnumber">0.5.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">WavPCMSampleValue.h</div> </div> </div><!--header--> <div class="contents"> <a href="WavPCMSampleValue_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * steghide 0.5.1 - a steganography program</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at></span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * This program is free software; you can redistribute it and/or</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * modify it under the terms of the GNU General Public License</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * as published by the Free Software Foundation; either version 2</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * of the License, or (at your option) any later version.</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * GNU General Public License for more details.</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> *</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> */</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef SH_WAVSAMPLE_H</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"></span><span class="preprocessor">#define SH_WAVSAMPLE_H</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <functional></span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="SampleValue_8h.html">SampleValue.h</a>"</span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">class </span><a class="code" href="classCvrStgFile.html">CvrStgFile</a> ;</div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> <div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classWavPCMSampleValue.html"> 30</a></span> <span class="keyword">class </span><a class="code" href="classWavPCMSampleValue.html">WavPCMSampleValue</a> : <span class="keyword">public</span> <a class="code" href="classSampleValue.html">SampleValue</a> {</div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">public</span>:</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classWavPCMSampleValue.html#aae81b19d622123ba6d70478d5004ff3a">WavPCMSampleValue</a> (<span class="keywordtype">int</span> v) ;</div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="classSampleValue.html">SampleValue</a>* <a class="code" href="classWavPCMSampleValue.html#a260934da89ac7e20f54feae081576d80">getNearestTargetSampleValue</a> (<a class="code" href="common_8h.html#acf820202f81f25eb00734eac0d7aed2d">EmbValue</a> t) <span class="keyword">const</span> ;</div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="common_8h.html#a6b8592979b076e06aa233e3f586ac999">UWORD32</a> <a class="code" href="classWavPCMSampleValue.html#ae7904bae064c50328d7c308aa9aa41e7">calcDistance</a> (<span class="keyword">const</span> <a class="code" href="classSampleValue.html">SampleValue</a> *s) <span class="keyword">const</span> ;</div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  std::string <a class="code" href="classWavPCMSampleValue.html#aca62237ff9ccafa1aeac856474023d38">getName</a> (<span class="keywordtype">void</span>) <span class="keyword">const</span> ;</div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> <div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classWavPCMSampleValue.html#a2679c00705ed728bf1df9747d7240514"> 38</a></span>  <span class="keywordtype">int</span> <a class="code" href="classWavPCMSampleValue.html#a2679c00705ed728bf1df9747d7240514">getValue</a> (<span class="keywordtype">void</span>)<span class="keyword"> const</span></div> <div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classWavPCMSampleValue.html#aae1057f324f86a73e644c4957aca4c0f"> 39</a></span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classWavPCMSampleValue.html#aae1057f324f86a73e644c4957aca4c0f">Value</a> ; } ;</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">private</span>:</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">int</span> <a class="code" href="classWavPCMSampleValue.html#aae1057f324f86a73e644c4957aca4c0f">Value</a> ;</div> <div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classWavPCMSampleValue.html#ae0ea5221a0a0fa15fa25a93a3bf23339"> 43</a></span>  <span class="keywordtype">int</span> <a class="code" href="classWavPCMSampleValue.html#ae0ea5221a0a0fa15fa25a93a3bf23339">MaxValue</a> ;</div> <div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classWavPCMSampleValue.html#a44106d42e52a3e8fa4f6243e2c9ec9e4"> 44</a></span>  <span class="keywordtype">int</span> <a class="code" href="classWavPCMSampleValue.html#a44106d42e52a3e8fa4f6243e2c9ec9e4">MinValue</a> ;</div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div> <div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classWavPCMSampleValue.html#a64c17455ef7771443deedd5e7bf656d8"> 46</a></span>  <a class="code" href="common_8h.html#acf820202f81f25eb00734eac0d7aed2d">EmbValue</a> <a class="code" href="classWavPCMSampleValue.html#a64c17455ef7771443deedd5e7bf656d8">calcEValue</a> (<span class="keywordtype">int</span> v)<span class="keyword"> const</span></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> (v & 1) ; }</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> } ;</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classWavPCMSmaller.html"> 50</a></span> <span class="keyword">class </span><a class="code" href="classWavPCMSmaller.html">WavPCMSmaller</a> : <span class="keyword">public</span> std::binary_function<WavPCMSampleValue*,WavPCMSampleValue*,bool> {</div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">public</span>:</div> <div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classWavPCMSmaller.html#a993ea6043355626967fc854f75effe13"> 52</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classWavPCMSmaller.html#a993ea6043355626967fc854f75effe13">operator() </a>(<span class="keyword">const</span> <a class="code" href="classWavPCMSampleValue.html">WavPCMSampleValue</a> *v, <span class="keyword">const</span> <a class="code" href="classWavPCMSampleValue.html">WavPCMSampleValue</a> *w) { <span class="keywordflow">return</span> v-><a class="code" href="classWavPCMSampleValue.html#a2679c00705ed728bf1df9747d7240514">getValue</a>() < w-><a class="code" href="classWavPCMSampleValue.html#a2679c00705ed728bf1df9747d7240514">getValue</a>() ; } ;</div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span> } ;</div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">#endif // ndef SH_WAVSAMPLE_H</span></div> <div class="ttc" id="classWavPCMSampleValue_html_ae7904bae064c50328d7c308aa9aa41e7"><div class="ttname"><a href="classWavPCMSampleValue.html#ae7904bae064c50328d7c308aa9aa41e7">WavPCMSampleValue::calcDistance</a></div><div class="ttdeci">UWORD32 calcDistance(const SampleValue *s) const </div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.cc:106</div></div> <div class="ttc" id="classWavPCMSampleValue_html_aca62237ff9ccafa1aeac856474023d38"><div class="ttname"><a href="classWavPCMSampleValue.html#aca62237ff9ccafa1aeac856474023d38">WavPCMSampleValue::getName</a></div><div class="ttdeci">std::string getName(void) const </div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.cc:117</div></div> <div class="ttc" id="classWavPCMSampleValue_html_ae0ea5221a0a0fa15fa25a93a3bf23339"><div class="ttname"><a href="classWavPCMSampleValue.html#ae0ea5221a0a0fa15fa25a93a3bf23339">WavPCMSampleValue::MaxValue</a></div><div class="ttdeci">int MaxValue</div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.h:43</div></div> <div class="ttc" id="classCvrStgFile_html"><div class="ttname"><a href="classCvrStgFile.html">CvrStgFile</a></div><div class="ttdoc">a cover-/stego-file </div><div class="ttdef"><b>Definition:</b> CvrStgFile.h:46</div></div> <div class="ttc" id="classWavPCMSampleValue_html_a2679c00705ed728bf1df9747d7240514"><div class="ttname"><a href="classWavPCMSampleValue.html#a2679c00705ed728bf1df9747d7240514">WavPCMSampleValue::getValue</a></div><div class="ttdeci">int getValue(void) const </div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.h:38</div></div> <div class="ttc" id="classSampleValue_html"><div class="ttname"><a href="classSampleValue.html">SampleValue</a></div><div class="ttdoc">the value of a sample in a CvrStgFile </div><div class="ttdef"><b>Definition:</b> SampleValue.h:61</div></div> <div class="ttc" id="classWavPCMSampleValue_html_a64c17455ef7771443deedd5e7bf656d8"><div class="ttname"><a href="classWavPCMSampleValue.html#a64c17455ef7771443deedd5e7bf656d8">WavPCMSampleValue::calcEValue</a></div><div class="ttdeci">EmbValue calcEValue(int v) const </div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.h:46</div></div> <div class="ttc" id="classWavPCMSampleValue_html_a260934da89ac7e20f54feae081576d80"><div class="ttname"><a href="classWavPCMSampleValue.html#a260934da89ac7e20f54feae081576d80">WavPCMSampleValue::getNearestTargetSampleValue</a></div><div class="ttdeci">SampleValue * getNearestTargetSampleValue(EmbValue t) const </div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.cc:71</div></div> <div class="ttc" id="classWavPCMSampleValue_html_aae1057f324f86a73e644c4957aca4c0f"><div class="ttname"><a href="classWavPCMSampleValue.html#aae1057f324f86a73e644c4957aca4c0f">WavPCMSampleValue::Value</a></div><div class="ttdeci">int Value</div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.h:39</div></div> <div class="ttc" id="common_8h_html_a6b8592979b076e06aa233e3f586ac999"><div class="ttname"><a href="common_8h.html#a6b8592979b076e06aa233e3f586ac999">UWORD32</a></div><div class="ttdeci">unsigned long UWORD32</div><div class="ttdef"><b>Definition:</b> common.h:45</div></div> <div class="ttc" id="classWavPCMSmaller_html"><div class="ttname"><a href="classWavPCMSmaller.html">WavPCMSmaller</a></div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.h:50</div></div> <div class="ttc" id="classWavPCMSmaller_html_a993ea6043355626967fc854f75effe13"><div class="ttname"><a href="classWavPCMSmaller.html#a993ea6043355626967fc854f75effe13">WavPCMSmaller::operator()</a></div><div class="ttdeci">bool operator()(const WavPCMSampleValue *v, const WavPCMSampleValue *w)</div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.h:52</div></div> <div class="ttc" id="classWavPCMSampleValue_html_aae81b19d622123ba6d70478d5004ff3a"><div class="ttname"><a href="classWavPCMSampleValue.html#aae81b19d622123ba6d70478d5004ff3a">WavPCMSampleValue::WavPCMSampleValue</a></div><div class="ttdeci">WavPCMSampleValue(int v)</div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.cc:28</div></div> <div class="ttc" id="SampleValue_8h_html"><div class="ttname"><a href="SampleValue_8h.html">SampleValue.h</a></div></div> <div class="ttc" id="common_8h_html_acf820202f81f25eb00734eac0d7aed2d"><div class="ttname"><a href="common_8h.html#acf820202f81f25eb00734eac0d7aed2d">EmbValue</a></div><div class="ttdeci">BYTE EmbValue</div><div class="ttdef"><b>Definition:</b> common.h:66</div></div> <div class="ttc" id="classWavPCMSampleValue_html"><div class="ttname"><a href="classWavPCMSampleValue.html">WavPCMSampleValue</a></div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.h:30</div></div> <div class="ttc" id="classWavPCMSampleValue_html_a44106d42e52a3e8fa4f6243e2c9ec9e4"><div class="ttname"><a href="classWavPCMSampleValue.html#a44106d42e52a3e8fa4f6243e2c9ec9e4">WavPCMSampleValue::MinValue</a></div><div class="ttdeci">int MinValue</div><div class="ttdef"><b>Definition:</b> WavPCMSampleValue.h:44</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Oct 18 2013 17:59:36 for steghide by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>