#include <iostream>
#include <fstream>
#include "ofxCore.h"
#include "ofxImageEffect.h"
#include "ofxPixels.h"
#include "ofxhBinary.h"
#include "ofxhPropertySuite.h"
#include "ofxhClip.h"
#include "ofxhParam.h"
#include "ofxhMemory.h"
#include "ofxhImageEffect.h"
#include "ofxhPluginAPICache.h"
#include "ofxhPluginCache.h"
#include "ofxhHost.h"
#include "ofxhImageEffectAPI.h"
#include "hostDemoHostDescriptor.h"
#include "hostDemoEffectInstance.h"
#include "hostDemoClipInstance.h"
#include "hostDemoParamInstance.h"
namespace MyHost {
MyIntegerInstance::MyIntegerInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::IntegerInstance(descriptor)
{
}
OfxStatus MyIntegerInstance::get(int&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyIntegerInstance::get(OfxTime time, int&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyIntegerInstance::set(int)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyIntegerInstance::set(OfxTime time, int) {
return kOfxStatErrMissingHostFeature;
}
MyDoubleInstance::MyDoubleInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::DoubleInstance(descriptor)
{
}
OfxStatus MyDoubleInstance::get(double& d)
{
d = 2.0;
return kOfxStatOK;
}
OfxStatus MyDoubleInstance::get(OfxTime time, double& d)
{
d = 2.0;
return kOfxStatOK;
}
OfxStatus MyDoubleInstance::set(double)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyDoubleInstance::set(OfxTime time, double)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyDoubleInstance::derive(OfxTime time, double&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyDoubleInstance::integrate(OfxTime time1, OfxTime time2, double&)
{
return kOfxStatErrMissingHostFeature;
}
MyBooleanInstance::MyBooleanInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::BooleanInstance(descriptor)
{
}
OfxStatus MyBooleanInstance::get(bool& b)
{
b = true;
return kOfxStatOK;
}
OfxStatus MyBooleanInstance::get(OfxTime time, bool& b)
{
b = true;
return kOfxStatOK;
}
OfxStatus MyBooleanInstance::set(bool)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyBooleanInstance::set(OfxTime time, bool) {
return kOfxStatErrMissingHostFeature;
}
MyChoiceInstance::MyChoiceInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::ChoiceInstance(descriptor)
{
}
OfxStatus MyChoiceInstance::get(int&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyChoiceInstance::get(OfxTime time, int&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyChoiceInstance::set(int)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyChoiceInstance::set(OfxTime time, int)
{
return kOfxStatErrMissingHostFeature;
}
MyRGBAInstance::MyRGBAInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::RGBAInstance(descriptor)
{
}
OfxStatus MyRGBAInstance::get(double&,double&,double&,double&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyRGBAInstance::get(OfxTime time, double&,double&,double&,double&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyRGBAInstance::set(double,double,double,double)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyRGBAInstance::set(OfxTime time, double,double,double,double)
{
return kOfxStatErrMissingHostFeature;
}
MyRGBInstance::MyRGBInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::RGBInstance(descriptor)
{
}
OfxStatus MyRGBInstance::get(double&,double&,double&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyRGBInstance::get(OfxTime time, double&,double&,double&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyRGBInstance::set(double,double,double)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyRGBInstance::set(OfxTime time, double,double,double)
{
return kOfxStatErrMissingHostFeature;
}
MyDouble2DInstance::MyDouble2DInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::Double2DInstance(descriptor)
{
}
OfxStatus MyDouble2DInstance::get(double&,double&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyDouble2DInstance::get(OfxTime time,double&,double&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyDouble2DInstance::set(double,double)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyDouble2DInstance::set(OfxTime time,double,double)
{
return kOfxStatErrMissingHostFeature;
}
MyInteger2DInstance::MyInteger2DInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::Integer2DInstance(descriptor)
{
}
OfxStatus MyInteger2DInstance::get(int&,int&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyInteger2DInstance::get(OfxTime time,int&,int&)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyInteger2DInstance::set(int,int)
{
return kOfxStatErrMissingHostFeature;
}
OfxStatus MyInteger2DInstance::set(OfxTime time,int,int)
{
return kOfxStatErrMissingHostFeature;
}
MyPushbuttonInstance::MyPushbuttonInstance(MyEffectInstance* effect,
const std::string& name,
OFX::Host::Param::Descriptor& descriptor)
: _effect(effect), _descriptor(descriptor), OFX::Host::Param::PushbuttonInstance(descriptor)
{
}
}