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

Method render

KeyMix/KeyMix.cpp:456–478  ·  view source on GitHub ↗

the overridden render function

Source from the content-addressed store, hash-verified

454
455// the overridden render function
456void
457KeyMixPlugin::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
480void
481KeyMixPlugin::getClipPreferences(ClipPreferencesSetter &clipPreferences)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected