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