Fix compile errors
This commit is contained in:
+19
-1
@@ -91,7 +91,25 @@ void NodeFactory::Initialize()
|
||||
olive::plugin::loadPlugins(QString());
|
||||
|
||||
for (auto plugin : OFX::Host::PluginCache::getPluginCache()->getPlugins()) {
|
||||
plugin::PluginNode *plugin_node=new plugin::PluginNode(dynamic_cast<OFX::Host::ImageEffect::ImageEffectPlugin*>(plugin));
|
||||
auto *image_effect =
|
||||
dynamic_cast<OFX::Host::ImageEffect::ImageEffectPlugin *>(plugin);
|
||||
if (!image_effect) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const auto &contexts = image_effect->getContexts();
|
||||
std::string context = kOfxImageEffectContextFilter;
|
||||
if (!contexts.empty() &&
|
||||
contexts.find(kOfxImageEffectContextFilter) == contexts.end()) {
|
||||
context = *contexts.begin();
|
||||
}
|
||||
|
||||
auto *instance = image_effect->createInstance(context, nullptr);
|
||||
if (!instance) {
|
||||
continue;
|
||||
}
|
||||
|
||||
plugin::PluginNode *plugin_node = new plugin::PluginNode(instance);
|
||||
library_.append(plugin_node);
|
||||
}
|
||||
|
||||
|
||||
@@ -149,6 +149,8 @@ olive::plugin::PluginNode::PluginNode(
|
||||
SetInputName(kTextureInput, tr("Texture"));
|
||||
}
|
||||
}
|
||||
|
||||
olive::plugin::PluginNode::~PluginNode() = default;
|
||||
QString olive::plugin::PluginNode::Name() const
|
||||
{
|
||||
const auto *plugin = plugin_instance_->getPlugin();
|
||||
@@ -159,6 +161,11 @@ QString olive::plugin::PluginNode::Name() const
|
||||
|
||||
}
|
||||
|
||||
QVector<olive::Node::CategoryID> olive::plugin::PluginNode::Category() const
|
||||
{
|
||||
return { olive::Node::kCategoryUnknown };
|
||||
}
|
||||
|
||||
QString olive::plugin::PluginNode::Description() const
|
||||
{
|
||||
const auto *plugin = plugin_instance_->getPlugin();
|
||||
@@ -168,6 +175,23 @@ QString olive::plugin::PluginNode::Description() const
|
||||
.data();
|
||||
|
||||
}
|
||||
void olive::plugin::PluginNode::ProcessSamples(const NodeValueRow &values,
|
||||
const SampleBuffer &input,
|
||||
SampleBuffer &output,
|
||||
int index) const
|
||||
{
|
||||
(void)values;
|
||||
(void)input;
|
||||
(void)output;
|
||||
(void)index;
|
||||
}
|
||||
|
||||
void olive::plugin::PluginNode::GenerateFrame(FramePtr frame,
|
||||
const GenerateJob &job) const
|
||||
{
|
||||
(void)frame;
|
||||
(void)job;
|
||||
}
|
||||
void olive::plugin::PluginNode::Value(const NodeValueRow &value,
|
||||
const NodeGlobals &globals,
|
||||
NodeValueTable *table) const
|
||||
|
||||
@@ -382,9 +382,12 @@ TexturePtr NodeTraverser::ProcessVideoCacheJob(const CacheJob *val)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
TexturePtr NodeTraverser::ProcessPluginJob(TexturePtr texture, TexturePtr destination, const Node *node,)
|
||||
TexturePtr NodeTraverser::ProcessPluginJob(TexturePtr texture,
|
||||
TexturePtr destination,
|
||||
const Node *node)
|
||||
{
|
||||
// TODO
|
||||
return nullptr;
|
||||
}
|
||||
QVector2D NodeTraverser::GenerateResolution() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user