Chris@27: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@27: Chris@27: /* Chris@27: Sonic Visualiser Chris@27: An audio file viewer and annotation editor. Chris@27: Centre for Digital Music, Queen Mary, University of London. Chris@77: This file copyright 2006 QMUL. Chris@27: Chris@27: This program is free software; you can redistribute it and/or Chris@27: modify it under the terms of the GNU General Public License as Chris@27: published by the Free Software Foundation; either version 2 of the Chris@27: License, or (at your option) any later version. See the file Chris@27: COPYING included with this distribution for more information. Chris@27: */ Chris@27: Chris@27: #ifndef _PLUGIN_TRANSFORM_H_ Chris@27: #define _PLUGIN_TRANSFORM_H_ Chris@27: Chris@27: #include "Transform.h" Chris@27: Chris@27: #include "base/Window.h" Chris@27: Chris@27: #include "vamp-sdk/Plugin.h" Chris@27: Chris@27: //!!! should this just move back up to Transform? It is after all used Chris@27: //directly in all sorts of generic places, like Document Chris@27: Chris@27: class PluginTransform : public Transform Chris@27: { Chris@27: public: Chris@27: class ExecutionContext { Chris@27: public: Chris@27: // Time domain: Chris@27: ExecutionContext(int _c = -1, size_t _bs = 0); Chris@27: Chris@27: // Frequency domain: Chris@27: ExecutionContext(int _c, size_t _ss, size_t _bs, WindowType _wt); Chris@27: Chris@27: // From plugin defaults: Chris@27: ExecutionContext(int _c, const Vamp::PluginBase *_plugin); Chris@27: Chris@27: bool operator==(const ExecutionContext &); Chris@27: Chris@27: void makeConsistentWithPlugin(const Vamp::PluginBase *_plugin); Chris@27: Chris@27: int channel; Chris@27: Vamp::Plugin::InputDomain domain; Chris@27: size_t stepSize; Chris@27: size_t blockSize; Chris@27: WindowType windowType; Chris@27: }; Chris@27: Chris@27: protected: Chris@27: PluginTransform(Model *inputModel, Chris@27: const ExecutionContext &context); Chris@27: Chris@27: ExecutionContext m_context; Chris@27: }; Chris@27: Chris@27: #endif