the overridden render function
| 454 | |
| 455 | // the overridden render function |
| 456 | void |
| 457 | KeyMixPlugin::render(const RenderArguments &args) |
| 458 | { |
| 459 | // instantiate the render code based on the pixel depth of the dst clip |
| 460 | PixelComponentEnum dstComponents = _dstClip->getPixelComponents(); |
| 461 | |
| 462 | assert( kSupportsMultipleClipPARs || _srcClipA->getPixelAspectRatio() == _dstClip->getPixelAspectRatio() ); |
| 463 | assert( kSupportsMultipleClipDepths || _srcClipA->getPixelDepth() == _dstClip->getPixelDepth() ); |
| 464 | assert( kSupportsMultipleClipPARs || _srcClipB->getPixelAspectRatio() == _dstClip->getPixelAspectRatio() ); |
| 465 | assert( kSupportsMultipleClipDepths || _srcClipB->getPixelDepth() == _dstClip->getPixelDepth() ); |
| 466 | if (dstComponents == ePixelComponentRGBA) { |
| 467 | renderForComponents<4>(args); |
| 468 | } else if (dstComponents == ePixelComponentRGB) { |
| 469 | renderForComponents<3>(args); |
| 470 | #ifdef OFX_EXTENSIONS_NATRON |
| 471 | } else if (dstComponents == ePixelComponentXY) { |
| 472 | renderForComponents<2>(args); |
| 473 | #endif |
| 474 | } else { |
| 475 | assert(dstComponents == ePixelComponentAlpha); |
| 476 | renderForComponents<1>(args); |
| 477 | } |
| 478 | } |
| 479 | |
| 480 | void |
| 481 | KeyMixPlugin::getClipPreferences(ClipPreferencesSetter &clipPreferences) |
nothing calls this directly
no outgoing calls
no test coverage detected