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

Method OneViewPlugin

OneView/OneView.cpp:63–81  ·  view source on GitHub ↗

@brief ctor */

Source from the content-addressed store, hash-verified

61public:
62 /** @brief ctor */
63 OneViewPlugin(OfxImageEffectHandle handle)
64 : ImageEffect(handle)
65 , _dstClip(NULL)
66 , _srcClip(NULL)
67 , _view(NULL)
68 {
69
70 _dstClip = fetchClip(kOfxImageEffectOutputClipName);
71 assert( _dstClip && (!_dstClip->isConnected() || _dstClip->getPixelComponents() == ePixelComponentAlpha ||
72 _dstClip->getPixelComponents() == ePixelComponentRGB ||
73 _dstClip->getPixelComponents() == ePixelComponentRGBA) );
74 _srcClip = getContext() == eContextGenerator ? NULL : fetchClip(kOfxImageEffectSimpleSourceClipName);
75 assert( (!_srcClip && getContext() == eContextGenerator) ||
76 ( _srcClip && (!_srcClip->isConnected() || _srcClip->getPixelComponents() == ePixelComponentAlpha ||
77 _srcClip->getPixelComponents() == ePixelComponentRGB ||
78 _srcClip->getPixelComponents() == ePixelComponentRGBA) ) );
79 _view = fetchChoiceParam(kParamView);
80 assert(_view);
81 }
82
83private:
84 /* Override the render */

Callers

nothing calls this directly

Calls 2

getContextFunction · 0.85
isConnectedMethod · 0.80

Tested by

no test coverage detected