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

Method JoinViewsPlugin

JoinViews/JoinViews.cpp:60–73  ·  view source on GitHub ↗

@brief ctor */

Source from the content-addressed store, hash-verified

58public:
59 /** @brief ctor */
60 JoinViewsPlugin(OfxImageEffectHandle handle)
61 : ImageEffect(handle)
62 , _dstClip(NULL)
63 , _srcLeftClip(NULL)
64 , _srcRightClip(NULL)
65 {
66
67 _dstClip = fetchClip(kOfxImageEffectOutputClipName);
68 assert( _dstClip && (!_dstClip->isConnected() || _dstClip->getPixelComponents() == ePixelComponentAlpha || _dstClip->getPixelComponents() == ePixelComponentRGB || _dstClip->getPixelComponents() == ePixelComponentRGBA) );
69 _srcLeftClip = fetchClip(kClipLeft);
70 assert( _srcLeftClip && (_srcLeftClip->getPixelComponents() == ePixelComponentAlpha || _srcLeftClip->getPixelComponents() == ePixelComponentRGB || _srcLeftClip->getPixelComponents() == ePixelComponentRGBA) );
71 _srcRightClip = fetchClip(kClipRight);
72 assert( _srcRightClip && (_srcRightClip->getPixelComponents() == ePixelComponentAlpha || _srcRightClip->getPixelComponents() == ePixelComponentRGB || _srcRightClip->getPixelComponents() == ePixelComponentRGBA) );
73 }
74
75private:
76 /* Override the render */

Callers

nothing calls this directly

Calls 1

isConnectedMethod · 0.80

Tested by

no test coverage detected