svcore
1.9
|
FeatureExtractionPluginFactory type for Vamp plugins hosted in-process. More...
#include <NativeVampPluginFactory.h>
Public Member Functions | |
virtual | ~NativeVampPluginFactory () |
virtual std::vector< QString > | getPluginIdentifiers (QString &errorMessage) override |
Return all installed plugin identifiers. More... | |
virtual piper_vamp::PluginStaticData | getPluginStaticData (QString identifier) override |
Return static data for the given plugin. More... | |
virtual std::shared_ptr< Vamp::Plugin > | instantiatePlugin (QString identifier, sv_samplerate_t inputSampleRate) override |
Instantiate (load) and return pointer to the plugin with the given identifier, at the given sample rate. More... | |
virtual QString | getPluginCategory (QString identifier) override |
Get category metadata about a plugin (without instantiating it). More... | |
virtual QString | getPluginLibraryPath (QString identifier) override |
Get the full file path (including both directory and filename) of the library file that provides a given plugin identifier. More... | |
Static Public Member Functions | |
static FeatureExtractionPluginFactory * | instance () |
Protected Member Functions | |
void | pluginDeleted (Vamp::Plugin *) |
QString | findPluginFile (QString soname, QString inDir="") |
std::vector< QString > | getPluginPath () |
void | generateTaxonomy () |
Protected Attributes | |
QMutex | m_mutex |
std::vector< QString > | m_pluginPath |
std::vector< QString > | m_identifiers |
std::map< QString, QString > | m_taxonomy |
std::map< QString, piper_vamp::PluginStaticData > | m_pluginData |
std::map< QString, QString > | m_libraries |
std::map< Vamp::Plugin *, void * > | m_handleMap |
Friends | |
class | PluginDeletionNotifyAdapter |
Detailed Description
FeatureExtractionPluginFactory type for Vamp plugins hosted in-process.
Definition at line 32 of file NativeVampPluginFactory.h.
Constructor & Destructor Documentation
|
inlinevirtual |
Definition at line 35 of file NativeVampPluginFactory.h.
References getPluginCategory(), getPluginIdentifiers(), getPluginLibraryPath(), getPluginStaticData(), and instantiatePlugin().
Member Function Documentation
|
overridevirtual |
Return all installed plugin identifiers.
Implements FeatureExtractionPluginFactory.
Definition at line 114 of file NativeVampPluginFactory.cpp.
References PluginIdentifier::createIdentifier(), DLCLOSE, DLERROR, DLOPEN, DLSYM, getCandidateLibraries(), RestoreStartupLocale(), SVCERR, and SVDEBUG.
Referenced by ~NativeVampPluginFactory().
|
overridevirtual |
Return static data for the given plugin.
Implements FeatureExtractionPluginFactory.
Definition at line 467 of file NativeVampPluginFactory.cpp.
References PluginIdentifier::parseIdentifier().
Referenced by ~NativeVampPluginFactory().
|
overridevirtual |
Instantiate (load) and return pointer to the plugin with the given identifier, at the given sample rate.
We don't set blockSize or channels on this – they're negotiated and handled via initialize() on the plugin itself after loading.
Implements FeatureExtractionPluginFactory.
Definition at line 301 of file NativeVampPluginFactory.cpp.
References DLCLOSE, DLERROR, DLOPEN, DLSYM, PluginIdentifier::parseIdentifier(), SVCERR, and SVDEBUG.
Referenced by ~NativeVampPluginFactory().
|
overridevirtual |
Get category metadata about a plugin (without instantiating it).
Implements FeatureExtractionPluginFactory.
Definition at line 412 of file NativeVampPluginFactory.cpp.
Referenced by ~NativeVampPluginFactory().
|
overridevirtual |
Get the full file path (including both directory and filename) of the library file that provides a given plugin identifier.
Note getPluginIdentifiers() must have been called before this has access to the necessary information.
Implements FeatureExtractionPluginFactory.
Definition at line 418 of file NativeVampPluginFactory.cpp.
Referenced by ~NativeVampPluginFactory().
|
protected |
Definition at line 388 of file NativeVampPluginFactory.cpp.
|
protected |
Definition at line 216 of file NativeVampPluginFactory.cpp.
References PLUGIN_GLOB, and SVCERR.
|
protected |
Definition at line 70 of file NativeVampPluginFactory.cpp.
|
protected |
Definition at line 424 of file NativeVampPluginFactory.cpp.
References PluginIdentifier::canonicalise().
|
staticinherited |
Definition at line 26 of file FeatureExtractionPluginFactory.cpp.
References Preferences::getInstance(), mutex, and SVDEBUG.
Referenced by ModelTransformerFactory::getConfigurationForTransform(), TransformFactory::getTransformChannelRange(), FeatureExtractionModelTransformer::initialise(), TransformFactory::instantiateDefaultPluginFor(), and TransformFactory::populateFeatureExtractionPlugins().
Friends And Related Function Documentation
|
friend |
Definition at line 59 of file NativeVampPluginFactory.h.
Member Data Documentation
|
protected |
Definition at line 52 of file NativeVampPluginFactory.h.
|
protected |
Definition at line 53 of file NativeVampPluginFactory.h.
|
protected |
Definition at line 54 of file NativeVampPluginFactory.h.
|
protected |
Definition at line 55 of file NativeVampPluginFactory.h.
|
protected |
Definition at line 56 of file NativeVampPluginFactory.h.
|
protected |
Definition at line 57 of file NativeVampPluginFactory.h.
|
protected |
Definition at line 61 of file NativeVampPluginFactory.h.
The documentation for this class was generated from the following files:
Generated by 1.8.11