comparison transform/FeatureExtractionPluginTransform.h @ 66:7afcfe666910

* Modify to use Vamp SDK for proper feature extraction plugins. Requires that the vamp-plugin-sdk directory tree be present below plugin/ (it's separate in Subversion).
author Chris Cannam
date Fri, 31 Mar 2006 15:56:35 +0000
parents 4d59dc469b0f
children 8e8c2981a189
comparison
equal deleted inserted replaced
65:e1aad27029e3 66:7afcfe666910
15 15
16 #ifndef _FEATURE_EXTRACTION_PLUGIN_TRANSFORM_H_ 16 #ifndef _FEATURE_EXTRACTION_PLUGIN_TRANSFORM_H_
17 #define _FEATURE_EXTRACTION_PLUGIN_TRANSFORM_H_ 17 #define _FEATURE_EXTRACTION_PLUGIN_TRANSFORM_H_
18 18
19 #include "Transform.h" 19 #include "Transform.h"
20 #include "FeatureExtractionPlugin.h" 20
21 #include "vamp-sdk/Plugin.h"
21 22
22 class DenseTimeValueModel; 23 class DenseTimeValueModel;
23 24
24 class FeatureExtractionPluginTransform : public Transform 25 class FeatureExtractionPluginTransform : public Transform
25 { 26 {
32 virtual ~FeatureExtractionPluginTransform(); 33 virtual ~FeatureExtractionPluginTransform();
33 34
34 protected: 35 protected:
35 virtual void run(); 36 virtual void run();
36 37
37 FeatureExtractionPlugin *m_plugin; 38 Vamp::Plugin *m_plugin;
38 int m_channel; 39 int m_channel;
39 FeatureExtractionPlugin::OutputDescriptor *m_descriptor; 40 Vamp::Plugin::OutputDescriptor *m_descriptor;
40 int m_outputFeatureNo; 41 int m_outputFeatureNo;
41 42
42 void addFeature(size_t blockFrame, 43 void addFeature(size_t blockFrame,
43 const FeatureExtractionPlugin::Feature &feature); 44 const Vamp::Plugin::Feature &feature);
44 45
45 void setCompletion(int); 46 void setCompletion(int);
46 47
47 // just casts 48 // just casts
48 DenseTimeValueModel *getInput(); 49 DenseTimeValueModel *getInput();