comparison code-doc/PluginChannelAdapter_8h-source.html @ 21:cc0be37dc9d3 website

* Updates for 2.0
author cannam
date Tue, 09 Dec 2008 11:02:57 +0000
parents 351c4ebce5f9
children 0976232e353b
comparison
equal deleted inserted replaced
20:34e758355884 21:cc0be37dc9d3
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3 <title>VampPluginSDK: PluginChannelAdapter.h Source File</title> 3 <title>VampPluginSDK: PluginChannelAdapter.h Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> 4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 <link href="tabs.css" rel="stylesheet" type="text/css"> 5 <link href="tabs.css" rel="stylesheet" type="text/css">
6 </head><body> 6 </head><body>
7 <!-- Generated by Doxygen 1.5.5 --> 7 <!-- Generated by Doxygen 1.5.6 -->
8 <div class="navigation" id="top"> 8 <div class="navigation" id="top">
9 <div class="tabs"> 9 <div class="tabs">
10 <ul> 10 <ul>
11 <li><a href="main.html"><span>Main&nbsp;Page</span></a></li> 11 <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
12 <li><a href="namespaces.html"><span>Namespaces</span></a></li> 12 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13 <li><a href="annotated.html"><span>Classes</span></a></li> 13 <li><a href="annotated.html"><span>Classes</span></a></li>
14 <li class="current"><a href="files.html"><span>Files</span></a></li> 14 <li class="current"><a href="files.html"><span>Files</span></a></li>
15 <li><a href="dirs.html"><span>Directories</span></a></li> 15 <li><a href="dirs.html"><span>Directories</span></a></li>
16 </ul> 16 </ul>
17 </div> 17 </div>
18 <div class="navpath"><a class="el" href="dir_5b77fce4b90561041d958141b45c7c55.html">vamp-sdk</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_fa454903fff8cd477733ebe28a3468c0.html">hostext</a> 18 <div class="navpath"><a class="el" href="dir_4571ebff077265f6d30f5427df02fcd6.html">vamp-hostsdk</a>
19 </div> 19 </div>
20 </div> 20 </div>
21 </div> 21 <div class="contents">
22 <h1>PluginChannelAdapter.h</h1><a href="PluginChannelAdapter_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> 22 <h1>PluginChannelAdapter.h</h1><a href="PluginChannelAdapter_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>
23 <a name="l00002"></a>00002 23 <a name="l00002"></a>00002
24 <a name="l00003"></a>00003 <span class="comment">/*</span> 24 <a name="l00003"></a>00003 <span class="comment">/*</span>
25 <a name="l00004"></a>00004 <span class="comment"> Vamp</span> 25 <a name="l00004"></a>00004 <span class="comment"> Vamp</span>
26 <a name="l00005"></a>00005 <span class="comment"></span> 26 <a name="l00005"></a>00005 <span class="comment"></span>
56 <a name="l00035"></a>00035 <span class="comment">*/</span> 56 <a name="l00035"></a>00035 <span class="comment">*/</span>
57 <a name="l00036"></a>00036 57 <a name="l00036"></a>00036
58 <a name="l00037"></a>00037 <span class="preprocessor">#ifndef _VAMP_PLUGIN_CHANNEL_ADAPTER_H_</span> 58 <a name="l00037"></a>00037 <span class="preprocessor">#ifndef _VAMP_PLUGIN_CHANNEL_ADAPTER_H_</span>
59 <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define _VAMP_PLUGIN_CHANNEL_ADAPTER_H_</span> 59 <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define _VAMP_PLUGIN_CHANNEL_ADAPTER_H_</span>
60 <a name="l00039"></a>00039 <span class="preprocessor"></span> 60 <a name="l00039"></a>00039 <span class="preprocessor"></span>
61 <a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="PluginWrapper_8h.html">PluginWrapper.h</a>"</span> 61 <a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="hostguard_8h.html">hostguard.h</a>"</span>
62 <a name="l00041"></a>00041 62 <a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="PluginWrapper_8h.html">PluginWrapper.h</a>"</span>
63 <a name="l00042"></a>00042 <span class="keyword">namespace </span>Vamp { 63 <a name="l00042"></a>00042
64 <a name="l00043"></a>00043 64 <a name="l00043"></a>00043 <a class="code" href="hostguard_8h.html#ef42eae5f1b0b897d8dac58cd54afbcd">_VAMP_SDK_HOSTSPACE_BEGIN</a>(PluginChannelAdapter.h)
65 <a name="l00044"></a>00044 <span class="keyword">namespace </span>HostExt { 65 <a name="l00044"></a>00044
66 <a name="l00045"></a>00045 66 <a name="l00045"></a>00045 namespace Vamp {
67 <a name="l00109"></a><a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html">00109</a> <span class="keyword">class </span><a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html" title="PluginChannelAdapter is a Vamp plugin adapter that implements a policy for management...">PluginChannelAdapter</a> : <span class="keyword">public</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginWrapper.html" title="PluginWrapper is a simple base class for adapter plugins.">PluginWrapper</a> 67 <a name="l00046"></a>00046
68 <a name="l00110"></a>00110 { 68 <a name="l00047"></a>00047 <span class="keyword">namespace </span>HostExt {
69 <a name="l00111"></a>00111 <span class="keyword">public</span>: 69 <a name="l00048"></a>00048
70 <a name="l00112"></a>00112 <a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html#2cda2b672708264f9a33c43bad3acdd8">PluginChannelAdapter</a>(<a class="code" href="classVamp_1_1Plugin.html" title="Vamp::Plugin is a base class for plugin instance classes that provide feature extraction...">Plugin</a> *plugin); <span class="comment">// I take ownership of plugin</span> 70 <a name="l00112"></a><a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html">00112</a> <span class="keyword">class </span><a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html" title="PluginChannelAdapter is a Vamp plugin adapter that implements a policy for management...">PluginChannelAdapter</a> : <span class="keyword">public</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginWrapper.html" title="PluginWrapper is a simple base class for adapter plugins.">PluginWrapper</a>
71 <a name="l00113"></a>00113 <span class="keyword">virtual</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html#7bd79ac5febc8d3c499e7339476c07b4">~PluginChannelAdapter</a>(); 71 <a name="l00113"></a>00113 {
72 <a name="l00114"></a>00114 72 <a name="l00114"></a>00114 <span class="keyword">public</span>:
73 <a name="l00115"></a>00115 <span class="keywordtype">bool</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html#de0473c8fc54636431967cbf41649c1c" title="Initialise a plugin to prepare it for use with the given number of input channels...">initialise</a>(<span class="keywordtype">size_t</span> channels, <span class="keywordtype">size_t</span> stepSize, <span class="keywordtype">size_t</span> blockSize); 73 <a name="l00120"></a>00120 <a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html" title="PluginChannelAdapter is a Vamp plugin adapter that implements a policy for management...">PluginChannelAdapter</a>(<a class="code" href="classVamp_1_1Plugin.html" title="Vamp::Plugin is a base class for plugin instance classes that provide feature extraction...">Plugin</a> *plugin);
74 <a name="l00116"></a>00116 74 <a name="l00121"></a>00121 <span class="keyword">virtual</span> ~<a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html" title="PluginChannelAdapter is a Vamp plugin adapter that implements a policy for management...">PluginChannelAdapter</a>();
75 <a name="l00117"></a>00117 <a class="code" href="classVamp_1_1Plugin.html#448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a> <a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html#294e663b4d9ec885791faa1b440571ed" title="Process a single block of input data.">process</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> *<span class="keyword">const</span> *inputBuffers, <a class="code" href="structVamp_1_1RealTime.html" title="RealTime represents time values to nanosecond precision with accurate arithmetic...">RealTime</a> timestamp); 75 <a name="l00122"></a>00122
76 <a name="l00118"></a>00118 76 <a name="l00123"></a>00123 <span class="keywordtype">bool</span> initialise(<span class="keywordtype">size_t</span> channels, <span class="keywordtype">size_t</span> stepSize, <span class="keywordtype">size_t</span> blockSize);
77 <a name="l00119"></a>00119 <span class="keyword">protected</span>: 77 <a name="l00124"></a>00124
78 <a name="l00120"></a><a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html#e3a74a2e6c4cd33dce9f4248e73c6701">00120</a> <span class="keyword">class </span><a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter_1_1Impl.html">Impl</a>; 78 <a name="l00125"></a>00125 FeatureSet process(<span class="keyword">const</span> <span class="keywordtype">float</span> *<span class="keyword">const</span> *inputBuffers, <a class="code" href="structVamp_1_1RealTime.html" title="RealTime represents time values to nanosecond precision with accurate arithmetic...">RealTime</a> timestamp);
79 <a name="l00121"></a>00121 <a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter_1_1Impl.html">Impl</a> *<a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html#e3a74a2e6c4cd33dce9f4248e73c6701">m_impl</a>; 79 <a name="l00126"></a>00126
80 <a name="l00122"></a>00122 }; 80 <a name="l00136"></a>00136 FeatureSet processInterleaved(<span class="keyword">const</span> <span class="keywordtype">float</span> *inputBuffer, <a class="code" href="structVamp_1_1RealTime.html" title="RealTime represents time values to nanosecond precision with accurate arithmetic...">RealTime</a> timestamp);
81 <a name="l00123"></a>00123 81 <a name="l00137"></a>00137
82 <a name="l00124"></a>00124 } 82 <a name="l00138"></a>00138 <span class="keyword">protected</span>:
83 <a name="l00125"></a>00125 83 <a name="l00139"></a><a class="code" href="classVamp_1_1HostExt_1_1PluginChannelAdapter.html#e3a74a2e6c4cd33dce9f4248e73c6701">00139</a> <span class="keyword">class </span>Impl;
84 <a name="l00126"></a>00126 } 84 <a name="l00140"></a>00140 Impl *m_impl;
85 <a name="l00127"></a>00127 85 <a name="l00141"></a>00141 };
86 <a name="l00128"></a>00128 <span class="preprocessor">#endif</span> 86 <a name="l00142"></a>00142
87 <a name="l00143"></a>00143 }
88 <a name="l00144"></a>00144
89 <a name="l00145"></a>00145 }
90 <a name="l00146"></a>00146
91 <a name="l00147"></a>00147 <a class="code" href="hostguard_8h.html#0e6efdc2909bdb0cfab70e087d91b171">_VAMP_SDK_HOSTSPACE_END</a>(PluginChannelAdapter.h)
92 <a name="l00148"></a>00148
93 <a name="l00149"></a>00149 <span class="preprocessor">#endif</span>
87 </pre></div></div> 94 </pre></div></div>
88 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 9 11:36:06 2008 for VampPluginSDK by&nbsp; 95 <hr size="1"><address style="text-align: right;"><small>Generated on Mon Dec 8 14:37:18 2008 for VampPluginSDK by&nbsp;
89 <a href="http://www.doxygen.org/index.html"> 96 <a href="http://www.doxygen.org/index.html">
90 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> 97 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
91 </body> 98 </body>
92 </html> 99 </html>