Mercurial > hg > svcore
comparison transform/TransformFactory.h @ 79:9e027aa5b5c3
* Avoid instantiating a plugin twice when configuring it (the min/max channel
count call was instantiating the plugin again)
* Add static library credits to the About box for static builds
author | Chris Cannam |
---|---|
date | Mon, 24 Apr 2006 15:52:20 +0000 |
parents | 4d59dc469b0f |
children | 82f529a08cf3 |
comparison
equal
deleted
inserted
replaced
78:c983dda79f72 | 79:9e027aa5b5c3 |
---|---|
17 #define _TRANSFORM_FACTORY_H_ | 17 #define _TRANSFORM_FACTORY_H_ |
18 | 18 |
19 #include "Transform.h" | 19 #include "Transform.h" |
20 | 20 |
21 #include <map> | 21 #include <map> |
22 | |
23 namespace Vamp { class PluginBase; } | |
22 | 24 |
23 class TransformFactory : public QObject | 25 class TransformFactory : public QObject |
24 { | 26 { |
25 Q_OBJECT | 27 Q_OBJECT |
26 | 28 |
141 | 143 |
142 void populateTransforms(); | 144 void populateTransforms(); |
143 void populateFeatureExtractionPlugins(TransformDescriptionMap &); | 145 void populateFeatureExtractionPlugins(TransformDescriptionMap &); |
144 void populateRealTimePlugins(TransformDescriptionMap &); | 146 void populateRealTimePlugins(TransformDescriptionMap &); |
145 | 147 |
148 bool getChannelRange(TransformName name, | |
149 Vamp::PluginBase *plugin, int &min, int &max); | |
150 | |
146 static TransformFactory *m_instance; | 151 static TransformFactory *m_instance; |
147 }; | 152 }; |
148 | 153 |
149 | 154 |
150 #endif | 155 #endif |