本文整理汇总了C++中ofx::ImageEffectDescriptor::addSupportedExtension方法的典型用法代码示例。如果您正苦于以下问题:C++ ImageEffectDescriptor::addSupportedExtension方法的具体用法?C++ ImageEffectDescriptor::addSupportedExtension怎么用?C++ ImageEffectDescriptor::addSupportedExtension使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ofx::ImageEffectDescriptor
的用法示例。
在下文中一共展示了ImageEffectDescriptor::addSupportedExtension方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/**
* @brief Function called to describe the plugin main features.
* @param[in, out] desc Effect descriptor
*/
void Jpeg2000ReaderPluginFactory::describe( OFX::ImageEffectDescriptor &desc )
{
desc.setLabels(
"TuttleJpeg2000Reader",
"Jpeg2000Reader",
"Jpeg2000 image reader" );
desc.setPluginGrouping( "tuttle/image/io" );
desc.setDescription(
"Jpeg2000 io.\n"
"Plugin is used to read jpeg 2000 files."
);
// 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( "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 );
}
示例2:
/**
* @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 );
}
示例3: 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);
}
示例4: 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 );
}