Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 7392c77c84ff25edfeb07995a77d5148 > files > 265

steghide-0.5.1-11mdv2010.0.i586.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>steghide: WavFile.h Source File</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&nbsp;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 class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>WavFile.h</h1><a href="WavFile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * steghide 0.5.1 - a steganography program</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 1999-2003 Stefan Hetzl &lt;shetzl@chello.at&gt;</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * This program is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU General Public License</span>
<a name="l00007"></a>00007 <span class="comment"> * as published by the Free Software Foundation; either version 2</span>
<a name="l00008"></a>00008 <span class="comment"> * of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef SH_WAVFILE_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define SH_WAVFILE_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="CvrStgFile_8h.html">CvrStgFile.h</a>"</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">class </span><a class="code" href="classBinaryIO.html" title="provides methods for file i/o as needed by the rest of steghide">BinaryIO</a> ;
<a name="l00029"></a>00029 <span class="keyword">class </span><a class="code" href="classWavChunkHeader.html">WavChunkHeader</a> ;
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="classWavChunkUnused.html">WavChunkUnused</a> ;
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classWavFormatChunk.html">WavFormatChunk</a> ;
<a name="l00032"></a>00032 
<a name="l00033"></a><a class="code" href="classWavFile.html">00033</a> <span class="keyword">class </span><a class="code" href="classWavFile.html">WavFile</a> : <span class="keyword">public</span> <a class="code" href="classCvrStgFile.html" title="a cover-/stego-file">CvrStgFile</a> {
<a name="l00034"></a>00034         <span class="keyword">public</span>:
<a name="l00035"></a>00035         <a class="code" href="classWavFile.html#4f09ff93df4b8a7ed45262fe11a21b70">WavFile</a> (<span class="keywordtype">void</span>) ;
<a name="l00036"></a>00036         <a class="code" href="classWavFile.html#4f09ff93df4b8a7ed45262fe11a21b70">WavFile</a> (<a class="code" href="classBinaryIO.html" title="provides methods for file i/o as needed by the rest of steghide">BinaryIO</a> *io) ;
<a name="l00037"></a>00037         <a class="code" href="classWavFile.html#c00b8480f3cbbba3a941d7e7291548bc">~WavFile</a> (<span class="keywordtype">void</span>) ;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039         <span class="keywordtype">void</span> <a class="code" href="classWavFile.html#41b55845afb5f0c52da295d5e27622cd">read</a> (<a class="code" href="classBinaryIO.html" title="provides methods for file i/o as needed by the rest of steghide">BinaryIO</a> *io) ;
<a name="l00040"></a>00040         <span class="keywordtype">void</span> <a class="code" href="classWavFile.html#db8f892bbfcff259974674b9ba5d1dae">write</a> (<span class="keywordtype">void</span>) ;
<a name="l00041"></a>00041 
<a name="l00042"></a>00042         std::list&lt;CvrStgFile::Property&gt; <a class="code" href="classWavFile.html#ea8c584ddb7953f0e42bfdaf60e9aba6">getProperties</a> (<span class="keywordtype">void</span>) <span class="keyword">const</span> ;
<a name="l00043"></a>00043 
<a name="l00044"></a>00044         <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classWavFile.html#51f113e164b7c57a6576b1602eef4d0e">getNumSamples</a> (<span class="keywordtype">void</span>) <span class="keyword">const</span> ;
<a name="l00045"></a>00045         <span class="keywordtype">void</span> <a class="code" href="classWavFile.html#e73ef41e61806392a53385065ec7e444">replaceSample</a> (<span class="keyword">const</span> <a class="code" href="common_8h.html#048401d1365616f5eef97e251096a02d">SamplePos</a> pos, <span class="keyword">const</span> <a class="code" href="classSampleValue.html" title="the value of a sample in a CvrStgFile">SampleValue</a>* s) ;
<a name="l00046"></a>00046         <a class="code" href="classSampleValue.html" title="the value of a sample in a CvrStgFile">SampleValue</a>* <a class="code" href="classWavFile.html#b7509f60788bf3748e851de80bacb367">getSampleValue</a> (<a class="code" href="common_8h.html#048401d1365616f5eef97e251096a02d">SamplePos</a> pos) <span class="keyword">const</span> ;
<a name="l00047"></a>00047 
<a name="l00048"></a>00048         std::vector&lt;SampleValueAdjacencyList*&gt; <a class="code" href="classWavFile.html#a13bf9171c8edbd62057d066e66f4b22">calcSVAdjacencyLists</a> (<span class="keyword">const</span> std::vector&lt;SampleValue*&gt;&amp; svs) <span class="keyword">const</span> ;
<a name="l00049"></a>00049         std::vector&lt;MatchingAlgorithm*&gt; <a class="code" href="classWavFile.html#fb857679cfc4a9d0473e89ca9c0bbcf5">getMatchingAlgorithms</a> (<a class="code" href="classGraph.html" title="a graph constructed from a cover file and a message to be embedded">Graph</a>* g, <a class="code" href="classMatching.html" title="represent a matching on a graph">Matching</a>* m) <span class="keyword">const</span> ;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classWavFile.html#0cf329fed7a5a160cd5ce2a1f2d0da1e">getBitsPerSample</a> (<span class="keywordtype">void</span>) <span class="keyword">const</span> ;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053         <span class="keyword">private</span>:
<a name="l00054"></a><a class="code" href="classWavFile.html#981de0d7046861e4cfe650cd0e34c952">00054</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">signed</span> <span class="keywordtype">short</span>       <a class="code" href="classWavFile.html#981de0d7046861e4cfe650cd0e34c952">FormatPCM</a> = 1 ;
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="classWavFile.html#1198a886ea0234d04f3a22e2f54f0b38">00056</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classWavFile.html#1198a886ea0234d04f3a22e2f54f0b38">SamplesPerVertex</a> = 2 ;
<a name="l00057"></a><a class="code" href="classWavFile.html#143c7bae81fbb65c2b50ca00d704c35b">00057</a>         <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="common_8h.html#6b8592979b076e06aa233e3f586ac999">UWORD32</a> <a class="code" href="classWavFile.html#143c7bae81fbb65c2b50ca00d704c35b">Radius_small</a> = 1 ;
<a name="l00058"></a><a class="code" href="classWavFile.html#f90ff87eae3bd66545b9e40fdf90cd3b">00058</a>         <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="common_8h.html#6b8592979b076e06aa233e3f586ac999">UWORD32</a> <a class="code" href="classWavFile.html#f90ff87eae3bd66545b9e40fdf90cd3b">Radius_large</a> = 20 ;
<a name="l00059"></a><a class="code" href="classWavFile.html#053a1d740fae21a78233b911e81f2a08">00059</a>         <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="common_8h.html#cf820202f81f25eb00734eac0d7aed2d">EmbValue</a> <a class="code" href="classWavFile.html#053a1d740fae21a78233b911e81f2a08">EmbValueModulus</a> = 2 ;
<a name="l00060"></a>00060 
<a name="l00061"></a><a class="code" href="classWavFile.html#eddda3fdc091e6aed858ae1bec29fbaa">00061</a>         <a class="code" href="classWavChunkHeader.html">WavChunkHeader</a> *<a class="code" href="classWavFile.html#eddda3fdc091e6aed858ae1bec29fbaa">riffchhdr</a> ;
<a name="l00062"></a><a class="code" href="classWavFile.html#ac1c03706ab245aad2fd9c8b9afa34db">00062</a>         <span class="keywordtype">char</span> <a class="code" href="classWavFile.html#ac1c03706ab245aad2fd9c8b9afa34db">id_wave</a>[4] ;
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="classWavFile.html#b75eca4c470037d5b4fa44140d296f4d">00064</a>         <a class="code" href="classWavFormatChunk.html">WavFormatChunk</a> *<a class="code" href="classWavFile.html#b75eca4c470037d5b4fa44140d296f4d">FormatChunk</a> ;
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="classWavFile.html#51949e479c36ef4cf7785147c8dc9643">00066</a>         <a class="code" href="classWavChunkHeader.html">WavChunkHeader</a> *<a class="code" href="classWavFile.html#51949e479c36ef4cf7785147c8dc9643">datachhdr</a> ;
<a name="l00068"></a><a class="code" href="classWavFile.html#c4b6c6e0c7e657aa59f7a70d6cf48754">00068</a>         std::vector&lt;unsigned char&gt; <a class="code" href="classWavFile.html#c4b6c6e0c7e657aa59f7a70d6cf48754" title="this std::vector contains the wav data if BitsPerSample &amp;lt;= 8">data_small</a> ;
<a name="l00070"></a><a class="code" href="classWavFile.html#05bd25e0e5deaf6e5ce5fdfe73d1366f">00070</a>         std::vector&lt;int&gt; <a class="code" href="classWavFile.html#05bd25e0e5deaf6e5ce5fdfe73d1366f" title="this std::vector contains the wav data if BitsPerSample &amp;gt;8">data_large</a> ;   <span class="comment">// it is assumed that an int can hold 32 bits</span>
<a name="l00071"></a>00071         
<a name="l00072"></a><a class="code" href="classWavFile.html#fa1d955f470a2c922586222ae6711c19">00072</a>         std::vector&lt;WavChunkUnused*&gt; <a class="code" href="classWavFile.html#fa1d955f470a2c922586222ae6711c19">UnusedBeforeData</a> ;
<a name="l00073"></a><a class="code" href="classWavFile.html#8cfacb5b04047f05beb95dc48381b85f">00073</a>         std::vector&lt;BYTE&gt; <a class="code" href="classWavFile.html#8cfacb5b04047f05beb95dc48381b85f">UnusedAfterData</a> ;
<a name="l00074"></a>00074 
<a name="l00075"></a>00075         <span class="keywordtype">void</span> <a class="code" href="classWavFile.html#c3ffd220aa9425460325a5072f99f4df">readheaders</a> (<span class="keywordtype">void</span>) ;
<a name="l00076"></a>00076         <span class="keywordtype">void</span> <a class="code" href="classWavFile.html#8e23afea8fd01cde0e6224e5b49e2ac2">readdata</a> (<span class="keywordtype">void</span>) ;
<a name="l00077"></a>00077         <span class="keywordtype">void</span> <a class="code" href="classWavFile.html#37548fd60f6fc1796e058c5a6230a7b6">writeheaders</a> (<span class="keywordtype">void</span>) ;
<a name="l00078"></a>00078         <span class="keywordtype">void</span> <a class="code" href="classWavFile.html#4b1c25a9b1c457c2969e31141ee5ba1e">writedata</a> (<span class="keywordtype">void</span>) ;
<a name="l00079"></a>00079         <span class="keywordtype">void</span> <a class="code" href="classWavFile.html#b2b923e2fc8aed4c15735bd921ad44f4">calcpos</a> (<a class="code" href="common_8h.html#048401d1365616f5eef97e251096a02d">SamplePos</a> n, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *bytepos, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> *firstbitpos) <span class="keyword">const</span> ;
<a name="l00084"></a>00084         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classWavFile.html#53d9796319254c72b6bf3da137047cb4">getFirstBitPosinSample</a> (<span class="keywordtype">void</span>) ;
<a name="l00085"></a>00085         <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="classWavFile.html#a1bb21cd1618b47c169c56474fb44132">getBytesPerSample</a> (<span class="keywordtype">void</span>) ;
<a name="l00086"></a>00086 } ;
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 <span class="preprocessor">#endif // ndef SH_WAVFILE_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Aug 17 10:58:29 2009 for steghide by&nbsp;
<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>