本文整理汇总了C++中ofx::ImageEffectDescriptor::setPluginGrouping方法的典型用法代码示例。如果您正苦于以下问题:C++ ImageEffectDescriptor::setPluginGrouping方法的具体用法?C++ ImageEffectDescriptor::setPluginGrouping怎么用?C++ ImageEffectDescriptor::setPluginGrouping使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ofx::ImageEffectDescriptor
的用法示例。
在下文中一共展示了ImageEffectDescriptor::setPluginGrouping方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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);
}
示例2: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void HistogramKeyerPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
{
// describe the plugin
desc.setLabels( "TuttleHistogramKeyer", "HistogramKeyer",
"HistogramKeyer" );
desc.setPluginGrouping( "tuttle/image/process/color" );
desc.setDescription(
"HistogramKeyer\n"
"This histogram keyer plugin allows user to create an alpha mask using HSL & RGB curves. Output can be in gray scale or directly in alpha channel (RGBA)."
"There are some selection parameters which could help you to refine your maniplulation (control points unders histograms and quantity)."
"A reverse output mask is also implemented.\n"
"\n"
);
// add the supported contexts, only filter at the moment
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.setSupportsTiles( kSupportTiles );
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
desc.setOverlayInteractDescriptor( new OFX::DefaultEffectOverlayWrap<HistogramKeyerOverlayDescriptor>() );
if( ! OFX::getImageEffectHostDescription()->supportsParametricParameter )
{
BOOST_THROW_EXCEPTION( exception::MissingHostFeature( "Parametric parameter" ) );
}
}
示例3: 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
}
示例4:
/**
* @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);
}
示例5: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void EXRReaderPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
{
desc.setLabels(
"TuttleExrReader",
"ExrReader",
"Exr file reader" );
desc.setPluginGrouping( "tuttle/image/io" );
desc.setDescription( "EXR File reader\n"
"Plugin is used to read exr files.\n"
);
// add the supported contexts
desc.addSupportedContext( OFX::eContextReader );
desc.addSupportedContext( OFX::eContextGeneral );
// add supported pixel depths
desc.addSupportedBitDepth( OFX::eBitDepthUByte );
desc.addSupportedBitDepth( OFX::eBitDepthUShort );
desc.addSupportedBitDepth( OFX::eBitDepthFloat );
// add supported extensions
desc.addSupportedExtension( "exr" );
desc.setPluginEvaluation( 90 );
// plugin flags
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
desc.setHostFrameThreading( false );
desc.setSupportsMultiResolution( false );
desc.setSupportsMultipleClipDepths( true );
desc.setSupportsTiles( kSupportTiles );
}
示例6: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void DPXWriterPluginFactory::describe(OFX::ImageEffectDescriptor& desc)
{
desc.setLabels("TuttleDpxWriter", "DpxWriter", "Dpx file writer");
desc.setPluginGrouping("tuttle/image/io");
desc.setDescription("Digital Picture Exchange (DPX), ANSI/SMPTE standard (268M-2003)");
// add the supported contexts
desc.addSupportedContext(OFX::eContextWriter);
desc.addSupportedContext(OFX::eContextGeneral);
// add supported pixel depths
desc.addSupportedBitDepth(OFX::eBitDepthUByte);
desc.addSupportedBitDepth(OFX::eBitDepthUShort);
desc.addSupportedBitDepth(OFX::eBitDepthFloat);
// add supported extensions
desc.addSupportedExtension("dpx");
desc.setPluginEvaluation(90);
// plugin flags
desc.setRenderThreadSafety(OFX::eRenderFullySafe);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(false);
desc.setSupportsMultipleClipDepths(true);
desc.setSupportsTiles(kSupportTiles);
}
示例7: 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);
}
示例8: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void HistogramKeyerPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
{
desc.setLabels( "TuttleHistogramKeyer", "HistogramKeyer",
"HistogramKeyer" );
desc.setPluginGrouping( "tuttle/image/process/color" );
desc.setDescription(
"HistogramKeyer\n"
"Test parametric parameters.\n"
"Full description of the plugin....\n"
"\n"
"bla bla\n"
"\n"
);
// add the supported contexts, only filter at the moment
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.setSupportsTiles( kSupportTiles );
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
desc.setOverlayInteractDescriptor( new OFX::DefaultEffectOverlayWrap<HistogramKeyerOverlayDescriptor>() );
// if( ! OFX::getImageEffectHostDescription()->supportsParametricParameter )
// {
// BOOST_THROW_EXCEPTION( exception::MissingHostFeature( "Parametric parameter" ) );
// }
}
示例9: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void SeExprPluginFactory::describe(OFX::ImageEffectDescriptor& desc)
{
desc.setLabels("TuttleSeExpr", "SeExpr", "SeExpr");
desc.setPluginGrouping("tuttle/image/generator");
desc.setDescription("SeExpr is a simple expression language that we use to provide"
"artistic control and customization to our core software.\n"
"We use it for procedural geometry synthesis, image synthesis,"
"simulation control, and much more.\n\n"
"language documentation: http://wdas.github.io/SeExpr/doxygen/userdoc.html"
"\n\n"
"projet website: http://www.disneyanimation.com/technology/seexpr.html");
// add the supported contexts, only filter at the moment
desc.addSupportedContext(OFX::eContextGenerator);
desc.addSupportedContext(OFX::eContextGeneral);
// add supported pixel depths
desc.addSupportedBitDepth(OFX::eBitDepthUByte);
desc.addSupportedBitDepth(OFX::eBitDepthUShort);
desc.addSupportedBitDepth(OFX::eBitDepthFloat);
// plugin flags
desc.setRenderThreadSafety(OFX::eRenderFullySafe);
desc.setHostFrameThreading(false);
desc.setSupportsMultiResolution(true);
desc.setSupportsMultipleClipDepths(true);
desc.setSupportsTiles(kSupportTiles);
}
示例10: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void PngWriterPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
{
desc.setLabels( "TuttlePngWriter", "PngWriter",
"Png file writer" );
desc.setPluginGrouping( "tuttle/image/io" );
// add the supported contexts
desc.addSupportedContext( OFX::eContextWriter );
desc.addSupportedContext( OFX::eContextGeneral );
// add supported pixel depths
desc.addSupportedBitDepth( OFX::eBitDepthUByte );
desc.addSupportedBitDepth( OFX::eBitDepthUShort );
desc.addSupportedBitDepth( OFX::eBitDepthFloat );
// add supported extensions
desc.addSupportedExtension( "png" );
// plugin flags
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
desc.setHostFrameThreading( false );
desc.setSupportsMultiResolution( false );
desc.setSupportsMultipleClipDepths( true );
desc.setSupportsTiles( kSupportTiles );
}
示例11: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void ConstantPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
{
desc.setLabels( "TuttleConstant", "Constant",
"Constant" );
desc.setPluginGrouping( "tuttle/image/generator" );
desc.setDescription(
"Constant"
"\n"
"is a simple generator of a color."
);
// add the supported contexts
desc.addSupportedContext( OFX::eContextGenerator );
desc.addSupportedContext( OFX::eContextGeneral );
// add supported pixel depths
desc.addSupportedBitDepth( OFX::eBitDepthUByte );
desc.addSupportedBitDepth( OFX::eBitDepthUShort );
desc.addSupportedBitDepth( OFX::eBitDepthFloat );
// plugin flags
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
desc.setHostFrameThreading( false );
desc.setSupportsMultiResolution( false );
desc.setSupportsMultipleClipDepths( true );
desc.setSupportsTiles( kSupportTiles );
}
示例12:
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void Jpeg2000WriterPluginFactory::describe( OFX::ImageEffectDescriptor &desc )
{
desc.setLabels(
"TuttleJpeg2000Writer",
"Jpeg2000Writer",
"Jpeg 2000 image writer" );
desc.setPluginGrouping( "tuttle/image/io" );
desc.setDescription( "Jpeg2000 writer\n"
"plugin is used to output jpeg 2000 files.\n"
"In the filename pattern, put @ where you want your incrementation to be." );
// add the supported contexts
desc.addSupportedContext( OFX::eContextWriter );
desc.addSupportedContext( OFX::eContextGeneral );
// add supported pixel depths
desc.addSupportedBitDepth( OFX::eBitDepthUByte );
desc.addSupportedBitDepth( OFX::eBitDepthUShort );
desc.addSupportedBitDepth( OFX::eBitDepthFloat );
// add supported extensions
desc.addSupportedExtension( "j2k" );
//desc.addSupportedExtension( "jp2" );
//desc.addSupportedExtension( "j2c" );
// plugin flags
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
desc.setHostFrameThreading( false );
desc.setSupportsMultiResolution( false );
desc.setSupportsMultipleClipDepths( true );
desc.setSupportsTiles( kSupportTiles );
}
示例13: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void TurboJpegWriterPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
{
desc.setLabels(
"TuttleTurboJpegWriter",
"TurboJpegWriter",
"Turbo Jpeg file writer" );
desc.setPluginGrouping( "tuttle/image/io" );
using namespace boost::assign;
std::vector<std::string> supportedExtensions;
supportedExtensions += "jpeg", "jpg", "jpe", "jfif", "jfi";
desc.setDescription( "Turbo Jpeg File writer\n"
"Plugin is used to write jpeg files.\n\n"
"supported extensions: \n" +
boost::algorithm::join( supportedExtensions, ", " )
);
// add the supported contexts
desc.addSupportedContext( OFX::eContextWriter );
desc.addSupportedContext( OFX::eContextGeneral );
// add supported pixel depths
desc.addSupportedBitDepth( OFX::eBitDepthUByte );
desc.addSupportedBitDepth( OFX::eBitDepthUShort );
desc.addSupportedBitDepth( OFX::eBitDepthFloat );
// plugin flags
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
desc.setHostFrameThreading( false );
desc.setSupportsMultiResolution( false );
desc.setSupportsMultipleClipDepths( true );
desc.setSupportsTiles( kSupportTiles );
}
示例14: describe
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void JpegReaderPluginFactory::describe( OFX::ImageEffectDescriptor& desc )
{
desc.setLabels( "TuttleJpegReader", "JpegReader",
"Jpeg file reader" );
desc.setPluginGrouping( "tuttle/image/io" );
desc.setDescription( "<b>JPEG File reader</b> plugin is used to read jpeg files. <br />" );
// add the supported contexts
desc.addSupportedContext( OFX::eContextReader );
desc.addSupportedContext( OFX::eContextGenerator );
desc.addSupportedContext( OFX::eContextGeneral );
// add supported pixel depths
desc.addSupportedBitDepth( OFX::eBitDepthFloat );
desc.addSupportedBitDepth( OFX::eBitDepthUByte );
desc.addSupportedBitDepth( OFX::eBitDepthUShort );
// plugin flags
desc.setRenderThreadSafety( OFX::eRenderFullySafe );
desc.setHostFrameThreading( false );
desc.setSupportsMultiResolution( false );
desc.setSupportsMultipleClipDepths( true );
desc.setSupportsTiles( kSupportTiles );
}
示例15: 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);
}