本文整理汇总了C++中ofx::ImageEffectDescriptor::setTemporalClipAccess方法的典型用法代码示例。如果您正苦于以下问题:C++ ImageEffectDescriptor::setTemporalClipAccess方法的具体用法?C++ ImageEffectDescriptor::setTemporalClipAccess怎么用?C++ ImageEffectDescriptor::setTemporalClipAccess使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ofx::ImageEffectDescriptor
的用法示例。
在下文中一共展示了ImageEffectDescriptor::setTemporalClipAccess方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: describe
void BasicExamplePluginFactory::describe(OFX::ImageEffectDescriptor& desc)
{
// basic labels
desc.setLabels("Gain", "Gain", "Gain");
desc.setPluginGrouping("OFX");
// add the supported contexts, only filter at the moment
desc.addSupportedContext(eContextFilter);
desc.addSupportedContext(eContextGeneral);
desc.addSupportedContext(eContextPaint);
// add supported pixel depths
desc.addSupportedBitDepth(eBitDepthUByte);
desc.addSupportedBitDepth(eBitDepthUShort);
desc.addSupportedBitDepth(eBitDepthFloat);
// set a few flags
desc.setSingleInstance(false);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(true);
desc.setSupportsTiles(true);
desc.setTemporalClipAccess(false);
desc.setRenderTwiceAlways(false);
desc.setSupportsMultipleClipPARs(false);
desc.setOverlayInteractDescriptor( new BasicExampleOverlayDescriptor);
}
示例2: describe
void InvertPluginFactory::describe(OFX::ImageEffectDescriptor &desc)
{
// basic labels
desc.setLabels(kPluginName, kPluginName, kPluginName);
desc.setPluginGrouping(kPluginGrouping);
desc.setPluginDescription(kPluginDescription);
// add the supported contexts
desc.addSupportedContext(eContextFilter);
desc.addSupportedContext(eContextGeneral);
desc.addSupportedContext(eContextPaint);
// add supported pixel depths
desc.addSupportedBitDepth(eBitDepthUByte);
desc.addSupportedBitDepth(eBitDepthUShort);
desc.addSupportedBitDepth(eBitDepthFloat);
// set a few flags
desc.setSingleInstance(false);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(true);
desc.setSupportsTiles(true);
desc.setTemporalClipAccess(false);
desc.setRenderTwiceAlways(false);
desc.setSupportsMultipleClipPARs(false);
}
示例3:
/**
* @brief Override this to describe the writer.
* You should call the base-class version at the end like this:
* GenericWriterPluginFactory<YOUR_FACTORY>::describe(desc);
**/
void
GenericWriterDescribe(OFX::ImageEffectDescriptor &desc)
{
desc.setPluginGrouping(kWriterGrouping);
#ifdef OFX_EXTENSIONS_TUTTLE
desc.addSupportedContext(OFX::eContextWriter);
#endif
desc.addSupportedContext(OFX::eContextGeneral);
// OCIO is only supported for float images.
//desc.addSupportedBitDepth(eBitDepthUByte);
//desc.addSupportedBitDepth(eBitDepthUShort);
desc.addSupportedBitDepth(eBitDepthFloat);
// set a few flags
desc.setSingleInstance(false);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(false);
desc.setSupportsTiles(false);
desc.setTemporalClipAccess(false); // say we will be doing random time access on clips
desc.setRenderTwiceAlways(false);
desc.setSupportsMultipleClipPARs(false);
desc.setRenderThreadSafety(OFX::eRenderInstanceSafe);
}
示例4: describe
void CrossFadeExamplePluginFactory::describe(OFX::ImageEffectDescriptor &desc)
{
// basic labels
desc.setLabels("Cross Fade", "Cross Fade", "Cross Fade");
desc.setPluginGrouping("OFX");
// Say we are a transition context
desc.addSupportedContext(eContextTransition);
desc.addSupportedContext(eContextGeneral);
// Add supported pixel depths
desc.addSupportedBitDepth(eBitDepthUByte);
desc.addSupportedBitDepth(eBitDepthUShort);
desc.addSupportedBitDepth(eBitDepthFloat);
// set a few flags
desc.setSingleInstance(false);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(true);
desc.setSupportsTiles(true);
desc.setTemporalClipAccess(false);
desc.setRenderTwiceAlways(false);
desc.setSupportsMultipleClipPARs(false);
}
示例5: describe
void SwitchPluginFactory::describe(OFX::ImageEffectDescriptor &desc)
{
// basic labels
desc.setLabels(kPluginName, kPluginName, kPluginName);
desc.setPluginGrouping(kPluginGrouping);
desc.setPluginDescription(kPluginDescription);
// add the supported contexts
desc.addSupportedContext(eContextGeneral);
desc.addSupportedContext(eContextFilter);
// add supported pixel depths
desc.addSupportedBitDepth(eBitDepthUByte);
desc.addSupportedBitDepth(eBitDepthUShort);
desc.addSupportedBitDepth(eBitDepthFloat);
// set a few flags
desc.setSingleInstance(false);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(true);
desc.setSupportsTiles(true);
desc.setTemporalClipAccess(false);
desc.setRenderTwiceAlways(false);
desc.setSupportsMultipleClipPARs(false);
#ifdef OFX_EXTENSIONS_NUKE
// Enable transform by the host.
// It is only possible for transforms which can be represented as a 3x3 matrix.
desc.setCanTransform(true);
#endif
}
示例6: describe
void NoiseExamplePluginFactory::describe(OFX::ImageEffectDescriptor &desc)
{
desc.setLabels("Noise", "Noise", "Noise");
desc.setPluginGrouping("OFX");
desc.addSupportedContext(eContextGenerator);
desc.addSupportedBitDepth(eBitDepthUByte);
desc.addSupportedBitDepth(eBitDepthUShort);
desc.addSupportedBitDepth(eBitDepthFloat);
desc.setSingleInstance(false);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(true);
desc.setSupportsTiles(true);
desc.setTemporalClipAccess(false);
desc.setRenderTwiceAlways(false);
desc.setSupportsMultipleClipPARs(false);
desc.setRenderTwiceAlways(false);
}
示例7: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void TimeShiftPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
{
desc.setLabels( "TuttleTimeShift", "TimeShift",
"TimeShift" );
desc.setPluginGrouping( "tuttle/image/process/time" );
// add the supported contexts
desc.addSupportedContext( OFX::eContextFilter );
desc.addSupportedContext( OFX::eContextGeneral );
// add supported pixel depths
desc.addSupportedBitDepth( OFX::eBitDepthUByte );
desc.addSupportedBitDepth( OFX::eBitDepthUShort );
desc.addSupportedBitDepth( OFX::eBitDepthFloat );
// plugin flags
desc.setTemporalClipAccess( true );
desc.setSupportsTiles( true );
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
}
示例8: describe
void LensCalibrationPluginFactory::describe(OFX::ImageEffectDescriptor& desc)
{
//Plugin Labels
desc.setLabels(
"LensCalibration",
"LensCalibration",
"openMVG LensCalibration");
//Plugin grouping
desc.setPluginGrouping("openMVG");
//Plugin description
desc.setPluginDescription(
"LensCalibration estimates the best distortion parameters "
"according to the couple camera/optics of a dataset."
"\n"
"The plugin supports video file & folder containing images or "
"image sequence."
);
//Supported contexts
desc.addSupportedContext(OFX::eContextFilter);
desc.addSupportedContext(OFX::eContextGeneral);
desc.addSupportedContext(OFX::eContextPaint);
//Supported pixel depths
desc.addSupportedBitDepth(OFX::eBitDepthUByte);
desc.addSupportedBitDepth(OFX::eBitDepthUShort);
desc.addSupportedBitDepth(OFX::eBitDepthFloat);
//Flags
desc.setSingleInstance(false);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(false);
desc.setSupportsTiles(false);
desc.setTemporalClipAccess(false);
desc.setRenderTwiceAlways(false);
desc.setSupportsMultipleClipPARs(false);
desc.setOverlayInteractDescriptor( new LensCalibrationOverlayDescriptor);
}