@brief ctor */
| 61 | public: |
| 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 | |
| 83 | private: |
| 84 | /* Override the render */ |
nothing calls this directly
no test coverage detected