the overridden render function
| 858 | |
| 859 | // the overridden render function |
| 860 | void |
| 861 | SlitScanPlugin::render(const RenderArguments &args) |
| 862 | { |
| 863 | // instantiate the render code based on the pixel depth of the dst clip |
| 864 | PixelComponentEnum dstComponents = _dstClip->getPixelComponents(); |
| 865 | |
| 866 | assert( kSupportsMultipleClipPARs || !_srcClip || !_srcClip->isConnected() || _srcClip->getPixelAspectRatio() == _dstClip->getPixelAspectRatio() ); |
| 867 | assert( kSupportsMultipleClipDepths || !_srcClip || !_srcClip->isConnected() || _srcClip->getPixelDepth() == _dstClip->getPixelDepth() ); |
| 868 | |
| 869 | // do the rendering |
| 870 | if (dstComponents == ePixelComponentRGBA) { |
| 871 | renderForComponents<4>(args); |
| 872 | } else if (dstComponents == ePixelComponentRGB) { |
| 873 | renderForComponents<3>(args); |
| 874 | #ifdef OFX_EXTENSIONS_NATRON |
| 875 | } else if (dstComponents == ePixelComponentXY) { |
| 876 | renderForComponents<2>(args); |
| 877 | #endif |
| 878 | } else if (dstComponents == ePixelComponentAlpha) { |
| 879 | renderForComponents<1>(args); |
| 880 | } else { |
| 881 | throwSuiteStatusException(kOfxStatFailed); |
| 882 | } |
| 883 | } |
| 884 | |
| 885 | mDeclarePluginFactory(SlitScanPluginFactory,; , {}); |
| 886 | void |
nothing calls this directly
no test coverage detected