annotate code-docs/FFT_8h_source.html @ 3:5c2683745b33 vamp-plugin-sdk-v2.4

Update for 2.4
author Chris Cannam
date Fri, 13 Jul 2012 13:30:27 +0100
parents
children 27319718b1f8
rev   line source
Chris@3 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Chris@3 2 <html xmlns="http://www.w3.org/1999/xhtml">
Chris@3 3 <head>
Chris@3 4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
Chris@3 5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
Chris@3 6 <title>VampPluginSDK: FFT.h Source File</title>
Chris@3 7
Chris@3 8 <link href="tabs.css" rel="stylesheet" type="text/css"/>
Chris@3 9 <link href="doxygen.css" rel="stylesheet" type="text/css" />
Chris@3 10 <link href="navtree.css" rel="stylesheet" type="text/css"/>
Chris@3 11 <script type="text/javascript" src="jquery.js"></script>
Chris@3 12 <script type="text/javascript" src="resize.js"></script>
Chris@3 13 <script type="text/javascript" src="navtree.js"></script>
Chris@3 14 <script type="text/javascript">
Chris@3 15 $(document).ready(initResizable);
Chris@3 16 </script>
Chris@3 17
Chris@3 18
Chris@3 19 </head>
Chris@3 20 <body>
Chris@3 21 <div id="top"><!-- do not remove this div! -->
Chris@3 22
Chris@3 23
Chris@3 24 <div id="titlearea">
Chris@3 25 <table cellspacing="0" cellpadding="0">
Chris@3 26 <tbody>
Chris@3 27 <tr style="height: 56px;">
Chris@3 28
Chris@3 29
Chris@3 30 <td style="padding-left: 0.5em;">
Chris@3 31 <div id="projectname">VampPluginSDK
Chris@3 32 &#160;<span id="projectnumber">2.4</span>
Chris@3 33 </div>
Chris@3 34
Chris@3 35 </td>
Chris@3 36
Chris@3 37
Chris@3 38
Chris@3 39 </tr>
Chris@3 40 </tbody>
Chris@3 41 </table>
Chris@3 42 </div>
Chris@3 43
Chris@3 44 <!-- Generated by Doxygen 1.8.0 -->
Chris@3 45 <div id="navrow1" class="tabs">
Chris@3 46 <ul class="tablist">
Chris@3 47 <li><a href="index.html"><span>Main&#160;Page</span></a></li>
Chris@3 48 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
Chris@3 49 <li><a href="annotated.html"><span>Classes</span></a></li>
Chris@3 50 <li class="current"><a href="files.html"><span>Files</span></a></li>
Chris@3 51 <li><a href="dirs.html"><span>Directories</span></a></li>
Chris@3 52 </ul>
Chris@3 53 </div>
Chris@3 54 <div id="navrow2" class="tabs2">
Chris@3 55 <ul class="tablist">
Chris@3 56 <li><a href="files.html"><span>File&#160;List</span></a></li>
Chris@3 57 <li><a href="globals.html"><span>File&#160;Members</span></a></li>
Chris@3 58 </ul>
Chris@3 59 </div>
Chris@3 60 </div>
Chris@3 61 <div id="side-nav" class="ui-resizable side-nav-resizable">
Chris@3 62 <div id="nav-tree">
Chris@3 63 <div id="nav-tree-contents">
Chris@3 64 </div>
Chris@3 65 </div>
Chris@3 66 <div id="splitbar" style="-moz-user-select:none;"
Chris@3 67 class="ui-resizable-handle">
Chris@3 68 </div>
Chris@3 69 </div>
Chris@3 70 <script type="text/javascript">
Chris@3 71 initNavTree('FFT_8h.html','');
Chris@3 72 </script>
Chris@3 73 <div id="doc-content">
Chris@3 74 <div class="header">
Chris@3 75 <div class="headertitle">
Chris@3 76 <div class="title">FFT.h</div> </div>
Chris@3 77 </div><!--header-->
Chris@3 78 <div class="contents">
Chris@3 79 <a href="FFT_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */</span>
Chris@3 80 <a name="l00002"></a>00002
Chris@3 81 <a name="l00003"></a>00003 <span class="comment">/*</span>
Chris@3 82 <a name="l00004"></a>00004 <span class="comment"> Vamp</span>
Chris@3 83 <a name="l00005"></a>00005 <span class="comment"></span>
Chris@3 84 <a name="l00006"></a>00006 <span class="comment"> An API for audio analysis and feature extraction plugins.</span>
Chris@3 85 <a name="l00007"></a>00007 <span class="comment"></span>
Chris@3 86 <a name="l00008"></a>00008 <span class="comment"> Centre for Digital Music, Queen Mary, University of London.</span>
Chris@3 87 <a name="l00009"></a>00009 <span class="comment"> Copyright 2006-2012 Chris Cannam and QMUL.</span>
Chris@3 88 <a name="l00010"></a>00010 <span class="comment"> </span>
Chris@3 89 <a name="l00011"></a>00011 <span class="comment"> Permission is hereby granted, free of charge, to any person</span>
Chris@3 90 <a name="l00012"></a>00012 <span class="comment"> obtaining a copy of this software and associated documentation</span>
Chris@3 91 <a name="l00013"></a>00013 <span class="comment"> files (the &quot;Software&quot;), to deal in the Software without</span>
Chris@3 92 <a name="l00014"></a>00014 <span class="comment"> restriction, including without limitation the rights to use, copy,</span>
Chris@3 93 <a name="l00015"></a>00015 <span class="comment"> modify, merge, publish, distribute, sublicense, and/or sell copies</span>
Chris@3 94 <a name="l00016"></a>00016 <span class="comment"> of the Software, and to permit persons to whom the Software is</span>
Chris@3 95 <a name="l00017"></a>00017 <span class="comment"> furnished to do so, subject to the following conditions:</span>
Chris@3 96 <a name="l00018"></a>00018 <span class="comment"></span>
Chris@3 97 <a name="l00019"></a>00019 <span class="comment"> The above copyright notice and this permission notice shall be</span>
Chris@3 98 <a name="l00020"></a>00020 <span class="comment"> included in all copies or substantial portions of the Software.</span>
Chris@3 99 <a name="l00021"></a>00021 <span class="comment"></span>
Chris@3 100 <a name="l00022"></a>00022 <span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,</span>
Chris@3 101 <a name="l00023"></a>00023 <span class="comment"> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
Chris@3 102 <a name="l00024"></a>00024 <span class="comment"> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND</span>
Chris@3 103 <a name="l00025"></a>00025 <span class="comment"> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR</span>
Chris@3 104 <a name="l00026"></a>00026 <span class="comment"> ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF</span>
Chris@3 105 <a name="l00027"></a>00027 <span class="comment"> CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION</span>
Chris@3 106 <a name="l00028"></a>00028 <span class="comment"> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span>
Chris@3 107 <a name="l00029"></a>00029 <span class="comment"></span>
Chris@3 108 <a name="l00030"></a>00030 <span class="comment"> Except as contained in this notice, the names of the Centre for</span>
Chris@3 109 <a name="l00031"></a>00031 <span class="comment"> Digital Music; Queen Mary, University of London; and Chris Cannam</span>
Chris@3 110 <a name="l00032"></a>00032 <span class="comment"> shall not be used in advertising or otherwise to promote the sale,</span>
Chris@3 111 <a name="l00033"></a>00033 <span class="comment"> use or other dealings in this Software without prior written</span>
Chris@3 112 <a name="l00034"></a>00034 <span class="comment"> authorization.</span>
Chris@3 113 <a name="l00035"></a>00035 <span class="comment">*/</span>
Chris@3 114 <a name="l00036"></a>00036
Chris@3 115 <a name="l00037"></a>00037 <span class="preprocessor">#ifndef _VAMP_FFT_H_</span>
Chris@3 116 <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define _VAMP_FFT_H_</span>
Chris@3 117 <a name="l00039"></a>00039 <span class="preprocessor"></span>
Chris@3 118 <a name="l00040"></a>00040 <span class="preprocessor">#include &quot;<a class="code" href="plugguard_8h.html">plugguard.h</a>&quot;</span>
Chris@3 119 <a name="l00041"></a>00041 <a class="code" href="plugguard_8h.html#a1a2724ea453971288d3218e4eab3072c">_VAMP_SDK_PLUGSPACE_BEGIN</a>(FFT.h)
Chris@3 120 <a name="l00042"></a>00042
Chris@3 121 <a name="l00043"></a><a class="code" href="namespaceVamp.html">00043</a> namespace Vamp {
Chris@3 122 <a name="l00044"></a>00044
Chris@3 123 <a name="l00058"></a><a class="code" href="classVamp_1_1FFT.html">00058</a> <span class="keyword">class </span><a class="code" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a>
Chris@3 124 <a name="l00059"></a>00059 {
Chris@3 125 <a name="l00060"></a>00060 <span class="keyword">public</span>:
Chris@3 126 <a name="l00072"></a>00072 <span class="keyword">static</span> <span class="keywordtype">void</span> forward(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n,
Chris@3 127 <a name="l00073"></a>00073 <span class="keyword">const</span> <span class="keywordtype">double</span> *ri, <span class="keyword">const</span> <span class="keywordtype">double</span> *ii,
Chris@3 128 <a name="l00074"></a>00074 <span class="keywordtype">double</span> *ro, <span class="keywordtype">double</span> *io);
Chris@3 129 <a name="l00075"></a>00075
Chris@3 130 <a name="l00089"></a>00089 <span class="keyword">static</span> <span class="keywordtype">void</span> inverse(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n,
Chris@3 131 <a name="l00090"></a>00090 <span class="keyword">const</span> <span class="keywordtype">double</span> *ri, <span class="keyword">const</span> <span class="keywordtype">double</span> *ii,
Chris@3 132 <a name="l00091"></a>00091 <span class="keywordtype">double</span> *ro, <span class="keywordtype">double</span> *io);
Chris@3 133 <a name="l00092"></a>00092 };
Chris@3 134 <a name="l00093"></a>00093
Chris@3 135 <a name="l00094"></a>00094 }
Chris@3 136 <a name="l00095"></a>00095
Chris@3 137 <a name="l00096"></a>00096 <a class="code" href="plugguard_8h.html#ac879bb1077ecc6132ea3581ef9033753">_VAMP_SDK_PLUGSPACE_END</a>(FFT.h)
Chris@3 138 <a name="l00097"></a>00097
Chris@3 139 <a name="l00098"></a>00098 <span class="preprocessor">#endif</span>
Chris@3 140 </pre></div></div><!-- contents -->
Chris@3 141 </div>
Chris@3 142 <div id="nav-path" class="navpath">
Chris@3 143 <ul>
Chris@3 144 <li class="navelem"><a class="el" href="FFT_8h.html">FFT.h</a> </li>
Chris@3 145
Chris@3 146 <li class="footer">Generated on Fri Jul 13 2012 13:28:48 for VampPluginSDK by
Chris@3 147 <a href="http://www.doxygen.org/index.html">
Chris@3 148 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
Chris@3 149 </ul>
Chris@3 150 </div>
Chris@3 151
Chris@3 152
Chris@3 153 </body>
Chris@3 154 </html>