MCPcopy Create free account
hub / github.com/NatronGitHub/openfx-misc / render

Method render

SlitScan/SlitScan.cpp:860–883  ·  view source on GitHub ↗

the overridden render function

Source from the content-addressed store, hash-verified

858
859// the overridden render function
860void
861SlitScanPlugin::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
885mDeclarePluginFactory(SlitScanPluginFactory,; , {});
886void

Callers

nothing calls this directly

Calls 1

isConnectedMethod · 0.80

Tested by

no test coverage detected